unsetenv etc.: port to Solaris 11 + GNU Emacs
[gnulib.git] / ChangeLog
1 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
2
3         unsetenv etc.: port to Solaris 11 + GNU Emacs
4         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
5         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
6         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
7         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
8         idea but is too painful to fix right now), and without this gnulib
9         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
10         compiling unsetenv.c on Solaris 11.  Fix the problem for
11         unsetenv.c, and fix other similar occurrences.
12
13 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
14
15         secure_getenv: fix C++ declaration typo
16         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
17         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
18         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00057.html>.
19
20 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
21
22         careadlinkat: stop exporting careadlinkatcwd
23         Only Emacs used it directly, and Emacs no longer needs it.
24         * NEWS: Document this simplification.
25         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
26         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
27         for readlink.
28         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
29         Don't include stdlib.h; no longer needed.
30         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
31         * lib/relocwrapper.c: Adjust comment to match new dependencies.
32         * modules/areadlink (Depends-on): Add readlink.
33         (Maintainer): Add self.
34         * modules/careadlinkat (Depends-on): Remove readlink.
35
36         extensions: port better to HP-UX
37         This is merged from git Autoconf.
38         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
39         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
40         so that it's compatible with the value used when compiling.
41
42         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
43         Problem reported by Mats Erik Andersson in
44         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00051.html>.
45         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
46         openpty function exists, not merely when we intend to replace it.
47         This corrects the 2013-01-31 patch, which mistakenly defined
48         HAVE_OPENPTY even on hosts that lacked it.
49
50 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
51
52         secure_getenv: fix include typo
53         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
54
55         secure_getenv: port better to FreeBSD and Solaris
56         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
57         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
58         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
59         This works better on BSDish platforms.
60         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
61         Test for issetugid if __secure_getenv is missing.
62
63 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
64
65         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
66         Some of these changes are merged in from git Autoconf.
67         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
68         When deciding whether to define _XOPEN_SOURCE, inspect the
69         preprocessor macro __hpux instead of the more-heavyweight
70         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
71         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
72         as the key for __EXTENSIONS__.
73
74         unistd: avoid namespace pollution on non-glibc systems
75         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
76         This avoids namespace pollution on non-glibc systems, by causing
77         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
78         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
79         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00027.html>.
80
81 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
82
83         tmpdir: use secure_getenv
84         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
85         Define to secure_getenv, not getenv.
86         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
87         as that's now secure_getenv's job.
88         * modules/tmpdir (Depends-on): Add secure_getenv.
89
90         tempname: use secure_getenv
91         * lib/tempname.c (__secure_getenv) [!_LIBC]:
92         Define to secure_getenv, not getenv.
93         * modules/tempname (Depends-on):
94         Add secure_getenv.
95
96         secure_getenv: new module
97         * MODULES.html.sh (Extra functions based on ANSI C 89):
98         Add secure_getenv.
99         * doc/glibc-functions/secure_getenv.texi: New file.
100         * doc/gnulib.texi: Include it.
101         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
102         New files.
103         * lib/stdlib.in.h (secure_getenv): New decl.
104         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
105         * modules/stdlib (stdlib.h):
106         Add secure_getenv checks.
107
108 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
109
110         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
111         Reported for OS X 10.8.2 by Assaf Gordon in
112         <http://bugs.gnu.org/13516>.
113         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
114         !HAVE_OPENAT && !HAVE_FDOPENDIR.
115         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
116         so that they can be kept in sync more easily.  Avoid PATH_MAX
117         test on the Hurd.  Sync from test-getcwd.c for errno tests after
118         mkdir or chdir failure.
119         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
120         lib/getcwd.c.
121         (test_abort_bug): Do not test for the deep directory bug unless we
122         have openat support.  Avoid PATH_MAX test on the Hurd.
123
124         regex-tests, regex: fix bug: memset undeclared
125         * tests/test-regex.c: Don't include regex.h twice.  Include
126         string.h, to declare memset.  Christensen's report also mentioned
127         this issue.
128         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
129         test-regex.c, to avoid future problems like this.  Remove
130         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
131         twice.
132
133         regex-tests: fix link errors on older Solaris
134         These need to link with @LIBINTL@ to get libintl_gettext.
135         Problem reported by Tom G. Christensen in
136         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00003.html>.
137         * modules/regex-tests (test_regex_LDADD): New macro.
138
139 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
140
141         regex-tests: new module
142         * modules/regex-tests, tests/test-regex.c: New files.
143
144         regex: fix off-by-one error in configure test
145         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
146
147 2013-01-31  Eric Blake  <eblake@redhat.com>
148
149         regex: avoid infinite configure test
150         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
151
152 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
153
154         openpty: fix bug where HAVE_OPENPTY wasn't defined
155         See the thread starting at:
156         http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00185.html
157         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
158         openpty function exists, not merely when we intend to replace it.
159
160 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
161
162         sys_time: port to Solaris 2.6
163         There is a circularity problem on Solaris 2.6, where <time.h> includes
164         <sys/time.h> for struct timespec.  The include nesting is gnulib
165         <time.h>, system <time.h>, gnulib <sys/time.h>, system
166         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
167         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
168         <sys/siginfo.h>; the last, innermost file needs struct
169         timestruc_t, which is defined in <sys/time.h>, which has not been
170         fully parsed.  Problem reported by Tom G. Christensen in
171         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00113.html>.
172         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
173         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
174         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
175         uses split double-inclusion guards.
176
177 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
178
179         regex: test for buffer overrun
180         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
181         for the just-fixed regex bug.
182
183 2013-01-29  Andreas Schwab  <schwab@suse.de>
184
185         regex: fix buffer overrun in regexp matcher
186         * lib/regexec.c (extend_buffers): Add parameter min_len.
187         (check_matching): Pass minimum needed length.
188         (clean_state_log_if_needed): Likewise.
189         (get_subexp): Likewise.
190
191 2013-01-28  Pádraig Brady  <P@draigBrady.com>
192
193         mountlist: don't consider "devtmpfs" as dummy
194         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
195         as there is storage associcated with it.
196
197 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
198
199         futimens-tests, utimens-tests: Depend on gettext.
200         This works around a problem introduced in my 2013-01-12 patch,
201         which added @LIBINTL@ to these modules.
202         * modules/futimens-tests (Depends-on):
203         * modules/utimens-tests (Depends-on): Add gettext.
204
205 2013-01-26  Eric Blake  <eblake@redhat.com>
206
207         test-getpeername: fix typo
208         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
209
210 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
211
212         bootstrap: remove the need for a sorted .gitignore file
213         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
214         rename to insert_if_absent(), so that we don't need or generate
215         a sorted .gitignore file.  We do require a .gitignore with no
216         existing duplicate entries and enforce that.
217         (sort_patterns): Remove this function as we now use the simpler
218         technigue of inserting blacklist entries at the top of the file,
219         assuming gnulib won't be inserting !whitelist entries.
220
221 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
222
223         readlinkat: don't depend on gl_FUNC_OPENAT
224         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
225         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
226         renameat.m4, symlinkat.m4; but one thing at a time.
227
228         statat: new module, split out from fstatat
229         GNU Emacs needs the POSIX-specified fstatat, but not the
230         gnulib-specified statat and lstat.  Split the latter two into a
231         new module 'statat'.
232         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
233         * lib/openat.h, lib/statat.c (STATAT_INLINE):
234         Rename from FSTATAT_INLINE. All uses changed.
235         * modules/fstatat (Files): Remove lib/statat.c.
236         (gl_MODULE_INDICATOR([fstatat])): Remove.
237         (lib_SOURCES): Remove.
238         (Maintainer): Add self.
239         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
240         * tests/test-fstatat.c (BASE): Don't define if already defined.
241         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
242
243 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
244
245         tests: don't assume fd 99 is closed
246         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
247         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
248         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
249         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
250         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
251         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
252         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
253         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
254         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
255         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
256         * tests/test-fwrite.c, tests/test-getpeername.c:
257         * tests/test-getsockname.c, tests/test-getsockopt.c:
258         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
259         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
260         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
261         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
262         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
263         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
264         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
265         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
266         * tests/test-unlinkat.c, tests/test-unlockpt.c:
267         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
268         Close file descriptor 99, instead of assuming it's already closed.
269
270 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
271
272         stpncpy: port to OS X 10.8
273         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
274         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
275
276 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
277
278         unistd: port to recent mingw
279         * lib/unistd.in.h: Remove special invocation convention for mingw,
280         which breaks for the latest mingw version.  See John W. Eaton in
281         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00100.html>.
282
283         largefile: port better to Mac OS X 10.5
284         This patch is backported from Autoconf git.
285         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
286         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
287         with ino_t size being different for configuration time versus
288         build/run time.  Problem reported by PHO in
289         <http://lists.gnu.org/archive/html/bug-autoconf/2013-01/msg00040.html>.
290
291 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
292
293         doc: clarify -Werror
294         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
295         clarify that it's intended for developers, not for ordinary builds,
296         and mention --enable-gcc-warnings as one possible use.
297
298 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
299
300         stdint: fix build with Android's Bionic fox x86
301         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
302         was already included as _SSIZE_T_DEFINED_ might also be defined
303         in include/machine/_types.h, which is included by stdio.h
304
305 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
306
307         net_if-tests: port to Solaris 7 + GCC 3.4.6
308         Problem reported by Tom G. Christensen in
309         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00091.html>.
310         * tests/test-net_if.c (ni): Move to next the code that uses it,
311         so that it's declared only if needed.
312
313 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
314
315         net_if-tests: port to older Solaris
316         Problem reported by Tom G. Christensen in
317         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
318         * modules/net_if-tests (NET_IF_LIB): New substitution.
319         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
320         (HAVE_IF_NAMEINDEX): New C macro.
321         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
322
323         system-quote-tests: port to older Solaris
324         Problem reported by Tom G. Christensen in
325         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
326         * tests/test-system-quote-child.c (fopen, fread): Undef.
327
328         c-xvasprintf etc.: fix link errors on older Solaris
329         These need to link with @LIBINTL@ to get libintl_gettext.
330         Problem reported by Tom G. Christensen in
331         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
332         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
333         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
334         * modules/futimens-tests (test_futimens_LDADD):
335         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
336
337 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
338
339         locale: port to Solaris 2.6 and 7 + GNU gettext
340         * lib/locale.in.h: Just include_next <locale.h> when
341         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
342         when combining the localename module with GNU gettext 0.18.2.
343         Problem reported by Tom G. Christensen in
344         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00084.html>.
345
346 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
347
348         stdlib: port to Solaris 2.6
349         Also, the code worked on Solaris 7 through 9 only by accident.
350         Problem reported by Tom G. Christensen in
351         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00059.html>.
352         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
353         simply include the system stdlib.h.
354         * lib/getopt.in.h (__need_system_stdlib_h):
355         * lib/pthread.in.h (__need_system_stdlib_h):
356         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
357         Define when including <stdlib.h>, to avoid problems at least for
358         the pthread case on Solaris 2.6 and 7.  These .h files can get by
359         with the system stdlib.h.
360
361 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
362
363         doc: update main copyright year
364         * doc/gnulib.texi: Update copyright date.
365
366         doc: improve ISO 8601 discussion
367         * doc/parse-datetime.texi (Combined date and time of day items):
368         Specify more carefully what formats are supported and what is
369         done with excess precision.
370
371 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
372
373         doc: avoid small caps
374         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
375         they're more trouble than they're worth.  Suggested by Karl Berry
376         in <http://bugs.gnu.org/13360>.
377
378         regex: conform to strict C
379         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
380         From Aharon Robbins.
381
382         gnulib-tool: fix incompatibility with autopoint 0.18.2
383         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
384         Problem reported by Tom G. Christensen in
385         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00053.html>.
386
387 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
388
389         fprintftime: bring back and reword fwrite comment
390         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
391
392         stdio: remove now-unnecessary stdio.c
393         Since stdio.in.h no longer uses inline functions, we no longer
394         need to compile the extern versions.
395         * lib/stdio.c: Remove.
396         * modules/stdio (Files): Remove lib/stdio.c.
397         (lib_SOURCES): Remove.
398
399         unicodeio: depend on stdio, not ignore-value
400         * lib/unicodeio.c: Do not include ignore-value.h.
401         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
402         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
403
404         fprintftime: depend on stdio, not ignore-value
405         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
406         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
407         since the stdio module arranges to silence that warning now.
408         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
409
410 2012-10-04  Simon Josefsson  <simon@josefsson.org>
411
412         stdint-tests: Fix expanded-before-required-warning.
413         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
414
415 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
416
417         fwrite: silence __wur only for older glibc versions
418         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
419         This will help us remove this workaround some time in the far future.
420
421 2013-01-03  Eric Blake  <eblake@redhat.com>
422
423         fwrite: silence __wur without using inline
424         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
425         just gcc, and in a way that avoids inline issues.
426         * modules/stdio (Depends-on): Drop extern-inline.
427
428 2013-01-03  Jim Meyering  <jim@meyering.net>
429
430         update-copyright: avoid copyright notice date corruption
431         Given a sequence of copyright year numbers in which the final
432         one was a two-digit number that happened to be a substring of
433         a preceding four-digit year number, we would mistakenly update
434         the substring (from two- to four-digit) rather than the two-digit
435         number at the end, which, combined with the addition of the current
436         4-digit year number would yield two 5-digit year numbers, e.g.,
437         here, it would convert the first "99" to "1999, 2013" rather than
438         the final one:
439           1991, 99
440           11999, 20131, 1999
441         * build-aux/update-copyright: Tighten a regexp.
442         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
443         Reported by Joseph Myers in
444         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
445
446 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
447
448         regex: omit needless signed-pointer casts
449         * lib/regcomp.c (build_charclass, build_charclass_op):
450         Use char *, not unsigned char *, for class name and extra.
451         The char values are always nonnegative so there's no need to
452         insist on unsigned char * here, and using char * removes the need
453         for casts.  Reported by Aharon Robbins in
454         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
455
456         regex: support Gawk, which never uses alloca
457         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
458         Do not include in this case.  Gawk doesn't supply a substitute
459         alloca.h and doesn't need one.
460
461         regex: port __libc_lock_define usage to C89
462         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
463         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
464         does not conform to C89, as it has an empty macro argument.
465         Reported by Aharon Robbins in
466         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
467
468 2013-01-01  Eric Blake  <eblake@redhat.com>
469
470         maint: update all copyright year number ranges
471         Run "make update-copyright".
472
473         version-etc: bump copyright year reported in --version
474         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
475
476 2012-12-31  Eric Blake  <eblake@redhat.com>
477
478         sigprocmask-tests: skip test if pid is unexpectedly large
479         * tests/test-sigprocmask.c (main): Add range check.
480
481         git-version-gen: avoid test -z portability glitch
482         * build-aux/git-version-gen: Prefer portable test spelling, since
483         git-version-gen is run on more than just developer machines.
484
485 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
486
487         git-version-gen: add --fallback option to use if git is not present
488         * build-aux/git-version-gen: Add support for the new option --fallback,
489         which comes into play when there is no $tarball_version_file and
490         git is not working.
491         (scriptversion): Update.
492
493         maint.mk: handle missing git with more grace
494         * top/maint.mk (no-submodule-changes, public-submodule-commit):
495         Quietly proceed if git is not present.
496
497 2012-12-31  Eric Blake  <eblake@redhat.com>
498
499         dup2: work around cygwin bug
500         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
501         * lib/dup2.c (rpl_dup2): Work around it.
502         * doc/posix-functions/dup2.texi (dup2): Document it.
503
504 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
505
506         regex: remove unnecessary dependency on localcharset.h
507         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
508         hasn't been needed for years.
509         * modules/regex (Depends-on): Remove localcharset.
510
511         regex: revert single-byte change
512         * lib/regexec.c (check_node_accept_bytes): Revert previous change
513         to this function.  This was alredy fixed in a different way, at
514         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
515         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
516         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
517
518         regex: simplify based on Gawk version
519         * lib/regex_internal.c (re_dfa_add_node): Simplify.
520         Reported by Aharon Robbins in
521         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
522
523 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
524
525         regex: check that pattern char is single-byte
526         Reported by Aharon Robbins in
527         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
528         * lib/regexec.c (check_node_accept_bytes):
529         Return 0 if the pattern string has a multibyte character here.
530
531         regex: implement rational ranges
532         Reported by Aharon Robbins in
533         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
534         * lib/regcomp.c (build_range_exp) [!_LIBC]:
535         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
536         Implement rational ranges.
537
538         regex: avoid redefining __wctype
539         Reported by Aharon Robbins in
540         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
541         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
542         #undef before defining.
543
544         regex: port to hosts where malloc (0) == NULL
545         Reported by Aharon Robbins in
546         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
547         * lib/regex_internal.c (re_node_set_alloc):
548         Don't assume that malloc (0) yields nonnull.
549         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
550         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
551         * modules/regex (Files): Add m4/eealloc.m4.
552
553         regex: port to C89
554         Reported by Aharon Robbins in
555         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
556         * lib/regcomp.c (init_word_char): Declaration before statement.
557
558         regex: merge glibc changes
559         Also, copy the license wording from glibc.  This simplifies
560         merging changes.  gnulib-tool will change the wording to GPL as
561         appropriate, when importing it to other packages.  The only
562         glibc change made since the last merge, which needs merging, is:
563         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
564         * lib/regex_internal.h (gettext): Remove use of INTUSE.
565
566         * users.txt: Add Emacs.
567
568         doc: omit mention of version when not needed
569         * doc/gnulib-intro.texi (Portability and Application Code):
570         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
571         Don't mention particular dates or versions when not necessary, so
572         that the documentation won't go out of date so quickly.
573
574         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
575
576 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
577
578         bootstrap: pass --force to autoreconf.
579         * build-aux/bootstrap (AUTORECONFFLAGS): New.
580         Add "--force" so that Automake's ylwrap and other such tools
581         be updated at each bootstrap invocation.
582         Use it.
583
584 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
585
586         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
587         The earlier patch forgot to update one of the #if conditions, causing
588         a problem on Debian testing i386 reported by Mats Erik Andersson
589         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00124.html>.
590         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
591         (__argp_fmtstream_puts, argp_fmtstream_puts)
592         (__argp_fmtstream_write, argp_fmtstream_write)
593         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
594
595         * doc/gnulib-readme.texi: Minor fixups.
596         (Portability guidelines): Modernize URLs.  Remove some repetition.
597         (Indent with spaces not TABs): Reword to avoid too-long lines.
598         Remove some '@ifset standalone' stuff that isn't used.
599
600         * doc/gnulib-readme.texi (Portability guidelines):
601         ctype.h, not ctime.h.
602
603         Correct name of POSIX.1-2001.
604         * doc/posix-functions/fgetc.texi (fgetc):
605         * doc/posix-functions/fgets.texi (fgets):
606         * doc/posix-functions/fread.texi (fread):
607         * doc/posix-functions/fscanf.texi (fscanf):
608         * doc/posix-functions/getc.texi (getc):
609         * doc/posix-functions/getchar.texi (getchar):
610         * doc/posix-functions/scanf.texi (scanf):
611         POSIX.1-2001, not POSIX-2001.
612
613         doc: move README into manual
614         * README: Move contents to new file doc/gnulib-readme.texi.
615         Replace with a one-line summary.
616         * doc/gnulib.texi (Brief Overview): New section,
617         with old intro preface.  Include gnulib-readme.texi for contents.
618         (Philosophy): Rename from "Introduction", since this
619         section no longer introduces the rest.  Write a new preface.
620         * doc/gnulib-readme.texi: New file, with the old contents of
621         README texinfo-ized.  This way, the README info appears
622         in the online and printed manual.
623
624 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
625
626         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
627         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
628         c_vasprintf() prototype.
629
630 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
631
632         c-vasprintf: Fix "empty declaration" warning reported by GCC.
633         * lib/c-vasprintf.h: Remove stray semicolon.
634
635 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
636
637         gettext: avoid obsolete macro AM_PROG_MKDIR_P
638         It is obsolete and is planned to be removed from Automake 1.14; see
639         <http://lists.gnu.org/archive/html/automake/2012-12/msg00029.html>.
640         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
641         (installdirs-data, installdirs-data-yes):
642         Use $(MKDIR_P), not $(mkdir_p).
643         * m4/intl.m4 (AM_INTL_SUBDIR):
644         * m4/po.m4 (AM_PO_SUBDIRS):
645         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
646
647 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
648
649         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
650         On this platform, we are not optimizing but we are using
651         the substitute for extern inlines, so compile as if
652         C99-style extern inline, or a substitute, is available.
653         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
654         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
655         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
656         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
657         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
658         Declare as ARGP_FS_EI, not as extern.
659         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
660         (__option_is_short, _option_is_end, __option_is_end)
661         [!_LIBC && __USE_EXTERN_INLINES]:
662         Declare as ARGP_EI, not as extern.
663
664 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
665
666         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
667         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
668         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
669         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
670         ...), as the latter is fatal with older Autoconfs.
671         Problem reported and fix suggested by Eric Blake in thread starting at
672         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00097.html>.
673
674 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
675
676         AC_PROG_MKDIR_P: don't workaround if not buggy
677         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
678         Define only for Autoconf versions before 2.62.
679         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
680         undocumented m4_PACKAGE_VERSION, for consistency with the
681         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
682         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
683         was introduced in 2.62.
684
685 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
686
687         New 'c-*printf' modules for formatted output in C locale.
688
689         New module 'c-vasnprintf'.
690         * modules/c-vasnprintf: New file.
691         * lib/c-vasnprintf.c: New file.
692         * lib/c-vasnprintf.h: New file.
693
694         New module 'c-snprintf'.
695         * modules/c-snprintf: New file.
696         * modules/c-snprintf-tests: New file.
697         * lib/c-snprintf.c: New file.
698         * lib/c-snprintf.h: New file.
699         * tests/test-c-snprintf.c: New file.
700         * tests/test-c-snprintf.sh: New file.
701
702         New module 'c-vsnprintf'.
703         * modules/c-vsnprintf: New file.
704         * modules/c-vsnprintf-tests: New file.
705         * lib/c-vsnprintf.c: New file.
706         * lib/c-vsnprintf.h: New file.
707         * tests/test-c-vsnprintf.c: New file.
708         * tests/test-c-vsnprintf.sh: New file.
709
710         New module 'c-vasprintf'.
711         * modules/c-vasprintf: New file.
712         * modules/c-vasprintf-tests: New file.
713         * lib/c-asprintf.c: New file.
714         * lib/c-vasprintf.c: New file.
715         * lib/c-vasprintf.h: New file.
716         * tests/test-c-vasprintf.c  +: New file.
717         * tests/test-c-vasprintf.sh: New file.
718
719         New module 'c-xvasprintf'.
720         * modules/c-xvasprintf: New file.
721         * modules/c-xvasprintf-tests: New file.
722         * lib/c-xasprintf.c: New file.
723         * lib/c-xvasprintf.c: New file.
724         * lib/c-xvasprintf.h: New file.
725         * tests/test-c-xvasprintf.c: New file.
726         * tests/test-c-xvasprintf.sh: New file.
727
728 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
729
730         argp: better 'inline'
731         Use extern-inline module to declare extern inline functions.
732         This avoids some bogus warning diagnostics.  Problem discovered
733         when modifying GNU tar to use the manywarnings module.
734         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
735         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
736         Define based on extern-inline.
737         * modules/argp (Depends-on): Add extern-inline.
738
739 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
740
741         filemode, sys_stat: Handle MPX files a la AIX.
742         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
743         * lib/sys_stat.in.h (S_ISMPX): New macro.
744         * tests/test-sys_stat.c: Add tests for MPX files.
745
746 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
747
748         x-to-1: honor $PERL
749         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
750         a chance to use his preferred version of Perl.  This is typically
751         required by Darwin users whose default /usr/bin/perl does not have all
752         the libraries required by help2man, and who need to use their MacPorts
753         installation of Perl instead.
754
755 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
756
757         gnu-web-doc-update: add all the new files, even in new directories
758         See http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00057.html
759         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
760         Use it.
761         (main): Don't use cvsutils to get the list of unknown files,
762         just add all the existing files and directories.
763
764 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
765
766         gnu-web-doc-update: improve --help
767         * build-aux/gnu-web-doc-update: Move comments into --help.
768
769 2012-12-07  Eric Wong  <normalperson@yhbt.net>
770
771         mountlist: recognize more "dummy" file systems
772         * lib/mountlist.c (ME_DUMMY_0):
773         Add these dummy FS names to the list:
774         - "debugfs" virtual filesystem for kernel debugging
775         - "devpts" PTY slave filesystem
776         - "devtmpfs" device filesystem on top of tmpfs/ramfs
777         - "fusectl" control filesystem for FUSE
778         - "mqueue" enumerates POSIX message queues
779         - "rpc_pipefs" kernel <-> userspace bridge for NFS
780         - "sysfs" is for exporting kernel objects
781         - "devfs" device filesystem for Linux 2.4 and FreeBSD
782
783 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
784
785         extern-inline: avoid incompatibility with Darwin Libc
786         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
787         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
788         Problem reported by Akim Demaille in
789         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>.
790
791 2012-12-11  Simon Josefsson  <simon@josefsson.org>
792
793         gnupload: Work with GnuPG using gpg-agent (for smartcards).
794         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
795         let it handle password prompting.
796
797 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
798
799         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
800         * lib/canonicalize.c (canonicalize_filename_mode):
801         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
802         fetching the current directory.  Don't overrun the beginning of
803         rpath if there's no slashes after the MS-Windows drive letter.
804
805 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
806
807         maint.mk: avoid extra forks
808         * top/maint.mk (_cfg_mk): The GNU make manual documents that
809         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
810         So use that instead of "$(shell test -f FILE && echo FILE)".
811
812 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
813
814         vasnprintf: fix ASCII_ONLY typo
815         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
816         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
817         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
818         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
819         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00021.html>.
820
821 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
822
823         list, oset, xlist, xoset: fix extern inline issue with C99
824         This was introduced by my recent changes for 'inline'.
825         Problem reported for gettext by Daiki Ueno in
826         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00000.html>.
827         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
828         (gl_list_nx_create, gl_list_size, gl_list_node_value)
829         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
830         (gl_list_previous_node, gl_list_get_at)
831         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
832         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
833         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
834         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
835         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
836         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
837         (gl_list_iterator_free, gl_sortedlist_search)
838         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
839         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
840         (gl_sortedlist_remove):
841         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
842         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
843         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
844         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
845         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
846         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
847         (gl_list_add_at, gl_sortedlist_add):
848         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
849         Wrap these extern decls inside "#if 0", because they are implemented
850         as inline functions, and extern inline is not what's wanted here.
851         It would simplify these .h files to remove the extern decls entirely,
852         although a downside would be less-clear separation between
853         specification and implementation.
854
855 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
856
857         sys_stat: no 'static inline'
858         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
859         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
860
861         extern-inline: no 'static inline'
862         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
863         Do not require AC_C_INLINE.
864         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
865         'static inline', for older compilers.
866
867         snippet/warn-on-use: no 'static inline'
868         * build-aux/snippet/warn-on-use.h:
869         Remove unnecessary 'inline' in comment.
870
871         rbtree-list, rbtreehash-list: no 'static inline'
872         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
873         * lib/gl_anytree_list2.h (node_at):
874         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
875         (gl_oset_first, add_nodes_to_buckets):
876         Now static, not static inline.
877
878         regex: no 'static inline'
879         * lib/regex_internal.c (calc_state_hash):
880         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
881         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
882         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
883         Now static, not static inline.
884         (inline) [__GNUC__ < 3 && _LIBC]:
885         Remove macro; no longer needed.
886
887         xvasprintf: no 'static inline'
888         * lib/xvasprintf.c (xstrcat):
889         Now static, not static inline.
890         * m4/xvasprintf.m4 (gl_XVASPRINTF):
891         Do not require AC_C_INLINE.
892
893         parse-datetime, parse-duration: no 'static inline'
894         * lib/parse-datetime.y (to_uchar):
895         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
896         (scale_n_add):
897         Now static, not static inline.
898         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
899         * modules/parse-duration (configure.ac):
900         Do not require AC_C_INLINE.
901
902         getaddrinfo: no 'static inline'
903         * lib/getaddrinfo.c (validate_family):
904         Now static, not static inline.
905         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
906         Do not require AC_C_INLINE.
907
908         ftruncate, fts, lstat, openat, raise: no 'static inline'
909         * lib/ftruncate.c (chsize_nothrow):
910         * lib/fts.c (opendirat, diropen):
911         * lib/lstat.c (orig_lstat):
912         * lib/openat.c (orig_openat):
913         * lib/raise.c (raise_nothrow):
914         Now static, not static inline.
915         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
916         * m4/fts.m4 (gl_FUNC_FTS_CORE):
917         * m4/lstat.m4 (gl_PREREQ_LSTAT):
918         * m4/openat.m4 (gl_PREREQ_OPENAT):
919         * m4/raise.m4 (gl_PREREQ_RAISE):
920         Do not require AC_C_INLINE.
921
922         fflush, stat: no 'static inline'
923         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
924         (clear_ungetc_buffer, disable_seek_optimization)
925         (restore_seek_optimization, update_fpos_cache):
926         * lib/stat.c (orig_stat):
927         Now static, not static inline.
928         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
929         (update_fpos_cache):
930         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
931         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
932         * m4/stat.m4 (gl_PREREQ_STAT):
933         Do not require AC_C_INLINE.
934
935         error, filevercmp: no 'static inline'
936         * lib/error.c (is_open, flush_stdout):
937         * lib/filevercmp.c (order):
938         Now static, not static inline.
939         * m4/error.m4 (gl_PREREQ_ERROR):
940         * modules/filevercmp (configure.ac):
941         Do not require AC_C_INLINE.
942
943         dup, execute, fatal-signal, etc.: no 'static inline'
944         * lib/dup.c (dup_nothrow):
945         * lib/execute.c (nonintr_close, nonintr_open):
946         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
947         * lib/fopen.c (orig_fopen):
948         * lib/freadseek.c (freadptrinc):
949         * lib/freopen.c (orig_freopen):
950         * lib/fstat.c (orig_fstat, fstat_nothrow):
951         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
952         (get_rusage_as_via_iterator):
953         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
954         * lib/getdtablesize.c (_setmaxstdio_nothrow):
955         * lib/isatty.c (_isatty_nothrow):
956         * lib/open.c (orig_open):
957         * lib/read.c (read_nothrow):
958         * lib/sigprocmask.c (signal_nothrow):
959         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
960         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
961         * lib/wait-process.c (unregister_slave_subprocess):
962         * lib/write.c (write_nothrow):
963         Now static, not static inline.
964         * lib/spawn-pipe.c (nonintr_open): Define only if
965         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
966         * m4/dup.m4 (gl_PREREQ_DUP):
967         * m4/execute.m4 (gl_EXECUTE):
968         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
969         * m4/fopen.m4 (gl_PREREQ_FOPEN):
970         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
971         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
972         * m4/fstat.m4 (gl_PREREQ_FSTAT):
973         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
974         * m4/isatty.m4 (gl_PREREQ_ISATTY):
975         * m4/open.m4 (gl_PREREQ_OPEN):
976         * m4/read.m4 (gl_PREREQ_READ):
977         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
978         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
979         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
980         * m4/wait-process.m4 (gl_WAIT_PROCESS):
981         * m4/write.m4 (gl_PREREQ_WRITE):
982         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
983         Do not require AC_C_INLINE.
984
985         c-strtod, memcoll, readutmp: no 'static inline'
986         * lib/c-strtod.c (c_locale):
987         * lib/memcoll.c (strcoll_loop):
988         * lib/readutmp.c (desirable_utmp_entry):
989         Now static, not static inline.
990         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
991         * m4/memcoll.m4 (gl_MEMCOLL):
992         * m4/readutmp.m4 (gl_READUTMP):
993         Do not require AC_C_INLINE.
994
995         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
996         * lib/arctwo.c (to_uchar):
997         * lib/md4.c (set_uint32):
998         * lib/md5.c (set_uint32):
999         * lib/sha1.c (set_uint32):
1000         * lib/sha256.c (set_uint32):
1001         * lib/sha512.c (set_uint64):
1002         Now static, not static inline.  This is a bit simpler, and doesn't
1003         affect performance with GCC and default optimization.
1004         * m4/arctwo.m4 (gl_ARCTWO):
1005         * m4/md4.m4 (gl_MD4):
1006         * m4/md5.m4 (gl_MD5):
1007         * m4/sha1.m4 (gl_SHA1):
1008         * m4/sha256.m4 (gl_SHA256):
1009         * m4/sha512.m4 (gl_SHA512):
1010         Do not require AC_C_INLINE.
1011
1012         cond, lock, thread: better 'inline'
1013         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
1014         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
1015         New macros.  Use them instead of static inline, for header functions.
1016         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
1017         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
1018         * lib/glthread/lock.c (gl_waitqueue_init)
1019         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
1020         * lib/glthread/thread.c (get_current_thread_handle):
1021         Change 'static inline' to 'inline'.
1022         * lib/glthread/cond.h, lib/glthread/thread.h:
1023         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1024         * m4/cond.m4 (gl_COND):
1025         * m4/lock.m4 (gl_PREREQ_LOCK):
1026         * m4/thread.m4 (gl_THREAD):
1027         Do not require AC_C_INLINE.
1028         * modules/cond, modules/thread (Depends-on): Add extern-inline.
1029
1030         chdir-long, cycle-check, savewd: better 'inline'
1031         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
1032         (find_non_slash):
1033         * lib/cycle-check.c (is_zero_or_power_of_two):
1034         * lib/savewd.c (savewd_delegating):
1035         Change 'static inline' to 'inline'.
1036         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
1037         Replace all remaining uses of 'static inline' with it.
1038         * lib/savewd.h:
1039         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1040         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
1041         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
1042         * m4/savewd.m4 (gl_SAVEWD):
1043         Do not require AC_C_INLINE.
1044         * modules/savewd (Depends-on): Add extern-inline.
1045
1046         base32, base64: no need for 'inline'
1047         * lib/base32.c (to_uchar, get_8, decode_8):
1048         * lib/base64.c (to_uchar, get_4, decode_4):
1049         Change 'static inline' to 'inline'.
1050         * m4/base32.m4 (gl_PREREQ_BASE32):
1051         * m4/base64.m4 (gl_PREREQ_BASE64):
1052         Do not require AC_C_INLINE.
1053
1054         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
1055         * lib/gl_array_oset.c (gl_array_nx_add_at):
1056         (gl_array_remove_at):
1057         * lib/gl_linkedhash_list.c (hash_resize_after_add)
1058         (add_to_bucket, remove_from_bucket):
1059         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
1060         Change 'static inline' to 'static', as it's simpler to omit
1061         'inline' unless there's a significant performance advantage.
1062
1063         list, oset, xlist, xoset, xsublist: simplify via extern inline
1064         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
1065         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
1066         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
1067         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
1068         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
1069         New macro.  Replace all uses of 'static inline' with it.
1070         [HAVE_INLINE]: Implement functions as *_INLINE functions,
1071         instead of as macros FOO that are defined to static inline
1072         functions FOO_inline.
1073         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
1074         * lib/gl_xsublist.c:
1075         Reimplement from scratch, by defining the corresponding *_INLINE
1076         macro and including the corresponding .h file.  This is simpler.
1077         * modules/list, modules/oset, modules/xlist, modules/xoset:
1078         (Files): Remove m4/gl_list.m4.
1079         (configure.ac): Remove gl_LIST.
1080         * m4/gl_list.m4: Remove.
1081         * modules/list, modules/oset, modules/xlist, modules/xoset:
1082         * modules/xsublist:
1083         (Depends-on): Depend on extern-inline, not inline.
1084
1085         xalloc: better 'inline'
1086         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
1087         New macro.  Replace all uses of 'static inline' with it.
1088         (static_inline): Remove.
1089         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
1090         Let 'extern inline' do the work automatically, instead of doing
1091         it by hand.
1092         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
1093         Remove.  All uses removed.
1094         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
1095
1096         gethrxtime: better 'inline'
1097         * lib/xtime.c: New file.
1098         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
1099         * lib/xtime.h (XTIME_INCLUDE):
1100         New macros.  Replace all uses of 'static inline' with them.
1101         * lib/gethrxtime.c (gethrxtime): Define only if
1102         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
1103         this source file is now always compiled, because of the extern inline.
1104         * lib/gethrxtime.h, lib/xtime.h:
1105         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1106         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
1107         if gethrtime works, as they're not needed in that case.
1108         (gl_XTIME): Do not require AC_C_INLINE.
1109         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
1110         compiled now.  Move the check into gl_GETHRXTIME.
1111         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
1112         (Depends-on): Add extern-inline.
1113         (configure.ac): gethrxtime is always compiled now.
1114         (lib_SOURCES): Add gethrxtime.c.
1115
1116         wctype-h: better 'inline'
1117         * lib/wctype-h.c: New file.
1118         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
1119         New macro.  Replace all uses of 'static inline' with it.
1120         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1121         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
1122         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
1123         (Depends-on): Add extern-inline.
1124
1125         unistd: better 'inline'
1126         * lib/unistd.c: New file.
1127         * lib/unistd.in.h (_GL_UNISTD_INLINE):
1128         New macro.  Replace all uses of 'static inline' with it.
1129         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1130         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
1131         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
1132         (Depends-on): Add extern-inline.
1133
1134         sys_socket: better 'inline'
1135         * lib/sys_socket.c: New file.
1136         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
1137         New macro.  Replace all uses of 'static inline' with it.
1138         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1139         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
1140         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
1141         (Depends-on): Add extern-inline.
1142
1143         stdio: better 'inline'
1144         * lib/stdio.c: New file.
1145         * lib/stdio.in.h (_GL_STDIO_INLINE):
1146         New macro.  Replace all uses of 'static inline' with it.
1147         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1148         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
1149         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
1150         (Depends-on): Add extern-inline.
1151
1152         sigaction: better 'inline'
1153         * lib/sig-handler.c: New file.
1154         * lib/sig-handler.h (SIG_HANDLER_INLINE):
1155         New macro.  Replace all uses of 'static inline' with it.
1156         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1157         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
1158         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
1159         (Depends-on): Add extern-inline.
1160
1161         selinux-h: better 'inline'
1162         * lib/se-context.c, lib/se-selinux.c: New files.
1163         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
1164         * lib/se-context.in.h (SE_CONTEXT_INLINE):
1165         New macro.  Replace all uses of 'static inline' with it.
1166         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1167         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
1168         New macro.  Replace all uses of 'static inline' with it.
1169         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1170         * modules/selinux-h (Files, lib_SOURCES):
1171         Add lib/se-context.c, lib/se-selinux.c.
1172         (Depends-on): Add extern-inline.
1173         (configure.ac): Do not require AC_C_INLINE.
1174
1175         pthread: better 'inline'
1176         * lib/pthread.c: New file.
1177         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
1178         New macro.  Replace all uses of 'static inline' with it.
1179         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1180         * m4/pthread.m4 (gl_PTHREAD_CHECK):
1181         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
1182         * modules/pthread (Files): Add lib/pthread.c.
1183         (Depends-on): Add extern-inline.
1184
1185         math: better 'inline'
1186         * lib/math.c: New file.
1187         * lib/math.in.h (_GL_MATH_INLINE):
1188         New macro.  Replace all uses of 'static inline' with it.
1189         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1190         * m4/math_h.m4 (gl_MATH_H):
1191         Do not require AC_C_INLINE.
1192         * modules/math (Files, lib_SOURCES):
1193         Add lib/math.c.
1194         (Depends-on): Add extern-inline.
1195
1196         count-one-bits: better 'inline'
1197         * lib/count-one-bits.c: New file.
1198         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
1199         New macro.  Replace all uses of 'static inline' with it.
1200         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1201         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
1202         Do not require AC_C_INLINE.
1203         * modules/count-one-bits (Files, lib_SOURCES):
1204         Add lib/count-one-bits.c.
1205         (Depends-on): Add extern-inline.
1206
1207         count-leading-zeros: better 'inline'
1208         * lib/count-leading-zeros.c: New file.
1209         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
1210         New macro.  Replace all uses of 'static inline' with it.
1211         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1212         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
1213         Do not require AC_C_INLINE.
1214         * modules/count-leading-zeros (Files, lib_SOURCES):
1215         Add lib/count-leading-zeros.c.
1216         (Depends-on): Add extern-inline.
1217
1218         bitrotate: better 'inline'
1219         * lib/bitrotate.c: New file.
1220         * lib/bitrotate.h (BITROTATE_INLINE):
1221         New macros.
1222         Replace all uses of 'static inline' with them.
1223         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1224         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
1225         (Depends-on): Add extern-inline.
1226         (configure.ac): Do not require AC_C_INLINE.
1227
1228 2012-11-20  Theophile Ranquet <ranquet@lrde.epita.fr>
1229
1230         maint.mk: avoid gratuitous failure
1231         Reported by Stefano Lattarini in
1232         <http://lists.gnu.org/archive/html/bug-bison/2012-11/msg00022.html>
1233         * top/maint.mk (public-submodule-commit): Quote more safely.
1234
1235 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
1236
1237         canonicalize, canonicalize-lgpl: support MS-Windows file names
1238         See <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00074.html>
1239         for test cases, which it'd be nice to add at some point.
1240         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
1241         * lib/canonicalize.c (canonicalize_filename_mode):
1242         * lib/canonicalize-lgpl.c (__realpath):
1243         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
1244         slash is at the beginning of the file name.  Use ISSLASH, instead
1245         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
1246         the first character with '/'.  Test for
1247         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
1248         with a drive letter.
1249         * lib/canonicalize.c (SLASHES): New macro.
1250         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
1251
1252 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
1253
1254         fts: introduce FTS_VERBATIM
1255         * lib/fts_.h (FTS_VERBATIM): New bit flag.
1256         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
1257         * lib/fts.c (fts_open): Honor it.
1258
1259 2012-11-09  Pádraig Brady  <P@draigBrady.com>
1260
1261         getlogin-tests: allow errno == ENXIO
1262         * tests/test-getlogin.c (main): Skip tests if getlogin fails
1263         with errno == ENXIO (No controlling tty).
1264         getlogin_r-tests: Likewise. Also allow errno == ENOENT
1265         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
1266         with errno == ENOENT.  This was reported to happen in various
1267         situations on GNU/Linux.
1268
1269 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
1270
1271         getlogin-tests: allow errno == ENOENT
1272         * tests/test-getlogin.c (main): Skip tests if getlogin fails
1273         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
1274         when running a test in an Emacs shell buffer.
1275
1276 2012-11-08  Jim Meyering  <jim@meyering.net>
1277
1278         tests/nap.h: avoid warning about unused variable
1279         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
1280
1281         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
1282         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
1283         white space before each of the special-cased file names, to avoid
1284         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
1285         in http://bugs.gnu.org/12830.
1286
1287 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
1288
1289         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
1290         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
1291         fails with errno == EBADF when fd is opened with O_PATH.
1292         Reported by Jim Meyering in
1293         <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00026.html>.
1294         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
1295         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
1296
1297 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
1298
1299         test-utimens: speed up by taking shorter naps
1300         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
1301         New functions.
1302         (nap): Use them, to do a better job of guessing the delay.
1303         On Fedora 17 with ext4 atop md atop hard disks, this made
1304         test-utimens run 10x faster, because the test napped for
1305         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
1306         <http://bugs.gnu.org/12820#11>.
1307
1308 2012-11-07  Jim Meyering  <jim@meyering.net>
1309
1310         mountlist.c: fix a compilation failure
1311         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
1312         I introduced while transforming commit v0.0-7683-g613bcb6
1313
1314 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
1315
1316         errno: port to LynxOS 178 2.2.2
1317         Problem reported by Joel Brobecker in
1318         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00088.html>.
1319         * doc/posix-headers/errno.texi (errno.h): Document this.
1320         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
1321         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
1322         Supply a string for EILSEQ.
1323         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
1324
1325 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
1326
1327         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
1328         Linux kernel 2.6.39 introduced O_PATH (see
1329         <http://lwn.net/Articles/433854/>) and this is a better fallback
1330         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
1331         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
1332         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
1333         * lib/fcntl.in.h (O_ACCMODE):
1334         * tests/test-fcntl-h.c (main):
1335         Do not reject O_ACCMODE merely because it has more than the
1336         minimal number of bits, as POSIX allows extensions here.
1337
1338 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
1339
1340         mountlist: do not classify a bind-mounted dir entry as "dummy"
1341         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
1342         the "none"-testing clause.
1343         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
1344         exception for bind-mounted directories.
1345
1346 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
1347
1348         quote: provide a means to escape strings with nul characters
1349         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
1350         (quote, quote_n): Rename formal arguments for consistency with
1351         quotearg.
1352
1353 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
1354
1355         test-raise: don't assume 199 is an invalid signal
1356         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
1357
1358         sh-quote-tests: port to Solaris 9
1359         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
1360         Problem reported by Dagobert Michelsen in
1361         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00114.html>.
1362
1363 2012-10-28  Jim Meyering  <jim@meyering.net>
1364
1365         maint.mk: rename a new configurable variable
1366         * top/maint.mk (_gl_translatable_string_re): Rename from
1367         translation-markers: _gl_ prefix to insulate from user Makefile code,
1368         and the _re suffix to inform that it's a regular expression.
1369
1370 2012-10-26  Eric Blake  <eblake@redhat.com>
1371
1372         maint.mk: let packages tweak sc_po_check pattern
1373         * top/maint.mk (sc_po_check): Add translation-markers, to allow
1374         finding files with other translation markers.
1375
1376 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
1377
1378         euidaccess: speed up 'configure' on GNU hosts
1379         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
1380         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
1381         it's needed only in this case.  Use AC_CHECK_DECLS, not
1382         AC_CHECK_DECLS_ONCE.
1383         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
1384         or AC_REQUIRE for AC_FUNC_GETGROUPS.
1385
1386         * lib/regexec.c (re_search_internal): Fix grammar in comment.
1387
1388 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
1389
1390         fchmodat, fchownat, fstatat: port to non-inlining compilers
1391         Problem reported for FreeBSD 9 by Jim Meyering in
1392         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00070.html>.
1393         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
1394         New files, which define FCHMODAT_INLINE etc.
1395         * lib/fchmodat.c (FCHMODAT_INLINE):
1396         * lib/fchownat.c (FCHOWNAT_INLINE):
1397         * lib/fstatat.c (FSTATAT_INLINE):
1398         Remove, as chmodat.c etc. now do this.
1399         * modules/fchmodat (Files): Add lib/chmodat.c.
1400         * modules/fchownat (Files): Add lib/chownat.c.
1401         * modules/fstatat (Files): Add lib/statat.c.
1402
1403 2012-10-15  Jim Meyering  <jim@meyering.net>
1404
1405         fchmodat.c, fchownat.c: compile-impeding typos
1406         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
1407         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
1408         Introduced in commit v0.0-7636-gd202279.
1409
1410 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
1411
1412         fcntl-h: support GNU flags like O_IGNORE_CTTY
1413         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
1414         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
1415         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
1416         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
1417         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
1418         Define to 0 if not already defined.
1419         * tests/test-fcntl-h.c: Test these new flags.
1420
1421 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
1422
1423         faccessat, etc.: support AT_FDCWD-only use
1424         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
1425         this function only if its first argument is AT_FDCWD.
1426         Emacs wants faccessat for AT_EACCESS but not for any first-arg
1427         values other than AT_FDCWD, so it doesn't want all the openat
1428         machinery with fchdir etc.
1429         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
1430         * modules/fstatat, modules/mkdirat, modules/openat (Files):
1431         * modules/unlinkat (Files):
1432         Remove lib/openat-priv.h, as at-internal supplies this file.
1433         Removing this file here allows us to support programs like Emacs
1434         that avoid at-internal.
1435
1436         faccessat: speed up 'configure' on mainstream hosts
1437         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
1438         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
1439         since it's only on unusual platforms that we need to check for
1440         'access', and it's better not to slow 'configure' down on all
1441         platforms.
1442
1443         faccessat: port to Solaris 10
1444         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
1445         Needed on Solaris 10, which doesn't have AT_EACCESS,
1446         so we need the Gnulib fcntl.h, which defines it.
1447
1448 2012-10-14  Pádraig Brady  <P@draigBrady.com>
1449         canonicalize: fix C89 compilation
1450         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
1451         declarations so C89 is supported.  Also remove the comment
1452         referencing memorty allocation as the suggested feature could
1453         not be implemented as suggested.
1454         Reported by Michael Goffioul.
1455
1456 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
1457
1458         group-member: omit unnecessary dependencies
1459         This is for Emacs, which has its own allocator and where we
1460         don't want to use xalloc.
1461         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
1462         since we no longer use xmalloc.  Do not include stdbool.h, since
1463         the changes below happen to remove the only use of bool.
1464         (GROUPBUF_SIZE): New constant.
1465         (struct group_info): Remove n_groups member.  Add groupbuf member.
1466         This lets us get the groups without using malloc, usually.
1467         (free_group_info, get_group_info): Adjust to this.
1468         (get_group_info): Return the number of groups found, or -1 on error.
1469         Use plain malloc not xmalloc, and treat its failure as if there
1470         are no groups, as the user already loses in case of error.
1471         (group_member): Simplify, based on changes to get_group_info.
1472         * modules/group-member (Depends-on): Remove dependencies on
1473         xalloc and stdbool.  Add dependency on xalloc-oversized.
1474
1475 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
1476
1477         gethrxtime: port to C++
1478         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
1479
1480 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
1481
1482         ptsname: fix macro-name typo
1483         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
1484
1485 2012-10-03  Simon Josefsson  <simon@josefsson.org>
1486
1487         inttostr: Relax license.
1488         * modules/inttostr (License): Change from LGPL to LGPLv2+.
1489
1490 2012-10-03  Eric Blake  <eblake@redhat.com>
1491
1492         ptsname_r: support ptys returned by FreeBSD posix_openpt
1493         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
1494         lives in /dev/pts/.
1495
1496 2012-10-02  Eric Blake  <eblake@redhat.com>
1497
1498         pselect: reject invalid file descriptors
1499         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
1500         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
1501         * modules/pselect (Depends-on): Add dup2.
1502         * doc/posix-functions/pselect.texi (pselect): Document this.
1503
1504         select: reject invalid file descriptors
1505         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
1506         * lib/select.c (rpl_select) [!win32]: Work around it.
1507         * modules/select (Depends-on): Add dup2.
1508         * doc/posix-functions/select.texi (select): Document this.
1509
1510         select: enhance test
1511         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
1512         New functions.
1513         (test_function): Enhance test.
1514         (do_select_bad_fd): Avoid any stale errno values.
1515
1516         ptsname: reject invalid file descriptors
1517         http://www.austingroupbugs.net/view.php?id=503
1518         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
1519         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
1520         * modules/stdlib (Makefile.am): Replace witness.
1521         * lib/stdlib.in.h (ptsname): Allow for replacement.
1522         * modules/ptsname (configure.ac): Trigger replacement.
1523         * doc/posix-functions/ptsname.texi (ptsname): Document this.
1524
1525 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
1526
1527         hash-pjw-bare: new module
1528         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
1529         * lib/hash-pjw-bare.h: Likewise.
1530         * modules/hash-pjw-bare: New file.
1531         * MODULES.html.sh (Misc): Add it.
1532
1533 2012-10-02  Eric Blake  <eblake@redhat.com>
1534
1535         manywarnings: cater to more gcc infelicities
1536         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
1537         -Wuninitialized without -O.
1538
1539 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
1540
1541         select, poll tests: Make setsockopt invocation effective.
1542         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
1543         the bind() call.
1544         * tests/test-select.h (open_server_socket): Likewise.
1545
1546 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
1547
1548         sockets, sys_stat: restore AC_C_INLINE
1549         This undoes the 2012-09-22 patch.
1550         * m4/sockets.m4 (gl_SOCKETS):
1551         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
1552         Restore AC_C_INLINE, since MSVC requires __inline or _inline
1553         and does not support plain 'inline'.  Reported by Bruno Haible in
1554         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00183.html>.
1555
1556 2012-09-30  Bruno Haible  <bruno@clisp.org>
1557
1558         localeconv tests: Avoid test failure on OpenIndiana.
1559         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
1560         skip the 'grouping' and 'mon_grouping' tests.
1561         Reported by Jim Meyering.
1562
1563 2012-09-30  Bruno Haible  <bruno@clisp.org>
1564
1565         havelib: Follow libtool developments.
1566         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
1567         Suggested by Simon Josefsson.
1568
1569 2012-09-29  Jim Meyering  <meyering@redhat.com>
1570
1571         fstatat.c: fix a compile-impeding typo
1572         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
1573         Introduced in commit v0.0-7636-gd202279.
1574         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
1575
1576 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
1577
1578         extern-inline: provide a -Wundef safe config.h
1579         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
1580         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
1581         to produce a -Wundef warning free config.h.
1582
1583 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
1584
1585         hash-pjw: relax license to LGPLv2+
1586         * modules/hash-pjw (License): Relax, with consent of author.
1587
1588 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
1589
1590         maint.mk: fix strict vs. lazy variable issues with RELEASE
1591         * top/maint.mk (_equal): New function.
1592         (member_check): Strip the result to avoid spurious spaces.
1593         (url_dir_list): Do not use ifeq, which is strict, as it will
1594         require RELEASE_TYPE to be defined.
1595         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
1596         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
1597         (announcement_Cc_alpha,announcement_mail_headers_alpha)
1598         (announcement_Cc_beta,announcement_mail_headers_beta)
1599         (announcement_Cc_stable,announcement_mail_headers_stable): these.
1600         (release): Do not depend on $(release-type), as it forces its
1601         evaluation.  Bounce to it.
1602
1603 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
1604
1605         maint.mk: formatting changes
1606         * top/maint.mk: Indent bodies of if's.
1607
1608 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
1609
1610         maint.mk: factor the validation of RELEASE_TYPE
1611         With help from Jim Meyering.
1612         http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00132.html
1613         * top/maint.mk (_empty, _sp): Move their definition earlier.
1614         (member-check, release-type): New.
1615         Use the latter instead of $(RELEASE_TYPE).
1616         Remove now useless local checks.
1617
1618 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
1619
1620         maint.mk: provide "make upload" to ease uploading
1621         See
1622         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00028.html>.
1623         Do not depend simply on the current $(VERSION), as there may have been
1624         new commits since the tarball generation.  Rather, rely on $(RELEASE),
1625         as "make release-commit" already does.
1626
1627         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
1628         "make TYPE".
1629
1630         * top/maint.mk (upload_command, upload, release): New.
1631         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
1632         (VERSION): first word of $(RELEASE) is always right.
1633         (emit_upload_commands): Adjust.
1634         * top/README-release: Update.
1635
1636 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
1637
1638         maint.mk: silent rules
1639         With help from Stefano Lattarini.
1640         * top/maint.mk (writable-files): Use $(AM_V_GEN).
1641         (announcement): Use $(AM_V_at).
1642
1643 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
1644
1645         localename: port gl_locale_name_thread_unsafe to FreeBSD
1646         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
1647         and use the simpler FreeBSD implementation on Mac OS X as well.
1648         Original idea suggested by Ed Maste in
1649         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00094.html>.
1650
1651 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
1652
1653         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
1654         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
1655         * lib/mbuiter.c, lib/xsize.c: New files.
1656         * lib/binary-io.h (BINARY_IO_INLINE):
1657         * lib/eealloc.h (EEALLOC_INLINE):
1658         * lib/mbfile.h (MBFILE_INLINE):
1659         * lib/mbiter.h (MBITER_INLINE):
1660         * lib/mbuiter.h (MBUITER_INLINE):
1661         * lib/xsize.h (XSIZE_INLINE):
1662         New macros.
1663         Replace all uses of 'static inline' with them.
1664         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1665         * m4/eealloc.m4 (gl_EEALLOC):
1666         * m4/mbfile.m4 (gl_MBFILE):
1667         * m4/mbiter.m4 (gl_MBITER):
1668         * m4/xsize.m4 (gl_XSIZE):
1669         Do not require AC_C_INLINE.
1670         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
1671         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
1672         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
1673         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
1674         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
1675         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
1676         * modules/binary-io, modules/eealloc, modules/mbfile:
1677         * modules/mbiter, modules/mbuiter:
1678         (Depends-on): Add extern-inline.
1679
1680         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
1681         * lib/pipe-filter-aux.c: New file.
1682         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
1683         Replace all uses of 'static inline' with it.
1684         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1685         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
1686         (filter_retcode): No real need for inline here.
1687         * modules/pipe-filter-gi, modules/pipe-filter-ii:
1688         (Files): Add lib/pipe-filter-aux.c.
1689         (Depends-on): Add extern-inline.
1690         (configure.ac): Do not require AC_C_INLINE.
1691         (lib_SOURCES): Add pipe-filter-aux.c.
1692
1693         fdutimensat: omit unnecessary AC_C_INLINE
1694         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
1695
1696         fchmodat, fchownat, fstatat: use extern-inline
1697         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
1698         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
1699         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
1700         New macros.
1701         * lib/openat.h:
1702         Replace all uses of 'static inline' with them.
1703         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1704         * modules/fchmodat, modules/fchownat, modules/fstatat:
1705         * modules/openat-h:
1706         (Depends-on):
1707         Add extern-inline.
1708         (configure.ac): Remove AC_C_INLINE.
1709
1710         acl, mbchar, priv-set: use extern-inline
1711         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
1712         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
1713         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
1714         New macros.
1715         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
1716         Replace all uses of 'static inline' with it.
1717         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1718         * m4/acl.m4 (gl_FUNC_ACL):
1719         * m4/mbchar.m4 (gl_MBCHAR):
1720         * m4/priv-set.m4 (gl_PRIV_SET):
1721         Remove AC_C_INLINE, since 'inline' is no longer used directly.
1722         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
1723         Add extern-inline.
1724
1725         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
1726         * m4/sockets.m4 (gl_SOCKETS):
1727         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
1728         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
1729         environments where it's already guaranteed to work, so we needn't
1730         check for it at 'configure'-time.
1731
1732         tls-tests: omit unnecessary 'inline'
1733         * tests/test-tls.c (perhaps_yield): No longer inline.
1734         Simplicity and portability trump efficiency in test cases.
1735
1736         utimens-tests: avoid unnecessary 'inline'
1737         * modules/fdutimensat-tests (configure.ac):
1738         * modules/futimens-tests (configure.ac):
1739         * modules/utimens-tests (configure.ac):
1740         * modules/utimensat-tests (configure.ac):
1741         Remove AC_C_INLINE.
1742         * tests/test-utimens-common.h (ctime_compare):
1743         No longer inline.  Simplicity and portability trump efficiency here.
1744
1745         misc: don't limit commentary to inline functions
1746         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
1747         * lib/xalloc-oversized.h, lib/xsize.h:
1748         Contrast macros to functions in general, not just to inline functions,
1749         when the commentary does not apply only to inline functions.
1750
1751 2012-09-20  Jim Meyering  <meyering@redhat.com>
1752
1753         non-recursive-gnulib-prefix-hack: new module
1754         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
1755         the file that originated in Bison.
1756         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
1757         largely copied from a snippet that resided in bison's configure.ac.
1758         * modules/non-recursive-gnulib-prefix-hack: New file.
1759         * MODULES.html.sh (Support for maintaining and releasing projects):
1760         Add it.
1761
1762 2012-09-18  Jim Meyering  <meyering@redhat.com>
1763
1764         maint.mk: generalize _gl_tight_scope for non-recursive make
1765         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
1766         that *.h would describe additional .h files in the directory
1767         specified by $(_gl_TS_dir).  I.e., add this...
1768         (_gl_TS_other_headers): New variable.
1769
1770         maint.mk: exempt trailing blanks found in "binary" files
1771         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
1772         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
1773         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
1774
1775 2012-09-17  Jim Meyering  <meyering@redhat.com>
1776
1777         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
1778         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
1779         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
1780         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
1781
1782 2012-09-17  Jim Meyering  <meyering@redhat.com>
1783
1784         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
1785         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
1786         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
1787         It is not in the same category as "exit (0)" or "exit (1)", and
1788         besides, I know of no symbolic name for that 77.  Reported by
1789         Richard W.M. Jones in
1790         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
1791
1792 2012-09-17  Jim Meyering  <meyering@redhat.com>
1793
1794         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
1795         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
1796         all uses of #define, not just those that start in column 1.
1797         Richard W.M. Jones reported a false positive in
1798         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
1799
1800 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
1801
1802         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
1803         * lib/localcharset.c (locale_charset) [DARWIN7]:
1804         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
1805         as these two values are incompatible.  Problem reported by Max Horn.
1806         For more discussion, please see
1807         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00061.html>.
1808
1809         doc: document sticky-EOF issue
1810         * doc/posix-functions/fgetc.texi (fgetc):
1811         * doc/posix-functions/fgets.texi (fgets):
1812         * doc/posix-functions/fread.texi (fread):
1813         * doc/posix-functions/fscanf.texi (fscanf):
1814         * doc/posix-functions/getc.texi (getc):
1815         * doc/posix-functions/getchar.texi (getchar):
1816         * doc/posix-functions/scanf.texi (scanf):
1817         Mention that glibc and default Solaris do not conform to
1818         C99 and POSIX-2001 or later, with respect to how getchar
1819         etc. behave when feof reports nonzero.
1820
1821 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
1822
1823         poll: fix poll(0, NULL, msec)
1824         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
1825         but nfd is 0.  In that case poll should behave like select.
1826
1827 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
1828             Paolo Bonzini <bonzini@gnu.org>
1829
1830         poll: fix for systems that can't recv() on a non-socket
1831         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
1832         is readable.  In this case POLLHUP will not be supported.
1833         * doc/posix-functions/poll.texi: Document this.
1834
1835 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
1836
1837         poll/select: document portability problems not fixed by Gnulib.
1838         * doc/posix-functions/poll.texi: poll does not work well on
1839         pipes under Windows.  It has the same limitations as select on
1840         BeOS.
1841         * doc/posix-functions/select.texi: select does not work well
1842         on pipes under Windows.
1843
1844 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
1845
1846         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
1847         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
1848         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
1849         <http://lists.gnu.org/archive/html/bug-tar/2012-07/msg00018.html>.
1850
1851 2012-09-06  Eric Blake  <eblake@redhat.com>
1852
1853         net_if: give more details about the bug being fixed
1854         * doc/posix-headers/net_if.texi: Add clarification.
1855
1856 2012-09-05  Eric Blake  <eblake@redhat.com>
1857
1858         net_if: new module
1859         * modules/net_if: New module, borrowing ideas from netinet_in.
1860         * m4/net_if_h.m4: New file.
1861         * lib/net_if.in.h: Likewise.
1862         * doc/posix-headers/net_if.texi (net/if.h): Document it.
1863         * MODULES.html.sh (lacking POSIX:2008): Likewise.
1864         * tests/test-net_if.c: Make function checks conditional.
1865         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
1866
1867 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
1868
1869         readutmp: fix non-portable UT_PID use
1870         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
1871         Use `UT_PID (u) > 0' as absolute condition.
1872
1873 2012-09-04  Jim Meyering  <meyering@redhat.com>
1874
1875         fts: reduce two or more trailing spaces to just one, usually
1876         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
1877         or more slashes, trim all but the final one.  But if a name consists
1878         solely of two slashes, don't modify it.  If it consists solely of
1879         three or more slashes, strip all but one.
1880
1881         This is part of the solution to a minor problem with rm:
1882         it would print a bogus ELOOP diagnostic when failing to remove
1883         the slash-decorated name of a symlink-to-directory:
1884
1885             $ mkdir d && ln -s d s && env rm -r s/
1886             rm: cannot remove 's': Too many levels of symbolic links
1887
1888         With the change below and a trivial don't-trim-trailing-slashes
1889         adjustment to remove.c, it does this:
1890
1891             $ env rm -r s/
1892             rm: cannot remove 's/': Not a directory
1893
1894         Improved by: Eric Blake
1895
1896         fts: when there is no risk of overlap, use memcpy, not memmove
1897         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
1898
1899 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
1900
1901         stdbool: be more compatible with mixed C/C++ compiles
1902         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
1903         Define to bool, true, false, respectively, as GCC's builtin
1904         stdbool.h does.  Problem reported by Michael Goffioul in
1905         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00143.html>.
1906
1907 2012-08-28  Jim Meyering  <meyering@redhat.com>
1908
1909         revert last change: it was not needed
1910         * tests/test-vc-list-files-git.sh: There's already a test for
1911         a working git, just below.
1912
1913 2012-08-28  Jim Meyering  <meyering@redhat.com>
1914
1915         tests: test-vc-list-files-git.sh: skip if git is not available
1916         * tests/test-vc-list-files-git.sh: Skip this test when git is
1917         not available.
1918
1919 2012-08-26  Bruno Haible  <bruno@clisp.org>
1920
1921         gnulib-tool: Remove no-op option --no-changelog.
1922         * gnulib-tool (func_usage): Don't mention --no-changelog.
1923         (do_changelog): Remove variable.
1924         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1925
1926 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
1927
1928         doc: remove fdl-1.2.texi
1929         It is no longer used or maintained, and its use of @acronym
1930         is problematic.  See the thread containing
1931         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00134.html>.
1932         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
1933         * doc/old-licenses/fdl-1.2.texi: Remove.
1934
1935         execinfo: port to FreeBSD
1936         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
1937         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
1938         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00113.html>.
1939         * modules/execinfo (Link): Add $(LIB_EXECINFO).
1940
1941 2012-08-23  Jim Meyering  <meyering@redhat.com>
1942
1943         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
1944         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
1945         to placate gcc's -Wold-style-declaration.
1946
1947 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
1948
1949         doc: do not use @acronym
1950         * doc/inet_ntoa.texi (inet_ntoa):
1951         * doc/parse-datetime.texi (Seconds since the Epoch)
1952         (Specifying time zone rules):
1953         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
1954         Don't use @acronym.  Problem reported by John Darlington in
1955         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00124.html>.
1956
1957 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
1958
1959         stdnoreturn: port to newer GCCs
1960         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
1961         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
1962         Problem reported by Jim Meyering in
1963         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00121.html>.
1964         Also, rename the 'test' function to a void a clash with the
1965         already-supplied 'main' function; this fixes a bug that incorrectly
1966         rejected GCC 4.7.1's <stdnoreturn.h>.
1967         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
1968         Document GCC problem.
1969
1970 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
1971
1972         pipe-filter: fix comment typo
1973         * lib/pipe-filter.h: Mention correct function.
1974
1975 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
1976
1977         execinfo: new module
1978         This is for Emacs.  Currently, it provides a no-effect stub
1979         on all platforms where it does not already work.
1980         It already works on glibc-based systems, and on Solaris 11.
1981         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
1982         New files.
1983         * doc/glibc-headers/execinfo.texi (execinfo.h):
1984         * MODULES.html.sh (Misc): Document it.
1985
1986 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
1987
1988         extern-inline: support old GCC 'inline'
1989         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
1990         if available.  This applies to GCC versions 2.7 through 4.2, or
1991         when newer GCC is using -fgnu89-inline.  The goal is to address
1992         some of the performance issues mentioned by Bruno Haible in
1993         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00097.html>.
1994
1995 2012-08-20  Eric Blake  <eblake@redhat.com>
1996
1997         maint.mk: avoid redundant file name in message
1998         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
1999         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
2000         (sc_makefile_path_separator_check): Remove bogus $(ME).
2001
2002 2012-08-20  Mike Frysinger <vapier@gentoo.org>
2003
2004         timer-time: fix link order when static linking on glibc
2005         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
2006         _after_ -lrt so that it's significant.
2007
2008 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
2009
2010         timespec: omit unnecessary AC_C_INLINE
2011         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
2012
2013         stat-time: omit unnecessary AC_C_INLINE
2014         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
2015         Do not require AC_C_INLINE.
2016
2017         ignore-value: omit unnecessary AC_C_INLINE
2018         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
2019
2020         sys_select: avoid 'static inline'
2021         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
2022
2023         mktime: avoid 'static inline'
2024         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
2025         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
2026
2027 2012-08-19  Bruno Haible  <bruno@clisp.org>
2028
2029         gnulib-tool: Improve coding style.
2030         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
2031         func_emit_lib_Makefile_am.
2032         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
2033
2034 2012-08-19  Bruno Haible  <bruno@clisp.org>
2035
2036         gnulib-tool: Fix indentation.
2037         * gnulib-tool (func_import): Fix indentation.
2038
2039 2012-08-19  Bruno Haible  <bruno@clisp.org>
2040
2041         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
2042         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
2043         on the list of removed files.
2044
2045 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
2046
2047         test-parse-datetime: avoid glibc leap-second glitch
2048         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
2049         with the 2012 rules.  Problem reported by Bruce Dubbs in
2050         <http://bugs.gnu.org/12206>.
2051
2052 2012-08-14  Bruno Haible  <bruno@clisp.org>
2053
2054         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
2055         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
2056         from argument.
2057         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
2058
2059 2012-08-14  Eric Blake  <eblake@redhat.com>
2060
2061         ldexp: relax license
2062         * modules/ldexp (License): Trivial relax, since the module only
2063         provides a permissively licensed m4 file.
2064
2065 2012-08-13  Bruno Haible  <bruno@clisp.org>
2066
2067         gnulib-tool: Fix persistence of --witness-c-macro option.
2068         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
2069         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
2070
2071 2012-08-11  Eric Blake  <eblake@redhat.com>
2072
2073         count-leading-zeros: use a lookup table on non-gcc compilers
2074         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
2075         alternate implementation, suggested by Jim Meyering.
2076
2077 2012-08-10  Eric Blake  <eblake@redhat.com>
2078
2079         count-leading-zeros: new module
2080         * modules/count-leading-zeros: New module.
2081         * m4/count-leading-zeros.m4: New file.
2082         * lib/count-leading-zeros.h: Likewise.
2083         * modules/count-leading-zeros-tests: New test.
2084         * tests/test-count-leading-zeros.c: New file.
2085         * MODULES.html.sh (Integer arithmetic functions): Document it.
2086
2087 2012-08-07  Simon Josefsson  <simon@josefsson.org>
2088             Jim Meyering  <meyering@redhat.com>
2089
2090         maintainer-makefile: Fix syntax error with dash.
2091         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
2092         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
2093
2094 2012-08-05  Jim Meyering  <meyering@redhat.com>
2095
2096         extern-inline: also ignore -Wmissing-declarations
2097         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
2098         required with gcc-4.8.0-to-be.
2099
2100         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
2101         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
2102         for /error ?([^,]*)/.  This avoids false-positives for strings like
2103         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
2104
2105 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
2106
2107         gnumakefile: better interaction with Automake-NG
2108         * modules/gnumakefile [Makefile.am]: The makefiles generated by
2109         Automake-NG always contain a definition of VPATH, even in non-VPATH
2110         builds (its value being simply '.' in that case).  So, in the
2111         'clean-GNUmakefile' rule, to determine whether running under a
2112         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
2113         '$(VPATH)' expands to the empty string.
2114
2115 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
2116
2117         base64: Use extern C scope in header file, for C++.
2118         * lib/base64.h: Add C++ namespace protection.
2119
2120 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
2121
2122         stat-time, timespec, u64: support naive out-of-dir builds
2123         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
2124         Use '#include "foo.h"', not '#include <foo.h>', when including
2125         one's own interface.  This works better when configuring with
2126         out-of-directory builds, since packages need not add an
2127         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
2128
2129 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
2130
2131         utimens: use extern-inline
2132         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
2133         * lib/utimens.h: Add copyright notice, since this is now large enough
2134         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2135         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
2136         * modules/utimens (Depends-on): Add extern-inline.
2137
2138         u64: use extern-inline
2139         * lib/u64.c: New file.
2140         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2141         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
2142         * modules/u64 (Files): Add lib/u64.c.
2143         (Depends-on): Add extern-inline.
2144         (configure.ac): No need to require AC_C_INLINE, since extern-inline
2145         does that now.
2146         (lib_SOURCES): Add u64.c.
2147
2148         timespec: use extern-inline
2149         * lib/timespec.c: New file.
2150         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2151         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
2152         * modules/timespec (Files): Add lib/timespec.c.
2153         (Depends-on): Add extern-inline.
2154         (lib_SOURCES): Add timespec.c.
2155
2156         stat-time: use extern-inline
2157         * lib/stat-time.c: New file.
2158         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2159         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
2160         * modules/stat-time (Files): Add lib/stat-time.c.
2161         (Depends-on): Add extern-inline.
2162         (lib_SOURCES): Add stat-time.c.
2163
2164         extern-inline: new module
2165         * modules/extern-inline, m4/extern-inline.m4: New files.
2166         This is for better support of 'extern inline' a la ISO C99,
2167         with a portable alternative on compilers that do not support
2168         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
2169         of the Emacs executable, when compiled with debugging disabled,
2170         which is a typical way that Emacs is built while developing.
2171
2172 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
2173
2174         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
2175         * build-aux/do-release-commit-and-tag: Move variable definitions
2176         together.
2177         ($branch): Instead of defaulting to "master", default to the current
2178         branch (as gnu-web-doc-update does).
2179         (help): Display the current values of the option arguments.
2180         * top/maint.mk (release-commit): New.
2181         * top/README-release: Simplify the corresponding step.
2182
2183 2012-07-30  Eric Blake  <eblake@redhat.com>
2184
2185         passfd: fix comment on recvfd
2186         * lib/passfd.c (recvfd): Fix comment.
2187         Reported by Jann Horn <jannhorn@googlemail.com>.
2188
2189 2012-07-30  Jim Meyering  <meyering@redhat.com>
2190
2191         maint.mk: avoid a sub-shell
2192         * top/maint.mk (release-prep): Remove unneeded sub-shell.
2193
2194 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
2195
2196         maint.mk: use silent-rules support from Automake
2197         * top/maint.mk (news-check, vc-diff-check, announcement)
2198         (no-submodule-changes, alpha beta stable, release-prep)
2199         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
2200
2201 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
2202
2203         maint.mk: provide a web-manual-update target
2204         * top/maint.mk: here.
2205         * top/README-release: Use it to simplify the web manual update step.
2206
2207 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
2208
2209         README-release: shorten the circuit to post a news
2210         * top/README-release: Point directly to the news submission form.
2211
2212 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
2213
2214         gnu-web-doc-update: fix --help
2215         * build-aux/gnu-web-doc-update: The information "top level" was written
2216         twice.
2217
2218 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
2219
2220         maint.mk: absolute VPATH issue
2221         * top/maint.mk (release-prep): Help Git find .git/.
2222         From Jim Meyering.
2223
2224 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
2225
2226         gitlog-to-changelog: fix previous change
2227         * build-aux/gitlog-to-changelog: Fix condition.
2228         Add missing ";".
2229
2230 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
2231
2232         gitlog-to-changelog: don't expect .git to be in $srcdir
2233         Reported by Bruno Haible.
2234         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00265.html>
2235         * build-aux/gitlog-to-changelog (&git_dir_option): New.
2236         Use it.
2237
2238 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
2239
2240         maint.mk: absolute VPATH build fix
2241         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
2242         $(srcdir) is not a parent of $(builddir).
2243
2244 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
2245
2246         clean-temp: Fix memory leak.
2247         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
2248         'files' members of tmpdir.
2249
2250 2012-07-27  Jim Meyering  <meyering@redhat.com>
2251
2252         maint.mk: new rule: refresh-gnulib-patches
2253         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
2254         Use this rule to refresh them.
2255         * top/maint.mk (refresh-gnulib-patches): New rule.
2256
2257 2012-07-24  Bruno Haible  <bruno@clisp.org>
2258
2259         gnulib-tool: Fix handling of inctests variable.
2260         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
2261         Reported by Nick Bowler <nbowler@elliptictech.com>.
2262
2263 2012-07-22  Bruno Haible  <bruno@clisp.org>
2264
2265         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
2266         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
2267         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
2268         Remove exemption for getpass.h.
2269         Suggested by Eric Blake.
2270
2271 2012-07-20  Eric Blake  <eblake@redhat.com>
2272
2273         verify: document conflict with -Wnested-externs
2274         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
2275
2276         maint.mk: forbid exit(-1)
2277         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
2278
2279 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
2280
2281         fsusage: port back to Solaris
2282         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
2283         error (fsd not declared) on Solaris 10.  Reported privately by
2284         Andrew Borodin.
2285
2286 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
2287
2288         gnu-web-doc-update: fix error messages
2289         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
2290
2291         gnu-web-doc-update: check the requirements.
2292         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
2293         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
2294         * build-aux/bootstrap (find_tool): Comment change.
2295
2296 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
2297
2298         maint.mk: minor simplication.
2299         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
2300         for default values.
2301
2302 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
2303
2304         gitlog-to-changelog: VPATH build issues
2305         If builddir is not a subdirectory of srcdir, running git from it will
2306         fail.
2307         * build-aux/gitlog-to-changelog (--srcdir): New option.
2308
2309 2012-07-15  Bruno Haible  <bruno@clisp.org>
2310
2311         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
2312         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
2313         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
2314         Remove exemption for fpending.h.
2315         Suggested by Eric Blake.
2316
2317 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
2318
2319         pthread_sigmask: fix bug on FreeBSD 9
2320         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
2321         Include string.h.
2322         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
2323         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
2324         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
2325         but pthread_sigmask (1729, NULL, NULL) returns zero.
2326         See <http://bugs.gnu.org/11884>.
2327         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
2328         by inspecting whether the main call changed the old mask.
2329
2330 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
2331
2332         README-release: make it more legible
2333         * top/README-release: Improve typography slightly.
2334
2335 2012-07-15  Jim Meyering  <meyering@redhat.com>
2336
2337         maint: require that each sc_... command start with "@"
2338         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
2339         "make sc_maint" helps us avoid this nit.
2340
2341 2012-07-15  Jim Meyering  <meyering@redhat.com>
2342
2343         maint.mk: add leading "@" to quiet new "make syntax-check" rule
2344         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
2345
2346 2012-07-13  Eric Blake  <eblake@redhat.com>
2347
2348         maint.mk: new syntax check for HAVE_DECL checks
2349         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
2350         * cfg.mk
2351         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
2352         Exempt some false positives.
2353         Based on a report by Karel Zak.
2354
2355         argp: make HAVE_DECL usage consistent
2356         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
2357         macros, not whether they are defined.
2358         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
2359         convention with other declaration checks.
2360         Reported by Karel Zak, with suggestions from Paul Eggert.
2361
2362         stat-time: relax license to LGPLv2+
2363         * modules/stat-time (License): Relax, with consent of all authors.
2364
2365         strndup: fix m4 usage error
2366         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
2367         defined, to either 0 or 1.
2368         Reported by Karel Zak.
2369
2370 2012-07-11  Jim Meyering  <meyering@redhat.com>
2371
2372         maint: enable the sc_avoid_if_before_free syntax-check rule
2373         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
2374         (if_before_free_offenders_): Define.
2375         (if_before_free_basename_re_): Define.
2376         Exempt current files with useless if-before-free.
2377
2378 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
2379
2380         gettext: do not assume '#define ... defined ...' behavior
2381         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
2382         Do not use '#define FOO ... defined BAR ...', as the C standard says
2383         it's not portable to expect that this works after macro expansion.
2384         Problem reported for gzip by Steven M. Schweda in
2385         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
2386
2387 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
2388
2389         getloadavg: clean out old Emacs and Autoconf cruft
2390         See Glenn Morris in <http://bugs.gnu.org/11905>.
2391         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
2392         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
2393         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
2394         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
2395
2396 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
2397
2398         bootstrap: let warn be like tests/init.sh's warn_
2399         Reported by Jim Meyering.
2400         * build-aux/bootstrap (warn): Remove, replaced by...
2401         (warnf_, warn_): these.
2402         Adjust callers.
2403         Shorten messages that no longer fit in 80 columns.
2404
2405 2012-07-09  Bruno Haible  <bruno@clisp.org>
2406
2407         getopt: Simplify after Emacs changed.
2408         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
2409         (gl_GETOPT_IFELSE): Remove macro.
2410
2411 2012-07-09  Jim Meyering  <meyering@redhat.com>
2412
2413         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
2414         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
2415
2416         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
2417         Bugs in both of those conspired to make the
2418         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
2419         _sc_search_regexp's handling of non-empty $in_files would filter
2420         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
2421         choice of in_files value meant there would be no match in most
2422         projects, due to the presence of two or more Makefile.in files.
2423         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
2424         Fix a bug in how a non-empty $$in_files was processed:
2425         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
2426         in spite of the name, it's a regexp, not a list of file names.
2427
2428 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
2429
2430         getloadavg, getopt: fix commentary re configure.in
2431         Autoconf is deprecating the name 'configure.in', so change it to
2432         to the new name 'configure.ac' in a couple of places.
2433         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
2434         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
2435         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
2436         Emacs has renamed it to configure.ac, and it no longer refers
2437         to these macros anyway.
2438
2439         timespec: mark functions with const attributes
2440         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
2441         Mark with _GL_ATTRIBUTE_CONST.
2442
2443 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
2444
2445         canonicalize[-lgpl]: handle "guessing" values when cross-building
2446         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
2447         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
2448         matches "*yes" instead of just "yes".  Regression introduced in commit
2449         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
2450
2451 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
2452             Bruno Haible  <bruno@clisp.org>
2453
2454         canonicalize: make the right guess when cross-compiling to GNU
2455         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
2456         determine whether cross-compiling to glibc systems, so as to
2457         include GNU/Hurd.
2458
2459 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2460
2461         timespec-sub: avoid duplicate include
2462         * lib/timespec-sub.c: Do not include <config.h> twice.
2463         Reported by Juanma Barranquero.
2464
2465 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
2466
2467         bootstrap: use a more consistent error reporting scheme
2468         * build-aux/bootstrap (warn, die): New.
2469         Use them.
2470
2471 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
2472
2473         sys_time: allow too-wide tv_sec
2474         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
2475         timeval even if tv_sec is wider than time_t.  This allows
2476         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
2477         as without this patch gnulib replaces struct timeval
2478         and OpenBSD futimes therefore has a type mismatch.
2479         * doc/posix-headers/sys_time.texi: Mention this.
2480
2481         pthread: check for both pthread_create and pthread_join
2482         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
2483         alter the check so that it tests for both pthread_create and
2484         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
2485         Suggested by Bruno Haible and Richard Yao in
2486         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
2487
2488         parse-datetime: doc tuneup
2489         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
2490         spacing issues.
2491
2492 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
2493
2494         do-release-commit-and-tag: fix the previous commit
2495         * build-aux/do-release-commit-and-tag: Actually the test was right,
2496         but the comment and the error message were misleading.
2497         Fix comment, and improve error message.
2498         Perform check first, so that NEWS is not modified uselessly.
2499
2500         do-release-commit-and-tag: fix typo
2501         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
2502         _not_ start with a stub.
2503
2504 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
2505
2506         pthread: check for pthread_create, not pthread_join
2507         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
2508         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
2509         pthread_join in libc.  I hope this removes the need for all the
2510         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
2511         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
2512
2513 2012-07-04  Jim Meyering  <meyering@redhat.com>
2514
2515         parse-datetime: fix failure to diagnose invalid input
2516         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
2517         rather than diagnosing the invalid input.  Now it reports this:
2518         date: invalid date '\260'
2519         * lib/parse-datetime.y (to_uchar): Define.
2520         (yylex): Don't sign-extend "other" bytes.
2521         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
2522         Thanks to Bruno Haible for the patch to this file.
2523         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
2524         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
2525
2526 2012-07-03  Jim Meyering  <meyering@redhat.com>
2527
2528         bootstrap: do not require now-removed build-aux/missing
2529         Now that build-aux/missing is, er, missing, bootstrap would
2530         silently fail.
2531         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
2532         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
2533         no longer part of gnulib.
2534         Diagnose the failure.
2535
2536 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
2537
2538         alloca: add support for HP NonStop TNS/E native
2539         * lib/alloca.in.h (alloca): Support the new host.
2540         From a suggestion by Joachim Schmitz in
2541         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
2542
2543 2012-07-02  Pádraig Brady  <P@draigBrady.com>
2544
2545         fsusage: remove code not needed on non GNU/Linux systems.
2546
2547         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
2548         Don't include headers no longer needed in this case.
2549         * lib/fsusage.c [STAT_STATVFS &&
2550         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
2551         STAT_STATFS2_FRSIZE to exclude code not used in this case.
2552
2553 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
2554
2555         fsusage: include files needed for glibc 2.6 fallback
2556         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
2557         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
2558         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
2559         Problem reported by Ludovic Courtès in
2560         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
2561
2562         fsusage: avoid needless check on GNU/Linux
2563         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
2564         on GNU/Linux systems, since it can't possibly work.
2565
2566 2012-07-01  Bruno Haible  <bruno@clisp.org>
2567
2568         log: Fix an autoconf >= 2.64 warning.
2569         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
2570         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
2571
2572 2012-06-28  Bruno Haible  <bruno@clisp.org>
2573
2574         log10f: Fix possible configuration problem.
2575         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
2576         $LOGF_LIBM.
2577         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
2578
2579 2012-06-28  Bruno Haible  <bruno@clisp.org>
2580
2581         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
2582         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
2583         not gl_cv_func_unlink_works.
2584         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
2585
2586 2012-06-27  Eric Blake  <eblake@redhat.com>
2587
2588         config: drop scripts that automake says are not independent
2589         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
2590         * build-aux/elisp-comp: Delete.
2591         * build-aux/missing: Likewise.
2592         * build-aux/ylwrap: Likewise.
2593         * modules/elisp-comp: Likewise.
2594         * MODULES.html.sh: Drop mention of elisp-comp.
2595         * NEWS: Mention this.
2596
2597 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
2598
2599         root-uid: new module
2600         This is for portability to Tandem's NonStop Kernel.
2601         * lib/root-uid.h, modules/root-uid: New files.
2602         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
2603         * lib/write-any-file.c, tests/test-sethostname2.c:
2604         Include "root-uid.h".
2605         * lib/euidaccess.c (euidaccess):
2606         * lib/pt_chown.c (main):
2607         * lib/unlinkdir.c (cannot_unlink_dir):
2608         * lib/write-any-file.c (can_write_any_file):
2609         * m4/mknod.m4 (gl_FUNC_MKNOD):
2610         * tests/test-sethostname2.c (geteuid, main):
2611         Don't assume ROOT_UID == 0.
2612         * modules/euidaccess (Depends-on):
2613         * modules/pt_chown (Depends-on):
2614         * modules/sethostname-tests (Depends-on):
2615         * modules/unlinkdir (Depends-on):
2616         * modules/write-any-file (Depends-on):
2617         Add root-uid.
2618
2619         regex: use locale-independent comparison for codeset name
2620         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
2621         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
2622         for codeset name.
2623         * lib/regex_internal.h: Do not include <strings.h>, since we
2624         no longer use strcasecmp.
2625         * modules/regex (Depends-on): Remove strcase.
2626
2627 2012-06-23  Bruno Haible  <bruno@clisp.org>
2628
2629         getopt-posix: No longer guarantee that option processing is resettable.
2630         * doc/posix-functions/getopt.texi: Drop description of problem with
2631         internal state. Fix info about mingw and msvc9.
2632         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
2633         option processing by getopt(). Run three test programs instead of one.
2634         Simplify cross-compilation guess.
2635         * NEWS: Mention the change.
2636         Reported by Rich Felker <dalias@aerifal.cx>.
2637
2638 2012-06-26  Bruno Haible  <bruno@clisp.org>
2639
2640         argp, regex: Ensure strcasecmp gets declared.
2641         * lib/argp-help.c: Include <strings.h>.
2642         * lib/regex_internal.h: Likewise.
2643         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
2644
2645 2012-06-24  Bruno Haible  <bruno@clisp.org>
2646
2647         ptsname_r: Make it consistent with ptsname on AIX.
2648         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
2649         implementation as for OSF/1.
2650         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
2651         a pty master.
2652
2653         ptsname_r: Make it consistent with ptsname on OSF/1.
2654         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
2655         OSF/1.
2656
2657 2012-06-24  Bruno Haible  <bruno@clisp.org>
2658
2659         ttyname_r: Fix result on OSF/1, Solaris.
2660         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
2661
2662 2012-06-24  Bruno Haible  <bruno@clisp.org>
2663
2664         ptsname_r: Add support for Solaris.
2665         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
2666         Solaris.
2667
2668         ptsname_r: Fix test failure on native Windows.
2669         * modules/ptsname_r (Depends-on): Add isatty.
2670
2671         ptsname_r: Fix test failures on IRIX, Solaris.
2672         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
2673         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
2674         accordingly.
2675         * lib/ptsname_r.c: Include <fcntl.h>.
2676         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
2677         set errno if fd is invalid.
2678         * tests/test-isatty.c (main): Update comments.
2679
2680 2012-06-24  Bruno Haible  <bruno@clisp.org>
2681
2682         ptsname test: Extend test.
2683         * tests/test-ptsname.c: Include <errno.h>.
2684         (main): Test behaviour with invalid file descriptor.
2685
2686 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
2687
2688         time: fix obsolete comment
2689         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
2690         reference to HAVE_STRUCT_TIMESPEC in comment.
2691
2692 2012-06-23  Bruno Haible  <bruno@clisp.org>
2693
2694         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
2695         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
2696         does not handle abbreviated long options with equivalent
2697         disambiguations, set gl_replace_getopt to yes.
2698         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
2699
2700 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
2701
2702         time_r: fix typo that always overrode localtime_r decl
2703         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
2704         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
2705         not in a standard include.
2706
2707 2012-06-22  Bruno Haible  <bruno@clisp.org>
2708
2709         Write "Mac OS X" instead of "MacOS X".
2710         * README: Write "Mac OS X" instead of "MacOS X".
2711         * build-aux/bootstrap: Likewise.
2712         * build-aux/install-reloc: Likewise.
2713         * lib/acl-internal.h: Likewise.
2714         * lib/acl_entries.c: Likewise.
2715         * lib/argp-ba.c: Likewise.
2716         * lib/argp-pv.c: Likewise.
2717         * lib/config.charset: Likewise.
2718         * lib/copy-acl.c: Likewise.
2719         * lib/csharpexec.c: Likewise.
2720         * lib/euidaccess.c: Likewise.
2721         * lib/fbufmode.c: Likewise.
2722         * lib/fflush.c: Likewise.
2723         * lib/file-has-acl.c: Likewise.
2724         * lib/filemode.h: Likewise.
2725         * lib/fpurge.c: Likewise.
2726         * lib/freadable.c: Likewise.
2727         * lib/freadahead.c: Likewise.
2728         * lib/freading.c: Likewise.
2729         * lib/freadptr.c: Likewise.
2730         * lib/freadseek.c: Likewise.
2731         * lib/fseeko.c: Likewise.
2732         * lib/fseterr.c: Likewise.
2733         * lib/fsusage.c: Likewise.
2734         * lib/fwritable.c: Likewise.
2735         * lib/fwriting.c: Likewise.
2736         * lib/get-rusage-as.c: Likewise.
2737         * lib/get-rusage-data.c: Likewise.
2738         * lib/getdomainname.c: Likewise.
2739         * lib/idpriv-drop.c: Likewise.
2740         * lib/idpriv-droptemp.c: Likewise.
2741         * lib/localcharset.c: Likewise.
2742         * lib/locale.in.h: Likewise.
2743         * lib/localename.c: Likewise.
2744         * lib/mbsrtowcs-state.c: Likewise.
2745         * lib/nproc.c: Likewise.
2746         * lib/passfd.c: Likewise.
2747         * lib/posix_openpt.c: Likewise.
2748         * lib/printf-parse.c: Likewise.
2749         * lib/progreloc.c: Likewise.
2750         * lib/safe-read.h: Likewise.
2751         * lib/safe-write.h: Likewise.
2752         * lib/sched.in.h: Likewise.
2753         * lib/set-mode-acl.c: Likewise.
2754         * lib/signal.in.h: Likewise.
2755         * lib/stdint.in.h: Likewise.
2756         * lib/stdio-impl.h: Likewise.
2757         * lib/stdlib.in.h: Likewise.
2758         * lib/strtod.c: Likewise.
2759         * lib/sys_select.in.h: Likewise.
2760         * lib/tcgetsid.c: Likewise.
2761         * lib/unistd.in.h: Likewise.
2762         * lib/unlockpt.c: Likewise.
2763         * lib/vasnprintf.c: Likewise.
2764         * lib/vma-iter.c: Likewise.
2765         * lib/wcsrtombs-state.c: Likewise.
2766         * m4/acl.m4: Likewise.
2767         * m4/acosl.m4: Likewise.
2768         * m4/asinl.m4: Likewise.
2769         * m4/atanl.m4: Likewise.
2770         * m4/c-stack.m4: Likewise.
2771         * m4/cosl.m4: Likewise.
2772         * m4/expl.m4: Likewise.
2773         * m4/extensions.m4: Likewise.
2774         * m4/fdatasync.m4: Likewise.
2775         * m4/fmal.m4: Likewise.
2776         * m4/frexp.m4: Likewise.
2777         * m4/frexpf.m4: Likewise.
2778         * m4/frexpl.m4: Likewise.
2779         * m4/fsusage.m4: Likewise.
2780         * m4/getdomainname.m4: Likewise.
2781         * m4/getloadavg.m4: Likewise.
2782         * m4/getopt.m4: Likewise.
2783         * m4/gettext.m4: Likewise.
2784         * m4/gnulib-common.m4: Likewise.
2785         * m4/intdiv0.m4: Likewise.
2786         * m4/intlmacosx.m4: Likewise.
2787         * m4/largefile.m4: Likewise.
2788         * m4/ldexpl.m4: Likewise.
2789         * m4/link-follow.m4: Likewise.
2790         * m4/locale-ar.m4: Likewise.
2791         * m4/locale-fr.m4: Likewise.
2792         * m4/locale-ja.m4: Likewise.
2793         * m4/locale-tr.m4: Likewise.
2794         * m4/locale-zh.m4: Likewise.
2795         * m4/locale_h.m4: Likewise.
2796         * m4/lock.m4: Likewise.
2797         * m4/logl.m4: Likewise.
2798         * m4/mathfunc.m4: Likewise.
2799         * m4/minus-zero.m4: Likewise.
2800         * m4/mktime.m4: Likewise.
2801         * m4/mmap-anon.m4: Likewise.
2802         * m4/multiarch.m4: Likewise.
2803         * m4/nanosleep.m4: Likewise.
2804         * m4/nocrash.m4: Likewise.
2805         * m4/poll.m4: Likewise.
2806         * m4/printf-frexpl.m4: Likewise.
2807         * m4/printf.m4: Likewise.
2808         * m4/signbit.m4: Likewise.
2809         * m4/sinl.m4: Likewise.
2810         * m4/sqrtl.m4: Likewise.
2811         * m4/strerror_r.m4: Likewise.
2812         * m4/tanl.m4: Likewise.
2813         * m4/threadlib.m4: Likewise.
2814         * m4/ttyname_r.m4: Likewise.
2815         * m4/unlink.m4: Likewise.
2816         * m4/visibility.m4: Likewise.
2817         * m4/wcwidth.m4: Likewise.
2818         * tests/minus-zero.h: Likewise.
2819         * tests/test-alloca-opt.c: Likewise.
2820         * tests/test-copy-acl.sh: Likewise.
2821         * tests/test-copy-file.sh: Likewise.
2822         * tests/test-fdatasync.c: Likewise.
2823         * tests/test-file-has-acl.sh: Likewise.
2824         * tests/test-flock.c: Likewise.
2825         * tests/test-fsync.c: Likewise.
2826         * tests/test-localename.c: Likewise.
2827         * tests/test-malloca.c: Likewise.
2828         * tests/test-nonblocking-pipe.h: Likewise.
2829         * tests/test-nonblocking-socket.h: Likewise.
2830         * tests/test-openpty.c: Likewise.
2831         * tests/test-posix_openpt.c: Likewise.
2832         * tests/test-ptsname.c: Likewise.
2833         * tests/test-ptsname_r.c: Likewise.
2834         * tests/test-sameacls.c: Likewise.
2835         * tests/test-select.h: Likewise.
2836         * tests/test-set-mode-acl.sh: Likewise.
2837         * tests/test-snprintf-posix.h: Likewise.
2838         * tests/test-sprintf-posix.h: Likewise.
2839         * tests/test-strtod.c: Likewise.
2840         * tests/test-time.c: Likewise.
2841         * tests/test-vasnprintf-posix.c: Likewise.
2842         * tests/test-vasprintf-posix.c: Likewise.
2843         * doc/acl-resources.txt: Likewise.
2844         * doc/**/*.texi: Likewise.
2845         Reported by Max Horn <max@quendi.de>.
2846
2847 2012-06-22  Bruno Haible  <bruno@clisp.org>
2848
2849         grantpt: Relax requirement regarding invalid file descriptors.
2850         * lib/grantpt.c: Don't include <fcntl.h>.
2851         (grantpt): Don't verify the validity of the file descriptor.
2852         * modules/grantpt (Depends-on): Remove fcntl-h.
2853         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
2854         file descriptors.
2855         * doc/posix-functions/grantpt.texi: Document more platforms on which
2856         grantpt succeeds for invalid file descriptors.
2857         Reported by Rich Felker <dalias@aerifal.cx>.
2858
2859 2012-06-22  Bruno Haible  <bruno@clisp.org>
2860
2861         fbufmode test: Don't test unportable behaviour.
2862         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
2863         (main): Invoke it three times.
2864         Reported by Szabolcs Nagy <nsz@port70.net>
2865         and Rich Felker <dalias@aerifal.cx>.
2866
2867 2012-06-21  Bruno Haible  <bruno@clisp.org>
2868
2869         gnulib-tool: Refactor inctests variable.
2870         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
2871         (func_modules_transitive_closure,
2872         func_modules_transitive_closure_separately,
2873         func_import, func_create_testdir): Update.
2874
2875         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
2876         * gnulib-tool: Accept option --without-tests.
2877         (func_usage): Document --without-tests option. Rearrange.
2878         (inctests): Normalize according to the mode.
2879         * NEWS: Mention the change.
2880         Suggested by Simon Josefsson.
2881
2882 2012-06-21  Bruce Korb  <bkorb@gnu.org>
2883
2884         parse-duration test: Avoid spurious output.
2885         * tests/test-parse-duration.sh: Reindent with leading tabs.
2886
2887 2012-06-21  Jim Meyering  <meyering@redhat.com>
2888
2889         maint: disable the strncpy prohibition
2890         * cfg.mk: Do not prohibit strncpy here.
2891
2892 2012-06-21  Bruno Haible  <bruno@clisp.org>
2893
2894         nonblocking: Avoid compilation error on mingw64.
2895         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
2896         fscanf.
2897         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
2898         * modules/vfscanf (configure.ac): Likewise.
2899         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
2900         definition only if stdio.h has prepared it.
2901         Reported by Daniel P. Berrange <berrange@redhat.com>.
2902
2903 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
2904
2905         gnulib-tool: Use readlink if it is available.
2906         * gnulib-tool (func_readlink): Choose function more appropriately.
2907
2908 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
2909
2910         posixtm-tests: port to buggy compiler
2911         Problem reported by Simon Josefsson in
2912         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
2913         * modules/posixtm-tests (Depends-on): Add stdint.
2914         * tests/test-posixtm.c (struct posixtm_test.t_expected):
2915         Now of type int_least64_t, not int64_t, both because that's
2916         what INT64_C returns and because int_least64_t works even
2917         on 72-bit hosts.
2918         (T): Use INT64_C on constants outside the traditional int range,
2919         to work around compiler bug noted by Simon.
2920
2921         mktime: fix integer overflow in 'configure'-time test
2922         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
2923         after integer overflow.  Problem reported by Rich Felker in
2924         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
2925         Also, don't look for further instances of a bug if we've already
2926         found one instance; this helps 'configure' run faster.
2927
2928 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
2929
2930         tmpfile, clean-temp: Fix invocation of GetVersionEx.
2931         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
2932         GetVersionEx correctly.
2933         * lib/clean-temp.c (supports_delete_on_close): Likewise.
2934
2935 2012-06-20  Bruno Haible  <bruno@clisp.org>
2936
2937         fdopen: Allow implementations that don't reject invalid fd arguments.
2938         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
2939         succeeds.
2940         Reported by Rich Felker <dalias@aerifal.cx>.
2941
2942 2012-06-20  Simon Josefsson  <simon@josefsson.org>
2943
2944         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
2945         bring in LIBINTL.
2946
2947 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
2948
2949         init.sh: do not rely on autoupated PWD
2950         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
2951         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
2952         Although Nelson's bug was not necessarily fixed by this patch,
2953         it seems wise to make the change for safety.
2954         * tests/init.sh (path_prepend_): Do not rely on PWD updating
2955         automagically after 'cd'; this is not reliable on older shells.
2956         (setup_): Fail if we cannot cd to temporary directory.
2957
2958 2012-06-19  Bruno Haible  <bruno@clisp.org>
2959
2960         stat, fstat: Avoid warnings on mingw64.
2961         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
2962         redefining.
2963         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
2964         Reported by Daniel P. Berrange <berrange@redhat.com>.
2965
2966 2012-06-19  Bruno Haible  <bruno@clisp.org>
2967
2968         stdioext: Add support for musl libc.
2969
2970         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
2971         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
2972
2973         * m4/fseterr.m4: New file.
2974         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
2975         function exists.
2976         * modules/fseterr (Files): Add m4/fseterr.m4.
2977         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
2978         __fseterr does not exist.
2979         (Makefile.am): Remove fseterr.c from lib_SOURCES.
2980
2981         * lib/freadable.h: Update comment.
2982
2983         * lib/fwritable.h: Update comment.
2984
2985         * lib/freading.h: Update comment.
2986
2987         * lib/fwriting.h: Update comment.
2988
2989         * m4/freadahead.m4: New file.
2990         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
2991         that function exists.
2992         * modules/freadahead (Files): Add m4/freadahead.m4.
2993         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
2994         __freadahead does not exist.
2995         (Makefile.am): Remove freadahead.c from lib_SOURCES.
2996
2997         * m4/freadptr.m4: New file.
2998         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
2999         function exists.
3000         * modules/freadptr (Files): Add m4/freadptr.m4.
3001         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
3002         __freadptr does not exist.
3003         (Makefile.am): Remove freadptr.c from lib_SOURCES.
3004
3005         * m4/freadseek.m4: New file.
3006         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
3007         exists.
3008         * modules/freadseek (Files): Add m4/freadseek.m4.
3009         (configure.ac): Invoke gl_FUNC_FREADSEEK.
3010
3011         * lib/fpurge.c (fpurge): Update comment.
3012
3013         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
3014
3015 2012-06-19  Bruno Haible  <bruno@clisp.org>
3016
3017         *printf-posix: Put more info into config.log.
3018         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
3019         exit code into config.log.
3020
3021 2012-06-19  Bruno Haible  <bruno@clisp.org>
3022
3023         getopt-gnu: Fix exit code overflow in autoconf test.
3024         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
3025         to keep them below < 128.
3026
3027 2012-06-17  Jim Meyering  <meyering@redhat.com>
3028
3029         maint.mk: fix typo in code to derive GPG key at release time
3030         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
3031
3032 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
3033
3034         regex: avoid warning when pointers are not long
3035         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
3036         and uintptr_t, not long, for portability to hosts where pointers and
3037         long have different sizes.  Issue noted by Daniel P. Berrange in
3038         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
3039         and fix suggested by Bruno Haible in
3040         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
3041
3042 2012-06-17  Bruno Haible  <bruno@clisp.org>
3043
3044         dummy: Relicense into the public domain.
3045         * modules/dummy (License): Set to "public domain".
3046         Suggested by Reuben Thomas.
3047
3048 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
3049
3050         announce-gen: VPATH issues
3051         * build-aux/announce-gen (--srcdir): New option, used to trim the
3052         $srcdir part of the path from $builddir to NEWS.
3053         * top/maint.mk (announcement): Adjust.
3054
3055 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
3056
3057         gnu-web-doc-update: VPATH builds
3058         * build-aux/gnu-web-doc-update (--builddir): New option.
3059         Revamp the handling of options.
3060         Prefer $(...) to `...`.
3061         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
3062         the template, and it is GNU mktemp specific.
3063         Prefer set -e to long series of &&.
3064         Restore the initial git branch, not "master".
3065         Properly initialize submodules (don't rely only on bootstrap).
3066         Do not reconfigure blindly, use config.status.
3067         * top/README-release: Update instructions for gnu-web-doc-update.
3068
3069 2012-06-11  Jim Meyering  <meyering@redhat.com>
3070
3071         maint.mk: revert most of the previous change re "all these"
3072         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
3073         For rationale, see the discussion at
3074         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
3075
3076 2012-06-10  Karl Berry  <karl@gnu.org>
3077
3078         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
3079
3080         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
3081
3082 2012-06-10  Bruce Korb  <bkorb@gnu.org>
3083
3084         parse-duration: Relicense under LGPLv2+.
3085         * modules/parse-duration (License): Change to LGPLv2+.
3086
3087 2012-06-10  Jim Meyering  <meyering@redhat.com>
3088
3089         maint.mk: prohibit common grammar error: "all these"
3090         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
3091         the list of prohibited word sequences.  It should be "all of these".
3092         * lib/tempname.c (__gen_tempname): Fix one of them.
3093
3094 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
3095
3096         do-release-commit-and-tag: support VPATH builds
3097         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
3098         (noteworthy): Defined earlier to factor its value.
3099         (noteworthy_stub): New.
3100         Use it to factor.
3101         (help_version): Split into...
3102         (help, version): these.
3103         Adjust the option processing part.
3104         Support "--option=value" in addition to "--option value".
3105         (builddir): New.
3106         (--builddir): New option.
3107         * top/README-release: Document this.
3108         Reword slightly so that the reader cannot understand that he
3109         has to do these steps before calling do-release-commit-and-tag.
3110
3111 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
3112
3113         readme-release: also require announce-gen and maintainer-makefile
3114         * modules/readme-release (Depends-on): here.
3115         * modules/announce-gen, modules/do-release-commit-and-tag,
3116         modules/gnu-web-doc-update, modules/maintainer-makefile
3117         (Description): Point to readme-release.
3118
3119 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
3120
3121         maint.mk: fix VPATH issues.
3122         * top/maint.mk (news-check): GNU Make understand $< very well.
3123         (release-prep): NEWS is in $(srcdir).
3124
3125 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
3126
3127         readme-release: require the promoted modules.
3128         * modules/readme-release (Depends-on): Add
3129         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
3130         in this text.
3131
3132 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
3133             Bruno Haible  <bruno@clisp.org>
3134
3135         error, strerror-override: Support mingw64 from Fedora 17.
3136         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
3137         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
3138         EINPROGRESS.
3139         * lib/strerror-override.h (strerror_override): Test it.
3140         * lib/strerror-override.c (strerror_override): Likewise.
3141         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
3142
3143 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
3144             Bruno Haible  <bruno@clisp.org>
3145
3146         error, strerror-override: Support mingw64 from Fedora 17.
3147         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
3148         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
3149         * lib/strerror-override.h (strerror_override): Test it.
3150         * lib/strerror-override.c (strerror_override): Likewise.
3151
3152 2012-06-03  Bruno Haible  <bruno@clisp.org>
3153
3154         error, strerror-override: Support new errno values from POSIX:2008.
3155         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
3156         ENOTRECOVERABLE.
3157         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
3158         platforms.
3159         * lib/strerror-override.c (strerror_override): Conditionalize the
3160         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
3161         * lib/strerror-override.h (strerror_override): Declare also if
3162         GNULIB_defined_EOWNERDEAD is defined.
3163         * tests/test-errno.c (e130, e131): New variables.
3164         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
3165         ENOTRECOVERABLE.
3166         Reported by Paolo Bonzini.
3167
3168 2012-05-31  Jim Meyering  <meyering@redhat.com>
3169
3170         savewd: add missing dependency on sys_wait module
3171         * modules/savewd (Depends-on): Add sys_wait, needed at least
3172         for MSVC.  Report and suggested change by Michael Goffioul.
3173
3174 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
3175
3176         system-quote-tests: port to CentOS 5
3177         Problem reported by Tom G. Christensen in
3178         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
3179         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
3180
3181 2012-05-29  Jim Meyering  <meyering@redhat.com>
3182
3183         maint: fix typos in comments and ChangeLog
3184         Culprits identified and fixed mostly automatically using these commands:
3185         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
3186         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
3187         using http://github.com/lyda/misspell-check
3188         * ChangeLog: Fix typos.
3189         * doc/solaris-versions: Likewise.
3190         * lib/regexec.c (re_search_stub): Likewise.
3191         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
3192
3193 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
3194
3195         manywarnings: remove duplicate -Wmultichar entry
3196         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
3197         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
3198         so keep the entry marked as documented.
3199
3200 2012-05-27  Karl Berry  <karl@gnu.org>
3201
3202         * config/srclist.txt (mktime.c): remove last libc sync,
3203         perhaps just temporarily.
3204
3205 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
3206
3207         regex: don't assume uint64_t or uint32_t
3208         * lib/regcomp.c (init_word_char): Don't assume that the types
3209         uint64_t and uint32_t exist.  The C standard doesn't guarantee
3210         them, and on some 32-bit compilers there is no uint64_t.
3211         Problem reported by Gianluigi Tiesi in
3212         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
3213
3214 2012-05-25  Jim Meyering  <meyering@redhat.com>
3215
3216         maint.mk: add strncpy-prohibiting syntax-check rule
3217         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
3218
3219 2012-05-24  Jim Meyering  <meyering@redhat.com>
3220
3221         maint.mk: compute $(gpg_key_ID) more portably
3222         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
3223         That use of sed is not portable to some fringe systems.
3224         Reported by Paul Eggert in
3225         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
3226
3227 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
3228
3229         mktime: sync from glibc
3230         * config/srclist.txt: Uncomment mktime.c.
3231         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
3232         First, indent with tabs, since glibc uses tabs and doesn't want to
3233         change and we'd rather be identical to glibc.  Also, two small
3234         coding changes:
3235         (isdst_differ): Use &&, not &, as && is the usual style.
3236         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
3237         for clarity.
3238
3239 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
3240
3241         announce-gen: du -h is more portable than du --human
3242         * build-aux/announce-gen (sizes): Invoke du with -h instead
3243         of --human.  Accept leading white space in its output.
3244
3245 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
3246
3247         announce-gen: Improve diagnostics.
3248         * build-aux/announce-gen: When parsing command line options,
3249         prefer "announce-gen: option --release-type requires an argument"
3250         to "Option release-type requires an argument".
3251
3252 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
3253
3254         maint.mk: gpg_key_ID: use sed more portably
3255         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
3256         the closing brace.
3257         (refresh-po): Fuse two sed invocations into one.
3258
3259 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
3260
3261         gitlog-to-changelog: support the log message format used in Bison.
3262         * build-aux/gitlog-to-changelog: Support --strip-tab and
3263         --strip-cherry-picked.
3264
3265 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
3266
3267         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
3268         the rest of the current time slice to another thread in the current
3269         process. So if the thread that feeds the file decscriptor we're
3270         polling is not in the current process, we get busy-waiting.
3271         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
3272         Patch from Theodore Leblond.
3273         * lib/select.c: Split polling out of the loop that sets the output
3274         fd_sets.  Check for zero result and loop if the wait timeout is
3275         infinite.
3276
3277 2012-05-21  Simon Josefsson  <simon@josefsson.org>
3278
3279         select: Fix build error on IRIX 6.5.
3280         * lib/select.c: Include stddef.h for NULL.
3281
3282 2012-05-21  Simon Josefsson  <simon@josefsson.org>
3283
3284         gc: fix libgcrypt detection on older machines.
3285         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
3286         copyright years because the file has been distributed every year
3287         since it was created.
3288
3289 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
3290
3291         crypto: fix bug in large buffer handling
3292         Problem reported by Serge Belyshev for glibc in
3293         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
3294         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
3295         * lib/md4.c (md4_process_block):
3296         * lib/md5.c (md5_process_block):
3297         * lib/sha1.c (sha1_process_block):
3298         * lib/sha256.c (sha256_process_block):
3299         Don't assume the buffer length is less than 2**32.
3300         * lib/sha512.c (sha512_process_block): Likewise.
3301         Here, the bug is present only in the rare case where the host does
3302         not support uint64_t or where size_t is wider than 64 bits.
3303         Use u64size to work around the problems.
3304         * lib/u64.h (u64size): New macro.
3305
3306 2012-05-15  Pádraig Brady  <P@draigBrady.com>
3307
3308         fsusage: fix block size returned on older Linux 2.6
3309
3310         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
3311         which is available since Linux 2.6.
3312         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
3313         when the member is available so it can be used as a fallback.
3314         * doc/posix-functions/statvfs.texi: Mention the hang issue
3315         on Linux < 2.6.36.
3316
3317 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
3318
3319         bootstrap: suppress stderr chatter
3320         * build-aux/bootstrap (insert_sorted_if_absent, main program):
3321         Omit unnecessary chatter to stderr.  The main program chatter
3322         was there only inadvertantly.
3323
3324         bootstrap: .gitignore files created by autopoint, libtool
3325         I ran into this problem when bootstrapping the latest diffutils.
3326         After './bootstrap', 'git status' reported lots of untracked files
3327         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
3328         autopoint and do not need to be version-controlled.
3329         * build-aux/bootstrap: Put into .gitignore the files that
3330         autopoint and libtool create, by keeping track of files that exist
3331         after but not before these programs are run.
3332         (version_controlled_file): Move up.  2nd arg is now full file
3333         name, not base name; this is more convenient.  Put CVS at the end,
3334         as it's now somewhat deprecated.
3335
3336 2012-05-14  Jim Meyering  <meyering@redhat.com>
3337
3338         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
3339         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
3340         definition.  Reported by Bruno Haible.
3341
3342 2012-05-13  Bruno Haible  <bruno@clisp.org>
3343             Paul Eggert  <eggert@cs.ucla.edu>
3344
3345         binary-io: Define set_binary_mode function.
3346         * lib/binary-io.h (set_binary_mode): New function.
3347         (SET_BINARY): Define in terms of set_binary_mode.
3348         * modules/binary-io (configure.ac): Require AC_C_INLINE.
3349         * tests/test-binary-io.c (main): Accept an argument, and test either
3350         set_binary_mode or SET_BINARY depending on the argument.
3351         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
3352         argument. Clean up also t-bin-out0.tmp.
3353
3354 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
3355
3356         bootstrap: take advantage of POSIX shell features
3357
3358         The 'bootstrap' script offered by Gnulib script already uses POSIX
3359         shell features (like $((...)) arithmetic expansions) that are not
3360         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
3361         means that bootstrap must already be run using a proper POSIX shell,
3362         which will thus provide more features, like ${var#pattern} parameter
3363         expansion or inversion of a command exit status with '!'.  We can
3364         thus use these features to improve the clarity and the performances
3365         of the bootstrap script.
3366
3367         Suggested by Eric Blake.
3368
3369         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
3370         of sed/expr plus command substitutions, to save some forks.  While
3371         we are at it, prefer the POSIX $(...) form of command substitution,
3372         rather than the legacy form `...` (since the former is visually
3373         clearer and interacts better with quoting), and prefer the idiom:
3374           "if ! CMD; then ACTION ..."
3375         over the idiom:
3376           "if CMD; then :; else ACTION ..."
3377         which was required by legacy Bourne shells not supporting '!'.
3378
3379 2012-05-12  Bruno Haible  <bruno@clisp.org>
3380
3381         system-quote: Add more comments.
3382         * lib/system-quote.h: Add more comments about wilcards and limitations.
3383         Suggested by Eli Zaretskii <eliz@gnu.org>.
3384
3385         sh-quote, system-quote: Add comments about wildcards.
3386         * lib/sh-quote.h: Clarify what happens with wildcard characters.
3387         * lib/system-quote.h: Likewise.
3388         Reported by Eli Zaretskii <eliz@gnu.org>.
3389
3390 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
3391
3392         fsusage: check for GNU/Linux statvfs problem dynamically
3393         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
3394         Define STAT_STATFS2_BSIZE too, since in this case the code now
3395         checks dynamically whether statvfs is reliable, falling back on
3396         Linux-style statfs otherwise.
3397         (statvfs_works): New function, for dynamically testing statvfs.
3398         (get_fs_usage) [STAT_STATVFS]: Use it.
3399         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
3400         statvfs on GNU/Linux hosts, since it's now done dynamically.
3401
3402 2012-05-10  Bruno Haible  <bruno@clisp.org>
3403
3404         system-quote, execute, spawn-pipe: Escape '?' on Windows.
3405         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
3406         '?' character.
3407         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
3408         * tests/test-system-quote-main.c (check_all): Check also strings like
3409         "??????????".
3410         Reported by Eli Zaretskii <eliz@gnu.org>.
3411
3412 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
3413
3414         _Noreturn: port config.h to gcc -Wundef
3415         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
3416         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
3417         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
3418
3419 2012-05-10  Bruno Haible  <bruno@clisp.org>
3420
3421         system-quote: Refactor.
3422         * lib/system-quote.h (system_quote_copy): Fix comment.
3423         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
3424         New functions, extracted from system_quote_copy.
3425         (system_quote_length, system_quote_copy): Use these functions.
3426         Reported by Paul Eggert.
3427
3428 2012-05-08  Bruno Haible  <bruno@clisp.org>
3429
3430         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
3431         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
3432
3433 2012-05-08  Bruno Haible  <bruno@clisp.org>
3434
3435         Tests for module 'system-quote'.
3436         * modules/system-quote-tests: New file.
3437         * tests/test-system-quote.sh: New file.
3438         * tests/test-system-quote-main.c: New file.
3439         * tests/test-system-quote-child.c: New file.
3440
3441         New module 'system-quote'.
3442         * lib/system-quote.h: New file.
3443         * lib/system-quote.c: New file.
3444         * modules/system-quote: New file.
3445
3446 2012-05-08  Bruno Haible  <bruno@clisp.org>
3447
3448         sh-quote: Make C++ safe and allow multiple inclusion.
3449         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
3450         declarations in extern "C".
3451
3452 2012-05-08  Bruno Haible  <bruno@clisp.org>
3453
3454         sh-quote tests: Make tests stricter.
3455         * tests/test-sh-quote.c (check_one): Check the return value of
3456         shell_quote_copy.
3457         (main): Check a string with a CR character. Check a string that
3458         contains UCHAR_MAX.
3459
3460 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
3461
3462         warnings.m4: provide a means to specify the program to compile.
3463         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
3464         (gl_WARN_ADD): here.
3465         Use gl_AS_VAR_APPEND.
3466         Support an argument to specify the program to compile.
3467         (gl_WARN_ADD): Accept an argument to specify the program to compile.
3468         AC_SUBST the WARN_CFLAGS when they are used.
3469         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
3470         leave this to gl_WARN_ADD.
3471
3472 2012-05-08  Eric Blake  <eblake@redhat.com>
3473
3474         doc: recommendations on gettext version
3475         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
3476         choice between versions.
3477         * DEPENDENCIES (gettext): Cover both approaches.
3478
3479 2012-05-08  Jim Meyering  <meyering@redhat.com>
3480
3481         init.sh: explain why EXEEXT support uses aliases rather than functions
3482         * tests/init.sh: Add a comment.
3483
3484         init.sh: don't let bash aliases interfere with tests
3485         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
3486         is bash.  This avoids problems for those who alias standard commands to
3487         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
3488         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
3489
3490 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
3491
3492         stdint: be more consistent with glibc, SunOS libc
3493         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
3494         (gl_int_fast16_t, gl_uint_fast16_t)
3495         (gl_int_fast32_t, gl_uint_fast32_t)
3496         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
3497         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
3498         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
3499         Be consistent with glibc by default, and with SunOS 5.10 and later
3500         if __sun is defined.  This lessens the likelihood of clashes if
3501         code compiled for older hosts is combined with code compiled for
3502         newer ones.  Problem reported by Niels Möller in
3503         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
3504
3505 2012-05-07  Eric Blake  <eblake@redhat.com>
3506
3507         isatty: relax license to LGPLv2+
3508         * modules/isatty (License): Relax license.
3509
3510 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
3511
3512         stat-size: comment fix
3513         * lib/stat-size.h: Remove obsolete comment about indenting.
3514
3515 2012-05-06  Bruno Haible  <bruno@clisp.org>
3516
3517         Tests for module 'sh-quote'.
3518         * modules/sh-quote-tests: New file.
3519         * tests/test-sh-quote.c: New file.
3520
3521 2012-05-06  Bruno Haible  <bruno@clisp.org>
3522
3523         sh-quote: Improve shell_quote_argv's signature.
3524         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
3525         * lib/sh-quote.c (shell_quote_argv): Likewise.
3526
3527 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
3528
3529         stdint: document issues with int_fast8_t etc.
3530         * doc/posix-headers/stdint.texi (stdint.h): Say that other
3531         stdint.h substitutes may define these types differently.  See
3532         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
3533
3534 2012-05-05  Bruno Haible  <bruno@clisp.org>
3535
3536         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
3537         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
3538         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
3539         or 'guessing no (mishandles large arguments)'.
3540
3541 2012-05-05  Bruno Haible  <bruno@clisp.org>
3542
3543         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
3544         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
3545         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
3546         set gl_cv_func_link_follows_symlink to "guessing no".
3547
3548 2012-05-05  Bruno Haible  <bruno@clisp.org>
3549
3550         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
3551         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
3552         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
3553         "guessing no".
3554         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
3555
3556 2012-05-05  Bruno Haible  <bruno@clisp.org>
3557
3558         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
3559         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
3560         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
3561         set gl_cv_struct_dirent_d_ino to "guessing yes".
3562
3563 2012-05-05  Bruno Haible  <bruno@clisp.org>
3564
3565         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
3566         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
3567         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
3568         "guessing yes".
3569
3570 2012-05-05  Bruno Haible  <bruno@clisp.org>
3571
3572         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
3573         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
3574         compiling to a glibc system, set gl_cv_func_signbit and
3575         gl_cv_func_signbit_gcc to "guessing yes".
3576
3577 2012-05-05  Bruno Haible  <bruno@clisp.org>
3578
3579         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
3580         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
3581         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
3582         to "guessing yes".
3583         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
3584         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
3585
3586 2012-05-05  Bruno Haible  <bruno@clisp.org>
3587
3588         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
3589         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
3590         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
3591         gl_cv_func_realpath_works to "guessing yes".
3592
3593 2012-05-05  Bruno Haible  <bruno@clisp.org>
3594
3595         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
3596         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
3597         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
3598
3599 2012-05-04  Bruno Haible  <bruno@clisp.org>
3600
3601         Tweak last commit.
3602         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
3603         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3604
3605 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
3606
3607         unistd_h: make it easier to avoid sys_types_h
3608         This is useful for Emacs, which has its own method of porting to
3609         Windows, and which therefore does not need the sys_types_h module.
3610         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
3611         code moved here from gl_SYS_TYPES_H.
3612         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
3613         using the code directly.
3614         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
3615         gl_SYS_TYPES_H.
3616         * modules/sys_types (Files):
3617         * modules/unistd (Files): Add m4/off_t.m4.
3618
3619 2012-05-03  Bruno Haible  <bruno@clisp.org>
3620
3621         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
3622         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
3623         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
3624         "guessing yes" or "guessing no".
3625         (gl_FUNC_LSTAT): Update.
3626         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
3627         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
3628         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
3629
3630 2012-05-03  Bruno Haible  <bruno@clisp.org>
3631
3632         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
3633         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
3634         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
3635         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
3636         cross-compiling, choose the first alternative on glibc systems.
3637         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
3638
3639 2012-05-03  Bruno Haible  <bruno@clisp.org>
3640
3641         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
3642         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
3643         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
3644
3645 2012-05-03  Bruno Haible  <bruno@clisp.org>
3646
3647         chown: Avoid "guessing no" when cross-compiling to glibc systems.
3648         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
3649
3650 2012-05-03  Bruno Haible  <bruno@clisp.org>
3651
3652         Avoid "guessing no" guesses when cross-compiling to glibc systems.
3653         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
3654         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
3655         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
3656         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
3657         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
3658         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
3659         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
3660         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
3661         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
3662         compiling to glibc systems, set gl_cv_func_chown_slash_works,
3663         gl_cv_func_chown_ctime_works to "guessing yes".
3664         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
3665         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
3666         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
3667         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
3668         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
3669         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
3670         compiling to glibc systems, set gl_cv_func_open_directory_works to
3671         "guessing yes".
3672         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
3673         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
3674         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
3675         "guessing yes".
3676         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
3677         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
3678         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
3679         compiling to glibc systems, set gl_cv_func_floorf_ieee to
3680         "guessing yes".
3681         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
3682         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
3683         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
3684         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
3685         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
3686         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
3687         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
3688         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
3689         "guessing yes".
3690         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
3691         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
3692         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
3693         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
3694         "guessing yes".
3695         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
3696         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
3697         "guessing yes".
3698         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
3699         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
3700         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
3701         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
3702         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
3703         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
3704         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
3705         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
3706         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
3707         compiling to glibc systems, set gl_cv_func_log10f_ieee to
3708         "guessing yes".
3709         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
3710         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
3711         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
3712         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
3713         "guessing yes".
3714         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
3715         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
3716         "guessing yes".
3717         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
3718         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
3719         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
3720         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
3721         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
3722         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
3723         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
3724         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
3725         compiling to glibc systems, set gl_cv_func_mkfifo_works to
3726         "guessing yes".
3727         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
3728         compiling to glibc systems, set gl_cv_func_mknod_works to
3729         "guessing yes".
3730         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
3731         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
3732         "guessing yes".
3733         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
3734         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
3735         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
3736         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
3737         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
3738         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
3739         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
3740         compiling to glibc systems, set gl_cv_func_svid_putenv to
3741         "guessing yes".
3742         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
3743         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
3744         "guessing yes".
3745         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
3746         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
3747         "guessing yes".
3748         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
3749         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
3750         to "guessing yes".
3751         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
3752         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
3753         to "guessing yes".
3754         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
3755         compiling to glibc systems, set gl_cv_func_rmdir_works to
3756         "guessing yes".
3757         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
3758         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
3759         gl_cv_func_unlink_parent_fails to "guessing yes".
3760         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
3761         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
3762         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
3763         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
3764         gl_cv_func_rename_dest_works to "guessing yes".
3765         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
3766         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
3767         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
3768         compiling to glibc systems, set gl_cv_func_roundf_ieee to
3769         "guessing yes".
3770         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
3771         compiling to glibc systems, set gl_cv_func_roundl_ieee to
3772         "guessing yes".
3773         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
3774         compiling to glibc systems, set gl_cv_func_setenv_works to
3775         "guessing yes".
3776         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
3777         compiling to glibc systems, set gl_cv_func_unsetenv_works to
3778         "guessing yes".
3779         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
3780         compiling to glibc systems, set gl_cv_func_sleep_works to
3781         "guessing yes".
3782         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
3783         compiling to glibc systems, set gl_cv_func_stat_file_slash to
3784         "guessing yes".
3785         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
3786         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
3787         "guessing yes".
3788         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
3789         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
3790         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
3791         compiling to glibc systems, set gl_cv_func_truncf_ieee to
3792         "guessing yes".
3793         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
3794         compiling to glibc systems, set gl_cv_func_truncl_ieee to
3795         "guessing yes".
3796         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
3797         compiling to glibc systems, set gl_cv_func_usleep_works to
3798         "guessing yes".
3799         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
3800         compiling to glibc systems, set gl_cv_func_futimesat_works to
3801         "guessing yes".
3802
3803 2012-05-03  Bruno Haible  <bruno@clisp.org>
3804
3805         Say "guessing yes" or "guessing no" when cross-compiling.
3806         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
3807         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
3808         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
3809         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
3810         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
3811         am_cv_func_working_getline to "guessing yes" or "guessing no".
3812         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
3813         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
3814         (gl_FUNC_MEMMEM): When cross-compiling, set
3815         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
3816         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
3817         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
3818         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
3819         set gl_cv_func_strcasestr_works_always to "guessing yes" or
3820         "guessing no".
3821         (gl_FUNC_STRCASESTR): When cross-compiling, set
3822         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
3823         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
3824         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
3825         (gl_FUNC_STRSTR): When cross-compiling, set
3826         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
3827         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
3828         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
3829         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
3830         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
3831
3832 2012-05-01  Bruno Haible  <bruno@clisp.org>
3833
3834         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
3835         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
3836         * build-aux/reloc-ldflags: Likewise.
3837         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
3838
3839 2012-05-01  Bruno Haible  <bruno@clisp.org>
3840
3841         gnulib-tool: Remove transitional code.
3842         * gnulib-tool: Don't warn about --import with 0 arguments any more.
3843         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3844
3845 2012-05-01  Bruno Haible  <bruno@clisp.org>
3846
3847         getcwd: Fix misindentation.
3848         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
3849
3850 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
3851
3852         exclude: process exclude and include directives in order
3853         This restores the pre-2009 behavior, and is part of a fix of a
3854         grep bug reported by Quentin Arce in
3855         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
3856         * lib/exclude.c (struct exclude): Remove 'tail' member.
3857         (new_exclude_segment): Prepend the new segment instead of appending.
3858         Return void, since that's now more convenient.
3859         (file_pattern_matches): Renamed from excluded_file_pattern_p.
3860         (file_name_matches): Renamed from excluded_file_name_p.
3861         (file_pattern_matches, file_name_matches):
3862         Return true if the pattern matches, not if it excludes.
3863         All callers changed.
3864         (excluded_file_name): Process the list in reverse order;
3865         since the list is now reversed this restores the pre-2009 behavior.
3866         (add_exclude): Adjust to new reversed-order list.  Use local var
3867         rather than macro, for clarity.
3868         * tests/test-exclude7.sh: Adjust to corrected behavior.
3869
3870         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
3871         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
3872         it's not possible here.  Handle the case of \ at end of pattern
3873         without dumping core.
3874         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
3875
3876         _Noreturn: future-proof non-GNU and non-MSVC compilers
3877         * build-aux/snippet/_Noreturn.h (_Noreturn):
3878         * m4/gnulib-common.m4 (gl_COMMON_BODY):
3879         Do not define _Noreturn if __STDC_VERSION__ indicates this is
3880         C11 or later.  This is more likely to work with random future C
3881         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
3882         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
3883
3884         exclude: handle wildcards with FNM_EXTMATCH
3885         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
3886         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
3887         comment that "has wildcards" really means "has or may have
3888         wildcards".  Simplify by avoiding the need to call strcspn.
3889
3890 2012-04-29  Bruno Haible  <bruno@clisp.org>
3891
3892         gnulib-tool: Fix list of authors.
3893         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
3894
3895 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
3896
3897         bootstrap: support Automake-NG in $buildreq
3898         * bootstrap (check_versions): Handle automake and aclocal from
3899         Automake-NG specially.  They can be specified as respectively
3900         the "automake-ng" and "aclocal-ng" requirements.
3901
3902 2012-04-25  Eric Blake  <eblake@redhat.com>
3903
3904         bootstrap: only force latest Makefile.in.in for gettext module
3905         * build-aux/bootstrap (with_gettext): Only install latest
3906         Makefile.in.in for projects requesting bleeding edge gettext.
3907
3908 2012-04-22  Bruno Haible  <bruno@clisp.org>
3909
3910         doc: Mention reason for replacement on glibc/Linux systems.
3911         * doc/posix-functions/dprintf.texi: Mention the problem with special
3912         'long double' values.
3913         * doc/posix-functions/fprintf.texi: Likewise.
3914         * doc/posix-functions/printf.texi: Likewise.
3915         * doc/posix-functions/snprintf.texi: Likewise.
3916         * doc/posix-functions/sprintf.texi: Likewise.
3917         * doc/posix-functions/vdprintf.texi: Likewise.
3918         * doc/posix-functions/vfprintf.texi: Likewise.
3919         * doc/posix-functions/vprintf.texi: Likewise.
3920         * doc/posix-functions/vsnprintf.texi: Likewise.
3921         * doc/posix-functions/vsprintf.texi: Likewise.
3922         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
3923         platforms with F_DUPFD_CLOEXEC problems.
3924         * doc/posix-functions/glob.texi: Mention which platforms are affected
3925         by the problem with symbolic links.
3926         * doc/posix-functions/linkat.texi: Mention the problem with
3927         AT_SYMLINK_FOLLOW on Linux.
3928
3929 2012-04-22  Bruno Haible  <bruno@clisp.org>
3930
3931         pwrite: Don't replace on all platforms.
3932         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
3933
3934 2012-04-22  Bruno Haible  <bruno@clisp.org>
3935
3936         rint* tests: Avoid gcc warnings.
3937         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
3938         * tests/test-rintf.c (INFINITY, NAN): Likewise.
3939         * tests/test-rintl.c (INFINITY, NAN): Likewise.
3940
3941 2012-04-21  Bruno Haible  <bruno@clisp.org>
3942
3943         users.txt: Update.
3944         * users.txt: Add freedink, wdiff. Update URLs for projects that have
3945         switched from CVS to git, bzr, or svn.
3946
3947 2012-04-21  Bruno Haible  <bruno@clisp.org>
3948
3949         Large File Support for native Windows platforms.
3950
3951         * m4/largefile.m4 (gl_LARGEFILE): New macro.
3952         * modules/largefile (configure.ac): Require gl_LARGEFILE.
3953
3954         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
3955         type.
3956         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
3957         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
3958         * doc/posix-headers/sys_types.texi: Mention the effect of the
3959         'largefile' module.
3960
3961         * lib/fcntl.in.h: Add comments about off_t.
3962         * modules/fcntl-h (Depends-on): Add sys_types.
3963
3964         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
3965         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
3966         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
3967         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
3968         * modules/unistd (Depends-on): Add sys_types.
3969         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
3970
3971         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
3972         instead of lseek.
3973         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
3974         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
3975         * modules/lseek (Depends-on): Add sys_types.
3976
3977         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
3978         msvc-nothrow.h.
3979         (SetFileSize): New function.
3980         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
3981         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
3982         if Large File Support is requested.
3983         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
3984         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
3985
3986         * lib/stdio.in.h: Add comments about off_t.
3987         * modules/stdio (Depends-on): Add sys_types.
3988
3989         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
3990         instead of ftello.
3991         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
3992         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
3993         (gl_PREREQ_FTELLO): New macro.
3994         * modules/ftello (Depends-on): Add sys_types.
3995         (configure.ac): Incoke gl_PREREQ_FTELLO.
3996
3997         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
3998         instead of fseeko.
3999         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
4000         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
4001         (gl_PREREQ_FSEEKO): New macro.
4002         * modules/fseeko (Depends-on): Add sys_types.
4003         (configure.ac): Invoke gl_PREREQ_FSEEKO.
4004
4005         * lib/sys_stat.in.h: Add comments about off_t.
4006         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
4007         64-bit integer for st_size in 'struct stat'.
4008         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
4009         Define _GL_WINDOWS_64_BIT_ST_SIZE.
4010         * modules/sys_stat (Depends-on): Add sys_types.
4011         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
4012
4013         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
4014         instead of stat or _stat.
4015
4016         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
4017         'struct _stati64' instead of fstat and 'struct stat'.
4018         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
4019         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
4020
4021         Reported by Ray Satiro <raysatiro@yahoo.com>.
4022
4023 2012-04-19  Eric Blake  <eblake@redhat.com>
4024
4025         bootstrap: accommodate older libtool
4026         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
4027         Reported by Daniel P. Berrange.
4028
4029 2012-04-19  Jim Meyering  <meyering@redhat.com>
4030
4031         announce-gen: avoid failure due to lack of Digest::SHA1
4032         Even with the preferred Digest::SHA available, this script
4033         would fail when the backup module, Digest::SHA1, was not installed.
4034         * build-aux/announce-gen: Quote the conditional use of "use".
4035         Reported by Reuben Thomas in:
4036         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
4037
4038         bootstrap: don't let a user's CDPATH setting affect this script
4039         When CDPATH is set, cd will sometimes generate output.
4040         When "cd" is run in a subshell whose output matters, that
4041         surprising-to-some output can cause malfunction.
4042         Unsetting CDPATH turns off this shell "feature."
4043         * build-aux/bootstrap (CDPATH): Unset.
4044         Reported by Reuben Thomas in:
4045         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
4046         and inspired by his patch here:
4047         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
4048
4049 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
4050         and Jim Meyering  <meyering@redhat.com>
4051
4052         maint.mk: catch "see @xref{}" and similar
4053         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
4054         prohibit "See also @xref{", "Also see @pxref{", and similar.
4055
4056 2012-04-16  Jim Meyering  <meyering@redhat.com>
4057
4058         bootstrap: really use gnulib's po/Makefile.in.in
4059         * build-aux/bootstrap: Correct the source file name in previous change.
4060         Reported by Akim Demaille.
4061
4062         configmake: correct minor inconsistency in Makefile rule
4063         * modules/configmake (Makefile.am): All other rules like this one
4064         run the final "mv -f ..." in the same backslash-continued command
4065         as the one that does everything else.  This one put the mv -f ...
4066         command on a separate, non-backslash-continued line.
4067         Make it like the others.
4068
4069         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
4070         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
4071         the one from gettext.  Reported by Akim Demaille.
4072
4073 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
4074
4075         Fix recursion of install-* into po directories.
4076         Bison's install-pdf bug reported by Hans Aberg at
4077         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
4078         * build-aux/po/Makefile.in.in (install-dvi, install-html)
4079         (install-info, install-pdf, install-ps): New targets.
4080
4081 2012-04-16  Jim Meyering  <meyering@redhat.com>
4082
4083         maint: avoid spurious "make sc_maint" failure
4084         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
4085         exempt all *.class file names, for lib/javaversion.class.
4086
4087 2012-04-15  Bruno Haible  <bruno@clisp.org>
4088
4089         lseek: Make configure test independent of environment.
4090         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
4091         Windows, we know that lseek() on pipes is broken; skip the runtime
4092         test.
4093
4094 2012-04-14  Bruno Haible  <bruno@clisp.org>
4095
4096         stat: Bypass buggy override in mingw64.
4097         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
4098         * lib/stat.c (stat) [mingw64]: Define to _stat.
4099         * doc/posix-functions/stat.texi: Mention mingw64 bug.
4100
4101 2012-04-14  Bruno Haible  <bruno@clisp.org>
4102
4103         pathmax: Fix compilation error on MSVC 9.
4104         * modules/pathmax (Depends-on): Add unistd.
4105
4106 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
4107
4108         README: document pointer comparison assumption
4109         * README (Portability guidelines): Document assumption about
4110         pointer comparisons, in response to a recent bug-gnulib comment by
4111         Jeffrey Kegler.
4112
4113 2012-04-12  Bruno Haible  <bruno@clisp.org>
4114
4115         Tests for module 'getrusage'.
4116         * modules/getrusage-tests: New file.
4117         * tests/test-getrusage.c: New file.
4118
4119         New module 'getrusage'.
4120         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
4121         warn-on-use.h.
4122         (getrusage): New declaration.
4123         * lib/getrusage.c: New file.
4124         * m4/getrusage.m4: New file.
4125         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
4126         is declared.
4127         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
4128         HAVE_GETRUSAGE.
4129         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
4130         snippet/c++defs, snippet/warn-on-use.
4131         (Makefile.am): Update generation of sys/resource.h. Substitute
4132         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
4133         * modules/getrusage: New file.
4134         * doc/posix-functions/getrusage.texi: Mention the new module.
4135
4136 2012-04-12  Bruno Haible  <bruno@clisp.org>
4137
4138         Tests for module 'sys_resource'.
4139         * modules/sys_resource-tests: New file.
4140         * tests/test-sys_resource.c: New file.
4141
4142         New module 'sys_resource'.
4143         * lib/sys_resource.in.h: New file.
4144         * m4/sys_resource_h.m4: New file.
4145         * modules/sys_resource: New file.
4146         * doc/posix-headers/sys_resource.texi: Mention the new module.
4147
4148 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
4149
4150         ioctl: Fix compilation error on mingw.
4151         * lib/ioctl.c: Include <windows.h>.
4152         Also reported by Ray Satiro <raysatiro@yahoo.com>.
4153
4154 2012-04-04  Jim Meyering  <meyering@redhat.com>
4155
4156         regex: correct #pragma guard expression
4157         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
4158         not 4.3.  Correct its cpp guard expression.
4159
4160 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
4161
4162         regex: remove unnecessary type punning
4163         Problem reported by Vladimir Serbinenko in
4164         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
4165         * lib/regex.h (struct re_pattern_buffer): Change the type of
4166         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
4167         Fix comment to match code.
4168         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
4169         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
4170         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
4171         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
4172         (set_regs):
4173         Omit no-longer-necessary casts.
4174
4175 2012-04-03  Bruno Haible  <bruno@clisp.org>
4176
4177         Tests for module 'ilogbl'.
4178         * modules/ilogbl-tests: New file.
4179         * tests/test-ilogbl.c: New file.
4180
4181         New module 'ilogbl'.
4182         * lib/math.in.h (ilogbl): New declaration.
4183         * lib/ilogbl.c: New file.
4184         * m4/ilogbl.m4: New file.
4185         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
4186         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
4187         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
4188         Split sed invocation, to avoid the limit of 100 substitutions of
4189         HP-UX 'sed'.
4190         * modules/ilogbl: New file.
4191         * tests/test-math-c++.cc: Check the declaration of ilogbl.
4192         * doc/posix-functions/ilogbl.texi: Mention the new module.
4193
4194 2012-04-03  Bruno Haible  <bruno@clisp.org>
4195
4196         Tests for module 'ilogbf'.
4197         * modules/ilogbf-tests: New file.
4198         * tests/test-ilogbf.c: New file.
4199
4200         New module 'ilogbf'.
4201         * lib/math.in.h (ilogbf): New declaration.
4202         * lib/ilogbf.c: New file.
4203         * m4/ilogbf.m4: New file.
4204         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
4205         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
4206         REPLACE_ILOGBF.
4207         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
4208         REPLACE_ILOGBF.
4209         * modules/ilogbf: New file.
4210         * tests/test-math-c++.cc: Check the declaration of ilogbf.
4211         * doc/posix-functions/ilogbf.texi: Mention the new module.
4212
4213 2012-04-03  Bruno Haible  <bruno@clisp.org>
4214
4215         Tests for module 'ilogb'.
4216         * modules/ilogb-tests: New file.
4217         * tests/test-ilogb.c: New file.
4218         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
4219         tests/test-logb-ieee.h.
4220
4221         New module 'ilogb'.
4222         * lib/math.in.h (ilogb): New declaration.
4223         * lib/ilogb.c: New file.
4224         * m4/ilogb.m4: New file.
4225         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
4226         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
4227         REPLACE_ILOGB.
4228         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
4229         REPLACE_ILOGB.
4230         * modules/ilogb: New file.
4231         * tests/test-math-c++.cc: Check the declaration of ilogb.
4232         * doc/posix-functions/ilogb.texi: Mention the new module.
4233
4234 2012-04-03  Bruno Haible  <bruno@clisp.org>
4235
4236         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
4237         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
4238         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
4239         (main): Check their values.
4240         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
4241         problem.
4242
4243 2012-04-03  Bruno Haible  <bruno@clisp.org>
4244
4245         Tests for module 'logbl-ieee'.
4246         * modules/logbl-ieee-tests: New file.
4247         * tests/test-logbl-ieee.c: New file.
4248
4249         New module 'logbl-ieee'.
4250         * modules/logbl-ieee: New file.
4251
4252         Tests for module 'logb-ieee'.
4253         * modules/logb-ieee-tests: New file.
4254         * tests/test-logb-ieee.c: New file.
4255
4256         New module 'logb-ieee'.
4257         * modules/logb-ieee: New file.
4258
4259         Tests for module 'logbf-ieee'.
4260         * modules/logbf-ieee-tests: New file.
4261         * tests/test-logbf-ieee.c: New file.
4262         * tests/test-logb-ieee.h: New file.
4263
4264         New module 'logbf-ieee'.
4265         * modules/logbf-ieee: New file.
4266
4267 2012-04-03  Bruno Haible  <bruno@clisp.org>
4268
4269         Tests for module 'logbl'.
4270         * modules/logbl-tests: New file.
4271         * tests/test-logbl.c: New file.
4272
4273         New module 'logbl'.
4274         * lib/math.in.h (logbl): New declaration.
4275         * lib/logbl.c: New file.
4276         * m4/logbl.m4: New file.
4277         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
4278         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
4279         REPLACE_LOGBL.
4280         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
4281         REPLACE_LOGBL.
4282         * modules/logbl: New file.
4283         * tests/test-math-c++.cc: Check the declaration of logbl.
4284         * doc/posix-functions/logbl.texi: Mention the new module.
4285
4286 2012-04-02  Bruno Haible  <bruno@clisp.org>
4287
4288         Tests for module 'logbf'.
4289         * modules/logbf-tests: New file.
4290         * tests/test-logbf.c: New file.
4291
4292         New module 'logbf'.
4293         * lib/math.in.h (logbf): New declaration.
4294         * lib/logbf.c: New file.
4295         * m4/logbf.m4: New file.
4296         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
4297         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
4298         REPLACE_LOGBF.
4299         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
4300         REPLACE_LOGBF.
4301         * modules/logbf: New file.
4302         * tests/test-math-c++.cc: Check the declaration of logbf.
4303         * doc/posix-functions/logbf.texi: Mention the new module.
4304
4305 2012-04-02  Bruno Haible  <bruno@clisp.org>
4306
4307         logb tests: More tests.
4308         * tests/test-logb.h: New file, based on tests/test-logb.c and
4309         tests/test-frexp.h.
4310         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
4311         (main): Just invoke test_function.
4312         * modules/logb-tests (Files): Add tests/test-logb.h,
4313         tests/minus-zero.h, tests/randomd.c.
4314         (Makefile.am): Add randomd.c to test_logb_SOURCES.
4315
4316         logb: Provide replacement and workarounds.
4317         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
4318         is 1.
4319         * lib/logb.c: New file.
4320         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
4321         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
4322         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
4323         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
4324         * modules/logb (Files): Add lib/logb.c.
4325         (Depends-on): Add isfinite, frexp, isnand.
4326         (configure.ac): Compile the replacement code logb.c if needed.
4327         * tests/test-math-c++.cc: Check the declaration of logb.
4328         * doc/posix-functions/logb.texi: Mention the replacement and the bug
4329         with subnormal numbers.
4330
4331 2012-04-02  Bruno Haible  <bruno@clisp.org>
4332
4333         log10* tests: Speed up.
4334         * tests/test-log10.h (test_function): Reduce amount of random numbers
4335         to test.
4336
4337 2012-04-01  Bruno Haible  <bruno@clisp.org>
4338
4339         logf-ieee: Fix test whether logf works.
4340         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
4341
4342 2012-04-01  Bruno Haible  <bruno@clisp.org>
4343
4344         log10l: Work around log10l-ieee test failure on IRIX 6.5.
4345         * lib/log10l.c: Include <float.h>
4346         (log10l): On IRIX, normalize the +Infinity value.
4347         * modules/log10l (Depends-on): Add 'float'.
4348         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
4349         +Infinity.
4350
4351         log10f-ieee: Work around test failure on NetBSD 5.1.
4352         * m4/log10f-ieee.m4: New file.
4353         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
4354         test whether log10f works with a negative argument. Replace it if not.
4355         * lib/log10f.c (log10f): For negative arguments, return NaN.
4356         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
4357         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
4358         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
4359
4360         log10f-ieee: Work around test failure on Solaris 9.
4361         * modules/log10f-ieee (Depends-on): Add log10-ieee.
4362         (configure.ac): Require gl_FUNC_LOG10F.
4363
4364         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
4365         * m4/log10-ieee.m4: New file.
4366         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
4367         whether log10 works with a negative argument. Replace it if not.
4368         * lib/log10.c (log10): For negative arguments, return NaN.
4369         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
4370         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
4371         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
4372
4373         Tests for module 'log10l-ieee'.
4374         * modules/log10l-ieee-tests: New file.
4375         * tests/test-log10l-ieee.c: New file.
4376
4377         New module 'log10l-ieee'.
4378         * modules/log10l-ieee: New file.
4379
4380         Tests for module 'log10-ieee'.
4381         * modules/log10-ieee-tests: New file.
4382         * tests/test-log10-ieee.c: New file.
4383
4384         New module 'log10-ieee'.
4385         * modules/log10-ieee: New file.
4386
4387         Tests for module 'log10f-ieee'.
4388         * modules/log10f-ieee-tests: New file.
4389         * tests/test-log10f-ieee.c: New file.
4390         * tests/test-log10-ieee.h: New file.
4391
4392         New module 'log10f-ieee'.
4393         * modules/log10f-ieee: New file.
4394
4395 2012-04-01  Bruno Haible  <bruno@clisp.org>
4396
4397         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
4398         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
4399         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
4400         workaround.
4401         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
4402         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
4403         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
4404         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
4405         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
4406         (Depends-on): Update conditions.
4407         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
4408         IRIX 6.5, OSF/1 5.1 problems.
4409
4410 2012-04-01  Bruno Haible  <bruno@clisp.org>
4411
4412         log10f: Work around OSF/1 5.1 bug.
4413         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
4414         * lib/log10f.c (log10f): If logf exists, use it and provide just the
4415         workaround.
4416         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
4417         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
4418         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
4419         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
4420         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
4421         (Depends-on): Update conditions.
4422         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
4423
4424 2012-04-01  Bruno Haible  <bruno@clisp.org>
4425
4426         log10: Work around OSF/1 5.1 bug.
4427         * lib/math.in.h (log10): New declaration.
4428         * lib/log10.c: New file.
4429         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
4430         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
4431         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
4432         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
4433         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
4434         * modules/log10 (Files): Add lib/log10.c.
4435         (Depends-on): Add math.
4436         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
4437         * tests/test-math-c++.cc: Check the declaration of log10.
4438         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
4439
4440 2012-03-31  Bruno Haible  <bruno@clisp.org>
4441
4442         log10l tests: More tests.
4443         * modules/log10l-tests (Files): Add tests/test-log10l.h,
4444         tests/minus-zero.h, tests/randoml.c.
4445         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
4446         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
4447         (main): Invoke test_function.
4448
4449         log10f tests: More tests.
4450         * modules/log10f-tests (Files): Add tests/test-log10.h,
4451         tests/minus-zero.h, tests/randomf.c.
4452         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
4453         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
4454         (main): Invoke test_function.
4455
4456         log10 tests: More tests.
4457         * tests/test-log10.h: New file.
4458         * modules/log10-tests (Files): Add tests/test-log10.h,
4459         tests/minus-zero.h, tests/randomd.c.
4460         (Makefile.am): Add randomd.c to test_log10_SOURCES.
4461         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
4462         (main): Invoke test_function.
4463
4464 2012-03-31  Simon Josefsson  <simon@josefsson.org>
4465
4466         fflush: Fix syntax error.
4467         * lib/fflush.c: Include unused-parameter.h, needed for
4468         _GL_UNUSED_PARAMETER.
4469         * modules/fflush (Depends-on): Add snippet/unused-parameter.
4470
4471 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
4472
4473         regex: pacify GCC when compiling GRUB
4474         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
4475         a diagnostic.  Reported by Vladimir Serbinenko in
4476         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
4477
4478 2012-03-29  Eric Blake  <eblake@redhat.com>
4479
4480         stdio: don't assume gets any more
4481         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
4482         support.
4483         * modules/stdio (Makefile.am): Likewise.
4484         * lib/stdio-read.c (gets): Likewise.
4485         * tests/test-stdio-c++.cc: Likewise.
4486         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
4487         * lib/stdio.in.h (gets): Make warning occur in more places.
4488         * doc/posix-functions/gets.texi (gets): Update documentation.
4489         Reported by Christer Solskogen.
4490
4491         maint.mk: fix syntax checks without exclusions
4492         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
4493         Reported by Daniel P. Berrange.
4494
4495         strerror_r: avoid compiler warning
4496         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
4497         level.
4498
4499         fflush: avoid compiler warning
4500         * lib/fflush.c (update_fpos_cache): Mark variables that are
4501         potentially unused.
4502
4503 2012-03-25  Bruno Haible  <bruno@clisp.org>
4504
4505         Tests for module 'localeconv'.
4506         * modules/localeconv-tests: New file.
4507         * tests/test-localeconv.c: New file.
4508
4509         New module 'localeconv'.
4510         * lib/locale.in.h (localeconv): New declaration.
4511         * lib/localeconv.c: New file.
4512         * m4/localeconv.m4: New file.
4513         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
4514         REPLACE_LOCALECONV.
4515         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
4516         REPLACE_LOCALECONV.
4517         * modules/localeconv: New file.
4518         * modules/nl_langinfo (Depends-on): Add localeconv.
4519         * modules/human (Depends-on): Likewise.
4520         * doc/posix-functions/localeconv.texi: Mention the new module.
4521
4522 2012-03-25  Bruno Haible  <bruno@clisp.org>
4523
4524         locale: Provide a complete 'struct lconv'.
4525         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
4526         'struct lconv' does not contain int_p_cs_precedes.
4527         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
4528         * doc/posix-headers/locale.texi: Update.
4529
4530         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
4531         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
4532         * doc/posix-headers/locale.texi: Update.
4533
4534         locale: Provide a working 'struct lconv'.
4535         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
4536         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
4537         'struct lconv' does not even contain decimal_point.
4538         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
4539         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
4540         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
4541         * doc/posix-headers/locale.texi: Mention the problems with
4542         'struct lconv'.
4543         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
4544
4545 2012-03-24  Bruno Haible  <bruno@clisp.org>
4546
4547         Enable common subexpression optimization in GCC.
4548         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
4549         macros.
4550         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
4551         GCC attribute 'const'.
4552         (uc_locale_language): Declare with GCC attribute 'pure'.
4553         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
4554         with GCC attribute 'const'.
4555         * lib/unictype.in.h (uc_is_general_category_withtable,
4556         uc_combining_class, uc_combining_class_name,
4557         uc_combining_class_long_name, uc_bidi_class_name,
4558         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
4559         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
4560         uc_decimal_value, uc_digit_value, uc_numeric_value,
4561         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
4562         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
4563         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
4564         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
4565         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
4566         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
4567         Declare with GCC attribute 'const'.
4568         (uc_general_category_name, uc_general_category_long_name,
4569         uc_general_category_byname, uc_general_category,
4570         uc_is_general_category, uc_combining_class_byname,
4571         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
4572         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
4573         Declare with GCC attribute 'pure'.
4574         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
4575         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
4576         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
4577         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
4578         with GCC attribute 'pure'.
4579         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
4580         'const'.
4581         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
4582         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
4583         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
4584         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
4585         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
4586         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
4587         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
4588         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
4589         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
4590         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
4591         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
4592         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
4593         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
4594         GCC attribute 'pure'.
4595         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
4596         'const'.
4597         * lib/uniwidth.in.h (uc_width): Simplify declaration.
4598         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
4599         u32_strwidth): Declare with GCC attribute 'pure'.
4600
4601         Enable common subexpression optimization in GCC.
4602         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
4603         (alphasort): Declare with GCC attribute 'pure'.
4604         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
4605         (atoll): Declare with GCC attribute 'pure'.
4606         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
4607         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
4608         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
4609         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
4610         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
4611         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
4612         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
4613
4614 2012-03-24  Bruno Haible  <bruno@clisp.org>
4615
4616         gnulib-tool: Avoid unintended error output from 'cmp'.
4617         * gnulib-tool (func_add_file, func_update_file, func_import): Use
4618         "cmp -s", not "cmp > /dev/null".
4619
4620 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
4621
4622         gnulib-tool: fix imprecise comments w.r.t. an automake bug
4623
4624         It's not just Automake versions < 1.9b that creates an empty
4625         pkgdatadir at installation time if pkgdata_DATA is specified
4626         to empty; modern automake versions do this as well, at least
4627         until automake 1.11.4 (not yet released at the moment of writing,
4628         but soon to appear).  That behaviour was generally considered a
4629         feature rather than a bug, at least until this discussion:
4630         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
4631
4632         See also automake bugs #10997 and #11030.
4633
4634         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
4635         reference to relevant automake bug numbers.
4636         (func_emit_tests_Makefile_am): Likewise.
4637
4638 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
4639
4640         announce-gen: use Digest::SHA when possible
4641         * build-aux/announce-gen: Use Digest::SHA when possible, falling
4642         back to Digest::SHA1 if necessary.
4643
4644 2012-03-20  Jim Meyering  <meyering@redhat.com>
4645
4646         tests: avoid gcc warnings about argv vs. const initializers
4647         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
4648         warnings about discarding 'const' qualifier from pointer target type.
4649         * tests/test-posix_spawn2.c (main): Likewise.
4650
4651 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
4652
4653         README-release: simplify slightly
4654         * top/README-release: Run "git checkout master" only once.
4655
4656 2012-03-15  Mark Wielaard  <mark@klomp.org>
4657
4658         git-merge-changelog: add specific example on how to use with hg.
4659         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
4660
4661 2012-03-18  Mark Wielaard  <mark@klomp.org>
4662
4663         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
4664
4665 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
4666
4667         git-version-gen: don't let "prefix" envvar cause trouble
4668         * build-aux/git-version-gen (prefix): Initialize properly,
4669         so as not to use a value specified via the environment.
4670         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
4671
4672 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
4673
4674         regex: diagnose too-large repeat counts in EREs
4675         Previously, the code did not diagnose the too-large repeat count
4676         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
4677         as if it were 'b\{1000000000}', which is unexpected.
4678         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
4679         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
4680         is a reasonable one for this problem.  Another option would be to
4681         create a new REG_OVERFLOW error for repeat counts that are too large.
4682         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
4683         count is too large, so that the caller can distinguish the two cases.
4684         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
4685         "Too large" return code, and that repeat counts are one example of this.
4686
4687 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
4688
4689         doc: some glibc x32 integer width issues
4690         * doc/posix-headers/sys_types.texi (sys/types.h):
4691         * doc/posix-headers/time.texi (time.h):
4692         Mention that glibc x32 does not conform to POSIX in a couple of
4693         areas related to integer widths.
4694
4695 2012-03-15  Bruno Haible  <bruno@clisp.org>
4696
4697         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
4698         * lib/fma.c (VOLATILE): New macro.
4699         (FUNC): Use it to work around a GCC compiler bug.
4700
4701 2012-03-13  Bruno Haible  <bruno@clisp.org>
4702
4703         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
4704         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
4705         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
4706         REPLACE_HYPOTL to 1.
4707         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
4708
4709 2012-03-13  Bruno Haible  <bruno@clisp.org>
4710
4711         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
4712         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
4713         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
4714         REPLACE_REMAINDERL to 1.
4715         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
4716         bug.
4717
4718 2012-03-13  Bruno Haible  <bruno@clisp.org>
4719
4720         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
4721         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
4722         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
4723         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
4724         too big rounding errors.
4725         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
4726         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
4727         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
4728         (Depends-on): Update conditions.
4729         * tests/test-sqrtl.c (my_ldexpl): New function.
4730         (main): Add test of a particular value.
4731         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
4732
4733 2012-03-13  Pádraig Brady  <P@draigBrady.com>
4734
4735         doc: Update timer_* platform portability notes.
4736         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
4737         that always return ENOSYS.
4738         * doc/posix-functions/timer_delete.texi: Likewise.
4739         * doc/posix-functions/timer_gettime.texi: Likewise.
4740         * doc/posix-functions/timer_settime.texi: Likewise.
4741
4742 2012-03-13  Bruno Haible  <bruno@clisp.org>
4743
4744         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
4745         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
4746         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
4747         REPLACE_CBRTL to 1.
4748         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
4749
4750 2012-03-13  Bruno Haible  <bruno@clisp.org>
4751
4752         remainderl: Avoid compilation error on AIX >= 5.2.
4753         * lib/math.in.h (remainderl): Undefine macro from the system header.
4754
4755 2012-03-13  Bruno Haible  <bruno@clisp.org>
4756
4757         Avoid compilation errors with MSVC option -fp:strict.
4758         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
4759         * lib/cbrtf.c: Likewise.
4760         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
4761
4762 2012-03-12  Bruno Haible  <bruno@clisp.org>
4763
4764         uninorm: Don't crash in out-of-memory conditions.
4765         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
4766         gracefully.
4767         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
4768         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
4769
4770 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
4771
4772         quote: fix syntax-check
4773         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
4774         also exports quote_quoting_options.
4775
4776 2012-03-12  Simon Josefsson  <simon@josefsson.org>
4777
4778         Collapse list of copyright years to ranges.  See
4779         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
4780         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
4781         build-aux/csharpexec.sh.in, build-aux/gnupload,
4782         build-aux/install-reloc, build-aux/javacomp.sh.in,
4783         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
4784         build-aux/move-if-change, build-aux/reloc-ldflags,
4785         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
4786
4787 2012-03-11  Bruno Haible  <bruno@clisp.org>
4788
4789         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
4790         * m4/log2f-ieee.m4: New file.
4791         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
4792         whether log2f works with a minus zero argument. Replace it if not.
4793         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
4794         (Depends-on): Add log2-ieee.
4795         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
4796         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
4797
4798         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
4799         * m4/log2-ieee.m4: New file.
4800         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
4801         whether log2 works with a minus zero argument. Replace it if not.
4802         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
4803         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
4804         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
4805
4806         Tests for module 'log2l-ieee'.
4807         * modules/log2l-ieee-tests: New file.
4808         * tests/test-log2l-ieee.c: New file.
4809
4810         New module 'log2l-ieee'.
4811         * modules/log2l-ieee: New file.
4812
4813         Tests for module 'log2-ieee'.
4814         * modules/log2-ieee-tests: New file.
4815         * tests/test-log2-ieee.c: New file.
4816
4817         New module 'log2-ieee'.
4818         * modules/log2-ieee: New file.
4819
4820         Tests for module 'log2f-ieee'.
4821         * modules/log2f-ieee-tests: New file.
4822         * tests/test-log2f-ieee.c: New file.
4823         * tests/test-log2-ieee.h: New file.
4824
4825         New module 'log2f-ieee'.
4826         * modules/log2f-ieee: New file.
4827
4828 2012-03-11  Bruno Haible  <bruno@clisp.org>
4829
4830         Tests for module 'log2l'.
4831         * modules/log2l-tests: New file.
4832         * tests/test-log2l.c: New file.
4833
4834         New module 'log2l'.
4835         * lib/math.in.h (log2l): New declaration.
4836         * lib/log2l.c: New file.
4837         * m4/log2l.m4: New file.
4838         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
4839         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
4840         REPLACE_LOG2L.
4841         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
4842         REPLACE_LOG2L.
4843         * modules/log2l: New file.
4844         * tests/test-math-c++.cc: Check the declaration of log2l.
4845         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
4846         and OSF/1 problems.
4847
4848 2012-03-11  Bruno Haible  <bruno@clisp.org>
4849
4850         Tests for module 'log2f'.
4851         * modules/log2f-tests: New file.
4852         * tests/test-log2f.c: New file.
4853
4854         New module 'log2f'.
4855         * lib/math.in.h (log2f): New declaration.
4856         * lib/log2f.c: New file.
4857         * m4/log2f.m4: New file.
4858         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
4859         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
4860         REPLACE_LOG2F.
4861         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
4862         REPLACE_LOG2F.
4863         * modules/log2f: New file.
4864         * tests/test-math-c++.cc: Check the declaration of log2f.
4865         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
4866         and OSF/1 and Cygwin problems.
4867
4868 2012-03-11  Bruno Haible  <bruno@clisp.org>
4869
4870         Tests for module 'log2'.
4871         * modules/log2-tests: New file.
4872         * tests/test-log2.c: New file.
4873         * tests/test-log2.h: New file.
4874
4875         New module 'log2'.
4876         * lib/math.in.h (log2): New declaration.
4877         * lib/log2.c: New file.
4878         * m4/log2.m4: New file.
4879         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
4880         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
4881         REPLACE_LOG2.
4882         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
4883         REPLACE_LOG2.
4884         * modules/log2: New file.
4885         * tests/test-math-c++.cc: Check the declaration of log2.
4886         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
4887         and OSF/1 and Cygwin problems.
4888
4889 2012-03-11  Bruno Haible  <bruno@clisp.org>
4890
4891         exp2* tests: More tests.
4892         * tests/test-exp2.h (test_function): Test all integral arguments that
4893         don't need to overflow or denormalized numbers.
4894         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
4895         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
4896         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
4897
4898 2012-03-10  Bruno Haible  <bruno@clisp.org>
4899
4900         log1pl-ieee: Work around test failure on AIX 7.1.
4901         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
4902
4903         log1pl-ieee: Work around test failure on IRIX 6.5.
4904         * m4/log1pl-ieee.m4: New file.
4905         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
4906         test whether log1pl works with a minus zero argument. Replace it if
4907         not.
4908         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
4909         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
4910         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
4911         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
4912         (Depends-on): Update conditions.
4913         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
4914         m4/signbit.m4.
4915         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
4916         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
4917
4918         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
4919         * m4/log1pf-ieee.m4: New file.
4920         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
4921         test whether log1pf works with a minus zero argument. Replace it if
4922         not.
4923         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
4924         m4/signbit.m4.
4925         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
4926         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
4927
4928         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
4929         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
4930         (configure.ac): Require gl_FUNC_LOG1PF.
4931
4932         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
4933         * m4/log1p-ieee.m4: New file.
4934         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
4935         whether log1p works with a minus zero argument. Replace it if not.
4936         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
4937         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
4938         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
4939         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
4940         (Depends-on): Update conditions.
4941         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
4942         m4/signbit.m4.
4943         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
4944         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
4945
4946         Tests for module 'log1pl-ieee'.
4947         * modules/log1pl-ieee-tests: New file.
4948         * tests/test-log1pl-ieee.c: New file.
4949
4950         New module 'log1pl-ieee'.
4951         * modules/log1pl-ieee: New file.
4952
4953         Tests for module 'log1p-ieee'.
4954         * modules/log1p-ieee-tests: New file.
4955         * tests/test-log1p-ieee.c: New file.
4956
4957         New module 'log1p-ieee'.
4958         * modules/log1p-ieee: New file.
4959
4960         Tests for module 'log1pf-ieee'.
4961         * modules/log1pf-ieee-tests: New file.
4962         * tests/test-log1pf-ieee.c: New file.
4963         * tests/test-log1p-ieee.h: New file.
4964
4965         New module 'log1pf-ieee'.
4966         * modules/log1pf-ieee: New file.
4967
4968 2012-03-10  Bruno Haible  <bruno@clisp.org>
4969
4970         Tests for module 'log1pl'.
4971         * modules/log1pl-tests: New file.
4972         * tests/test-log1pl.c: New file.
4973
4974         New module 'log1pl'.
4975         * lib/math.in.h (log1pl): New declaration.
4976         * lib/log1pl.c: New file.
4977         * m4/log1pl.m4: New file.
4978         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
4979         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
4980         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
4981         * modules/log1pl: New file.
4982         * tests/test-math-c++.cc: Check the declaration of log1pl.
4983         * doc/posix-functions/log1pl.texi: Mention the new module.
4984
4985 2012-03-10  Bruno Haible  <bruno@clisp.org>
4986
4987         Tests for module 'log1pf'.
4988         * modules/log1pf-tests: New file.
4989         * tests/test-log1pf.c: New file.
4990
4991         New module 'log1pf'.
4992         * lib/math.in.h (log1pf): New declaration.
4993         * lib/log1pf.c: New file.
4994         * m4/log1pf.m4: New file.
4995         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
4996         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
4997         REPLACE_LOG1PF.
4998         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
4999         REPLACE_LOG1PF.
5000         * modules/log1pf: New file.
5001         * tests/test-math-c++.cc: Check the declaration of log1pf.
5002         * doc/posix-functions/log1pf.texi: Mention the new module.
5003
5004 2012-03-10  Bruno Haible  <bruno@clisp.org>
5005
5006         log1p tests: More tests.
5007         * tests/test-log1p.h: New file.
5008         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
5009         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
5010         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
5011         (main): Invoke test_function.
5012
5013         log1p: Provide replacement for Minix and MSVC.
5014         * lib/math.in.h (log1p): New declaration.
5015         * lib/log1p.c: New file.
5016         * m4/log1p.m4: New file.
5017         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
5018         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
5019         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
5020         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
5021         (Depends-on): Add math, isnand, log, round.
5022         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
5023         HAVE_LOG1P is 0.
5024         * tests/test-math-c++.cc: Check the declaration of log1p.
5025         * doc/posix-functions/log1p.texi: Mention the replacement.
5026
5027 2012-03-10  Bruno Haible  <bruno@clisp.org>
5028
5029         math tests: Small simplification.
5030         * tests/test-exp.h (test_function): Use the same err_bound for
5031         'double' on platforms with sizeof (long double) == sizeof (double)
5032         than on platforms with sizeof (long double) > sizeof (double).
5033         * tests/test-exp2.h (test_function): Likewise.
5034         * tests/test-expm1.h (test_function): Likewise.
5035         * tests/test-log.h (test_function): Likewise.
5036
5037 2012-03-10  Bruno Haible  <bruno@clisp.org>
5038
5039         Fix some comments.
5040         * lib/expl.c: Fix an ambiguous comment.
5041         * lib/expm1.c: Likewise.
5042         * lib/expm1l.c: Likewise.
5043         * lib/exp2.c: Likewise.
5044         * lib/exp2l.c: Likewise.
5045
5046 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
5047
5048         regex: allow inclusion of <regex.h> before <limits.h>
5049         Without this patch, portable programs had to include <limits.h> before
5050         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
5051         I ran into this problem with a test version of GNU grep on Solaris 8.
5052         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
5053         This is done conditionally so that this change can be merged
5054         back to glibc.
5055         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
5056         using the included regex.
5057
5058         fts: depend on fdopendir
5059         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
5060         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
5061         problem was introduced when fdopendir was split out.
5062
5063 2012-03-10  Bruno Haible  <bruno@clisp.org>
5064
5065         Remove unused variables.
5066         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
5067         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
5068
5069 2012-03-10  Bruno Haible  <bruno@clisp.org>
5070
5071         isnanf-nolibm: Fix last commit.
5072         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
5073
5074         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
5075         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
5076
5077 2012-03-10  Bruno Haible  <bruno@clisp.org>
5078
5079         logf-ieee: Work around test failure on NetBSD 5.1.
5080         * m4/logf-ieee.m4: New file.
5081         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
5082         whether logf works with a negative argument. Replace it if not.
5083         * lib/logf.c (logf): For negative arguments, return NaN.
5084         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
5085         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
5086         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
5087
5088         logf-ieee: Work around test failure on Solaris 9.
5089         * modules/logf-ieee (Depends-on): Add log-ieee.
5090         (configure.ac): Require gl_FUNC_LOGF.
5091
5092         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
5093         * m4/log-ieee.m4: New file.
5094         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
5095         log works with a negative argument. Replace it if not.
5096         * lib/log.c (log): For negative arguments, return NaN.
5097         * modules/log-ieee (Files): Add m4/log-ieee.m4.
5098         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
5099         * doc/posix-functions/log.texi: Mention the log-ieee module.
5100
5101         Tests for module 'logl-ieee'.
5102         * modules/logl-ieee-tests: New file.
5103         * tests/test-logl-ieee.c: New file.
5104
5105         New module 'logl-ieee'.
5106         * modules/logl-ieee: New file.
5107
5108         Tests for module 'log-ieee'.
5109         * modules/log-ieee-tests: New file.
5110         * tests/test-log-ieee.c: New file.
5111
5112         New module 'log-ieee'.
5113         * modules/log-ieee: New file.
5114
5115         Tests for module 'logf-ieee'.
5116         * modules/logf-ieee-tests: New file.
5117         * tests/test-logf-ieee.c: New file.
5118         * tests/test-log-ieee.h: New file.
5119
5120         New module 'logf-ieee'.
5121         * modules/logf-ieee: New file.
5122
5123 2012-03-10  Bruno Haible  <bruno@clisp.org>
5124
5125         log: Fix bug introduced on 2012-03-09.
5126         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
5127
5128 2012-03-10  Pádraig Brady  <P@draigBrady.com>
5129
5130         timer-time: link explicitly with pthreads on glibc
5131         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
5132         to support static linking, when newer glibc is
5133         detected, as that contains pthread emulation of
5134         POSIX timer functions where required.
5135         * modules/timer-time: Depend on threadlib to
5136         pull in the appropriate library to link.
5137
5138 2012-03-10  Bruno Haible  <bruno@clisp.org>
5139
5140         log* tests: More tests.
5141         * tests/test-log.h: New file.
5142         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
5143         (main): Invoke test_function.
5144         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
5145         (main): Invoke test_function.
5146         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
5147         (main): Invoke test_function.
5148         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
5149         tests/randomd.c.
5150         (Makefile.am): Add randomd.c to test_log_SOURCES.
5151         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
5152         tests/randomf.c.
5153         (Makefile.am): Add randomf.c to test_logf_SOURCES.
5154         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
5155         tests/randoml.c.
5156         (Depends-on): Add 'float'.
5157         (Makefile.am): Add randoml.c to test_logl_SOURCES.
5158
5159 2012-03-09  Bruno Haible  <bruno@clisp.org>
5160
5161         logl: Work around OSF/1 5.1 bug.
5162         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
5163         * lib/logl.c (logl): If logl exists, use it and provide just the
5164         workaround.
5165         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
5166         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
5167         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
5168         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
5169         * modules/logl (configure.ac): Consider REPLACE_LOGL.
5170         (Depends-on): Update conditions.
5171         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
5172
5173 2012-03-09  Bruno Haible  <bruno@clisp.org>
5174
5175         logf: Work around OSF/1 5.1 bug.
5176         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
5177         * lib/logf.c (logf): If logf exists, use it and provide just the
5178         workaround.
5179         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
5180         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
5181         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
5182         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
5183         * modules/logf (configure.ac): Consider REPLACE_LOGF.
5184         (Depends-on): Update conditions.
5185         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
5186
5187 2012-03-09  Bruno Haible  <bruno@clisp.org>
5188
5189         log: Work around OSF/1 5.1 bug.
5190         * lib/math.in.h (log): New declaration.
5191         * lib/log.c: New file.
5192         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
5193         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
5194         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
5195         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
5196         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
5197         * modules/log (Files): Add lib/log.c.
5198         (Depends-on): Add math.
5199         (configure.ac): If REPLACE_LOG is 1, compile an override.
5200         * tests/test-math-c++.cc: Check the declaration of log.
5201         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
5202
5203 2012-03-09  Jim Meyering  <meyering@redhat.com>
5204
5205         readtokens.c: adjust wording in a comment
5206         * lib/readtokens.c: Insert omitted "that" in a comment.
5207
5208 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
5209
5210         modechange: add notations +40, 00440, etc.
5211         * lib/modechange.c (mode_compile): Support new notations
5212         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
5213
5214 2012-03-08  Bruno Haible  <bruno@clisp.org>
5215
5216         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
5217         * m4/exp2l-ieee.m4: New file.
5218         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
5219         test whether exp2l works with a NaN argument and with a negative
5220         infinity argument. Replace it if not.
5221         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
5222         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
5223         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
5224         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
5225         (Depends-on): Update conditions.
5226         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
5227         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
5228         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
5229
5230         Tests for module 'exp2l-ieee'.
5231         * modules/exp2l-ieee-tests: New file.
5232         * tests/test-exp2l-ieee.c: New file.
5233
5234         New module 'exp2l-ieee'.
5235         * modules/exp2l-ieee: New file.
5236
5237         Tests for module 'exp2-ieee'.
5238         * modules/exp2-ieee-tests: New file.
5239         * tests/test-exp2-ieee.c: New file.
5240
5241         New module 'exp2-ieee'.
5242         * modules/exp2-ieee: New file.
5243
5244         Tests for module 'exp2f-ieee'.
5245         * modules/exp2f-ieee-tests: New file.
5246         * tests/test-exp2f-ieee.c: New file.
5247         * tests/test-exp2-ieee.h: New file.
5248
5249         New module 'exp2f-ieee'.
5250         * modules/exp2f-ieee: New file.
5251
5252 2012-03-08  Bruno Haible  <bruno@clisp.org>
5253
5254         Tests for module 'exp2l'.
5255         * modules/exp2l-tests: New file.
5256         * tests/test-exp2l.c: New file.
5257
5258         New module 'exp2l'.
5259         * lib/math.in.h (exp2l): New declaration.
5260         * lib/exp2l.c: New file.
5261         * lib/expl-table.c: New file, extracted from lib/expl.c.
5262         * lib/expl.c (gl_expl_table): New declaration.
5263         (expl): Remove expl_table. Update reference.
5264         * m4/exp2l.m4: New file.
5265         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
5266         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
5267         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
5268         * modules/exp2l: New file.
5269         * modules/expl (Files): Add lib/expl-table.c.
5270         (configure.ac): Compile also expl-table.c.
5271         * tests/test-math-c++.cc: Check the declaration of exp2l.
5272         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
5273         problem.
5274
5275 2012-03-08  Bruno Haible  <bruno@clisp.org>
5276
5277         Tests for module 'exp2f'.
5278         * modules/exp2f-tests: New file.
5279         * tests/test-exp2f.c: New file.
5280
5281         New module 'exp2f'.
5282         * lib/math.in.h (exp2f): New declaration.
5283         * lib/exp2f.c: New file.
5284         * m4/exp2f.m4: New file.
5285         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
5286         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
5287         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
5288         * modules/exp2f: New file.
5289         * tests/test-math-c++.cc: Check the declaration of exp2f.
5290         * doc/posix-functions/exp2f.texi: Mention the new module and the
5291         IRIX problem.
5292
5293 2012-03-08  Bruno Haible  <bruno@clisp.org>
5294
5295         Tests for module 'exp2'.
5296         * modules/exp2-tests: New file.
5297         * tests/test-exp2.c: New file.
5298         * tests/test-exp2.h: New file.
5299
5300         New module 'exp2'.
5301         * lib/math.in.h (exp2): New declaration.
5302         * lib/exp2.c: New file.
5303         * m4/exp2.m4: New file.
5304         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
5305         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
5306         REPLACE_EXP2.
5307         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
5308         REPLACE_EXP2.
5309         * modules/exp2: New file.
5310         * tests/test-math-c++.cc: Check the declaration of exp2.
5311         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
5312         and OpenBSD problems.
5313
5314 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
5315
5316         savedir: fix comment typo
5317         * lib/savedir.c (savedirstream): Fix typo in comment.
5318
5319 2012-03-08  Bruno Haible  <bruno@clisp.org>
5320
5321         test-readtokens.c: use const; remove unwarranted cast
5322         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
5323
5324 2012-03-08  Bruno Haible  <bruno@clisp.org>
5325
5326         fmal: Avoid compilation error on AIX.
5327         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
5328         AIX 5.2..7.1.
5329
5330 2012-03-08  Bruno Haible  <bruno@clisp.org>
5331
5332         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
5333         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
5334         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
5335         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
5336         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
5337         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
5338         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
5339
5340 2012-03-08  Bruno Haible  <bruno@clisp.org>
5341
5342         remainderf: Override buggy system function on IRIX 6.5.
5343         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
5344         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
5345         when it exists.
5346         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
5347
5348 2012-03-08  Jim Meyering  <meyering@redhat.com>
5349
5350         test-readtokens.c: avoid const-related compilation warnings
5351         * tests/test-readtokens.c: Avoid const-related compilation warnings.
5352
5353 2012-03-07  Jim Meyering  <meyering@redhat.com>
5354             Bruno Haible  <bruno@clisp.org>
5355
5356         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
5357         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
5358         tests/randomd.c.
5359         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
5360         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
5361         tests/randoml.c.
5362         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
5363
5364 2012-03-07  Bruno Haible  <bruno@clisp.org>
5365
5366         expm1l: Avoid compilation error on AIX.
5367         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
5368         AIX 5.2..7.1.
5369
5370 2012-03-07  Bruno Haible  <bruno@clisp.org>
5371
5372         expm1l: Don't override undeclared system function on IRIX 6.5.
5373         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
5374         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
5375         it exists. Set HAVE_DECL_EXPM1L.
5376         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
5377         HAVE_EXPM1L.
5378         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
5379         HAVE_EXPM1L.
5380         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
5381
5382 2012-03-07  Bruno Haible  <bruno@clisp.org>
5383
5384         remainderl: Don't override undeclared system function on IRIX 6.5.
5385         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
5386         HAVE_REMAINDERL.
5387         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
5388         declared when it exists. Set HAVE_DECL_REMAINDERL.
5389         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
5390         not HAVE_REMAINDERL.
5391         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
5392         HAVE_REMAINDERL.
5393         * doc/posix-functions/remainderl.texi: Mention missing declaration
5394         problem.
5395
5396 2012-03-07  Bruno Haible  <bruno@clisp.org>
5397
5398         rintf: Don't override undeclared system function on IRIX 6.5.
5399         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
5400         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
5401         exists. Set HAVE_DECL_RINTF.
5402         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
5403         HAVE_RINTF.
5404         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
5405         HAVE_RINTF.
5406         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
5407
5408 2012-03-07  Bruno Haible  <bruno@clisp.org>
5409
5410         roundl: Avoid compilation error on AIX.
5411         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
5412         AIX 5.2..7.1.
5413
5414 2012-03-07  Bruno Haible  <bruno@clisp.org>
5415
5416         roundl: Don't override undeclared system function on IRIX 6.5.
5417         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
5418         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
5419         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
5420         * modules/roundl (configure.ac): For replacement code, test
5421         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
5422         (Depends-on): Update conditions.
5423         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
5424
5425 2012-03-07  Bruno Haible  <bruno@clisp.org>
5426
5427         roundf: Don't override undeclared system function on IRIX 6.5.
5428         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
5429         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
5430         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
5431         * modules/roundf (configure.ac): For replacement code, test
5432         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
5433         (Depends-on): Update conditions.
5434         * modules/roundf-ieee (Depends-on): Update conditions.
5435         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
5436
5437 2012-03-07  Bruno Haible  <bruno@clisp.org>
5438
5439         round: Don't override undeclared system function on IRIX 6.5.
5440         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
5441         argument.
5442         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
5443         also when it is not declared. Set HAVE_ROUND. For replacement code,
5444         test HAVE_ROUND, not HAVE_DECL_ROUND.
5445         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
5446         not HAVE_DECL_ROUND.
5447         (Depends-on): Update conditions.
5448         * modules/round-ieee (Depends-on): Update conditions.
5449         * doc/posix-functions/round.texi: Mention the IRIX problem.
5450
5451 2012-03-07  Bruno Haible  <bruno@clisp.org>
5452
5453         copysignf: Don't override undeclared system function on IRIX 6.5.
5454         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
5455         HAVE_COPYSIGNF.
5456         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
5457         declared when it exists. Set HAVE_DECL_COPYSIGNF.
5458         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
5459         not HAVE_COPYSIGNF.
5460         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
5461         HAVE_COPYSIGNF.
5462         * doc/posix-functions/copysignf.texi: Mention missing declaration
5463         problem.
5464
5465 2012-03-07  Jim Meyering  <meyering@redhat.com>
5466
5467         readtokens: add tests
5468         * modules/readtokens-tests: New file.
5469         * tests/test-readtokens.c: New file.
5470
5471 2012-03-07  Jim Meyering  <meyering@redhat.com>
5472
5473         quotearg: the module must now include quote.h
5474         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
5475         So must the module.
5476         * modules/quotearg (Files): Add quote.h.
5477
5478 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
5479
5480         readtokens: avoid core dumps with unusual calling patterns
5481         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
5482         * lib/readtokens.c: Include limits.h.
5483         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
5484         (readtoken): Don't cache the delimiters; the cache code was buggy
5485         if !delim && saved_delim, or if the new n_delim differs from the old.
5486         Also, it wasn't thread-safe.
5487
5488 2012-03-07  Bruno Haible  <bruno@clisp.org>
5489
5490         quote: Adhere to common module description layout.
5491         * modules/quote (Makefile.am): Add back empty section.
5492
5493 2012-03-06  Akim Demaille  <demaille@gostai.com>
5494
5495         quote: fuse into quotearg
5496         This patch is made for the benefit of Bison.
5497         quote does not leave the choice of the quoting style to the user.
5498         quoting_style provides poor customizability, yet quoting_options,
5499         which is very rich, is hidden inside quotearg.c.  So in order to
5500         allow quote customization, move its implementation to quotearg.c.
5501         * lib/quote.c: Remove.
5502         * modules/quote: Adjust.
5503         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
5504         warning: provide all the members of literal structs.
5505         (quote_quoting_options): New.
5506         (quote, quote_n): Import implementation from quote.c.
5507         * lib/quote.h: Import the comments from quote.c.
5508         (quote_quoting_options): New.
5509
5510 2012-03-06  Bruno Haible  <bruno@clisp.org>
5511
5512         Tests for module 'expm1l-ieee'.
5513         * modules/expm1l-ieee-tests: New file.
5514         * tests/test-expm1l-ieee.c: New file.
5515
5516         New module 'expm1l-ieee'.
5517         * modules/expm1l-ieee: New file.
5518
5519         Tests for module 'expm1f-ieee'.
5520         * modules/expm1f-ieee-tests: New file.
5521         * tests/test-expm1f-ieee.c: New file.
5522
5523         New module 'expm1f-ieee'.
5524         * modules/expm1f-ieee: New file.
5525
5526         Tests for module 'expm1-ieee'.
5527         * modules/expm1-ieee-tests: New file.
5528         * tests/test-expm1-ieee.c: New file.
5529         * tests/test-expm1-ieee.h: New file.
5530
5531         New module 'expm1-ieee'.
5532         * modules/expm1-ieee: New file.
5533         * m4/expm1-ieee.m4: New file.
5534         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
5535         whether expm1 works with a minus zero argument. Replace it if not.
5536         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
5537         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
5538         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
5539         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
5540         (Depends-on): Update conditions.
5541         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
5542         AIX problem.
5543
5544 2012-03-06  Bruno Haible  <bruno@clisp.org>
5545
5546         Work around expm1f bug on IRIX 6.5.
5547         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
5548         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
5549         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
5550         not work.
5551         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
5552         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
5553         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
5554         (Depends-on): Update conditions.
5555         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
5556
5557 2012-03-06  Bruno Haible  <bruno@clisp.org>
5558
5559         Tests for module 'expm1l'.
5560         * modules/expm1l-tests: New file.
5561         * tests/test-expm1l.c: New file.
5562
5563         New module 'expm1l'.
5564         * lib/math.in.h (expm1l): New declaration.
5565         * lib/expm1l.c: New file.
5566         * m4/expm1l.m4: New file.
5567         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
5568         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
5569         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
5570         * modules/expm1l: New file.
5571         * tests/test-math-c++.cc: Check the declaration of expm1l.
5572         * doc/posix-functions/expm1l.texi: Mention the new module.
5573
5574 2012-03-06  Bruno Haible  <bruno@clisp.org>
5575
5576         Tests for module 'expm1f'.
5577         * modules/expm1f-tests: New file.
5578         * tests/test-expm1f.c: New file.
5579
5580         New module 'expm1f'.
5581         * lib/math.in.h (expm1f): New declaration.
5582         * lib/expm1f.c: New file.
5583         * m4/expm1f.m4: New file.
5584         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
5585         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
5586         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
5587         * modules/expm1f: New file.
5588         * tests/test-math-c++.cc: Check the declaration of expm1f.
5589         * doc/posix-functions/expm1f.texi: Mention the new module.
5590
5591 2012-03-06  Bruno Haible  <bruno@clisp.org>
5592
5593         Tests for module 'expm1'.
5594         * modules/expm1-tests: New file.
5595         * tests/test-expm1.c: New file.
5596         * tests/test-expm1.h: New file.
5597
5598         New module 'expm1'.
5599         * lib/math.in.h (expm1): New declaration.
5600         * lib/expm1.c: New file.
5601         * m4/expm1.m4: New file.
5602         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
5603         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
5604         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
5605         * modules/expm1: New file.
5606         * tests/test-math-c++.cc: Check the declaration of expm1.
5607         * doc/posix-functions/expm1.texi: Mention the new module.
5608
5609 2012-03-06  Bruno Haible  <bruno@clisp.org>
5610
5611         math: Ensure declarations of math functions.
5612         * modules/acosf (Depends-on): Add 'extensions'.
5613         * modules/asinf (Depends-on): Likewise.
5614         * modules/atan2f (Depends-on): Likewise.
5615         * modules/atanf (Depends-on): Likewise.
5616         * modules/cbrt (Depends-on): Likewise.
5617         * modules/cbrtf (Depends-on): Likewise.
5618         * modules/cbrtl (Depends-on): Likewise.
5619         * modules/copysignf (Depends-on): Likewise.
5620         * modules/copysignl (Depends-on): Likewise.
5621         * modules/cosf (Depends-on): Likewise.
5622         * modules/coshf (Depends-on): Likewise.
5623         * modules/expf (Depends-on): Likewise.
5624         * modules/fabsf (Depends-on): Likewise.
5625         * modules/fabsl (Depends-on): Likewise.
5626         * modules/fmaf (Depends-on): Likewise.
5627         * modules/fmal (Depends-on): Likewise.
5628         * modules/fmodf (Depends-on): Likewise.
5629         * modules/fmodl (Depends-on): Likewise.
5630         * modules/frexpf (Depends-on): Likewise.
5631         * modules/frexpl (Depends-on): Likewise.
5632         * modules/hypot (Depends-on): Likewise.
5633         * modules/hypotf (Depends-on): Likewise.
5634         * modules/hypotl (Depends-on): Likewise.
5635         * modules/ldexpf (Depends-on): Likewise.
5636         * modules/ldexpl (Depends-on): Likewise.
5637         * modules/log10f (Depends-on): Likewise.
5638         * modules/log10l (Depends-on): Likewise.
5639         * modules/log1p (Depends-on): Likewise.
5640         * modules/logb (Depends-on): Likewise.
5641         * modules/logf (Depends-on): Likewise.
5642         * modules/modff (Depends-on): Likewise.
5643         * modules/modfl (Depends-on): Likewise.
5644         * modules/powf (Depends-on): Likewise.
5645         * modules/remainderf (Depends-on): Likewise.
5646         * modules/remainderl (Depends-on): Likewise.
5647         * modules/rintf (Depends-on): Likewise.
5648         * modules/rintl (Depends-on): Likewise.
5649         * modules/sinf (Depends-on): Likewise.
5650         * modules/sinhf (Depends-on): Likewise.
5651         * modules/sqrtf (Depends-on): Likewise.
5652         * modules/tanf (Depends-on): Likewise.
5653         * modules/tanhf (Depends-on): Likewise.
5654         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
5655         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
5656         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
5657         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
5658         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
5659         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
5660         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
5661         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
5662         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
5663         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
5664         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
5665         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
5666         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
5667         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
5668         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
5669         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
5670         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
5671         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
5672         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
5673         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
5674         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
5675         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
5676         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
5677         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
5678         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
5679         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
5680         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
5681         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
5682         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
5683         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
5684         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
5685         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
5686         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
5687         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
5688         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
5689         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
5690         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
5691         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
5692         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
5693         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
5694         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
5695
5696 2012-03-06  Bruno Haible  <bruno@clisp.org>
5697
5698         math: Update module names in warnings.
5699         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
5700         tanl): Use specific module name in warn-on-use warning.
5701
5702 2012-03-06  Bruno Haible  <bruno@clisp.org>
5703
5704         expl: Simplify computation.
5705         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
5706
5707 2012-03-05  Bruno Haible  <bruno@clisp.org>
5708
5709         exp* tests: More tests.
5710         * tests/test-exp.h: New file.
5711         * tests/test-exp.c: Include <float.h> and test-exp.h.
5712         (main): Invoke test_function.
5713         * tests/test-expf.c: Include <float.h> and test-exp.h.
5714         (main): Invoke test_function.
5715         * tests/test-expl.c: Include <float.h> and test-exp.h.
5716         (main): Invoke test_function.
5717         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
5718         (Makefile.am): Add randomd.c to test_exp_SOURCES.
5719         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
5720         (Makefile.am): Add randomf.c to test_expf_SOURCES.
5721         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
5722         (Depends-on): Add 'float'.
5723         (Makefile.am): Add randoml.c to test_expl_SOURCES.
5724
5725         expl: Fix precision of computed result.
5726         * lib/expl.c: Completely rewritten.
5727         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
5728         (Maintainer): Add me.
5729         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
5730
5731 2012-03-05  Bruno Haible  <bruno@clisp.org>
5732
5733         cbrt* tests: More tests.
5734         * tests/test-cbrt.h: New file.
5735         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
5736         (main): Invoke test_function.
5737         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
5738         (main): Invoke test_function.
5739         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
5740         (main): Invoke test_function.
5741         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
5742         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
5743         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
5744         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
5745         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
5746         (Depends-on): Add 'float'.
5747         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
5748
5749 2012-03-05  Bruno Haible  <bruno@clisp.org>
5750
5751         hypot* tests: More tests.
5752         * tests/test-hypot.h: New file, partially extracted from
5753         tests/test-hypotl.c.
5754         * tests/test-hypot.c: Include test-hypot.h.
5755         (main): Invoke test_function.
5756         * tests/test-hypotf.c: Include test-hypot.h.
5757         (main): Invoke test_function.
5758         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
5759         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
5760         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
5761         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
5762         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
5763         tests/randomf.c.
5764         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
5765         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
5766         tests/randoml.c.
5767         (Depends-on): Add 'fpucw', 'float'.
5768         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
5769
5770 2012-03-05  Bruno Haible  <bruno@clisp.org>
5771
5772         fpucw: Doc about FreeBSD.
5773         * lib/fpucw.h: Mention FreeBSD in comments.
5774
5775 2012-03-04  Bruno Haible  <bruno@clisp.org>
5776
5777         sqrt* tests: More tests.
5778         * tests/test-sqrt.h: New file.
5779         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
5780         (main): Invoke test_function.
5781         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
5782         (main): Invoke test_function.
5783         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
5784         (main): Invoke test_function.
5785         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
5786         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
5787         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
5788         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
5789         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
5790         (Depends-on): Add 'float'.
5791         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
5792
5793 2012-03-04  Bruno Haible  <bruno@clisp.org>
5794
5795         remainder* tests: More tests.
5796         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
5797         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
5798         (main): Invoke test_function.
5799         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
5800         (main): Invoke test_function.
5801         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
5802         (main): Invoke test_function.
5803         * modules/remainder-tests (Files): Add tests/test-remainder.h,
5804         tests/randomd.c.
5805         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
5806         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
5807         tests/randomf.c.
5808         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
5809         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
5810         tests/randoml.c.
5811         (Depends-on): Add 'float'.
5812         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
5813
5814 2012-03-04  Bruno Haible  <bruno@clisp.org>
5815
5816         remainder, remainderf, remainderl: Fix computation for large quotients.
5817         * lib/remainder.c: Completely rewritten.
5818         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
5819         USE_FLOAT.
5820         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
5821         USE_LONG_DOUBLE.
5822         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
5823         isnand, isinf. Remove round, fma.
5824         * modules/remainderf (Files): Add lib/remainder.c.
5825         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
5826         Remove roundf, fmaf.
5827         * modules/remainderl (Files): Add lib/remainder.c.
5828         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
5829         isinf. Remove roundl, fmal.
5830         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
5831         REMAINDER_LIBM.
5832         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
5833         REMAINDERF_LIBM.
5834         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
5835         REMAINDERL_LIBM.
5836
5837 2012-03-04  Bruno Haible  <bruno@clisp.org>
5838
5839         fmod* tests: More tests.
5840         * tests/test-fmod.h (my_ldexp): New function.
5841         (test_function): Reduce amount of random numbers to test. Add tests
5842         of very large quotients x / y.
5843         * tests/test-fmod.c (MAX_EXP): New macro.
5844         * tests/test-fmodf.c (MAX_EXP): Likewise.
5845         * tests/test-fmodl.c (MAX_EXP): Likewise.
5846
5847 2012-03-04  Bruno Haible  <bruno@clisp.org>
5848
5849         fmod, fmodl: Fix computation for large quotients x / y.
5850         * lib/fmod.c: Completely rewritten.
5851         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
5852         USE_LONG_DOUBLE.
5853         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
5854         isnand. Remove fma.
5855         * modules/fmodl (Files): Add lib/fmod.c.
5856         (Depends-on): Add float, isfinite, signbit, fabsl,
5857         frexpl, ldexpl, isnanl. Remove fma.
5858         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
5859         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
5860
5861 2012-03-03  Bruno Haible  <bruno@clisp.org>
5862
5863         fmod* tests: More tests.
5864         * tests/test-fmod.h: New file.
5865         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
5866         (main): Invoke test_function.
5867         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
5868         (main): Invoke test_function.
5869         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
5870         (main): Invoke test_function.
5871         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
5872         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
5873         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
5874         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
5875         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
5876         (Depends-on): Add 'float'.
5877         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
5878
5879 2012-03-03  Bruno Haible  <bruno@clisp.org>
5880
5881         rint* tests: More tests.
5882         * tests/test-rint.h: New file, partially extracted from
5883         tests/test-rintl.c.
5884         * tests/test-rint.c: Include test-rint.h.
5885         (main): Invoke test_function.
5886         * tests/test-rintf.c: Include test-rint.h.
5887         (main): Invoke test_function.
5888         * tests/test-rintl.c: Include test-rint.h.
5889         (main): Invoke test_function.
5890         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
5891         (Makefile.am): Add randomd.c to test_rint_SOURCES.
5892         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
5893         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
5894         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
5895         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
5896
5897 2012-03-03  Bruno Haible  <bruno@clisp.org>
5898
5899         modf* tests: More tests.
5900         * tests/test-modf.h: New file.
5901         * tests/test-modf.c: Include <float.h> and test-modf.h.
5902         (main): Invoke test_function.
5903         * tests/test-modff.c: Include <float.h> and test-modf.h.
5904         (main): Invoke test_function.
5905         * tests/test-modfl.c: Include <float.h> and test-modf.h.
5906         (main): Invoke test_function.
5907         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
5908         (Makefile.am): Add randomd.c to test_modf_SOURCES.
5909         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
5910         (Makefile.am): Add randomf.c to test_modff_SOURCES.
5911         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
5912         (Depends-on): Add 'float'.
5913         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
5914
5915 2012-03-03  Bruno Haible  <bruno@clisp.org>
5916
5917         fabs* tests: More tests.
5918         * tests/test-fabs.h: New file, partially extracted from
5919         tests/test-fabsl.c.
5920         * tests/test-fabs.c (RANDOM): New macro.
5921         * tests/test-fabsf.c (RANDOM): New macro.
5922         * tests/test-fabsl.c (RANDOM): New macro.
5923         * modules/fabs-tests (Files): Add tests/randomd.c.
5924         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
5925         * modules/fabsf-tests (Files): Add tests/randomf.c.
5926         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
5927         * modules/fabsl-tests (Files): Add tests/randoml.c.
5928         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
5929
5930 2012-03-03  Bruno Haible  <bruno@clisp.org>
5931
5932         ldexp* tests: More tests.
5933         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
5934         * tests/test-ldexp.c (RANDOM): New macro.
5935         * tests/test-ldexpf.c (RANDOM): New macro.
5936         * tests/test-ldexpl.c (RANDOM): New macro.
5937         * modules/ldexp-tests (Files): Add tests/randomd.c.
5938         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
5939         * modules/ldexpf-tests (Files): Add tests/randomf.c.
5940         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
5941         * modules/ldexpl-tests (Files): Add tests/randoml.c.
5942         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
5943
5944 2012-03-03  Bruno Haible  <bruno@clisp.org>
5945
5946         frexp* tests: More tests.
5947         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
5948         * tests/test-frexp.c (RANDOM): New macro.
5949         * tests/test-frexpf.c (RANDOM): New macro.
5950         * tests/test-frexpl.c (RANDOM): New macro.
5951         * modules/frexp-tests (Files): Add tests/randomd.c.
5952         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
5953         * modules/frexpf-tests (Files): Add tests/randomf.c.
5954         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
5955         * modules/frexpl-tests (Files): Add tests/randoml.c.
5956         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
5957
5958 2012-03-03  Bruno Haible  <bruno@clisp.org>
5959
5960         Support for pseudo-random numbers in tests.
5961         * tests/randomf.c: New file.
5962         * tests/randomd.c: New file.
5963         * tests/randoml.c: New file.
5964         * tests/macros.h (randomf, randomd, randoml): New declarations.
5965
5966 2012-03-03  Bruno Haible  <bruno@clisp.org>
5967
5968         frexp* tests: Refactor.
5969         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
5970         * tests/test-frexp.c: Include and use it.
5971         * tests/test-frexpf.c: Likewise.
5972         * tests/test-frexpl.c: Likewise.
5973         * modules/frexp-tests (Files): Add tests/test-frexp.h.
5974         * modules/frexpf-tests (Files): Likewise.
5975         * modules/frexpl-tests (Files): Likewise.
5976
5977 2012-03-02  Jim Meyering  <meyering@redhat.com>
5978
5979         maint: don't specify XZ_OPT=-9ev in dist-related rule
5980         Using xz's -9 option is warranted only if you have a very large
5981         tarball (see xz's documentation for the sizes vs. presets), and
5982         requires 64MiB of memory at decompression time.
5983         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
5984         Automake's default of just "-e" is fine.  Override on a
5985         per-package basis by setting XZ_OPT e.g., in cfg.mk.
5986
5987 2012-03-01  Eric Blake  <eblake@redhat.com>
5988
5989         maint.mk: allow announcement for non-gnulib project
5990         * maint.mk (announcement): Skip gnulib version if not used.
5991
5992 2012-03-01  Jim Meyering  <meyering@redhat.com>
5993
5994         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
5995         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
5996         envvar settings cannot interfere.  Otherwise, setting envvars like
5997         prohibit=foo require=bar, etc. would cause spurious test failures.
5998
5999 2012-03-01  Eric Blake  <eblake@redhat.com>
6000
6001         maint.mk: add per-line exclusions to prohibitions
6002         * maint.mk (_sc_search_regexp): Add $exclude parameter.
6003         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
6004         (sc_const_long_option): Use it.
6005
6006 2012-03-01  Bruno Haible  <bruno@clisp.org>
6007
6008         Tests for module 'expl-ieee'.
6009         * modules/expl-ieee-tests: New file.
6010         * tests/test-expl-ieee.c: New file.
6011
6012         New module 'expl-ieee'.
6013         * modules/expl-ieee: New file.
6014
6015         Tests for module 'exp-ieee'.
6016         * modules/exp-ieee-tests: New file.
6017         * tests/test-exp-ieee.c: New file.
6018
6019         New module 'exp-ieee'.
6020         * modules/exp-ieee: New file.
6021
6022         Tests for module 'expf-ieee'.
6023         * modules/expf-ieee-tests: New file.
6024         * tests/test-expf-ieee.c: New file.
6025         * tests/test-exp-ieee.h: New file.
6026
6027         New module 'expf-ieee'.
6028         * modules/expf-ieee: New file.
6029
6030 2012-02-29  Bruno Haible  <bruno@clisp.org>
6031
6032         cbrtl-ieee: Work around test failure on IRIX 6.5.
6033         * m4/cbrtl-ieee.m4: New file.
6034         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
6035         test whether cbrtl works with a minus zero argument. Replace it if not.
6036         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
6037         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
6038         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
6039         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
6040         (Depends-on): Update conditions.
6041         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
6042         m4/signbit.m4.
6043         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
6044         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
6045         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
6046
6047         Tests for module 'cbrtl-ieee'.
6048         * modules/cbrtl-ieee-tests: New file.
6049         * tests/test-cbrtl-ieee.c: New file.
6050
6051         New module 'cbrtl-ieee'.
6052         * modules/cbrtl-ieee: New file.
6053
6054         Tests for module 'cbrt-ieee'.
6055         * modules/cbrt-ieee-tests: New file.
6056         * tests/test-cbrt-ieee.c: New file.
6057
6058         New module 'cbrt-ieee'.
6059         * modules/cbrt-ieee: New file.
6060
6061         Tests for module 'cbrtf-ieee'.
6062         * modules/cbrtf-ieee-tests: New file.
6063         * tests/test-cbrtf-ieee.c: New file.
6064         * tests/test-cbrt-ieee.h: New file.
6065
6066         New module 'cbrtf-ieee'.
6067         * modules/cbrtf-ieee: New file.
6068
6069 2012-02-29  Bruno Haible  <bruno@clisp.org>
6070
6071         cbrtf: Work around bug in IRIX 6.5 system function.
6072         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
6073         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
6074         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
6075         work.
6076         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
6077         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
6078         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
6079         (Depends-on): Update conditions.
6080         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
6081
6082 2012-02-29  Bruno Haible  <bruno@clisp.org>
6083
6084         Tests for module 'cbrtl'.
6085         * modules/cbrtl-tests: New file.
6086         * tests/test-cbrtl.c: New file.
6087
6088         New module 'cbrtl'.
6089         * lib/math.in.h (cbrtl): New declaration.
6090         * lib/cbrtl.c: New file.
6091         * m4/cbrtl.m4: New file.
6092         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
6093         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
6094         HAVE_DECL_CBRTL.
6095         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
6096         HAVE_DECL_CBRTL.
6097         * modules/cbrtl: New file.
6098         * tests/test-math-c++.cc: Check the declaration of cbrtl.
6099         * doc/posix-functions/cbrtl.texi: Mention the new module.
6100
6101 2012-02-29  Bruno Haible  <bruno@clisp.org>
6102
6103         Tests for module 'cbrtf'.
6104         * modules/cbrtf-tests: New file.
6105         * tests/test-cbrtf.c: New file.
6106
6107         New module 'cbrtf'.
6108         * lib/math.in.h (cbrtf): New declaration.
6109         * lib/cbrtf.c: New file.
6110         * m4/cbrtf.m4: New file.
6111         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
6112         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
6113         HAVE_DECL_CBRTF.
6114         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
6115         HAVE_DECL_CBRTF.
6116         * modules/cbrtf: New file.
6117         * tests/test-math-c++.cc: Check the declaration of cbrtf.
6118         * doc/posix-functions/cbrtf.texi: Mention the new module.
6119
6120 2012-02-29  Bruno Haible  <bruno@clisp.org>
6121
6122         cbrt: Provide replacement on MSVC and Minix.
6123         * lib/math.in.h (cbrt): New declaration.
6124         * lib/cbrt.c: New file.
6125         * m4/cbrt.m4: New file.
6126         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
6127         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
6128         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
6129         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
6130         (Depends-on): Add dependencies.
6131         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
6132         * tests/test-math-c++.cc: Check the declaration of cbrt.
6133         * doc/posix-functions/cbrt.texi: Mention that the module provides a
6134         replacement.
6135
6136 2012-02-29  Bruno Haible  <bruno@clisp.org>
6137
6138         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
6139         * m4/hypotl-ieee.m4: New file.
6140         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
6141         test whether hypotl works with mixed NaN and Infinity arguments.
6142         Replace it if not.
6143         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
6144         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
6145         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
6146         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
6147         (Depends-on): Update conditions.
6148         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
6149         (Depends-on): Add hypot-ieee.
6150         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
6151         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
6152
6153         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
6154         * m4/hypotf-ieee.m4: New file.
6155         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
6156         test whether hypotf works with mixed NaN and Infinity arguments.
6157         Replace it if not.
6158         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
6159         (Depends-on): Add hypot-ieee.
6160         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
6161         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
6162
6163         hypot-ieee: Work around test failure on OSF/1 and native Windows.
6164         * lib/math.in.h (hypot): New declaration.
6165         * lib/hypot.c: New file.
6166         * m4/hypot-ieee.m4: New file.
6167         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
6168         whether hypot works with mixed NaN and Infinity arguments. Replace it
6169         if not.
6170         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
6171         REPLACE_HYPOT.
6172         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
6173         * modules/hypot (Files): Add lib/hypot.c.
6174         (Depends-on): Add dependencies.
6175         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
6176         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
6177         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
6178         * tests/test-math-c++.cc: Check the declaration of hypot.
6179         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
6180
6181         Tests for module 'hypotl-ieee'.
6182         * modules/hypotl-ieee-tests: New file.
6183         * tests/test-hypotl-ieee.c: New file.
6184
6185         New module 'hypotl-ieee'.
6186         * modules/hypotl-ieee: New file.
6187
6188         Tests for module 'hypot-ieee'.
6189         * modules/hypot-ieee-tests: New file.
6190         * tests/test-hypot-ieee.c: New file.
6191
6192         New module 'hypot-ieee'.
6193         * modules/hypot-ieee: New file.
6194
6195         Tests for module 'hypotf-ieee'.
6196         * modules/hypotf-ieee-tests: New file.
6197         * tests/test-hypotf-ieee.c: New file.
6198         * tests/test-hypot-ieee.h: New file.
6199
6200         New module 'hypotf-ieee'.
6201         * modules/hypotf-ieee: New file.
6202
6203 2012-02-29  Bruno Haible  <bruno@clisp.org>
6204
6205         Remove unused variables.
6206         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
6207         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
6208         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
6209         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
6210
6211 2012-02-29  Eric Blake  <eblake@redhat.com>
6212
6213         termios: fix pid_t always, not just for tcgetsid
6214         * doc/posix-headers/termios.texi (termios.h): Mention problem.
6215         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
6216         just when building tcgetsid.
6217
6218 2012-02-29  Bruno Haible  <bruno@clisp.org>
6219
6220         Tests for module 'hypotl'.
6221         * modules/hypotl-tests: New file.
6222         * tests/test-hypotl.c: New file.
6223
6224         New module 'hypotl'.
6225         * lib/math.in.h (hypotl): New declaration.
6226         * lib/hypotl.c: New file.
6227         * m4/hypotl.m4: New file.
6228         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
6229         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
6230         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
6231         * modules/hypotl: New file.
6232         * tests/test-math-c++.cc: Check the hypotl declaration.
6233         * doc/posix-functions/hypotl.texi: Mention the new module.
6234
6235 2012-02-29  Eric Blake  <eblake@redhat.com>
6236
6237         tcgetsid: fix cygwin header bug
6238         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
6239
6240         docs: update cygwin progress
6241         * doc/posix-functions/llround.texi (llround): Added in cygwin
6242         1.7.8.
6243         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
6244         * doc/glibc-functions/program_invocation_name.texi
6245         (program_invocation_name): Likewise.
6246         * doc/glibc-functions/program_invocation_short_name.texi
6247         (program_invocation_short_name): Likewise.
6248         * doc/glibc-functions/madvise.texi (madvise): Likewise.
6249         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
6250         Likewise.
6251         * doc/posix-functions/pthread_spin_destroy.texi
6252         (pthread_spin_destroy): Added in cygwin 1.7.10.
6253         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
6254         Likewise.
6255         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
6256         Likewise.
6257         * doc/posix-functions/pthread_spin_trylock.texi
6258         (pthread_spin_trylock): Likewise.
6259         * doc/posix-functions/pthread_spin_unlock.texi
6260         (pthread_spin_unlock): Likewise.
6261         * doc/posix-functions/pthread_setschedprio.texi
6262         (pthread_setschedprio): Likewise.
6263         * doc/posix-functions/pthread_attr_getstack.texi
6264         (pthread_attr_getstack): Likewise.
6265         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
6266         (pthread_attr_getstackaddr): Likewise.
6267         * doc/glibc-functions/pthread_getattr_np.texi
6268         (pthread_getattr_np): Likewise.
6269         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
6270         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
6271         * doc/posix-functions/clock_settime.texi (clock_settime):
6272         Likewise.
6273         * doc/posix-functions/pthread_attr_getguardsize.texi
6274         (pthread_attr_getguardsize): Likewise.
6275         * doc/posix-functions/pthread_attr_setguardsize.texi
6276         (pthread_attr_setguardsize): Likewise.
6277         * doc/posix-functions/pthread_attr_setstack.texi
6278         (pthread_attr_setstack): Likewise.
6279         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
6280         (pthread_attr_setstackaddr): Likewise.
6281         * doc/posix-functions/clock_getcpuclockid.texi
6282         (clock_getcpuclockid): Likewise.
6283         * doc/posix-functions/pthread_getcpuclockid.texi
6284         (pthread_getcpuclockid): Likewise.
6285         * doc/glibc-functions/error.texi (error): Likewise.
6286         * doc/glibc-functions/error_at_line.texi (error_at_line):
6287         Likewise.
6288         * doc/glibc-functions/error_message_count.texi
6289         (error_message_count): Likewise.
6290         * doc/glibc-functions/error_one_per_line.texi
6291         (error_one_per_line): Likewise.
6292         * doc/glibc-functions/error_print_progname.texi
6293         (error_print_progname): Likewise.
6294         * doc/posix-functions/pthread_condattr_getclock.texi
6295         (pthread_condattr_getclock): Likewise.
6296         * doc/posix-functions/pthread_condattr_setclock.texi
6297         (pthread_condattr_setclock): Likewise.
6298         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
6299         Likewise.
6300         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
6301         * doc/glibc-functions/getpt.texi (getpt): Likewise.
6302         * doc/glibc-functions/get_current_dir_name.texi
6303         (get_current_dir_name): Likewise.
6304         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
6305         Likewise.
6306         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
6307         wrong return type.
6308         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
6309         1.7.11.
6310
6311 2012-02-29  Bruno Haible  <bruno@clisp.org>
6312
6313         Tests for module 'hypotf'.
6314         * modules/hypotf-tests: New file.
6315         * tests/test-hypotf.c: New file.
6316
6317         New module 'hypotf'.
6318         * lib/math.in.h (hypotf): New declaration.
6319         * lib/hypotf.c: New file.
6320         * m4/hypotf.m4: New file.
6321         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
6322         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
6323         REPLACE_HYPOTF.
6324         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
6325         REPLACE_HYPOTF.
6326         * modules/hypotf: New file.
6327         * tests/test-math-c++.cc: Check the hypotf declaration.
6328         * doc/posix-functions/hypotf.texi: Mention the new module.
6329
6330         hypot: Prepare for hypotf module.
6331         * m4/hypot.m4: New file.
6332         * modules/hypot (Files): Add m4/hypot.m4.
6333         (configure.ac): Invoke gl_FUNC_HYPOT.
6334
6335 2012-02-29  Bruno Haible  <bruno@clisp.org>
6336
6337         hypot tests: More tests.
6338         * tests/test-hypot.c: Include <float.h>.
6339         (main): Add tests about overflow and underflow.
6340
6341 2012-02-29  Bruno Haible  <bruno@clisp.org>
6342
6343         math code: Add comments.
6344         * lib/acosl.c: Add comment about related glibc source files.
6345         * lib/asinl.c: Likewise.
6346         * lib/atanl.c: Likewise.
6347         * lib/expl.c: Likewise.
6348         * lib/logl.c: Likewise.
6349         * lib/sincosl.c: Likewise.
6350         * lib/sinl.c: Likewise.
6351         * lib/tanl.c: Likewise.
6352         * lib/trigl.c: Likewise.
6353         * lib/cosl.c: Likewise. Fix comments.
6354
6355 2012-02-28  Bruno Haible  <bruno@clisp.org>
6356
6357         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
6358         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
6359         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
6360         HUGE_VALL are defined.
6361         (numeric_equald): Renamed from numeric_equal.
6362         (numeric_equalf, numeric_equall): New functions.
6363         (main): Check also HUGE_VALF, HUGE_VALL.
6364         * modules/math-tests (Files): Add tests/macros.h.
6365         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
6366         HUGE_VALL.
6367
6368 2012-02-28  Bruno Haible  <bruno@clisp.org>
6369
6370         doc: Move ISO C11 feature notes into POSIX chapters.
6371         * doc/posix-functions/aligned_alloc.texi: Renamed from
6372         doc/glibc-functions/aligned_alloc.texi.
6373         * doc/posix-functions/quick_exit.texi: Renamed from
6374         doc/glibc-functions/quick_exit.texi.
6375         * doc/posix-headers/uchar.texi: Renamed from
6376         doc/glibc-headers/uchar.texi.
6377         * doc/posix-functions/c16rtomb.texi: Renamed from
6378         doc/glibc-functions/c16rtomb.texi.
6379         * doc/posix-functions/c32rtomb.texi: Renamed from
6380         doc/glibc-functions/c32rtomb.texi.
6381         * doc/posix-functions/mbrtoc16.texi: Renamed from
6382         doc/glibc-functions/mbrtoc16.texi.
6383         * doc/posix-functions/mbrtoc32.texi: Renamed from
6384         doc/glibc-functions/mbrtoc32.texi.
6385         * doc/gnulib.texi: Update.
6386         (Glibc uchar.h): Remove section.
6387         Suggested by Eric Blake.
6388
6389 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
6390
6391         stdnoreturn: port to MSVC better
6392         MSVC standard headers use __declspec(noreturn), so #define noreturn
6393         to empty on that platform.  Reported by Bruno Haible in
6394         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
6395         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
6396         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
6397
6398 2012-02-28  Bruno Haible  <bruno@clisp.org>
6399
6400         doc: Mention new glibc headers and functions.
6401         * doc/glibc-headers/uchar.texi: New file.
6402         * doc/glibc-functions/aligned_alloc.texi: New file.
6403         * doc/glibc-functions/c16rtomb.texi: New file.
6404         * doc/glibc-functions/c32rtomb.texi: New file.
6405         * doc/glibc-functions/clock_adjtime.texi: New file.
6406         * doc/glibc-functions/fanotify_init.texi: New file.
6407         * doc/glibc-functions/fanotify_mark.texi: New file.
6408         * doc/glibc-functions/inet6_opt_append.texi: New file.
6409         * doc/glibc-functions/inet6_opt_find.texi: New file.
6410         * doc/glibc-functions/inet6_opt_finish.texi: New file.
6411         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
6412         * doc/glibc-functions/inet6_opt_init.texi: New file.
6413         * doc/glibc-functions/inet6_opt_next.texi: New file.
6414         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
6415         * doc/glibc-functions/inet6_rth_add.texi: New file.
6416         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
6417         * doc/glibc-functions/inet6_rth_init.texi: New file.
6418         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
6419         * doc/glibc-functions/inet6_rth_segments.texi: New file.
6420         * doc/glibc-functions/inet6_rth_space.texi: New file.
6421         * doc/glibc-functions/login.texi: New file.
6422         * doc/glibc-functions/mbrtoc16.texi: New file.
6423         * doc/glibc-functions/mbrtoc32.texi: New file.
6424         * doc/glibc-functions/name_to_handle_at.texi: New file.
6425         * doc/glibc-functions/ntp_gettimex.texi: New file.
6426         * doc/glibc-functions/open_by_handle_at.texi: New file.
6427         * doc/glibc-functions/prlimit.texi: New file.
6428         * doc/glibc-functions/process_vm_readv.texi: New file.
6429         * doc/glibc-functions/process_vm_writev.texi: New file.
6430         * doc/glibc-functions/recvmmsg.texi: New file.
6431         * doc/glibc-functions/scandirat.texi: New file.
6432         * doc/glibc-functions/sendmmsg.texi: New file.
6433         * doc/glibc-functions/setns.texi: New file.
6434         * doc/glibc-functions/timespec_get.texi: New file.
6435         * doc/gnulib.texi: Include them.
6436         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
6437         sections.
6438         Reported by Eric Blake.
6439
6440 2012-02-28  Bruno Haible  <bruno@clisp.org>
6441
6442         Avoid compilation errors with MSVC option -fp:strict.
6443         * lib/floor.c: Use MSVC specific pragma fenv_access.
6444         * lib/ceil.c: Likewise.
6445         * lib/trunc.c: Likewise.
6446         * lib/round.c: Likewise.
6447         * lib/rint.c: Likewise.
6448         * lib/fma.c: Likewise.
6449         * lib/integer_length.c: Likewise.
6450         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6451         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6452         * tests/test-floor2.c: Likewise.
6453         * tests/test-floorf2.c: Likewise.
6454         * tests/test-ceil2.c: Likewise.
6455         * tests/test-ceilf2.c: Likewise.
6456         * tests/test-trunc2.c: Likewise.
6457         * tests/test-truncf2.c: Likewise.
6458         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6459
6460 2012-02-27  Bruno Haible  <bruno@clisp.org>
6461
6462         Tests for module 'sqrtl-ieee'.
6463         * modules/sqrtl-ieee-tests: New file.
6464         * tests/test-sqrtl-ieee.c: New file.
6465
6466         New module 'sqrtl-ieee'.
6467         * modules/sqrtl-ieee: New file.
6468
6469         Tests for module 'sqrt-ieee'.
6470         * modules/sqrt-ieee-tests: New file.
6471         * tests/test-sqrt-ieee.c: New file.
6472
6473         New module 'sqrt-ieee'.
6474         * modules/sqrt-ieee: New file.
6475
6476         Tests for module 'sqrtf-ieee'.
6477         * modules/sqrtf-ieee-tests: New file.
6478         * tests/test-sqrtf-ieee.c: New file.
6479         * tests/test-sqrt-ieee.h: New file.
6480
6481         New module 'sqrtf-ieee'.
6482         * modules/sqrtf-ieee: New file.
6483
6484 2012-02-27  Bruno Haible  <bruno@clisp.org>
6485
6486         remainderl-ieee: Work around test failure on OSF/1.
6487         * m4/remainderl-ieee.m4: New file.
6488         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
6489         present, test whether remainderl works with a zero second argument.
6490         Replace it if not.
6491         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
6492         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
6493         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
6494         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
6495         (Depends-on): Update conditions.
6496         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
6497         (Depends-on): Add remainder-ieee.
6498         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
6499         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
6500         module.
6501
6502         remainderf-ieee: Work around test failure on OSF/1.
6503         * m4/remainderf-ieee.m4: New file.
6504         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
6505         present, test whether remainderf works with a zero second argument.
6506         Replace it if not.
6507         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
6508         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
6509         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
6510         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
6511         (Depends-on): Update conditions.
6512         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
6513         (Depends-on): Add remainder-ieee.
6514         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
6515         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
6516         module.
6517
6518         remainder-ieee: Work around test failure on OSF/1.
6519         * m4/remainder-ieee.m4: New file.
6520         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
6521         present, test whether remainder works with a zero second argument.
6522         Replace it if not.
6523         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
6524         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
6525         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
6526         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
6527         (Depends-on): Update dependencies.
6528         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
6529         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
6530         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
6531
6532         Tests for module 'remainderl-ieee'.
6533         * modules/remainderl-ieee-tests: New file.
6534         * tests/test-remainderl-ieee.c: New file.
6535
6536         New module 'remainderl-ieee'.
6537         * modules/remainderl-ieee: New file.
6538
6539         Tests for module 'remainder-ieee'.
6540         * modules/remainder-ieee-tests: New file.
6541         * tests/test-remainder-ieee.c: New file.
6542
6543         New module 'remainder-ieee'.
6544         * modules/remainder-ieee: New file.
6545
6546         Tests for module 'remainderf-ieee'.
6547         * modules/remainderf-ieee-tests: New file.
6548         * tests/test-remainderf-ieee.c: New file.
6549         * tests/test-remainder-ieee.h: New file.
6550
6551         New module 'remainderf-ieee'.
6552         * modules/remainderf-ieee: New file.
6553
6554 2012-02-27  Bruno Haible  <bruno@clisp.org>
6555
6556         modff, modfl: Fix configure syntax error.
6557         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
6558         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
6559
6560 2012-02-27  Bruno Haible  <bruno@clisp.org>
6561
6562         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
6563         * m4/fmodl-ieee.m4: New file.
6564         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
6565         whether fmodl works with zero arguments. Replace it if not.
6566         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
6567         (Depends-on): Add fmod-ieee.
6568         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
6569         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
6570
6571         fmodf-ieee: Work around test failure on OSF/1.
6572         * m4/fmodf-ieee.m4: New file.
6573         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
6574         whether fmodf works with zero arguments. Replace it if not.
6575         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
6576         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
6577         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
6578         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
6579         (Depends-on): Update dependencies.
6580         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
6581         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
6582         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
6583
6584         fmodf-ieee: Work around test failure on MSVC 9.
6585         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
6586         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
6587
6588         fmod-ieee: Work around test failures on OSF/1, mingw.
6589         * m4/fmod-ieee.m4: New file.
6590         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
6591         whether fmod works with zero arguments. Replace it if not.
6592         * lib/math.in.h (fmod): New declaration.
6593         * lib/fmod.c: New file.
6594         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
6595         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
6596         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
6597         * modules/fmod (Files): Add lib/fmod.c.
6598         (Depends-on): Add math, isinf, trunc, fma.
6599         (configure.ac): Arrange to compile lib/fmod.c if needed.
6600         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
6601         m4/signbit.m4.
6602         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
6603         * tests/test-math-c++.cc: Check the declaration of fmod.
6604         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
6605
6606         fmodl-ieee: Fix test failures.
6607         * lib/fmodl.c (fmodl): Treat Inf specially.
6608         * modules/fmodl (Depends-on): Add isinf.
6609
6610         Tests for module 'fmodl-ieee'.
6611         * modules/fmodl-ieee-tests: New file.
6612         * tests/test-fmodl-ieee.c: New file.
6613
6614         New module 'fmodl-ieee'.
6615         * modules/fmodl-ieee: New file.
6616
6617         Tests for module 'fmod-ieee'.
6618         * modules/fmod-ieee-tests: New file.
6619         * tests/test-fmod-ieee.c: New file.
6620
6621         New module 'fmod-ieee'.
6622         * modules/fmod-ieee: New file.
6623
6624         Tests for module 'fmodf-ieee'.
6625         * modules/fmodf-ieee-tests: New file.
6626         * tests/test-fmodf-ieee.c: New file.
6627         * tests/test-fmod-ieee.h: New file.
6628
6629         New module 'fmodf-ieee'.
6630         * modules/fmodf-ieee: New file.
6631
6632 2012-02-27  Bruno Haible  <bruno@clisp.org>
6633
6634         Tests for module 'rintl-ieee'.
6635         * modules/rintl-ieee-tests: New file.
6636         * tests/test-rintl-ieee.c: New file.
6637
6638         New module 'rintl-ieee'.
6639         * modules/rintl-ieee: New file.
6640
6641         Tests for module 'rint-ieee'.
6642         * modules/rint-ieee-tests: New file.
6643         * tests/test-rint-ieee.c: New file.
6644
6645         New module 'rint-ieee'.
6646         * modules/rint-ieee: New file.
6647
6648         Tests for module 'rintf-ieee'.
6649         * modules/rintf-ieee-tests: New file.
6650         * tests/test-rintf-ieee.c: New file.
6651         * tests/test-rint-ieee.h: New file.
6652
6653         New module 'rintf-ieee'.
6654         * modules/rintf-ieee: New file.
6655
6656 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
6657
6658         regex: re_search etc. should return -2 when memory exhausted
6659         This bug was uncovered when testing 'grep'.  Without the fix,
6660         re_search and friends return -1 when memory is exhausted, but -1
6661         means no match, and this causes grep to falsely report no-match
6662         instead of memory-exhaustion.  See
6663         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
6664         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
6665         trouble; this can occur if re_search_internal ran out of memory.
6666
6667 2012-02-26  Bruno Haible  <bruno@clisp.org>
6668
6669         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
6670         * m4/modfl-ieee.m4: New file.
6671         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
6672         whether modfl works with Inf. Replace it if not.
6673         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
6674         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
6675         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
6676         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
6677         (Depends-on): Update dependencies.
6678         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
6679         m4/signbit.m4.
6680         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
6681         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
6682
6683         modfl-ieee: Fix dependencies.
6684         * modules/modfl-ieee (Depends-on): Add modf-ieee.
6685
6686         modfl-ieee: Fix test failures.
6687         * lib/modfl.c (modfl): Treat NaN and Inf specially.
6688         * modules/modfl (Depends-on): Add isfinite, isinf.
6689
6690         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
6691         * m4/modff-ieee.m4: New file.
6692         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
6693         whether modff works with NaN and Inf. Replace it if not.
6694         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
6695         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
6696         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
6697         * modules/modff (configure.ac): Consider REPLACE_MODFF.
6698         (Depends-on): Update dependencies.
6699         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
6700         m4/signbit.m4.
6701         (Depends-on): Add modf-ieee.
6702         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
6703         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
6704
6705         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
6706         * m4/modf-ieee.m4: New file.
6707         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
6708         whether modf works with NaN and Inf. Replace it if not.
6709         * lib/math.in.h (modf): New declaration.
6710         * lib/modf.c: New file.
6711         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
6712         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
6713         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
6714         * modules/modf (Files): Add lib/modf.c.
6715         (Depends-on): Add math, isfinite, trunc, isinf.
6716         (configure.ac): Addrange to compile lib/modf.c if needed.
6717         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
6718         m4/signbit.m4.
6719         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
6720         * tests/test-math-c++.cc: Check the declaration of modf.
6721         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
6722
6723         Tests for module 'modfl-ieee'.
6724         * modules/modfl-ieee-tests: New file.
6725         * tests/test-modfl-ieee.c: New file.
6726
6727         New module 'modfl-ieee'.
6728         * modules/modfl-ieee: New file.
6729
6730         Tests for module 'modf-ieee'.
6731         * modules/modf-ieee-tests: New file.
6732         * tests/test-modf-ieee.c: New file.
6733
6734         New module 'modf-ieee'.
6735         * modules/modf-ieee: New file.
6736
6737         Tests for module 'modff-ieee'.
6738         * modules/modff-ieee-tests: New file.
6739         * tests/test-modff-ieee.c: New file.
6740         * tests/test-modf-ieee.h: New file.
6741
6742         New module 'modff-ieee'.
6743         * modules/modff-ieee: New file.
6744
6745 2012-02-26  Bruno Haible  <bruno@clisp.org>
6746
6747         Tests for module 'fabsl-ieee'.
6748         * modules/fabsl-ieee-tests: New file.
6749         * tests/test-fabsl-ieee.c: New file.
6750
6751         New module 'fabsl-ieee'.
6752         * modules/fabsl-ieee: New file.
6753
6754         Tests for module 'fabs-ieee'.
6755         * modules/fabs-ieee-tests: New file.
6756         * tests/test-fabs-ieee.c: New file.
6757
6758         New module 'fabs-ieee'.
6759         * modules/fabs-ieee: New file.
6760
6761         Tests for module 'fabsf-ieee'.
6762         * modules/fabsf-ieee-tests: New file.
6763         * tests/test-fabsf-ieee.c: New file.
6764         * tests/test-fabs-ieee.h: New file.
6765
6766         New module 'fabsf-ieee'.
6767         * modules/fabsf-ieee: New file.
6768
6769 2012-02-26  Bruno Haible  <bruno@clisp.org>
6770
6771         Tests for module 'fmal-ieee'.
6772         * modules/fmal-ieee-tests: New file.
6773         * tests/test-fmal-ieee.c: New file.
6774
6775         New module 'fmal-ieee'.
6776         * modules/fmal-ieee: New file.
6777
6778         Tests for module 'fma-ieee'.
6779         * modules/fma-ieee-tests: New file.
6780         * tests/test-fma-ieee.c: New file.
6781
6782         New module 'fma-ieee'.
6783         * modules/fma-ieee: New file.
6784
6785         Tests for module 'fmaf-ieee'.
6786         * modules/fmaf-ieee-tests: New file.
6787         * tests/test-fmaf-ieee.c: New file.
6788         * tests/test-fma-ieee.h: New file.
6789
6790         New module 'fmaf-ieee'.
6791         * modules/fmaf-ieee: New file.
6792
6793 2012-02-26  Bruno Haible  <bruno@clisp.org>
6794
6795         Tests for module 'ldexpl-ieee'.
6796         * modules/ldexpl-ieee-tests: New file.
6797         * tests/test-ldexpl-ieee.c: New file.
6798
6799         New module 'ldexpl-ieee'.
6800         * modules/ldexpl-ieee: New file.
6801
6802         Tests for module 'ldexp-ieee'.
6803         * modules/ldexp-ieee-tests: New file.
6804         * tests/test-ldexp-ieee.c: New file.
6805
6806         New module 'ldexp-ieee'.
6807         * modules/ldexp-ieee: New file.
6808
6809         Tests for module 'ldexpf-ieee'.
6810         * modules/ldexpf-ieee-tests: New file.
6811         * tests/test-ldexpf-ieee.c: New file.
6812         * tests/test-ldexp-ieee.h: New file.
6813
6814         New module 'ldexpf-ieee'.
6815         * modules/ldexpf-ieee: New file.
6816
6817 2012-02-26  Bruno Haible  <bruno@clisp.org>
6818
6819         Refactor frexp*-ieee tests.
6820         * tests/test-frexp-ieee.h: New file.
6821         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
6822         (main): Just call test_function.
6823         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
6824         (main): Just call test_function.
6825         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
6826         (main): Just call test_function.
6827         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
6828         * modules/frexp-ieee-tests (Files): Likewise.
6829         * modules/frexpl-ieee-tests (Files): Likewise.
6830
6831         Tests for module 'frexpl-ieee'.
6832         * modules/frexpl-ieee-tests: New file.
6833         * tests/test-frexpl-ieee.c: New file.
6834
6835         New module 'frexpl-ieee'.
6836         * modules/frexpl-ieee: New file.
6837
6838         Tests for module 'frexp-ieee'.
6839         * modules/frexp-ieee-tests: New file.
6840         * tests/test-frexp-ieee.c: New file.
6841
6842         New module 'frexp-ieee'.
6843         * modules/frexp-ieee: New file.
6844
6845         Tests for module 'frexpf-ieee'.
6846         * modules/frexpf-ieee-tests: New file.
6847         * tests/test-frexpf-ieee.c: New file.
6848
6849         New module 'frexpf-ieee'.
6850         * modules/frexpf-ieee: New file.
6851
6852 2012-02-26  Bruno Haible  <bruno@clisp.org>
6853
6854         roundl-ieee tests: More tests.
6855         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
6856         (main): Add tests for [MX] shaded specification in POSIX.
6857         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6858         (Depends-on): Add isnanl-nolibm.
6859
6860         round-ieee tests: More tests.
6861         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
6862         (main): Add tests for [MX] shaded specification in POSIX.
6863         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6864         (Depends-on): Add isnand-nolibm.
6865
6866         roundf-ieee tests: More tests.
6867         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
6868         (main): Add tests for [MX] shaded specification in POSIX.
6869         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6870         (Depends-on): Add isnanf-nolibm.
6871
6872         truncl-ieee tests: More tests.
6873         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
6874         (main): Add tests for [MX] shaded specification in POSIX.
6875         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6876         (Depends-on): Add isnanl-nolibm.
6877
6878         trunc-ieee tests: More tests.
6879         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
6880         (main): Add tests for [MX] shaded specification in POSIX.
6881         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6882         (Depends-on): Add isnand-nolibm.
6883
6884         truncf-ieee tests: More tests.
6885         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
6886         (main): Add tests for [MX] shaded specification in POSIX.
6887         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6888         (Depends-on): Add isnanf-nolibm.
6889
6890         ceill-ieee tests: More tests.
6891         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
6892         (main): Add tests for [MX] shaded specification in POSIX.
6893         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6894         (Depends-on): Add isnanl-nolibm.
6895
6896         ceil-ieee tests: More tests.
6897         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
6898         (main): Add tests for [MX] shaded specification in POSIX.
6899         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6900         (Depends-on): Add isnand-nolibm.
6901
6902         ceilf-ieee tests: More tests.
6903         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
6904         (main): Add tests for [MX] shaded specification in POSIX.
6905         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6906         (Depends-on): Add isnanf-nolibm.
6907
6908         floorl-ieee tests: More tests.
6909         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
6910         (main): Add tests for [MX] shaded specification in POSIX.
6911         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6912         (Depends-on): Add isnanl-nolibm.
6913
6914         floor-ieee tests: More tests.
6915         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
6916         (main): Add tests for [MX] shaded specification in POSIX.
6917         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6918         (Depends-on): Add isnand-nolibm.
6919
6920         floorf-ieee tests: More tests.
6921         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
6922         (main): Add tests for [MX] shaded specification in POSIX.
6923         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6924         (Depends-on): Add isnanf-nolibm.
6925
6926 2012-02-26  Bruno Haible  <bruno@clisp.org>
6927
6928         fpieee: More comments.
6929         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
6930
6931 2012-02-25  Bruno Haible  <bruno@clisp.org>
6932
6933         Tests for module 'log10l'.
6934         * modules/log10l-tests: New file.
6935         * tests/test-log10l.c: New file.
6936         * tests/test-math-c++.cc: Check the declaration of log10l.
6937
6938         New module 'log10l'.
6939         * lib/math.in.h (log10l): New declaration.
6940         * lib/log10l.c: New file.
6941         * m4/log10l.m4: New file.
6942         * modules/log10l: New file.
6943         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
6944         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
6945         HAVE_DECL_LOG10L.
6946         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
6947         HAVE_DECL_LOG10L.
6948         * doc/posix-functions/log10l.texi: Mention the new module.
6949
6950 2012-02-25  Bruno Haible  <bruno@clisp.org>
6951
6952         fmodl, remainder*: Avoid wrong results due to rounding errors.
6953         * lib/fmodl.c (fmodl): Correct the result if it is not within the
6954         expected bounds.
6955         * lib/remainderf.c (remainderf): Likewise.
6956         * lib/remainder.c (remainder): Likewise.
6957         * lib/remainderl.c (remainderl): Likewise.
6958
6959 2012-02-25  Bruno Haible  <bruno@clisp.org>
6960
6961         Tests for module 'remainderl'.
6962         * modules/remainderl-tests: New file.
6963         * tests/test-remainderl.c: New file.
6964         * tests/test-math-c++.cc: Check the declaration of remainderl.
6965
6966         New module 'remainderl'.
6967         * lib/math.in.h (remainderl): New declaration.
6968         * lib/remainderl.c: New file.
6969         * m4/remainderl.m4: New file.
6970         * modules/remainderl: New file.
6971         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
6972         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
6973         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
6974         HAVE_REMAINDERL.
6975         * doc/posix-functions/remainderl.texi: Mention the new module.
6976
6977 2012-02-25  Bruno Haible  <bruno@clisp.org>
6978
6979         Tests for module 'remainderf'.
6980         * modules/remainderf-tests: New file.
6981         * tests/test-remainderf.c: New file.
6982         * tests/test-math-c++.cc: Check the declaration of remainderf.
6983
6984         New module 'remainderf'.
6985         * lib/math.in.h (remainderf): New declaration.
6986         * lib/remainderf.c: New file.
6987         * m4/remainderf.m4: New file.
6988         * modules/remainderf: New file.
6989         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
6990         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
6991         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
6992         HAVE_REMAINDERF.
6993         * doc/posix-functions/remainderf.texi: Mention the new module.
6994
6995 2012-02-25  Bruno Haible  <bruno@clisp.org>
6996
6997         remainder: Support for MSVC.
6998         * lib/math.in.h (remainder): New declaration.
6999         * lib/remainder.c: New file.
7000         * m4/remainder.m4: New file.
7001         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
7002         (Depends-on): Add math, round, fma.
7003         (configure.ac): Use results of gl_FUNC_REMAINDER.
7004         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
7005         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
7006         HAVE_DECL_REMAINDER.
7007         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
7008         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
7009         * tests/test-math-c++.cc: Check the declaration of remainder.
7010         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
7011         problems are fixed.
7012
7013 2012-02-25  Bruno Haible  <bruno@clisp.org>
7014
7015         Tests for module 'fmodl'.
7016         * modules/fmodl-tests: New file.
7017         * tests/test-fmodl.c: New file.
7018         * tests/test-math-c++.cc: Check the declaration of fmodl.
7019
7020         New module 'fmodl'.
7021         * lib/math.in.h (fmodl): New declaration.
7022         * lib/fmodl.c: New file.
7023         * m4/fmodl.m4: New file.
7024         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
7025         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
7026         REPLACE_FMODL.
7027         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
7028         REPLACE_FMODL.
7029         * modules/fmodl: New file.
7030         * doc/posix-functions/fmodl.texi: Mention the new module.
7031
7032 2012-02-25  Bruno Haible  <bruno@clisp.org>
7033
7034         Tests for module 'modfl'.
7035         * modules/modfl-tests: New file.
7036         * tests/test-modfl.c: New file.
7037         * tests/test-math-c++.cc: Check the declaration of modfl.
7038
7039         New module 'modfl'.
7040         * lib/math.in.h (modfl): New declaration.
7041         * lib/modfl.c: New file.
7042         * m4/modfl.m4: New file.
7043         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
7044         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
7045         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
7046         * modules/modfl: New file.
7047         * doc/posix-functions/modfl.texi: Mention the new module.
7048
7049 2012-02-25  Bruno Haible  <bruno@clisp.org>
7050
7051         Tests for module 'fabsl'.
7052         * modules/fabsl-tests: New file.
7053         * tests/test-fabsl.c: New file.
7054         * tests/test-math-c++.cc: Check the declaration of fabsl.
7055
7056         New module 'fabsl'.
7057         * lib/math.in.h (fabsl): New declaration.
7058         * lib/fabsl.c: New file.
7059         * m4/fabsl.m4: New file.
7060         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
7061         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
7062         REPLACE_FABSL.
7063         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
7064         REPLACE_FABSL.
7065         * modules/fabsl: New file.
7066         * doc/posix-functions/fabsl.texi: Mention the new module.
7067
7068 2012-02-25  Bruno Haible  <bruno@clisp.org>
7069
7070         fabs tests: More tests.
7071         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
7072         (zero): New variable.
7073         (main): Add tests for signed zero.
7074         * modules/fabs-tests (Files): Add tests/minus-zero.h.
7075
7076         fabsf tests: More tests.
7077         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
7078         (zero): New variable.
7079         (main): Add tests for signed zero.
7080         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
7081
7082 2012-02-24  Bruno Haible  <bruno@clisp.org>
7083
7084         atanl: Provide function definition on MSVC.
7085         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
7086         function pointer.
7087         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
7088
7089 2012-02-24  Bruno Haible  <bruno@clisp.org>
7090
7091         acosl: Provide function definition on MSVC.
7092         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
7093         function pointer.
7094         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
7095
7096 2012-02-24  Bruno Haible  <bruno@clisp.org>
7097
7098         asinl: Provide function definition on MSVC.
7099         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
7100         function pointer.
7101         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
7102
7103 2012-02-24  Bruno Haible  <bruno@clisp.org>
7104
7105         tanl: Provide function definition on MSVC.
7106         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
7107         function pointer.
7108         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
7109
7110 2012-02-24  Bruno Haible  <bruno@clisp.org>
7111
7112         cosl: Provide function definition on MSVC.
7113         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
7114         function pointer.
7115         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
7116
7117 2012-02-24  Bruno Haible  <bruno@clisp.org>
7118
7119         sinl: Provide function definition on MSVC.
7120         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
7121         function pointer.
7122         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
7123
7124 2012-02-24  Bruno Haible  <bruno@clisp.org>
7125
7126         logl: Provide function definition on MSVC.
7127         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
7128         function pointer.
7129         * lib/math.in.h (logl): Undefine if it does not exist as a function.
7130
7131 2012-02-24  Bruno Haible  <bruno@clisp.org>
7132
7133         expl: Provide function definition on MSVC.
7134         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
7135         function pointer.
7136         * lib/math.in.h (expl): Undefine if it does not exist as a function.
7137
7138 2012-02-24  Bruno Haible  <bruno@clisp.org>
7139
7140         sqrtl: Provide function definition on MSVC.
7141         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
7142         a function pointer.
7143         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
7144
7145 2012-02-24  Bruno Haible  <bruno@clisp.org>
7146
7147         ceill: Provide function definition on MSVC.
7148         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
7149         used as a function pointer.
7150         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
7151
7152 2012-02-24  Bruno Haible  <bruno@clisp.org>
7153
7154         floorl: Provide function definition on MSVC.
7155         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
7156         used as a function pointer.
7157         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
7158
7159 2012-02-24  Bruno Haible  <bruno@clisp.org>
7160
7161         ceilf: Provide function definition on MSVC.
7162         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
7163         used as a function pointer.
7164         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
7165
7166 2012-02-24  Bruno Haible  <bruno@clisp.org>
7167
7168         floorf: Provide function definition on MSVC.
7169         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
7170         used as a function pointer.
7171         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
7172
7173 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
7174
7175         stdnoreturn: new module
7176         This implements a replacement for C11's <stdnoreturn.h>.
7177         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
7178         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
7179         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
7180         * tests/test-stdnoreturn.c: New files.
7181
7182 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
7183
7184         regex: fix false multibyte matches in some regular expressions
7185         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
7186         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
7187         * lib/regex_internal.c (re_string_skip_chars):
7188         Fix miscomputation of remain_len that may cause incomplete
7189         multi-byte character and false match.
7190
7191 2012-02-24  Jim Meyering  <meyering@redhat.com>
7192
7193         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
7194         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
7195         uses with "==" *before* the call, e.g., 0 == strcmp (...)
7196         Remove now-unnecessary str''cmp obfuscation.
7197         Suggested by Akim Demaille.
7198
7199 2012-02-24  Bruno Haible  <bruno@clisp.org>
7200
7201         streq: Rename macro.
7202         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
7203         * NEWS: Mention the change.
7204         * lib/mbrtowc.c (mbrtowc): Update.
7205         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
7206         * lib/wcwidth.c (wcwidth): Update.
7207         Suggested by Akim Demaille and Jim Meyering.
7208
7209 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
7210
7211         regex: fix typo in definition of MIN
7212         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
7213         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
7214
7215 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
7216             Bruno Haible  <bruno@clisp.org>
7217
7218         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
7219         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
7220         entries into a stack-allocated buffer directly.
7221         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
7222
7223 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
7224             Bruno Haible  <bruno@clisp.org>
7225
7226         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
7227
7228          - There were several instances of this pattern:
7229
7230              for (;;) {
7231                n = acl (f, GETACLCNT, 0, NULL);
7232                [ allocate an array A of size N ]
7233                if (acl (f, GETACL, n, a) == n)
7234                  break;
7235              }
7236
7237            This loop might never terminate if some other process is constantly
7238            manipulating the file's ACL.  The loop should be rewritten to
7239            terminate.
7240
7241          - The acl (... GETACLNT ...) call is merely an optimization; its value
7242            is merely a hint as to how big to make the array.  A better
7243            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
7244            and just guess a reasonably-big size, growing the size and trying
7245            again if it's not large enough.  This guarantees termination, and
7246            saves a system call.
7247
7248         * lib/acl-internal.h: Include <limits.h>.
7249         (MIN, SIZE_MAX): New macros.
7250         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
7251         a stack-allocated buffer, and use malloc if it does not fit. Don't
7252         use GETACLCNT.
7253         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
7254
7255 2012-02-19  Bruno Haible  <bruno@clisp.org>
7256
7257         acl: Fix endless loop on Solaris with vxfs.
7258         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
7259         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
7260         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
7261         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
7262         * tests/test-sameacls.c (main)[Solaris]: Likewise.
7263         Reported by Bill Jones in
7264         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
7265
7266 2012-02-19  Bruno Haible  <bruno@clisp.org>
7267
7268         acl: Fix copy-acl test failure on Solaris 11 2011-11.
7269         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
7270         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
7271         that this function returns 0 in some more cases.
7272
7273 2012-02-19  Bruno Haible  <bruno@clisp.org>
7274
7275         acl: Update doc references.
7276         * doc/acl-resources.txt: Update links to Solaris documentation.
7277
7278 2012-02-19  Bruno Haible  <bruno@clisp.org>
7279
7280         Fix test failure in many locales on Solaris 11.
7281         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
7282         'tr' arguments.
7283         * tests/test-pipe-filter-ii1.c (main): Likewise.
7284         * build-aux/bootstrap (check_versions): Run 'tr' command with range
7285         expressions in the C locale.
7286         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
7287         * m4/host-os.m4 (gl_HOST_OS): Likewise.
7288
7289 2012-02-19  Bruno Haible  <bruno@clisp.org>
7290
7291         gnulib-tool: Improve usage message.
7292         * gnulib-tool (func_usage): Move doc of --help and --version to the
7293         section "Operation modes".
7294
7295 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
7296
7297         README-release: make it easier to execute commands
7298         * top/README-release: break commands out on to separate lines.
7299
7300 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
7301
7302         GNUmakefile: simplify detection of unconfigured trees
7303         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
7304         whether the tree make is being run from is already configured or
7305         not.  Related simplifications.
7306
7307 2012-02-13  Simon Josefsson  <simon@josefsson.org>
7308
7309         * gnulib-tool (func_usage): Document --help and --version.
7310
7311 2012-02-11  Jim Meyering  <meyering@redhat.com>
7312
7313         bootstrap: don't exit 0 upon gnulib-tool failure
7314         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
7315         its exit status, not 0.
7316
7317 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
7318
7319         README-release: various improvements
7320         * top/README-release: Give a command to push changes for the
7321         release.  Add "distcheck" to list of other pre-release checks.
7322         Fix instance of "make stable" which should be "make TYPE".
7323
7324 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
7325
7326         maint: replace FSF snail-mail addresses with URLs
7327         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
7328         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
7329         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
7330         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
7331         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
7332         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
7333         * lib/check-version.c, lib/check-version.h, lib/config.charset:
7334         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
7335         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
7336         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
7337         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
7338         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
7339         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
7340         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
7341         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
7342         * lib/glthread/thread.c, lib/glthread/thread.h:
7343         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
7344         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
7345         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
7346         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
7347         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
7348         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
7349         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
7350         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
7351         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
7352         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
7353         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
7354         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
7355         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
7356         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
7357         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
7358         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
7359         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
7360         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
7361         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
7362         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
7363         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
7364         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
7365         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
7366         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
7367         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
7368         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
7369         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
7370         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
7371         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
7372         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
7373         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
7374         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
7375         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
7376         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
7377         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
7378         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
7379         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
7380         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
7381         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
7382         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
7383         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
7384         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
7385         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
7386         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
7387         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
7388         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
7389         * tests/test-poll.c, tests/test-quotearg-simple.c:
7390         * tests/test-quotearg.c, tests/test-quotearg.h:
7391         * tests/test-round-ieee.c, tests/test-round1.c:
7392         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
7393         * tests/test-roundl-ieee.c, tests/test-roundl.c:
7394         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
7395         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
7396         * tests/test-strerror.c, tests/test-strerror_r.c:
7397         * tests/test-strsignal.c, tests/test-strverscmp.c:
7398         * tests/test-xmemdup0.c:
7399         Replace FSF snail mail addresses with URLs, as per GNU coding
7400         standards.  See glibc bug
7401         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
7402
7403 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
7404
7405         README-release: capitalize a word and split a line
7406         * top/README-release: Fix punctuation and spacing.
7407
7408 2012-02-08  Akim Demaille  <demaille@gostai.com>
7409
7410         fatal-signal: use C prototypes (with explicit void).
7411         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
7412         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
7413
7414 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
7415
7416         regex: spelling fix
7417         * lib/regexec.c: spelling fix
7418
7419         regex: rely on stdint.h for SIZE_MAX
7420         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
7421
7422 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
7423
7424         regex: merge glibc changes
7425
7426         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
7427         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
7428         (init_word_char): Work even if bitset words are not exactly 32 or
7429         64 bits wide.  Don't assume there are no padding bits.
7430         * lib/regex.c [_LIBC]: Do not include <config.h>.
7431         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
7432         and -Wtype-limits.
7433         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
7434         needless disagreement with glibc.  All uses changed.  Define it to
7435         1 only if _GNU_SOURCE, to match glibc.
7436         (_REG_RM_NAME): Remove; no longer needed, since the names in
7437         question are now all protected by __USE_GNU.
7438         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
7439         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
7440         * lib/regex_internal.h (MIN): New macro.
7441
7442         2012-01-03 Ulrich Drepper <drepper@gmail.com>
7443         * lib/regcomp.c (init_word_char): Optimize regex a bit.
7444
7445         2011-12-30 Jakub Jelinek <jakub@redhat.com>
7446         * lib/regex_internal.c (re_string_fetch_byte_case):
7447         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
7448         is miscompiled, and it turns out it is because of an incorrect
7449         attribute on re_string_fetch_byte_case.  Unlike
7450         re_string_peek_byte_case, this one is really not pure, it modifies
7451         memory (increments pstr->cur_idx), and with the pure attribute GCC
7452         assumed it doesn't and it cached the presumed value of
7453         regexp->cur_idx in a variable across the
7454          for (;; ++i)
7455            {
7456              if (i >= BRACKET_NAME_BUF_SIZE)
7457                return REG_EBRACK;
7458              if (token->type == OP_OPEN_CHAR_CLASS)
7459                ch = re_string_fetch_byte_case (regexp);
7460              else
7461                ch = re_string_fetch_byte (regexp);
7462              if (re_string_eoi(regexp))
7463                return REG_EBRACK;
7464              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
7465                break;
7466              elem->opr.name[i] = ch;
7467            }
7468
7469         2011-11-29 Andreas Schwab <schwab@redhat.com>
7470         * lib/regcomp.c (build_equiv_class):
7471         Fix access after end of search string in regex matcher.
7472
7473         2011-11-12 Ulrich Drepper <drepper@redhat.com>
7474         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
7475
7476         2011-10-12 Ulrich Drepper <drepper@redhat.com>
7477         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
7478
7479         2011-10-11 Ulrich Drepper <drepper@redhat.com>
7480         * lib/regcomp.c (parse_branch, parse_sub_exp):
7481         More regex memory leak fixes and tests.
7482         (parse_sub_exp, parse_bracket_exp):
7483         Fix memory leak for some invalid regular expressions.
7484
7485         2011-05-28 Ulrich Drepper <drepper@gmail.com>
7486         * lib/regex_internal.c, lib/regexec.c:
7487         Fix unnecessary overallocation due to incomplete character.  When
7488         incomplete characters are found at the end of a string the code
7489         ran amok and allocated lots of memory.  Stricter limits are now in
7490         place.
7491
7492         2011-05-20 Reuben Thomas <rrt@sc3d.org>
7493         * lib/regex.h: Update documentation.
7494
7495         2011-05-16 Aharon Robbins <arnold@skeeve.com>
7496         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
7497
7498         2010-05-05 Andreas Schwab <schwab@redhat.com>
7499         * lib/regexec.c (find_collation_sequence_value):
7500         Fix lookup of collation sequence value during regexp matching.
7501
7502         2010-01-22 Ulrich Drepper <drepper@redhat.com>
7503         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
7504
7505         2008-01-16 Ulrich Drepper <drepper@redhat.com>
7506         * lib/regex.h: Cleanup namespace.
7507
7508         2007-11-26 Ulrich Drepper <drepper@redhat.com>
7509         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
7510
7511         2007-08-26 Ulrich Drepper <drepper@redhat.com>
7512         * lib/regex_internal.h: Prevent some declarations and definitions
7513         to be seen when used in tests.
7514
7515         2005-05-06 Ulrich Drepper <drepper@redhat.com>
7516         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
7517         __libc_lock_* macros if not _LIBC.
7518         (struct re_dfa_t): Add lock.
7519
7520 2012-02-07  Eric Blake  <eblake@redhat.com>
7521
7522         maint.mk: also prohibit lower-case @var@
7523         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
7524         lower case, like @top_srcdir@.
7525
7526 2012-02-04  Eric Blake  <eblake@redhat.com>
7527
7528         canonicalize: avoid uninitialized memory use
7529         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
7530         random '/' left in dest.
7531         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
7532
7533 2012-02-04  Bruno Haible  <bruno@clisp.org>
7534
7535         isatty: Fix test failure of ptsname_r on native Windows.
7536         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
7537         and don't set errno.
7538         (isatty): Test first whether fd is valid. Set errno when returning 0.
7539
7540 2012-02-04  Bruno Haible  <bruno@clisp.org>
7541
7542         spawn-pipe tests: Fix a NULL program name in a diagnostic.
7543         * tests/test-spawn-pipe-main.c: Include progname.h.
7544         (main): Invoke set_program_name.
7545         * modules/spawn-pipe-tests (Depends-on): Add progname.
7546
7547         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
7548         * tests/test-nonblocking-socket-main.c: Include progname.h.
7549         (main): Invoke set_program_name.
7550         * modules/nonblocking-socket-tests (Depends-on): Add progname.
7551
7552         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
7553         * tests/test-nonblocking-pipe-main.c: Include progname.h.
7554         (main): Invoke set_program_name.
7555         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
7556
7557 2012-02-04  Eric Blake  <eblake@redhat.com>
7558
7559         canonicalize-lgpl: fix // handling
7560         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
7561
7562         canonicalize: fix // handling
7563         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
7564         /// to //, since only // is special.
7565
7566 2012-02-04  Bruno Haible  <bruno@clisp.org>
7567
7568         ioctl: Fix test failure on native Windows.
7569         * lib/ioctl.c: Include msvc-nothrow.h.
7570         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
7571
7572 2012-02-04  Bruno Haible  <bruno@clisp.org>
7573
7574         fsync: Avoid test failure on native Windows.
7575         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
7576         read-only.
7577
7578 2012-02-04  Bruno Haible  <bruno@clisp.org>
7579
7580         sys_select: Avoid syntax error on OpenBSD 5.0.
7581         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
7582         currently being included, just include the system's <sys/select.h>.
7583
7584 2012-02-04  Bruno Haible  <bruno@clisp.org>
7585
7586         sys_select: Avoid syntax error on OpenBSD 5.0.
7587         * lib/sys_select.in.h: Include <signal.h> only after the include_next
7588         <sys/select.h>, not before.
7589         Reported by Jiri B <jirib@devio.us>.
7590
7591 2012-02-04  Bruno Haible  <bruno@clisp.org>
7592
7593         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
7594         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
7595         global variables.
7596         * tests/test-get-rusage-data.c (main): Likewise.
7597         Reported by Jim Meyering.
7598
7599 2012-02-04  Bruno Haible  <bruno@clisp.org>
7600
7601         stdioext: Fix last commit.
7602         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
7603
7604 2012-02-03  Bruno Haible  <bruno@clisp.org>
7605
7606         stdioext: Add tentative support for Plan9.
7607         * lib/stdio-impl.h: Include <errno.h>.
7608         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
7609         * lib/freadable.c (freadable): Likewise.
7610         * lib/fwritable.c (fwritable): Likewise.
7611         * lib/fbufmode.c (fbufmode): Likewise.
7612         * lib/freading.c (freading): Likewise.
7613         * lib/fwriting.c (fwriting): Likewise.
7614         * lib/freadptr.c (freadptr): Likewise.
7615         * lib/freadseek.c (freadptrinc): Likewise.
7616         * lib/freadahead.c (freadahead): Likewise.
7617         * lib/fpurge.c (fpurge): Likewise.
7618         * lib/fseeko.c (rpl_fseeko): Likewise.
7619         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
7620         Reported by Jens Staal <staal1978@gmail.com>.
7621
7622 2012-02-02  Jim Meyering  <meyering@redhat.com>
7623
7624         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
7625         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
7626         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
7627         not even to try to add the attribute.  Instead, add a pragma to suppress
7628         the suggestion/warning.
7629
7630 2012-01-31  Karl Berry  <karl@gnu.org>
7631
7632         setstate doc: typo.
7633         * doc/posix-functions/setstate.texi (setstate): { not (.
7634
7635 2012-01-31  Bruno Haible  <bruno@clisp.org>
7636
7637         popen: Make more robust on Windows.
7638         * lib/popen.c: On native Windows, use the _popen based code even if
7639         HAVE_POPEN is set.
7640         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
7641         environment variable on native Windows.
7642
7643 2012-01-30  Bruno Haible  <bruno@clisp.org>
7644
7645         pclose: Fix typo.
7646         * lib/stdio.in.h (pclose): Fix typo in warning message.
7647
7648 2012-01-30  Bruno Haible  <bruno@clisp.org>
7649
7650         doc about getlogin_r, setstate.
7651         * doc/posix-functions/getlogin_r.texi: List the incompatible
7652         declaration problem under "not fixed by gnulib".
7653         * doc/posix-functions/setstate.texi: Mention incompatible declaration
7654         problem on Solaris 11 and other platforms.
7655
7656 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
7657             Bruno Haible  <bruno@clisp.org>
7658
7659         poll tests: Make test more robust.
7660         * tests/test-poll.c: Include macros.h.
7661         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
7662         return value of various I/O operations.
7663         * modules/poll-tests (Files): Add tests/macros.h.
7664
7665 2012-01-30  Bruno Haible  <bruno@clisp.org>
7666
7667         sys_stat: Fix support for mingw64 and MSVC.
7668         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
7669         header files already do it.
7670         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
7671         stat itself.
7672         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
7673
7674 2012-01-30  Bruno Haible  <bruno@clisp.org>
7675
7676         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
7677         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
7678         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
7679
7680 2012-01-29  Bruno Haible  <bruno@clisp.org>
7681
7682         quotearg: Fix test failure on MacOS X 10.5.
7683         * tests/test-quotearg-simple.c: Include localcharset.h.
7684         (main): If the locale encoding is not ASCII, bypass the tests of
7685         locale_quoting_style and clocale_quoting_style.
7686         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
7687
7688 2012-01-29  Jim Meyering  <meyering@redhat.com>
7689
7690         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
7691         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
7692         detect uses of canonicalize_file_name.
7693
7694 2012-01-28  Bruno Haible  <bruno@clisp.org>
7695
7696         test-framework-sh: Fix test failure with AIX 7.1 diff.
7697         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
7698         in column 1, like 'diff -c' does.
7699         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
7700         whether 'diff -u' is used. Instead, test whether the output contains
7701         some '@' character.
7702
7703 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
7704
7705         strtoimax: eliminate need for stdint.h, inttypes.h checks
7706         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
7707         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
7708         the prerequisites for a recently-introduced strtoimax test.
7709         I guess this might cause strtoimax to be replaced when not
7710         strictly necessary on older hosts, but this shouldn't introduce
7711         any bugs and it should make Emacs 'configure' faster on typical
7712         modern hosts.  Problem discovered when importing the latest gnulib
7713         to an Emacs test version.
7714         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
7715
7716 2012-01-28  Bruno Haible  <bruno@clisp.org>
7717
7718         sys_time: Override 'struct timeval' on some native Windows platforms.
7719         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
7720         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
7721         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
7722         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
7723         needs to be overridden.
7724         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
7725         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
7726         * tests/test-sys_select.c: Check that the tv_sec member has the same
7727         size as a 'time_t'.
7728         * tests/test-sys_time.c: Likewise.
7729         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
7730         is set, set also REPLACE_GETTIMEOFDAY.
7731         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
7732         convert the resulting 'struct timeval' before returning.
7733         * lib/select.c: Include <sys/time.h>.
7734         (select, timeval): Undefine at the right place.
7735         * modules/select (Depends-on): Add sys_time.
7736         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
7737         some Windows platforms.
7738         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
7739
7740 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
7741
7742         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
7743         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
7744         an integer.
7745         * lib/fcntl.c (dupfd): Likewise.
7746         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
7747
7748 2012-01-28  Bruno Haible  <bruno@clisp.org>
7749
7750         fcntl: Avoid compilation error on native Windows.
7751         * modules/fcntl (Depends-on): Add 'close'.
7752
7753 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
7754
7755         select, poll, isatty: Avoid warnings on x86_64 mingw64.
7756         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
7757         pointer to an integer.
7758         * lib/poll.c (IsConsoleHandle): Likewise.
7759         * lib/isatty.c (IsConsoleHandle): Likewise.
7760
7761 2012-01-28  Jim Meyering  <meyering@redhat.com>
7762
7763         doc: clarify README-release
7764         * top/README-release: Clarify: you should make a point to have
7765         the latest stable versions of build tools in your PATH, and the
7766         reference to buildreq is solely for its list of tool names, not
7767         for its minimal-functional version numbers.
7768         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
7769
7770         maint.mk: use more readable (yet functionally equivalent) quoting
7771         It is common to quote a single quote in a single quoted string like
7772         this:  '...'\''...'.  Unless you know the idiom, that looks like
7773         gibberish, so prefer to double-quote the string when possible.
7774         Then you can use a more readable, lone single quote: "...'..."
7775         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
7776         "don't" is more readable than the equivalent 'don'\''t'.
7777         (sc_cast_of_x_alloc_return_value): Likewise.
7778         (sc_cast_of_alloca_return_value): Likewise.
7779         (sc_makefile_path_separator_check): Similar: use ":" in '...',
7780         rather than '\'':'\''.
7781
7782 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
7783
7784         stdalign: relax _Alignof and tighten _Alignas test
7785         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
7786         as it was too strict: alignof must divide offsetof, but it need
7787         not equal offsetof.  Inspired by Joseph S. Myers's comment
7788         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
7789         Conversely, tighten the _Alignas test a bit, as the resulting
7790         alignment must be exactly 8.
7791
7792 2012-01-27  Bruno Haible  <bruno@clisp.org>
7793
7794         stdalign: Document the last change.
7795         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
7796
7797 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
7798
7799         stdalign: check that alignof and offsetof are consistent
7800         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
7801         Problem reported for gnulib by Richard W.M. Jones in
7802         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
7803
7804 2012-01-27  Jim Meyering  <meyering@redhat.com>
7805
7806         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
7807         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
7808         convert a sequence with gaps to the minimal containing range.
7809         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
7810         * tests/test-update-copyright.sh: Test for this.
7811         The FSF confirmed it is ok to do this, assuming there is at
7812         least one significant change per year in the affected range:
7813         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
7814
7815 2012-01-26  Bruno Haible  <bruno@clisp.org>
7816
7817         pipe2: refine doc about thread-safety
7818         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
7819         multithread-safety problem.
7820         * doc/glibc-functions/accept4.texi: Likewise.
7821
7822 2012-01-26  Bruno Haible  <bruno@clisp.org>
7823
7824         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
7825         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
7826         In the test program, include <fcntl.h>, for O_RDONLY.
7827
7828 2012-01-26  Eric Blake  <eblake@redhat.com>
7829
7830         pipe2: document lack of thread-safety in replacement
7831         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
7832         issue in replacement.
7833         * doc/glibc-functions/accept4.texi (accept4): Likewise.
7834         Based on a report by Eric Wong.
7835
7836 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
7837             Bruno Haible  <bruno@clisp.org>
7838
7839         malloca: Avoid warnings on x86_64 mingw64.
7840         * lib/malloca.c: Include <stdint.h>.
7841         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
7842         * modules/malloca (Depends-on): Add stdint.
7843         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
7844
7845 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
7846
7847         obstack: remove __STDC__ conditionals
7848         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
7849         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
7850         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
7851         m4/include_next.m4 as the only gnulib-maintained places that still
7852         refer to __STDC__.
7853
7854 2012-01-24  Bruno Haible  <bruno@clisp.org>
7855
7856         havelib: Modern quoting.
7857         * build-aux/config.rpath: Quote 'like this', not `like this', as per
7858         the recent change to the GNU coding standards.
7859
7860 2012-01-24  Bruno Haible  <bruno@clisp.org>
7861
7862         stdint: Improve support for Android.
7863         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
7864         Reported by Simon Josefsson <simon@josefsson.org>.
7865
7866 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
7867
7868         doc: omit trailing empty lines from INSTALL etc.
7869         * doc/Makefile (INSTALL): Omit trailing empty lines.
7870         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
7871         omit trailing empty lines.  This simplifies the build procedure.
7872
7873 2012-01-23  Jim Meyering  <meyering@redhat.com>
7874
7875         tests: avoid spurious warnings about gl_sockets_startup
7876         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
7877         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
7878         reporting a "statement with no effect".
7879         * tests/test-accept.c (main): Mark as "(void)".
7880         * tests/test-accept4.c (main): Likewise.
7881         * tests/test-bind.c (main): Likewise.
7882         * tests/test-connect.c (main): Likewise.
7883         * tests/test-getpeername.c (main): Likewise.
7884         * tests/test-getsockname.c (main): Likewise.
7885         * tests/test-getsockopt.c (main): Likewise.
7886         * tests/test-listen.c (main): Likewise.
7887         * tests/test-recv.c (main): Likewise.
7888         * tests/test-recvfrom.c (main): Likewise.
7889         * tests/test-send.c (main): Likewise.
7890         * tests/test-sendto.c (main): Likewise.
7891         * tests/test-setsockopt.c (main): Likewise.
7892         * tests/test-shutdown.c (main): Likewise.
7893
7894 2012-01-21  Bruno Haible  <bruno@clisp.org>
7895
7896         locale-fr.m4: Fix for Android.
7897         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
7898         failure of the test program on Bionic libc.
7899
7900 2012-01-21  Jim Meyering  <meyering@redhat.com>
7901
7902         bootstrap: fail when bootstrap_post_import_hook fails
7903         Otherwise, it's far too easy to miss diagnostics emitted
7904         between gnulib-tool's output and that of running configure.
7905         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
7906
7907 2012-01-17  Jim Meyering  <meyering@redhat.com>
7908
7909         maint: enable sc_trailing_blank
7910         * build-aux/pmccabe.css: Remove trailing blanks.
7911         * doc/acl-cygwin.txt: Likewise.
7912         * doc/gnu-oids.texi: Likewise
7913         * cfg.mk: Enable sc_trailing_blank.
7914         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
7915
7916 2012-01-17  Jim Meyering  <meyering@redhat.com>
7917
7918         maint: enable sc_prohibit_openat_without_use
7919         * cfg.mk: Enable sc_prohibit_openat_without_use.
7920         Exempt lib/selinux-at.c.
7921
7922 2012-01-17  Jim Meyering  <meyering@redhat.com>
7923
7924         maint: enable sc_prohibit_cloexec_without_use
7925         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
7926         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
7927
7928 2012-01-17  Jim Meyering  <meyering@redhat.com>
7929
7930         maint: enable sc_prohibit_intprops_without_use
7931         * cfg.mk: Enable sc_prohibit_intprops_without_use
7932         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
7933
7934 2012-01-17  Jim Meyering  <meyering@redhat.com>
7935
7936         maint: enable sc_prohibit_hash_pjw_without_use
7937         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
7938         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
7939         to match any use of \<hash_pjw\>, i.e., not necessarily with a
7940         following " (".
7941
7942 2012-01-17  Jim Meyering  <meyering@redhat.com>
7943
7944         maint: enable double-word-prohibiting rule
7945         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
7946         Exempt three files.
7947
7948 2012-01-17  Jim Meyering  <meyering@redhat.com>
7949
7950         maint: remove empty lines at EOF, but excluding modules/*
7951         Apply syntax rules at home as well as abroad.  Most changes
7952         were induced by running this:
7953           make srcdir=. _build-aux=build-aux -f top/maint.mk \
7954             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
7955             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
7956         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
7957         Exempt modules/* and two binary files.
7958         Also exempt doc/INSTALL*, per request from Bruno Haible.
7959         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
7960         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
7961         * doc/Copyright/request-assign.future: Likewise.
7962         * doc/Copyright/request-disclaim.changes: Likewise.
7963         * doc/INSTALL: Likewise.
7964         * doc/INSTALL.ISO: Likewise.
7965         * doc/INSTALL.UTF-8: Likewise.
7966         * doc/acl-cygwin.txt: Likewise.
7967         * doc/acl-resources.txt: Likewise.
7968         * doc/fdl-1.2.texi: Likewise.
7969         * doc/fdl-1.3.texi: Likewise.
7970         * doc/fdl.texi: Likewise.
7971         * lib/argp-pin.c: Likewise.
7972         * lib/round.c: Likewise.
7973         * lib/unicase/u16-totitle.c: Likewise.
7974         * lib/unictype/block_test.c: Likewise.
7975         * lib/uninorm/canonical-decomposition.c: Likewise.
7976         * m4/README: Likewise.
7977         * m4/relocatable-lib.m4: Likewise.
7978         * tests/test-isnand-nolibm.c: Likewise.
7979         * tests/test-isnand.c: Likewise.
7980         * tests/uninorm/NormalizationTest.txt: Likewise.
7981
7982 2012-01-17  Jim Meyering  <meyering@redhat.com>
7983
7984         maint: add framework to run syntax-check rules against gnulib sources
7985         * cfg.mk: New file, to disable all currently-failing tests.
7986         We'll enable them one by one, as they are made to pass.
7987         * Makefile (sc_maint): New rule.
7988
7989 2012-01-21  Bruno Haible  <bruno@clisp.org>
7990
7991         stdint: Add support for Android.
7992         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
7993         include the system's <stdint.h>.
7994         Reported by Simon Josefsson <simon@josefsson.org>.
7995
7996 2012-01-19  Jim Meyering  <meyering@redhat.com>
7997
7998         bootstrap: add bootstrap_post_import_hook
7999         Bison does still need something like the gnulib_mk_hook whose
8000         invocation I had to remove along with slurp in commit 767ccd40.
8001         Technically, we could get along without it, but doing so would
8002         have required living with a warning and a mandatory post-bootstrap
8003         automake rerun.
8004         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
8005         (bootstrap_post_import_hook): New function.
8006         Invoke it after gnulib-tool --import and before autoreconf.
8007
8008 2012-01-18  Jim Meyering  <meyering@redhat.com>
8009
8010         gitlog-to-changelog: don't use "no_"-prefixed variable name
8011         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
8012         to enable both --cluster and --no-cluster.  Change variable name,
8013         s/\$no_cluster/$cluster/, and reverse usage to match.
8014
8015         gitlog-to-changelog: use "||", not "or" in expressions
8016         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
8017         expressions.
8018
8019 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
8020
8021         gitlog-to-changelog: new option --no-cluster
8022         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
8023         clustering of adjacent commit messages.
8024
8025 2012-01-17  Jim Meyering  <meyering@redhat.com>
8026
8027         maint: spell file systems with two words, not one
8028         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
8029         two words, not one.
8030
8031 2012-01-16  Jim Meyering  <meyering@redhat.com>
8032
8033         bootstrap: add a FIXME comment to ensure we eventually remove the hack
8034         * build-aux/bootstrap (gnulib_tool_options): Add comment.
8035
8036 2012-01-16  Eric Blake  <eblake@redhat.com>
8037
8038         bootstrap: cater to autoconf 2.59
8039         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
8040         is not available.
8041
8042         bootstrap: properly check for libtool
8043         * build-aux/bootstrap (libtoolize): Also run libtool when older
8044         usage is detected.
8045
8046 2012-01-15  Bruno Haible  <bruno@clisp.org>
8047
8048         Improve support for MSVC 9.
8049         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
8050         clashes on MSVC.
8051         * lib/fcntl.in.h: Likewise.
8052         * lib/stdlib.in.h: Likewise.
8053         * lib/sys_stat.in.h: Likewise.
8054
8055 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
8056
8057         gnupload: we hold the master copy of this script now
8058         For motivation and more information, see:
8059         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
8060         * build-aux/gnupload: Make it clear in the heading comments that the
8061         master copy of this file is maintained by gnulib.  Since we are at
8062         it, bump its copyright year and ...
8063         ($scriptversion): ... the date in its version.
8064         ($usage): Patches and bug reports should be sent to the gnulib list,
8065         not the automake one.
8066         * config/srclist.txt: Don't try to sync 'gnupload' from automake
8067         anymore.
8068
8069 2012-01-15  Bruno Haible  <bruno@clisp.org>
8070
8071         Fix module 'random'.
8072         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
8073         initstate, setstate are declared.
8074
8075 2012-01-14  Bruno Haible  <bruno@clisp.org>
8076
8077         Tests for module 'random'.
8078         * modules/random-tests: New file.
8079         * tests/test-random.c: New file, based on tests/test-random_r.c.
8080
8081         New module 'random'.
8082         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
8083         declarations.
8084         * lib/random.c: New file, based on glibc/stdlib/random.c.
8085         * m4/random.m4: New file.
8086         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
8087         HAVE_RANDOM.
8088         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
8089         * modules/random: New file.
8090         * config/srclist.txt: Add an entry for random.c.
8091         * doc/posix-functions/random.texi: Mention the 'random' module.
8092         * doc/posix-functions/initstate.texi: Likewise.
8093         * doc/posix-functions/setstate.texi: Likewise.
8094         * doc/posix-functions/srandom.texi: Likewise.
8095
8096 2012-01-12  Bruno Haible  <bruno@clisp.org>
8097
8098         random_r: Use common idioms.
8099         * lib/random_r.c: Include <stdlib.h> first.
8100
8101         random_r: Override incompatible API on AIX, OSF/1.
8102         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
8103         Override the system function if REPLACE_RANDOM_R is 1.
8104         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
8105         and OSF/1, set REPLACE_RANDOM_R.
8106         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
8107         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
8108         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
8109         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
8110         * doc/glibc-functions/random_r.texi: Likewise.
8111         * doc/glibc-functions/setstate_r.texi: Likewise.
8112
8113         random_r: Support for MSVC 9.
8114         * lib/random_r.c: Include stdint.h, not inttypes.h.
8115
8116 2012-01-12  Eric Blake  <eblake@redhat.com>
8117
8118         inet_ntop: guard extra work by IF_LINT
8119         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
8120         better code generation when not checking for warnings.
8121         Suggested by Paul Eggert and Jim Meyering.
8122
8123         strptime: fix regression on mingw
8124         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
8125         Fix regression.  Reported by Bruno Haible.
8126
8127 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
8128             Bruno Haible  <bruno@clisp.org>
8129
8130         copy-file: add error-code-returning variant.
8131         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
8132         (qcopy_file_preserving): New declaration.
8133         * lib/copy-file.c (qcopy_file_preserving): Renamed from
8134         copy_file_preserving. Change return type to 'int'. Don't emit an error
8135         message here.
8136         (copy_file_preserving): New function.
8137         * tests/test-copy-file.c: Include <stdlib.h>.
8138         (main): Test qcopy_file_preserving if the environment variable
8139         NO_STDERR_OUTPUT is set.
8140         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
8141         with NO_STDERR_OUTPUT
8142         * tests/test-copy-file-2.sh: Likewise.
8143
8144 2012-01-10  Bruno Haible  <bruno@clisp.org>
8145
8146         copy-file: Use 'quote' module consistently.
8147         * lib/copy-file.c (copy_file_preserving): Use quote().
8148
8149         copy-file: Refactor.
8150         * lib/copy-file.c: Include quote.h.
8151         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
8152         message here.
8153         * modules/copy-file (Depends-on): Add quote.
8154
8155         acl: Export qcopy_acl.
8156         * lib/acl.h (qcopy_acl): New declaration.
8157         * lib/copy-acl.c (qcopy_acl): Make non-static.
8158
8159         acl: Rename a local variable.
8160         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
8161
8162         acl: Align return values of copy_acl and qcopy_acl.
8163         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
8164         maybe < -1.
8165
8166 2012-01-11  Eric Blake  <eblake@redhat.com>
8167
8168         strptime: silence gcc warnings
8169         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
8170         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
8171         Reported by Daniel P. Berrange.
8172
8173         inet_ntop: silence gcc warning
8174         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
8175         Reported by Daniel P. Berrange.
8176
8177 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
8178
8179         getloadavg test: skip the test on GNU/Linux without /proc mounted
8180         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
8181         file.  When /proc is not mounted, it always fails with ENOENT.
8182         * tests/test-getloadavg.c (main): Treat ENOENT return code from
8183         getloadavg(3) the same way as ENOSYS and ENOTSUP.
8184
8185 2012-01-10  Bruno Haible  <bruno@clisp.org>
8186
8187         regex: Avoid link error on MSVC 9.
8188         * modules/regex (Depends-on): Add wctype.
8189
8190 2012-01-10  Bruno Haible  <bruno@clisp.org>
8191
8192         doc: Mention --with-tests option.
8193         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
8194         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
8195         --with-tests.
8196         Reported by Reuben Thomas.
8197
8198 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
8199
8200         users.txt: order package names lexicographically.
8201         * users.txt: Order package names lexicographically.
8202
8203 2012-01-10  Jim Meyering  <meyering@redhat.com>
8204
8205         maint.mk: fix description in comment
8206         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
8207
8208         ignore-value: remove deprecated ignore_ptr function
8209         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
8210         * NEWS: Note this.
8211
8212 2012-01-09  Jim Meyering  <meyering@redhat.com>
8213
8214         test-init.sh: avoid a subshell
8215         * tests/test-init.sh: Remove protective subshell.
8216         Suggested by Bernhard Voelker.  While a subshell is normally
8217         required to protect against older shells (Solaris, FreeBSD) that
8218         warn about a missing program before performing redirection, the
8219         shell-selection tests performed by init.sh probably exclude any
8220         offending shell.
8221
8222 2012-01-08  Bruno Haible  <bruno@clisp.org>
8223
8224         setlocale tests: Avoid test failure on Solaris 11 2011-11.
8225         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
8226         variable.
8227
8228 2012-01-08  Bruno Haible  <bruno@clisp.org>
8229
8230         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
8231         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
8232         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
8233         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
8234         macro.
8235         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
8236         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
8237         * lib/spawn_faction_addopen.c: Add workaround implementation if
8238         HAVE_WORKING_POSIX_SPAWN.
8239         * modules/spawn (Makefile): Substitute
8240         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
8241         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
8242         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
8243         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
8244         (Depends-on): Update conditions.
8245         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
8246         the Solaris 11 bug.
8247
8248 2012-01-08  Bruno Haible  <bruno@clisp.org>
8249
8250         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
8251         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
8252         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
8253         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
8254         macro.
8255         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
8256         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
8257         * lib/spawn_faction_adddup2.c: Add workaround implementation if
8258         HAVE_WORKING_POSIX_SPAWN.
8259         * modules/spawn (Makefile): Substitute
8260         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
8261         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
8262         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
8263         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
8264         (Depends-on): Update conditions.
8265         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
8266         the Solaris 11 bug.
8267
8268 2012-01-08  Bruno Haible  <bruno@clisp.org>
8269
8270         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
8271         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
8272         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
8273         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
8274         HAVE_WORKING_POSIX_SPAWN.
8275         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
8276         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
8277         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
8278         * lib/spawn_faction_addclose.c: Add workaround implementation if
8279         HAVE_WORKING_POSIX_SPAWN.
8280         * modules/spawn (Makefile): Substitute
8281         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
8282         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
8283         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
8284         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
8285         (Depends-on): Update conditions.
8286         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
8287         the Solaris 11 bug.
8288
8289 2012-01-08  Bruno Haible  <bruno@clisp.org>
8290
8291         doc: Update for Solaris 11 2011-11.
8292         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
8293         * m4/printf.m4: Update comments.
8294
8295 2012-01-08  Bruno Haible  <bruno@clisp.org>
8296
8297         mktime: Avoid compilation error on Solaris 11.
8298         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
8299
8300 2012-01-08  Bruno Haible  <bruno@clisp.org>
8301
8302         doc: Small fix.
8303         * doc/posix-headers/nl_types.texi: Correct platforms list.
8304
8305 2012-01-08  Simon Josefsson  <simon@josefsson.org>
8306
8307         Add lgpl-3.0 module.
8308         * MODULES.html.sh (Support for building documentation): Add
8309         lgpl-3.0.
8310         * modules/lgpl-3.0: New file.
8311
8312 2012-01-08  Jim Meyering  <meyering@redhat.com>
8313
8314         select.c: indent with spaces, not TABs
8315         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
8316
8317 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
8318
8319         quotearg: do not use grave accent for left quote
8320         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
8321         locale_quoting_style.
8322         (quotearg_buffer_restyled): Fix example.
8323         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
8324
8325 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
8326
8327         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
8328         Most programs do not have translation catalogs for English and much
8329         less separate catalogs for British and American English.  Drop the
8330         suggestion to translators about these two, and provide it
8331         automatically for Unicode locales.  Like most programs, even those
8332         using American English, we use single quotation marks.  This conflicts
8333         with the American typographic convention, but works better when you
8334         cite the entire error message within double quotes.  It also tries not
8335         to clash with established practice and with what non-gnulib programs
8336         will usually do.
8337         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
8338         using an UTF-8 or GB-18030 locale.  The list of other locales with
8339         quotes was provided by Bruno Haible.
8340         (quotearg_buffer_restyled): Adjust instructions to translators.
8341         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
8342         text, since this would be wrong when using Unicode.
8343         * modules/quotearg: Depend on c-strcaseeq.
8344
8345 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
8346
8347         quotearg: fix Wikipedia link
8348         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
8349
8350 2012-01-07  Simon Josefsson  <simon@josefsson.org>
8351
8352         Fix for mingw with MSVC9.
8353         * m4/ld-version-script.m4: Check that compiler rejects version
8354         scripts with syntax errors.  Reported by Bruno Haible
8355         <bruno@clisp.org>.
8356
8357 2012-01-06  Bruno Haible  <bruno@clisp.org>
8358
8359         Talk about "native Windows API", not "Woe32".
8360         * lib/accept4.c: Update comments to mention native Windows.
8361         * lib/execute.c: Likewise.
8362         * lib/fatal-signal.c: Likewise.
8363         * lib/localcharset.c: Likewise.
8364         * lib/nanosleep.c: Likewise.
8365         * lib/nl_langinfo.c: Likewise.
8366         * lib/pclose.c: Likewise.
8367         * lib/pipe-filter-gi.c: Likewise.
8368         * lib/pipe-filter-ii.c: Likewise.
8369         * lib/pipe.c: Likewise.
8370         * lib/pipe2.c: Likewise.
8371         * lib/popen.c: Likewise.
8372         * lib/progreloc.c: Likewise.
8373         * lib/relocatable.c: Likewise.
8374         * lib/sigaction.c: Likewise.
8375         * lib/sigprocmask.c: Likewise.
8376         * lib/spawn-pipe.h: Likewise.
8377         * lib/spawn-pipe.c: Likewise.
8378         * lib/spawni.c: Likewise.
8379         * lib/stat-time.h: Likewise.
8380         * lib/w32spawn.h: Likewise.
8381         * tests/test-isatty.c: Likewise.
8382         * lib/config.charset: More comments.
8383         * doc/gnulib-intro.texi: Mention native Windows.
8384         * doc/posix-functions/_Exit_C99.texi: Likewise.
8385         * doc/posix-headers/fcntl.texi: Likewise.
8386
8387 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
8388
8389         argp: Avoid crash if translator uses % characters in a translation.
8390         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
8391         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
8392
8393 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
8394
8395         doc: C11 and C++11 are now official
8396         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
8397         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
8398         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
8399         * modules/stdalign:
8400         Replace references to draft C1X to C11, and to draft C++0X to C++11.
8401
8402 2012-01-06  Bruno Haible  <bruno@clisp.org>
8403
8404         uc-is-grapheme-break tests: Tweak.
8405         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
8406         message.
8407
8408 2012-01-06  Bruno Haible  <bruno@clisp.org>
8409
8410         test-init.sh: correct the test for diff -u
8411         * tests/test-init.sh: Also redirect stdout to /dev/null.
8412
8413 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
8414
8415         Use ', not `, for quoting output.
8416         * build-aux/announce-gen (usage, sizes, print_news_deltas)
8417         (print_changelog_deltas, get_tool_versions, main program):
8418         * build-aux/git-version-gen:
8419         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
8420         * build-aux/move-if-change (help):
8421         * build-aux/useless-if-before-free (usage, main program):
8422         * check-module (parse_module_file, usage)
8423         (find_included_lib_files, check_module):
8424         * lib/argmatch.c (main) [TEST]:
8425         * lib/argp-help.c (_help):
8426         * lib/getopt1.c (main) [TEST]:
8427         * lib/git-merge-changelog.c (usage):
8428         * lib/xstrtol-error.c (xstrtol_error):
8429         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
8430         * m4/argz.m4 (gl_FUNC_ARGZ):
8431         * m4/bison.m4 (gl_BISON):
8432         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
8433         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
8434         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
8435         * m4/fpending.m4 (gl_PREREQ_FPENDING):
8436         * m4/gc-random.m4 (gl_GC_RANDOM):
8437         * m4/intl.m4 (gt_CHECK_DECL):
8438         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
8439         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
8440         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
8441         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
8442         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
8443         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
8444         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
8445         * tests/test-dirname.c (main):
8446         * tests/test-getpass.c (main):
8447         * tests/test-iconvme.c (main):
8448         * tests/test-parse-datetime.c (LOG):
8449         * tests/test-xstrtoimax.sh:
8450         * tests/test-xstrtol.sh:
8451         * tests/test-xstrtoll.sh:
8452         * tests/test-xstrtoumax.sh:
8453         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
8454         * top/GNUmakefile (abort-due-to-no-makefile):
8455         Quote 'like this', not `like this', as per the recent change to
8456         the GNU coding standards.
8457
8458 2012-01-05  Bruno Haible  <bruno@clisp.org>
8459
8460         strtoimax: Don't force a replacement on systems where intmax_t is int.
8461         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
8462         'intmax_t' is not larger than 'int'.
8463         Reported by Pádraig Brady <P@draigBrady.com>.
8464
8465 2012-01-05  Bruno Haible  <bruno@clisp.org>
8466
8467         doc: Mention NetBSD bugs.
8468         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
8469         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
8470
8471 2012-01-05  Bruno Haible  <bruno@clisp.org>
8472
8473         strtoumax tests: Enhance tests.
8474         * tests/test-strtoumax.c (main): Add tests for large values.
8475
8476 2012-01-05  Bruno Haible  <bruno@clisp.org>
8477
8478         strtoimax: Work around AIX 5.1 bug.
8479         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
8480         definition.
8481         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
8482         Set HAVE_STRTOIMAX.
8483         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
8484         REPLACE_STRTOIMAX.
8485         * modules/inttypes-incomplete (Makefile.am): Substitute
8486         REPLACE_STRTOIMAX.
8487         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
8488         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
8489         (Depends-on): Update conditions.
8490         * tests/test-strtoimax.c (main): Add tests for large values.
8491         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
8492
8493 2012-01-05  Bruno Haible  <bruno@clisp.org>
8494
8495         inttypes: Modernize.
8496         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
8497         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
8498         (Makefile.am): Update inttypes.h rule.
8499
8500 2012-01-05  Jim Meyering  <meyering@redhat.com>
8501
8502         init.sh: don't waste a subshell just to redirect stderr
8503         * tests/init.sh: In testing for diff -u and diff -c, use a
8504         stderr-redirecting exec inside `...` rather than a subshell.
8505
8506         test-init.sh: avoid failure on HP-UX 11.00
8507         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
8508         resolves to diff -c or cmp.  Reported by Bruno Haible.
8509
8510 2012-01-05  Bruno Haible  <bruno@clisp.org>
8511
8512         Tests for module 'strtoull'.
8513         * modules/strtoull-tests: New file.
8514         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
8515
8516 2012-01-05  Bruno Haible  <bruno@clisp.org>
8517
8518         Tests for module 'strtoll'.
8519         * modules/strtoll-tests: New file.
8520         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
8521
8522 2012-01-05  Bruno Haible  <bruno@clisp.org>
8523
8524         Tests for module 'strtoul'.
8525         * modules/strtoul-tests: New file.
8526         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
8527
8528 2012-01-05  Bruno Haible  <bruno@clisp.org>
8529
8530         Tests for module 'strtol'.
8531         * modules/strtol-tests: New file.
8532         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
8533
8534 2012-01-04  Jim Meyering  <meyering@redhat.com>
8535
8536         test-init.sh: accommodate Solaris 5.10's different diff -u output
8537         * tests/test-init.sh: Also exempt @@ lines from the comparison
8538         of diff output, since Solaris 5.10 and GNU diff formats differ.
8539         Reported by Stefano Lattarini.
8540
8541 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
8542
8543         test-posixtm: don't assume signed integer wraparound
8544         * tests/test-posixtm.c (main): Don't assume wraparound semantics
8545         after signed integer overflow.  Inspired by (though it may not
8546         fix) Bruno Haible's bug report in
8547         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
8548
8549         Spell out "Windows 9x" and "Windows XP".
8550         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
8551         "Windows 9x" and "WinXP" with "Windows XP".
8552
8553 2012-01-04  Jim Meyering  <meyering@redhat.com>
8554
8555         test-vc-list-files-cvs.sh: remove obsolete comment
8556         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
8557         double exit.  Now that's all encapsulated via skip_ and Exit.
8558
8559 2012-01-04  Bruno Haible  <bruno@clisp.org>
8560
8561         Talk about "native Windows API", not "Win32".
8562         * lib/classpath.c: Update comments to mention native Windows.
8563         * lib/csharpexec.c: Likewise.
8564         * lib/dup2.c: Likewise.
8565         * lib/error.c: Likewise.
8566         * lib/fcntl.c: Likewise.
8567         * lib/filename.h: Likewise.
8568         * lib/findprog.c: Likewise.
8569         * lib/get-rusage-as.c: Likewise.
8570         * lib/get-rusage-data.c: Likewise.
8571         * lib/getpagesize.c: Likewise.
8572         * lib/javaexec.c: Likewise.
8573         * lib/msvc-inval.c: Likewise.
8574         * lib/msvc-nothrow.c: Likewise.
8575         * lib/nanosleep.c: Likewise.
8576         * lib/nonblocking.c: Likewise.
8577         * lib/printf-parse.c: Likewise.
8578         * lib/setlocale.c: Likewise.
8579         * lib/sigaction.c: Likewise.
8580         * lib/strerror_r.c: Likewise.
8581         * lib/tmpdir.c: Likewise.
8582         * lib/vasnprintf.c: Likewise.
8583         * lib/w32spawn.h: Likewise.
8584         * lib/waitpid.c: Likewise.
8585         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
8586         * m4/locale-ar.m4: Likewise.
8587         * m4/locale-fr.m4: Likewise.
8588         * m4/locale-ja.m4: Likewise.
8589         * m4/locale-tr.m4: Likewise.
8590         * m4/locale-zh.m4: Likewise.
8591         * m4/printf.m4: Likewise.
8592         * tests/test-cloexec.c: Likewise.
8593         * tests/test-copy-acl.sh: Likewise.
8594         * tests/test-copy-file.sh: Likewise.
8595         * tests/test-file-has-acl.sh: Likewise.
8596         * tests/test-set-mode-acl.sh: Likewise.
8597         * tests/test-dup-safer.c: Likewise.
8598         * tests/test-dup2.c: Likewise.
8599         * tests/test-dup3.c: Likewise.
8600         * tests/test-fcntl.c: Likewise.
8601         * tests/test-nonblocking-pipe.h: Likewise.
8602         * tests/test-nonblocking-socket.h: Likewise.
8603         * tests/test-pipe.c: Likewise.
8604         * tests/test-pipe2.c: Likewise.
8605         * tests/test-spawn-pipe-child.c: Likewise.
8606         * doc/acl-resources.txt: Likewise.
8607         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
8608         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
8609         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
8610         * lib/localcharset.c: Update comments to mention native Windows.
8611         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
8612         * lib/localename.c: Likewise.
8613         * lib/progreloc.c: Likewise.
8614         * lib/relocatable.c: Likewise.
8615         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
8616         (windows_compute_revents): Renamed from win32_compute_revents.
8617         (windows_compute_revents_socket): Renamed from
8618         win32_compute_revents_socket.
8619         * lib/select.c: Update comments to mention native Windows.
8620         (windows_poll_handle): Renamed from win32_poll_handle.
8621         * m4/threadlib.m4: Update comments to mention native Windows.
8622         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
8623         --enable-threads=windows instead of --enable-threads=win32. Set
8624         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
8625         * lib/glthread/lock.h: Update comments to mention native Windows.
8626         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
8627         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
8628         USE_WIN32_THREADS.
8629         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
8630         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
8631         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
8632         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
8633         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
8634         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
8635         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
8636         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
8637         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
8638         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
8639         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
8640         * tests/test-tls.c: Likewise.
8641         Rationale:
8642         Microsoft renamed the "Win32 API" to "Windows API", as it is available
8643         on both 32-bit and 64-bit Windows systems.
8644         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
8645         line of distinction is between "native Windows" on one side and Unix/
8646         POSIX systems on the other side. More details in
8647         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
8648         Suggested by Paul Eggert.
8649
8650 2012-01-03  Bruno Haible  <bruno@clisp.org>
8651
8652         isatty: Support for MSVC 9.
8653         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
8654         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
8655         (_isatty_nothrow): New function.
8656         (isatty): Use it instead of _isatty.
8657         (IsConsoleHandle): Add comment, from Paolo Bonzini.
8658         * lib/poll.c (IsConsoleHandle): Likewise.
8659         * lib/select.c (IsConsoleHandle): Likewise.
8660         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
8661         (gl_PREREQ_ISATTY): New macro.
8662         * modules/isatty (Depends-on): Add msvc-inval.
8663         (configure.ac): Invoke gl_PREREQ_ISATTY.
8664
8665 2012-01-03  Jim Meyering  <meyering@redhat.com>
8666
8667         maint.mk: remove temporary transition aid from over 1.5 years ago
8668         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
8669         purpose was to aid in the transition (avoiding silent malfunction)
8670         from that old name to the new _sc_search_regexp.  This shim was
8671         added by commit 219c504b.
8672
8673         init.sh: do not try to accommodate compare arguments starting with "-"
8674         * tests/init.sh (compare_dev_null_): Do not try to accommodate
8675         compare arguments that start with "-".  Besides, we do not worry
8676         about this when invoking diff or cmp; why start now with sed?
8677         Using "--" to separate options from argument would trigger sed
8678         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
8679         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
8680
8681 2012-01-02  Bruno Haible  <bruno@clisp.org>
8682
8683         Enhance tests for module 'isatty'.
8684         * modules/isatty-tests (Depends-on): Add pipe-posix.
8685         * tests/test-isatty.c: Include <fcntl.h>.
8686         (DEV_NULL): New macro.
8687         (main): Test the resut of isatty() also on regular files, pipes, and
8688         /dev/null.
8689
8690         New module 'isatty'.
8691         * lib/unistd.in.h (isatty): New declaration.
8692         * lib/isatty.c: New file, based on an idea of
8693         Bastien Roucariès <roucaries.bastien@gmail.com>.
8694         * m4/isatty.m4: New file.
8695         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
8696         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
8697         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
8698         REPLACE_ISATTY.
8699         * modules/isatty: New file.
8700         * doc/posix-functions/isatty.texi: Mention the new module.
8701         Suggested by Paolo Bonzini.
8702
8703 2012-01-02  Bruno Haible  <bruno@clisp.org>
8704
8705         canonicalize: Tweak 2011-12-29 commit.
8706         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
8707         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
8708
8709 2012-01-02  Jim Meyering  <meyering@redhat.com>
8710
8711         gitlog-to-changelog: describe input syntax in --help output
8712         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
8713
8714         gitlog-to-changelog: fix typo in --help: show backslash before email @
8715         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
8716         in sources, but not in actual output.
8717
8718 2011-12-30  Jim Meyering  <meyering@redhat.com>
8719
8720         gitlog-to-changelog: don't malfunction when name contains %-directive
8721         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
8722         in a name string cause trouble.  E.g., with a user name of "%s",
8723         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
8724
8725 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
8726
8727         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
8728         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
8729         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
8730         the "  (tiny change)" notation that is appended to the standard
8731         ChangeLog "date  name  email" header line.
8732
8733 2012-01-01  Jim Meyering  <meyering@redhat.com>
8734
8735         test-framework-sh: init.sh: fix "make dist" failure
8736         When using gnulib-tool's --with-tests option and any module that
8737         depends on test-framework-sh, "make dist" would fail due to the
8738         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
8739         in the gltests directory, and not in the gllib/ directory.
8740         One way to work around that is to move the EXTRA_DIST += init.sh
8741         from the primary module to the -tests one:
8742         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
8743         * modules/test-framework-sh (Makefile.am): ...not here.
8744         Reported by Tom G. Christensen in
8745         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
8746
8747         version-etc: update copyright year reported by --version
8748         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
8749
8750 2011-12-31  Pádraig Brady  <P@draigBrady.com>
8751
8752         canonicalize: only stat() if required
8753         * lib/canonicalize.c (canonicalize_filename_mode):
8754         Avoid calling l?stat() when both CAN_MISSING,
8755         and CAN_NOLINKS are set, as we neither need
8756         to resolve symlinks or test component existence.
8757
8758 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
8759
8760         doc: cover st_ino issues once; add OpenVMS etc.
8761         * doc/posix-functions/stat.texi (stat):
8762         * doc/posix-functions/lstat.texi (lstat):
8763         * doc/posix-functions/fstatat.texi (fstatat):
8764         * doc/posix-functions/fstat.texi (fstat):
8765         Move general 'struct stat' stuff to sys_stat.texi,
8766         leaving behind a pointer.
8767         * doc/posix-headers/sys_stat.texi (sys/stat.h):
8768         Merge duplicate info about 'struct stat' problems into here.
8769         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
8770         and suggest partial workarounds.
8771
8772         same-inode: port to OpenVMS
8773         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
8774         three st_ino values.
8775
8776 2011-12-30  Pádraig Brady  <P@draigBrady.com>
8777
8778         canonicalize: fix references to stat() and lstat()
8779         * lib/canonicalize.c (canonicalize_filename_mode):
8780         Ensure references always resolve to a replacement
8781         function if required (even via a macro).
8782
8783 2011-12-30  Jim Meyering  <meyering@redhat.com>
8784
8785         gitlog-to-changelog: remove a little duplication
8786         * build-aux/gitlog-to-changelog (main): Grep @lines once,
8787         rather than twice.
8788
8789 2011-12-29  Pádraig Brady  <P@draigBrady.com>
8790
8791         canonicalize: add support for not resolving symlinks
8792         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
8793         indicate we don't want to follow symlinks.  Also
8794         provide CAN_MODE_MASK to aid setting these existing
8795         mutually exclusive values.
8796         * lib/canonicalize.c (canonicalize_filename_mode):
8797         Extract the flags from can_mode parameter, which
8798         are currently just used to select between stat()
8799         and lstat().  Also ensure that mutually exclusive
8800         values are flagged immediately as invalid.
8801         * tests/test-canonicalize.c: Verify symlinks are
8802         not followed, and that invalid flag combinations
8803         are diagnosed.
8804
8805 2011-12-25  Jim Meyering  <meyering@redhat.com>
8806
8807         gitlog-to-changelog: do not clump multi-paragraph entries
8808         Identical header lines (date,name,email+coauthors) are suppressed,
8809         thus putting all entries with those same characteristics under
8810         a single header.  However, when a log entry consists of two or
8811         more paragraphs, it may not be clear where it starts and ends.
8812         This change makes it so that such an entry is always separated
8813         from others by a header line, even when that header would
8814         otherwise be suppressed.
8815         * build-aux/gitlog-to-changelog: Implement the above.
8816         Inspired by a related request from Stefano Lattarini in
8817         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
8818
8819 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
8820
8821         announce-gen: fix `cmd' typo in diagnostic
8822         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
8823         diagnostic: a missing '$' meant that the command was not output.
8824
8825 2011-12-23  Jim Meyering  <meyering@redhat.com>
8826
8827         test-framework-sh: distribute init.sh
8828         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
8829         Otherwise, "make -C gnulib-tests check" (at least in grep) would
8830         fail due to the lack of init.sh.
8831
8832         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
8833         * modules/atexit-tests: Rather than listing tests/init.sh,
8834         now that there's a module for it, simply depend on that new module.
8835         * modules/closein-tests: Likewise.
8836         * modules/exclude-tests: Likewise.
8837         * modules/getcwd-tests: Likewise.
8838         * modules/perror-tests: Likewise.
8839         * modules/pread-tests: Likewise.
8840         * modules/pwrite-tests: Likewise.
8841         * modules/vc-list-files-tests: Likewise.
8842         * modules/verify-tests: Likewise.
8843         * modules/xalloc-die-tests: Likewise.
8844         * modules/xstrtoimax-tests: Likewise.
8845         * modules/xstrtol-tests: Likewise.
8846         * modules/xstrtoll-tests: Likewise.
8847         * modules/xstrtoumax-tests: Likewise.
8848         * modules/yesno-tests: Likewise.
8849
8850 2011-12-22  Jim Meyering  <meyering@redhat.com>
8851
8852         test-framework-sh: add minimal tests of init.sh's compare function
8853         * modules/test-framework-sh-tests: New file.
8854         * tests/test-init.sh: New file.
8855
8856         test-framework-sh: new module
8857         * modules/test-framework-sh: New file.
8858         * MODULES.html.sh (Support for maintaining and releasing projects):
8859         List it.
8860
8861         init.sh: do not emit simulated diff output to stderr
8862         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
8863
8864 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
8865
8866         .gitignore: ignore gnulib.dvi and regex.info
8867         * doc/.gitignore:add gnulib.dvi and regex.info
8868
8869 2011-12-22  Jim Meyering  <meyering@redhat.com>
8870
8871         init.sh: correct previous change
8872         * tests/init.sh (compare): My previous change was wrong.
8873         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
8874
8875         init.sh: avoid unwarranted test failure when using "set -e"
8876         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
8877         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
8878         a use like "compare exp out" would get evoke an unconditional failure.
8879
8880 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
8881
8882         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
8883         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
8884         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
8885         autoreconf that did not.
8886         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
8887         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
8888
8889 2011-12-17  Jim Meyering  <meyering@redhat.com>
8890
8891         bootstrap: remove some now-unneeded code
8892         This script arose back when gnulib-tool was young.
8893         Since then, it has seen improvements that render much of this
8894         script unnecessary.  In particular, it can now make symlinks
8895         to the files it uses.  Also, I no longer see as much value in
8896         marking files as read-only via comments.
8897         If you relied on the symlink-creation feature of the preceding
8898         version of this script, you can get most of that functionality
8899         by adding the --symlink option to the definition of
8900         gnulib_tool_option_extras in your bootstrap.conf file.
8901         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
8902         Run autopoint and libtoolize *before* gnulib-tool.
8903         After it, run an abbreviated autoreconf, rather than a loop around
8904         all tools.
8905         (slirp, bt_mark_as_generated): Remove functions.
8906
8907 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
8908
8909         ftoastr: fix typo
8910         * lib/ftoastr.h: Fix misspelling in comment.
8911
8912 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
8913
8914         * top/README-release: fix punctuation.
8915
8916 2011-12-17  Jim Meyering  <meyering@redhat.com>
8917
8918         bootstrap: correct the recent buildreq change
8919         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
8920         had no effect.
8921         * build-aux/bootstrap (buildreq): Bracket each search term with
8922         "*...*", so that the shell "case" statement works as intended.
8923         Add comments.
8924
8925 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
8926
8927         build: let bootstrap resort to wget when downloading .po files
8928         * build-aux/bootstrap (download_po_files): Fallback to wget when
8929         downloading the .po files via rsync fails.  This is necessary to
8930         bootstrap from behind a strict firewall.
8931
8932 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
8933
8934         stdint: don't assume C++11 when compiling with g++
8935         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
8936         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
8937         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
8938         work also in C++ before C++11, as that improperly inhibits
8939         generating a substitute stdint.h for that case.
8940
8941 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
8942
8943         alloca: protect comment from gnulib-tool
8944         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
8945         that gnulib-tool doesn't think it's a license, and munge it to
8946         say "GCC version 3".
8947
8948 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
8949
8950         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
8951         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
8952         $(abs_top_builddir) instead of $(top_builddir).
8953
8954 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
8955
8956         strftime-tests: also test nanoseconds
8957         * tests/test-strftime.c (T): Add a test of %N.
8958
8959 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
8960
8961         inttypes, stdint: add C++11 support
8962         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
8963         when including inttypes.h and stdint.h.  Support this change to
8964         the standard.
8965         * doc/posix-headers/inttypes.texi (inttypes.h):
8966         * doc/posix-headers/stdint.texi (stdint.h): Document this.
8967         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
8968         Define if not defined already, for the benefit of pre-C++11 hosts.
8969         Define the standard format macros (e.g., PRId8) always.
8970         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
8971         Likewise, if __cpluspus.  Define the standard constant and limit
8972         macros (e.g., INT8_C, INT8_MAX) always.
8973         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
8974         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
8975         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
8976         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
8977         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
8978         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
8979         Likewise.
8980
8981 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
8982
8983         nonblocking tests: Fix test failure on Linux/PPC.
8984         Suggested by Prerna Saxena in
8985         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
8986         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
8987         Set to 1100000.
8988
8989 2011-12-12  Jim Meyering  <meyering@redhat.com>
8990
8991         argmatch: don't hard-code `' when listing valid option arguments
8992         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
8993         use the quote function to add quotes.  Use fputs rather than
8994         fprintf for the format string with no format directive.
8995
8996 2011-12-07  Eric Blake  <eblake@redhat.com>
8997
8998         bootstrap: detect tools required by gnulib-tool
8999         * build-aux/bootstrap (buildreq): Provide minimum implicit
9000         dependencies.
9001         * DEPENDENCIES: Mention patch as a prereq.
9002
9003 2011-12-04  Bruno Haible  <bruno@clisp.org>
9004
9005         sethostname: Port to Windows platforms.
9006         * lib/sethostname.c: Provide an alternate implementation for Windows
9007         platforms.
9008         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
9009         (main): Skip the test if sethostname() fails with EPERM. On Windows
9010         platforms, don't check the result of gethostname().
9011
9012 2011-12-04  Bruno Haible  <bruno@clisp.org>
9013             Jim Meyering  <meyering@redhat.com>
9014
9015         tests: Avoid spurious error message on platforms without mktemp program.
9016         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
9017
9018 2011-12-04  Bruno Haible  <bruno@clisp.org>
9019
9020         sethostname: Fix documentation.
9021         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
9022         "not fixed" section.
9023
9024 2011-12-03  Bruno Haible  <bruno@clisp.org>
9025
9026         gnulib-tool: Verify that the License field is present and non-empty.
9027         * gnulib-tool (func_get_license_raw): New function, extracted from
9028         func_get_license.
9029         (func_get_license): Use it. Warn if the module is not a test module and
9030         has no license.
9031         Suggested by Jim Meyering.
9032
9033 2011-12-03  Bruno Haible  <bruno@clisp.org>
9034
9035         sethostname tests: Fix link error on mingw.
9036         * tests/test-sethostname1.c: New file, extracted from
9037         tests/test-sethostname.c.
9038         * tests/test-sethostname2.c: New file, extracted from
9039         tests/test-sethostname.c.
9040         * tests/test-sethostname.c: Remove file.
9041         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
9042         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
9043         (Depends-on): Add gethostname.
9044         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
9045         Link the latter with $(GETHOSTNAME_LIB).
9046
9047         sethostname tests: Fix compilation error on mingw.
9048         * tests/test-sethostname.c: Don't include <sys/types.h>.
9049         (geteuid): Use a dummy value without uid_t.
9050         * modules/sethostname-tests (Depends-on): Remove sys_types.
9051
9052         sethostname tests: Avoid a gcc warning.
9053         * tests/test-sethostname.c (main): Remove an unused variable.
9054
9055         Tweak last commit.
9056         * modules/sethostname-tests (Files): Sort by decreasing importance.
9057         (configure.ac): Check for geteuid.
9058         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
9059         the test when there's nothing to test. Drop an unnecessary cast.
9060         Improve an error message. Verify that the final sethostname() call
9061         succeeds.
9062
9063 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
9064
9065         Add a test suite for the sethostname module.
9066         * modules/sethostname-tests: New file.  A test program
9067         for the sethostname module.
9068         * tests/test-sethostname.c: Likewise.
9069
9070 2011-12-03  Bruno Haible  <bruno@clisp.org>
9071
9072         Tweak last commit.
9073         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
9074         Fix preprocessor directives indentation. Fix typos.
9075         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
9076         * modules/unistd (Makefile): Likewise.
9077
9078 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
9079
9080         Integrate the sethostname module into unistd.
9081         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
9082         into the unistd.h header.
9083         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
9084         preprocessor directives.
9085         * modules/unistd: Setup the Makefile substitutions of the
9086         SETHOSTNAME preprocessor directives.
9087
9088 2011-12-03  Bruno Haible  <bruno@clisp.org>
9089
9090         Tweak last commit.
9091         * lib/sethostname.c: Don't include <string.h>.
9092         (sethostname): No need to copy the argument string to the stack. Don't
9093         call clearerr. Preserve errno when fprintf failed.
9094         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
9095         Don't invoke AC_REPLACE_FUNCS.
9096         * modules/sethostname (Link): Remove empty section.
9097         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
9098         failure problem.
9099
9100 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
9101
9102         New module 'sethostname'.
9103         * lib/sethostname.c (sethostname): New file.  Provide sethostname
9104         for systems that lack it.
9105         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
9106         sethostname declaration and function.
9107         * modules/sethostname: New file.  Define the sethostname module.
9108
9109 2011-12-03  Bruno Haible  <bruno@clisp.org>
9110
9111         Tweak last commit.
9112         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
9113
9114 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
9115
9116         Split the HOST_NAME_MAX detection into a separate m4 macro.
9117         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
9118         macro so it can be used by the pending sethostname module.
9119
9120 2011-12-03  Bruno Haible  <bruno@clisp.org>
9121
9122         Fix module descriptions syntax.
9123         * modules/argv-iter (License): Fix syntax.
9124         * modules/di-set (License): Likewise.
9125         * modules/ino-map (License): Likewise.
9126         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
9127
9128 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
9129
9130         stdalign: port to Clang 3.0
9131         Problem reported by Simon Josefsson in
9132         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
9133         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
9134         which has <stdalign.h> but which does not define alignof.
9135         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
9136
9137 2011-12-01  Eric Blake  <eblake@redhat.com>
9138
9139         mktempd: silence dd usage
9140         * build-aux/mktempd (rand_bytes): Silence dd.
9141
9142 2011-11-30  Simon Josefsson  <simon@josefsson.org>
9143
9144         manywarnings: Don't mention gcc version in docstring.
9145         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
9146         Jim Meyering <meyering@redhat.com>.
9147
9148 2011-11-30  Jim Meyering  <meyering@redhat.com>
9149
9150         hash: mark a few floating point constants with "f" suffix
9151         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
9152         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
9153         floating point constants with "f", since they're destined to be
9154         saved/used as "float"s.
9155
9156 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
9157
9158         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
9159         * tests/test-float.c (test_long_double): Correct and re-enable the
9160         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
9161
9162 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
9163
9164         Avoid subtracting two pointers that don't point into the same block.
9165         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
9166         only pointers into the same memory block are subtracted. We cannot
9167         assume that sizeof (ptrdiff_t) == sizeof (void *).
9168
9169 2011-11-29  Eric Blake  <eblake@redhat.com>
9170
9171         maint.mk: add syntax check for use of compare from init.sh
9172         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
9173         moved here from coreutils.
9174
9175         manywarnings: drop -Wunsuffixed-float-constants
9176         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
9177         '1.0D', which is the only way to silence this warning for 'double'.
9178
9179 2011-11-29  Jim Meyering  <meyering@redhat.com>
9180
9181         hash: mark compute_bucket_size with the pure attribute
9182         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
9183
9184         quotearg, propername: correct pragma guard expression
9185         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
9186         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
9187
9188 2011-11-28  Jim Meyering  <meyering@redhat.com>
9189
9190         propername: do not mark proper_name with the const attribute
9191         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
9192         since it examines data pointed to by its parameter.
9193         * lib/propername.c (proper_name): Instead, add a pragma to suppress
9194         the suggestion from -Wsuggest-attribute=const.
9195
9196         propername: mark one more function as const
9197         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
9198
9199 2011-11-27  Jim Meyering  <meyering@redhat.com>
9200
9201         mark functions with const and pure attributes
9202
9203         Mark functions per suggestions from gcc-4.6 when using these options:
9204         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
9205         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
9206         Follow these guidelines: when possible, apply the attribute to
9207         an extern declaration, not to its definition.  Apply it to the
9208         definition only when the definition is static.
9209         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
9210         * lib/argv-iter.h (argv_iter_n_args): Likewise.
9211         * lib/base64.h (isbase64): Likewise.
9212         * lib/basename-lgpl.c (last_component, base_len): Likewise.
9213         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
9214         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
9215         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
9216         (c_tolower, c_toupper): Likewise.
9217         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
9218         * lib/chdir-long.c (find_non_slash): Likewise.
9219         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
9220         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
9221         * lib/file-type.h (file_type): Likewise.
9222         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
9223         * lib/filevercmp.c (verrevcmp): Likewise.
9224         * lib/freadahead.h (freadahead): Likewise.
9225         * lib/fts.c (fts_maxarglen): Likewise.
9226         * lib/hash-pjw.h (hash_pjw): Likewise.
9227         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
9228         * lib/hash.c (is_prime, next_prime): Likewise.
9229         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
9230         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
9231         (hash_table_ok, hash_get_first, hash_string): Likewise.
9232         (compute_bucket_size): Likewise.
9233         * lib/i-ring.h (i_ring_empty): Likewise.
9234         * lib/isnan.c (isnanl): Likewise.
9235         * lib/math.h (isnanl, rpl_isnanl): Likewise.
9236         * lib/memcasecmp.h (memcasecmp): Likewise.
9237         * lib/memchr2.h (memchr2): Likewise.
9238         * lib/memcmp2.h (memcmp2): Likewise.
9239         * lib/parse-datetime.y (lookup_zone): Likewise.
9240         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
9241         [!WINDOWS_SOCKETS]: Likewise.
9242         * lib/strnlen1.h (strnlen1): Likewise.
9243         * lib/uniwidth.in.h (uc_width): Likewise.
9244         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
9245         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
9246         (quoting_options_from_style): Add a comment.
9247         * lib/propername.h (proper_name): Add a comment.
9248
9249 2011-11-27  Bruno Haible  <bruno@clisp.org>
9250
9251         Remove unused macros from !_LIBC code in glibc-borrowed files.
9252         * lib/fnmatch.c (STRCOLL): Remove macro.
9253         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
9254         * lib/glob.c (__stat, __readdir64): Remove macros.
9255         * lib/tempname.c (__open64, __xstat64): Remove macros.
9256         Suggested by Paul Eggert.
9257
9258 2011-11-27  Bruno Haible  <bruno@clisp.org>
9259
9260         getcwd: Fix link error on MSVC 9.
9261         * modules/getcwd (Depends-on): Add readdir, rewinddir.
9262
9263 2011-11-27  Bruno Haible  <bruno@clisp.org>
9264
9265         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
9266         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
9267         HAVE_OPENDIR is 0.
9268         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
9269         HAVE_CLOSEDIR is 0.
9270         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
9271         is 0.
9272         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
9273
9274 2011-11-27  Bruno Haible  <bruno@clisp.org>
9275
9276         getcwd: Fix bug from 2011-08-17.
9277         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
9278         platforms that need it.
9279         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
9280         code of 4 to be a failure, not a success. This ensures that
9281         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
9282
9283 2011-11-27  Bruno Haible  <bruno@clisp.org>
9284
9285         binary-io tests: Avoid test failure on mingw when libtool is used.
9286         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
9287         Don't verify the size of t-bin-out1.tmp here.
9288         * tests/test-binary-io.sh: Verify it here.
9289         Reported by Simon Josefsson.
9290
9291 2011-11-26  Bruno Haible  <bruno@clisp.org>
9292
9293         Fix conflict between two instantiations of module 'unistd'.
9294         * gnulib-tool (func_emit_autoconf_snippet): Substitute
9295         ${include_guard_prefix} also in the autoconf snippet.
9296         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
9297         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
9298         GNULIB_UNISTD_H_GETOPT.
9299         * modules/getopt-posix (configure.ac): Set the
9300         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
9301         * modules/getopt-gnu (configure.ac): Likewise.
9302         * modules/unistd (Makefile.am): Change the substitution value of
9303         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
9304         Reported by Simon Josefsson.
9305
9306 2011-11-25  Bruno Haible  <bruno@clisp.org>
9307
9308         pagealign_alloc: Doc and comments.
9309         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
9310         module.
9311         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
9312
9313 2011-11-25  Jim Meyering  <meyering@redhat.com>
9314
9315         test-update-copyright.sh: avoid false-positive failure
9316         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
9317         around false positive failure on Cygwin/Windows.  The latter was
9318         matching erroneously-created files with names like
9319         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
9320
9321 2011-11-25  Simon Josefsson  <simon@josefsson.org>
9322
9323         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
9324         * m4/valgrind-tests.m4: Check that the parameters that will be
9325         used works, not just a subset of them.  Reported by Bruno Haible
9326         <bruno@clisp.org>.
9327
9328 2011-11-24  Jim Meyering  <meyering@redhat.com>
9329
9330         test-stdalign.c: comment out long double tests
9331         * tests/test-stdalign.c: Don't try to reduce alignment of long double
9332         variables.  That provokes errors like this from gcc-4.7.0 20111124:
9333         error: '_Alignas' specifiers cannot reduce alignment of \
9334         'static_longdouble_alignas'.
9335
9336 2011-11-22  Jim Meyering  <meyering@redhat.com>
9337
9338         init.sh: make "compare /dev/null FILE" output more readable
9339         * tests/init.sh (compare_): Document the preferred order of arguments.
9340         (emit_diff_u_header_): New function.
9341         (compare_dev_null_): Emit a simulated diff, rather than just the
9342         contents of the unexpected file.  Suggestion from Bruno Haible.
9343
9344 2011-11-21  Jim Meyering  <meyering@redhat.com>
9345             Eric Blake  <eblake@redhat.com>
9346
9347         init.sh: work around OSF/1 5.1's mishandling of /dev/null
9348         * tests/init.sh: Make our compare function slightly more portable.
9349         Reported by Bruno Haible in
9350         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
9351
9352 2011-11-21  Simon Josefsson  <simon@josefsson.org>
9353
9354         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
9355         before using it, in code that ends up in config.h.
9356
9357 2011-11-20  Bruno Haible  <bruno@clisp.org>
9358
9359         getcwd: Work around getcwd bug on AIX 5..7.
9360         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
9361         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
9362         Use a different value for gl_cv_func_getcwd_path_max. Move the
9363         definition of HAVE_PARTLY_WORKING_GETCWD from here...
9364         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
9365         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
9366         Define HAVE_MINIMALLY_WORKING_GETCWD.
9367         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
9368         where it is not even minimally working, that is, on AIX.
9369         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
9370         m4/getcwd-path-max.m4.
9371         (main): Update exit code computation.
9372         * doc/posix-functions/getcwd.texi: Mention list of platforms where
9373         getcwd does not handle long file names.
9374
9375 2011-11-20  Bruno Haible  <bruno@clisp.org>
9376
9377         getcwd: Fix bug from 2009-09-10.
9378         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
9379         like "no".
9380
9381 2011-11-20  Simon Josefsson  <simon@josefsson.org>
9382
9383         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
9384
9385 2011-11-20  Bruno Haible  <bruno@clisp.org>
9386
9387         fma tests: Avoid shadowing local variables.
9388         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
9389         expected.
9390
9391 2011-11-20  Bruno Haible  <bruno@clisp.org>
9392
9393         copysignf tests: Fix.
9394         * tests/test-copysignf.c: Fix signature check.
9395
9396 2011-11-20  Bruno Haible  <bruno@clisp.org>
9397
9398         fma: Remove unused code.
9399         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
9400         unused macros.
9401
9402 2011-11-20  Bruno Haible  <bruno@clisp.org>
9403
9404         sethostname: Fix doc about AIX.
9405         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
9406         sethostname; it has it.
9407
9408         sethostname: Mention more portability problems.
9409         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
9410         problem.
9411         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
9412
9413 2011-11-19  Bruno Haible  <bruno@clisp.org>
9414
9415         Depend on module fcntl-h when AT_FDCWD is used.
9416         * modules/utimens (Depends-on): Add fcntl-h.
9417         * modules/areadlinkat (Depends-on): Likewise.
9418         * modules/areadlinkat-with-size (Depends-on): Likewise.
9419         * modules/faccessat (Depends-on): Likewise.
9420         * modules/fchmodat (Depends-on): Likewise.
9421         * modules/fchownat (Depends-on): Likewise.
9422         * modules/getcwd (Depends-on): Likewise.
9423         * modules/mkdirat (Depends-on): Likewise.
9424         * modules/mkfifoat (Depends-on): Likewise.
9425         * modules/readlinkat (Depends-on): Likewise.
9426         * modules/symlinkat (Depends-on): Likewise.
9427         * modules/dup2-tests (Depends-on): Likewise.
9428         * modules/fdutimensat-tests (Depends-on): Likewise.
9429         * modules/futimens-tests (Depends-on): Likewise.
9430
9431 2011-11-19  Bruno Haible  <bruno@clisp.org>
9432
9433         euidaccess: Update a comment.
9434         * lib/euidaccess.c: Update comment about platforms with faccessat.
9435
9436 2011-11-19  Bruno Haible  <bruno@clisp.org>
9437
9438         openat: Fix file list.
9439         * modules/openat (Files): Remove lib/at-func.c.
9440
9441 2011-11-19  Bruno Haible  <bruno@clisp.org>
9442
9443         fstatat: Simplify.
9444         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
9445         gnulib should define rpl_fstatat, there is a
9446         "#define fstatat rpl_fstatat" in <sys/stat.h>.
9447
9448 2011-11-19  Bruno Haible  <bruno@clisp.org>
9449
9450         Ensure 'inline' can be used in tests/test-utimens-common.h.
9451         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
9452         * modules/futimens-tests (configure.ac): Likewise.
9453         * modules/utimens-tests (configure.ac): Likewise.
9454         * modules/utimensat-tests (configure.ac): Likewise.
9455
9456 2011-11-19  Simon Josefsson  <simon@josefsson.org>
9457
9458         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
9459         not hash_insert0.
9460         (hash_insert_if_absent): Doc fix.
9461
9462 2011-11-19  Simon Josefsson  <simon@josefsson.org>
9463
9464         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
9465
9466 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
9467
9468         test-getcwd: disambiguate exit status
9469         * tests/test-getcwd.c (test_long_name): Return 0..7.
9470         (main): Exit with an unambiguous exit status.  The old
9471         code yielded a mysterious mixture of two failure codes.
9472
9473         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
9474         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
9475         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
9476         rpl_fstatat or fstatat.  This should fix the other problem
9477         reported by Kai Habel in
9478         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
9479         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
9480         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
9481         and I reproduced it on a Solaris 8 host we still have in production.
9482
9483 2011-11-18  Jim Meyering  <meyering@redhat.com>
9484
9485         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
9486         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
9487         Add a sentence to the comment.
9488         (hash_insert0): New function that simply calls hash_insert_if_absent.
9489         * lib/hash.h (hash_insert_if_absent): Declare it.
9490         (hash_insert0): Add deprecation attribute.
9491         (_GL_ATTRIBUTE_DEPRECATED): Define.
9492         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
9493         not hash_insert0.
9494         * NEWS: Mention it, even though it's not really an incompatible change.
9495
9496 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
9497
9498         openat: avoid compilation failure due to lack of <errno.h> inclusion
9499         * lib/openat.c: Include <errno.h>.
9500
9501 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
9502
9503         * modules/getcwd (Depends-on): Add fdopendir.
9504         This fixes one of the two problems reported by Kai Habel in
9505         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
9506
9507         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
9508         stdalign problem reported by Ian Beckwith in
9509         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
9510         * modules/crypto/gc-arcfour (Depends-on):
9511         Depend conditionally on crypto/arcfour.
9512         * modules/crypto/gc-arctwo (Depends-on):
9513         Depend conditionally on crypto/arctwo.
9514         * modules/crypto/gc-des (Depends-on):
9515         Depend conditionally on crypto/des.
9516         * modules/crypto/gc-hmac-md5 (Depends-on):
9517         Depend conditionally on crypto/hmac-md5.
9518         * modules/crypto/gc-hmac-sha1 (Depends-on):
9519         Depend conditionally on crypto/hmac-sha1.
9520         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
9521         * modules/crypto/gc-md4 (Depends-on):
9522         Depend conditionally on crypto/md4.
9523         * modules/crypto/gc-md5 (Depends-on):
9524         Depend conditionally on crypto/md5.
9525         * modules/crypto/gc-rijndael (Depends-on):
9526         Depend conditionally on crypto/rijndael.
9527         * modules/crypto/gc-sha1 (Depends-on):
9528         Depend conditionally on crypto/sha1.
9529         * modules/crypto/gc-arcfour:
9530         * modules/crypto/gc-arctwo:
9531         * modules/crypto/gc-des:
9532         * modules/crypto/gc-hmac-md5:
9533         * modules/crypto/gc-hmac-sha1:
9534         * modules/crypto/gc-md2:
9535         * modules/crypto/gc-md4:
9536         * modules/crypto/gc-md5:
9537         * modules/crypto/gc-rijndael:
9538         * modules/crypto/gc-sha1:
9539         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
9540         now that the conditional dependencies do the work for us.
9541
9542 2011-11-17  Jim Meyering  <meyering@redhat.com>
9543
9544         tests: factor st_ctime-comparison out of two headers
9545         * tests/test-utimens-common.h (ctime_compare): Define.
9546         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
9547         * tests/test-lutimens.h (test_lutimens): Likewise.
9548         * tests/test-utimens.h (test_utimens): Likewise.
9549
9550         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
9551         Invoke the test program via an init.sh-using wrapper.
9552         * tests/test-getcwd.sh: New file.
9553         * modules/getcwd-tests (Files): Add it.
9554         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
9555
9556 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
9557
9558         gitlog-to-changelog: support multi-author commits.
9559         The FSF cares about keeping track of all authors of patches to its
9560         projects, but Git doesn't provide obvious support for multi-author
9561         changesets. Consensus seems to be forming around the use of extra
9562         Signed-off-by inspired lines in the log message formatted as
9563         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
9564         multi-author commits between version control systems.
9565         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
9566         log message and output in standard ChangeLog multi-author format.
9567         Reported by Peter Rosin <peda@lysator.liu.se>
9568
9569 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
9570             Bruno Haible  <bruno@clisp.org>
9571
9572         Fix some modules' file list.
9573         * modules/fstatat (Files): Add m4/lstat.m4.
9574         * modules/openat (Files): Likewise.
9575         * modules/unlinkat (Files): Likewise.
9576
9577 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
9578
9579         maint.mk: fix tight-scope.mk generation in VPATH builds.
9580         * top/maint.mk (tight-scope.mk): Make sure to prefix file
9581         reference with $(srcdir) so that the file is found correctly even
9582         when running `make syntax-check' in a VPATH build.
9583
9584 2011-11-13  Bruno Haible  <bruno@clisp.org>
9585             Jim Meyering  <meyering@redhat.com>
9586
9587         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
9588         * tests/init.sh (compare): Remove "No differences encountered" or
9589         synonymous output from the 'diff' program.
9590
9591 2011-11-13  Bruno Haible  <bruno@clisp.org>
9592
9593         Makefile: Tweak indentation.
9594         * Makefile: Use tab as first character in every line that contains rule
9595         commands.
9596
9597 2011-11-13  Bruno Haible  <bruno@clisp.org>
9598
9599         Syntax check for copyright statements.
9600         * check-copyright: New file.
9601         * Makefile (sc_check_copyright): New rule.
9602
9603 2011-11-13  Simon Josefsson  <simon@josefsson.org>
9604
9605         * build-aux/git-version-gen: Add --prefix to configure the tag
9606         match string.
9607
9608 2011-11-13  Simon Josefsson  <simon@josefsson.org>
9609
9610         * build-aux/git-version-gen: Add --help and --version.
9611
9612 2011-11-12  Jim Meyering  <meyering@redhat.com>
9613
9614         revamp the other test-exclude?.sh scripts to use init.sh, too
9615         * tests/test-exclude1.sh: Use init.sh.
9616         * tests/test-exclude2.sh: Likewise.
9617         * tests/test-exclude3.sh: Likewise.
9618         * tests/test-exclude4.sh: Likewise.
9619         * tests/test-exclude5.sh: Likewise.
9620         * tests/test-exclude6.sh: Likewise.
9621         * tests/test-exclude7.sh: Likewise.
9622         * tests/test-exclude8.sh: Likewise.
9623         * modules/exclude-tests (Files): List init.sh.
9624
9625         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
9626         These shell scripts ignored failure of the binary test-exclude,
9627         so making the latter return 77 didn't cause them to be skipped.
9628         * tests/test-exclude5.sh: Exit with test-exclude's error status
9629         when that program fails.  Revamp to use init.sh.
9630         * tests/test-exclude2.sh: Likewise.
9631
9632         test-exclude: fix a typo
9633         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
9634
9635 2011-11-11  Bruno Haible  <bruno@clisp.org>
9636
9637         obstack: Fix compilation error on MSVC 9.
9638         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
9639
9640 2011-11-11  Jim Meyering  <meyering@redhat.com>
9641
9642         test-exclude: skip tests rather than failing on deficient systems
9643         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
9644         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
9645         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
9646         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
9647
9648 2011-11-10  Bruno Haible  <bruno@clisp.org>
9649
9650         ptsname_r test: Avoid gcc warning on glibc systems.
9651         * tests/test-ptsname_r.c (null_ptr): New function.
9652         (test_errors): Use it.
9653
9654 2011-11-10  Bruno Haible  <bruno@clisp.org>
9655
9656         ptsname_r: Avoid compilation error on OSF/1 5.1.
9657         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
9658         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
9659         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
9660         function is not declared or incompatibly declared.
9661         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
9662         * modules/ptsname_r (Depends-on, configure.ac): Update.
9663         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
9664
9665 2011-11-10  Bruno Haible  <bruno@clisp.org>
9666
9667         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
9668         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
9669         When cross-compiling, guess yes on all platforms except AIX.
9670         Reported by Ludovic Courtès <ludo@gnu.org>.
9671
9672 2011-11-09  Bruno Haible  <bruno@clisp.org>
9673
9674         ptsname_r tests: Fix bugs.
9675         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
9676         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
9677
9678 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
9679
9680         fstatat: work with cross-compilation
9681         Problem reported by Ludovic Courtès in
9682         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
9683         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
9684         "cross-compiling" and assume the bug is present.  Replace
9685         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
9686         an inverted sense, to be more conservative about our assumptions.
9687         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
9688
9689 2011-11-09  Bruno Haible  <bruno@clisp.org>
9690
9691         Improve MODULES.html output.
9692         * modules/mkfifoat (Description): Use the word "function".
9693         * modules/readlinkat (Description): Likewise.
9694         * modules/symlinkat (Description): Likewise.
9695
9696 2011-11-09  Eric Blake  <eblake@redhat.com>
9697
9698         ptsname_r-tests: new test module
9699         * modules/ptsname_r-tests: New module.
9700         * tests/test-ptsname_r.c: New file.
9701
9702         ptsname_r: new module
9703         * modules/ptsname_r: New module.
9704         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
9705         * lib/ptsname.c (__ptsname_r): Split...
9706         * lib/ptsname_r.c: ...into new file.
9707         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
9708         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
9709         * modules/stdlib (Makefile.am): Substitute witnesses.
9710         * lib/stdlib.in.h (ptsname_r): Declare it.
9711         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
9712         * MODULES.html.sh (Misc): Likewise.
9713         * modules/ptsname (Depends-on): Alter dependency.
9714         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
9715
9716 2011-11-09  Jim Meyering  <meyering@redhat.com>
9717
9718         announce-gen: be more concise when there's only one URL+tarball
9719         * build-aux/announce-gen (get_tool_versions): When you distribute
9720         only one type of tarball, combine the first two "Here are..."
9721         sections and make the key-checking grammar independent of
9722         how many tarballs there are.
9723
9724 2011-11-09  Eric Blake  <eblake@redhat.com>
9725
9726         openpty: provide a stub on mingw
9727         * lib/pty.in.h (includes): Provide forward declarations.
9728         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
9729
9730         raise: fix mingw handling of SIGPIPE
9731         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
9732
9733 2011-11-08  Bruno Haible  <bruno@clisp.org>
9734
9735         More conditional dependencies.
9736         * modules/faccessat (Depends-on): Add conditions.
9737         * modules/fchmodat (Depends-on): Likewise.
9738         * modules/fchownat (Depends-on): Likewise.
9739         * modules/fstatat (Depends-on): Likewise.
9740         * modules/mkfifoat (Depends-on): Likewise.
9741         * modules/readlinkat (Depends-on): Likewise.
9742         * modules/symlinkat (Depends-on): Likewise.
9743         * modules/unlinkat (Depends-on): Likewise.
9744         * modules/utimensat (Depends-on): Likewise.
9745         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
9746         * modules/linkat (Depends-on): Refine the conditions.
9747         * modules/renameat (Depends-on): Likewise.
9748
9749 2011-11-08  Bruno Haible  <bruno@clisp.org>
9750
9751         faccessat: Move AC_LIBOBJ invocation to module description.
9752         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
9753         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
9754         invocation from here...
9755         * modules/faccessat (configure.ac): ... to here. Invoke
9756         gl_PREREQ_FACCESSAT.
9757
9758 2011-11-08  Bruno Haible  <bruno@clisp.org>
9759
9760         faccessat: Simplify autoconf macro.
9761         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
9762         gl_FUNC_EUIDACCESS.
9763
9764 2011-11-08  Bruno Haible  <bruno@clisp.org>
9765
9766         renameat: Fix dependencies.
9767         * modules/renameat (Depends-on): Add stdbool.
9768
9769 2011-11-08  Bruno Haible  <bruno@clisp.org>
9770
9771         mkfifoat: Fix module description.
9772         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
9773         not gl_UNISTD_MODULE_INDICATOR.
9774
9775 2011-11-08  Bruno Haible  <bruno@clisp.org>
9776
9777         fstatat: Remove unused dependency.
9778         * modules/fstatat (Depends-on): Remove fstat.
9779
9780 2011-11-08  Simon Josefsson  <simon@josefsson.org>
9781
9782         GNUmakefile: behave when Makefile is missing.
9783         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
9784
9785 2011-11-08  Bruno Haible  <bruno@clisp.org>
9786
9787         openat: Conditionalize dependencies.
9788         * lib/openat.c: Reduce the scope of some #includes.
9789         * modules/openat (Depends-on): Add conditions.
9790
9791 2011-11-07  Jim Meyering  <meyering@redhat.com>
9792
9793         maint.mk: extract GPG key ID without using a temporary file
9794         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
9795         without using a temporary file.  Based on a suggestion from Werner Koch
9796         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
9797
9798 2011-11-07  Eric Blake  <eblake@redhat.com>
9799
9800         grantpt: fix typo
9801         * lib/stdlib.in.h (grantpt): Check correct function.
9802
9803         maint.mk: silence new syntax check
9804         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
9805
9806 2011-11-06  Bruno Haible  <bruno@clisp.org>
9807
9808         Doc about floating-point and math API.
9809         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
9810         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
9811
9812 2011-11-06  Bruno Haible  <bruno@clisp.org>
9813
9814         stdalign tests: Skip the test when compiled by Sun C.
9815         * tests/test-stdalign.c (main): Skip the test on Sun C.
9816
9817 2011-11-06  Bruno Haible  <bruno@clisp.org>
9818
9819         ansi-c++-opt: Complete the 2011-06-05 change.
9820         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
9821         does not support namespaces, set the variable to "no", not to ":".
9822
9823 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
9824
9825         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
9826
9827 2011-11-06  Bruno Haible  <bruno@clisp.org>
9828
9829         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
9830         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
9831         (minus_zerol) [HP-UX]: New macro.
9832         (unary_minus) [HP-UX]: New function.
9833         (copysignl) [HP-UX]: Use unary_minus function.
9834
9835 2011-11-06  Bruno Haible  <bruno@clisp.org>
9836
9837         ldexp, ldexpf, ldexpl: Enhance tests.
9838         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
9839         and tests/test-ldexpl.c.
9840         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
9841         LDEXP, MIN_EXP, MAX_EXP): New macros.
9842         Include test-ldexp.h.
9843         (main): Just call test_function.
9844         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
9845         infinity.h, nan.h.
9846         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
9847         MAX_EXP): New macros.
9848         Include test-ldexp.h.
9849         (x, y): Remove variables.
9850         (main): Just call test_function.
9851         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
9852         infinity.h, nan.h.
9853         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
9854         MAX_EXP): New macros.
9855         Include test-ldexp.h.
9856         (x, y): Remove variables.
9857         (main): Just call test_function.
9858         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
9859         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
9860         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
9861         (Depends-on): Add isnand-nolibm, signbit, float.
9862         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
9863         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
9864         (Depends-on): Add isnanf-nolibm, signbit, float.
9865
9866 2011-11-06  Bruno Haible  <bruno@clisp.org>
9867
9868         math tests: Cosmetics.
9869         * tests/test-math-c++.cc: Reorder declarations.
9870
9871 2011-11-05  Bruno Haible  <bruno@clisp.org>
9872
9873         fma*: Simplify test.
9874         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
9875         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
9876
9877         Tests for module 'fmal'.
9878         * modules/fmal-tests: New file.
9879         * tests/test-fmal1.c: New file.
9880         * tests/test-fmal2.c: New file.
9881
9882         New module 'fmal'.
9883         * lib/math.in.h (fmal): New declaration.
9884         * lib/fmal.c: New file.
9885         * m4/fmal.m4: New file.
9886         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
9887         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
9888         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
9889         REPLACE_FMAL.
9890         * modules/fmal: New file.
9891         * doc/posix-functions/fmal.texi: Mention the new module and the various
9892         bugs.
9893
9894         Tests for module 'fmaf'.
9895         * modules/fmaf-tests: New file.
9896         * tests/test-fmaf1.c: New file.
9897         * tests/test-fmaf2.c: New file.
9898
9899         New module 'fmaf'.
9900         * lib/math.in.h (fmaf): New declaration.
9901         * lib/fmaf.c: New file.
9902         * m4/fmaf.m4: New file.
9903         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
9904         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
9905         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
9906         REPLACE_FMAF.
9907         * modules/fmaf: New file.
9908         * doc/posix-functions/fmaf.texi: Mention the new module and the various
9909         bugs.
9910
9911         Tests for module 'fma'.
9912         * modules/fma-tests: New file.
9913         * tests/test-fma1.c: New file.
9914         * tests/test-fma1.h: New file.
9915         * tests/test-fma2.c: New file.
9916         * tests/test-fma2.h: New file.
9917
9918         New module 'fma'.
9919         * lib/math.in.h (fma): New declaration.
9920         * lib/fma.c: New file.
9921         * m4/fma.m4: New file.
9922         * m4/fegetround.m4: New file.
9923         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
9924         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
9925         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
9926         REPLACE_FMA.
9927         * modules/fma: New file.
9928         * doc/posix-functions/fma.texi: Mention the new module and the various
9929         bugs.
9930
9931         Extend gl_MATHFUNC.
9932         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
9933         Support 'void' as argument type.
9934         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
9935
9936 2011-11-05  Jim Meyering  <meyering@redhat.com>
9937
9938         maint.mk: also prohibit inclusion of dirent.h without use
9939         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
9940
9941 2011-11-05  Bruno Haible  <bruno@clisp.org>
9942
9943         ldexpl tests: Avoid test failure on MSVC 9.
9944         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
9945         value. Needed in order to enforce the conversion from a value greater
9946         than LDBL_MAX to Infinity.
9947
9948 2011-11-05  Bruno Haible  <bruno@clisp.org>
9949
9950         New modules 'at-internal', 'openat-h', split off from module 'openat'.
9951         * modules/at-internal: New file, extracted from modules/openat.
9952         * modules/openat-h: New file.
9953         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
9954         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
9955         * modules/openat (Description): Add reference to POSIX function.
9956         (Files): Remove lib/openat.h, lib/openat-proc.c.
9957         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
9958         intprops, unistd.
9959         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
9960         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
9961         gl_FCNTL_MODULE_INDICATOR.
9962         (Include): Remove unistd.h, openat.h.
9963         * modules/areadlinkat (Files): Add lib/at-func.c.
9964         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
9965         openat-die, openat-h, save-cwd.
9966         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
9967         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
9968         openat-die, openat-h, save-cwd, unistd.
9969         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
9970         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
9971         openat-h, save-cwd. Remove fcntl-h, openat.
9972         * modules/fchmodat (Files): Remove lib/openat.h.
9973         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
9974         openat, stdbool, unistd.
9975         * modules/fchownat (Files): Remove lib/openat.h.
9976         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
9977         openat, stdbool, sys_stat.
9978         * modules/fdopendir (Files): Remove lib/openat-priv.h,
9979         lib/openat-proc.c.
9980         (Depends-on): Add at-internal.
9981         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
9982         * modules/fstatat (Files): Remove lib/openat.h.
9983         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
9984         stdbool, unistd.
9985         * modules/fts (Depends-on): Add openat-h.
9986         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
9987         openat.
9988         * modules/mkdirat (Files): Remove lib/openat.h.
9989         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
9990         openat, stdbool, sys_stat.
9991         * modules/mkfifoat (Files): Add lib/at-func.c.
9992         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
9993         openat-h, save-cwd. Remove fcntl-h, openat.
9994         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
9995         * modules/readlinkat (Files): Add lib/at-func.c.
9996         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
9997         openat-h, save-cwd. Remove fcntl-h, openat.
9998         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
9999         openat.
10000         * modules/selinux-at (Files): Add lib/at-func.c.
10001         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
10002         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
10003         * modules/symlinkat (Files): Add lib/at-func.c.
10004         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
10005         openat-h, save-cwd. Remove fcntl-h, openat.
10006         * modules/unlinkat (Files): Remove lib/openat.h.
10007         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
10008         stdbool.
10009         * modules/utimensat (Files): Add lib/at-func.c.
10010         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
10011         openat-die, openat-h, save-cwd.
10012         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
10013         * modules/fdutimensat-tests (Depends-on): Add openat.
10014         * modules/fstatat-tests (Depends-on): Add openat-h.
10015         * modules/readlinkat-tests (Depends-on): Add openat.
10016         * modules/symlinkat-tests (Depends-on): Add openat.
10017
10018 2011-11-05  Bruno Haible  <bruno@clisp.org>
10019
10020         openat: Include <stdbool.h>.
10021         * lib/openat.c: Include <stdbool.h>.
10022
10023 2011-11-04  Bruno Haible  <bruno@clisp.org>
10024
10025         fchownat, renameat, unlinkat: Fix dependencies.
10026         * modules/fchownat (Depends-on): Add fstatat.
10027         * modules/renameat (Depends-on): Likewise.
10028         * modules/unlinkat (Depends-on): Likewise.
10029
10030 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
10031
10032         openat: remove direct dependency on dirent
10033         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
10034         and hasn't been needed ever since fdopendir was split into its own
10035         module on 2009-08-31.
10036         * modules/openat (Depends-on): Remove dirent.
10037
10038 2011-11-04  Bruno Haible  <bruno@clisp.org>
10039
10040         renameat: Optimize code size.
10041         * modules/renameat (configure.ac): Don't compile at-func2.c if
10042         REPLACE_RENAMEAT is 1.
10043
10044 2011-11-04  Bruno Haible  <bruno@clisp.org>
10045
10046         openat tests: Fix file list.
10047         * modules/openat-tests (Files): Add tests/test-open.h.
10048
10049 2011-11-04  Bruno Haible  <bruno@clisp.org>
10050
10051         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
10052         * modules/fchmodat (Depends-on): Add openat-die.
10053         * modules/fchownat (Depends-on): Likewise.
10054         * modules/linkat (Depends-on): Likewise.
10055         * modules/renameat (Depends-on): Likewise.
10056         * modules/openat (Depends-on): Add dirent.
10057
10058 2011-11-04  Jim Meyering  <meyering@redhat.com>
10059
10060         at-func*.c: fix comments
10061         * lib/at-func2.c: Correct/improve first-line comment.
10062         * lib/at-func.c: Correct grammar in first-line comment.
10063
10064 2011-11-04  Bruno Haible  <bruno@clisp.org>
10065
10066         New module 'mkdirat', split off from module 'openat'.
10067         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
10068         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
10069         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
10070         * modules/mkdirat: New file, extracted from modules/openat.
10071         * modules/openat (Files): Remove lib/mkdirat.c.
10072         (Depends-on): Remove mkdir.
10073         (configure.ac): Remove AC_LIBOBJ of mkdirat.
10074         (Include): Remove <sys/stat.h>.
10075         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
10076         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
10077         tests/test-mkdir.h.
10078         (Depends-on): Remove ignore-value.
10079         (Makefile.am): Remove rules for test-mkdirat.
10080         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
10081         of module 'openat'.
10082         * NEWS: Mention the change.
10083
10084 2011-11-04  Bruno Haible  <bruno@clisp.org>
10085
10086         closedir: Avoid warning on mingw.
10087         * lib/closedir.c: Include <unistd.h>.
10088
10089 2011-11-04  Bruno Haible  <bruno@clisp.org>
10090
10091         New module 'fstatat', split off from module 'openat'.
10092         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
10093         defined.
10094         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
10095         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
10096         gl_FUNC_FSTATAT.
10097         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
10098         * modules/fstatat: New file, extracted from modules/openat.
10099         * modules/openat (Files): Remove lib/fstatat.c.
10100         (Depends-on): Remove lstat.
10101         (configure.ac): Remove AC_LIBOBJ of fstatat.
10102         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
10103         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
10104         tests/test-lstat.h, tests/test-stat.h.
10105         (Depends-on): Remove getcwd-lgpl.
10106         (Makefile.am): Remove rules for test-fstatat.
10107         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
10108         of module 'openat'.
10109         * NEWS: Mention the change.
10110         * modules/getcwd (Depends-on): Add fstatat.
10111         * modules/linkat (Depends-on): Likewise.
10112         * modules/mkfifoat-tests (Depends-on): Likewise.
10113         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
10114
10115 2011-11-03  Bruno Haible  <bruno@clisp.org>
10116
10117         New module 'unlinkat', split off from module 'openat'.
10118         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
10119         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
10120         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
10121         * modules/unlinkat: New file, extracted from modules/openat. Correct
10122         the dependency conditions.
10123         * modules/openat (Files): Remove lib/unlinkat.c.
10124         (Depends-on): Remove rmdir, unlink.
10125         (configure.ac): Remove AC_LIBOBJ of unlinkat.
10126         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
10127         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
10128         tests/test-rmdir.h, tests/test-unlink.h.
10129         (Depends-on): Remove unlinkdir.
10130         (Makefile.am): Remove rules for test-unlinkat.
10131         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
10132         of module 'openat'.
10133         * NEWS: Mention the change.
10134         * modules/linkat-tests (Depends-on): Add unlinkat.
10135         * modules/mkfifoat-tests (Depends-on): Likewise.
10136         * modules/readlinkat-tests (Depends-on): Likewise.
10137
10138 2011-11-02  Bruno Haible  <bruno@clisp.org>
10139
10140         New module 'fchmodat', split off from module 'openat'.
10141         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
10142         defined.
10143         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
10144         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
10145         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
10146         * modules/fchmodat: New file, extracted from modules/openat.
10147         * modules/openat (Files): Remove lib/fchmodat.c.
10148         (configure.ac): Remove AC_LIBOBJ of fchmodat.
10149         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
10150         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
10151         (Makefile.am): Remove rules for test-fchmodat.
10152         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
10153         of module 'openat'.
10154         * NEWS: Mention the change.
10155
10156 2011-11-02  Jim Meyering  <meyering@redhat.com>
10157
10158         putenv: indent #definition of "environ" to placate cppi
10159         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
10160
10161         gitlog-to-changelog: provide a ChangeLog-repair mechanism
10162         Git logs are often treated as immutable, because editing them
10163         changes the SHA1 checksums of all descendants.  Thus, errors in
10164         git logs tend to stay there forever.  However, when we generate
10165         a ChangeLog file -- typically for distribution -- from that git log,
10166         we can actually make corrections in the generated file.  The key
10167         lies in recording in machine-readable/applicable form the desired
10168         corrections.  See --help for description and an example.
10169         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
10170         (usage): Describe it; alphabetize option descriptions.
10171         (main): Honor the new option, carefully.
10172
10173 2011-11-01  Jim Meyering  <meyering@redhat.com>
10174
10175         gitlog-to-changelog: avoid an infloop
10176         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
10177         that ends up being empty.
10178
10179 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
10180
10181         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
10182         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
10183         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
10184         contains (possibly-quoted) backslashes.  This should avoid
10185         all-too-common shell bugs if COMPLICATED contains backslashes in
10186         the "wrong" places.  Reported by David Evans in
10187         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
10188         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
10189         because we want ASCII ranges.  Is there some reason we don't use
10190         the C locale everywhere in this script?
10191         (func_module, top level): Avoid unwanted pathname expansion when
10192         $repo_url_prefix or $repo_url_suffix_repl contain shell
10193         metacharacters like '?' and '*'.
10194
10195 2011-11-01  Bruno Haible  <bruno@clisp.org>
10196
10197         fchownat: Improve description.
10198         * modules/fchownat (Description): Add link to function.
10199
10200 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
10201
10202         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
10203         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
10204         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
10205         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
10206
10207 2011-11-01  Bruno Haible  <bruno@clisp.org>
10208
10209         alignof: Avoid collision with stdalign module.
10210         * lib/alignof.h (alignof): Remove macro.
10211         * NEWS: Mention the change.
10212         Reported by Paul Eggert.
10213
10214 2011-11-01  Bruno Haible  <bruno@clisp.org>
10215
10216         New module 'fchownat', split off from module 'openat'.
10217         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
10218         defined.
10219         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
10220         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
10221         invoke gl_FUNC_FCHOWNAT.
10222         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
10223         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
10224         * modules/fchownat: New file, extracted from modules/openat.
10225         * modules/openat (Files): Remove lib/fchownat.c.
10226         (Depends-on): Remove lchown.
10227         (configure.ac): Remove AC_LIBOBJ of fchownat.
10228         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
10229         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
10230         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
10231         (Depends-on): Remove mgetgroups, usleep, stat-time.
10232         (configure.ac): Remove test for getegid.
10233         (Makefile.am): Remove rules for test-fchownat.
10234         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
10235         of module 'openat'.
10236         * NEWS: Mention the change.
10237
10238 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
10239
10240         stdalign: port better to MSVC and to Sun C 5.11
10241         This fixes some of the problems reported by Bruno Haible in
10242         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
10243         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
10244         shortcomings of MSVC and of Sun C 5.11.
10245         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
10246         around __declspec arg.
10247         * modules/stdalign-tests (Files): Add tests/macros.h.
10248         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
10249         Include macros.h, for ASSERT.
10250         (DECLARE_ALIGNED): Remove.
10251         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
10252         to catch bug), and to 1 if not (simplifies the rest of the code).
10253         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
10254         (CHECK_AUTO): Remove.
10255         (CHECK_ALIGNED): Check only the alignment of the static vars,
10256         since auto var alignment isn't supported by Sun C 5.11.
10257         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
10258         ASSERT failures are easier to diagnose.
10259
10260 2011-10-31  Bruno Haible  <bruno@clisp.org>
10261
10262         doc about some IRIX 5.3 problems.
10263         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
10264         on IRIX 5.3.
10265         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
10266         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
10267         5.3.
10268         * doc/posix-functions/grantpt.texi: Likewise.
10269         * doc/posix-functions/unlockpt.texi: Likewise.
10270         * doc/posix-functions/lgamma.texi: Likewise.
10271         * doc/posix-functions/nextafter.texi: Likewise.
10272         * doc/posix-functions/remainder.texi: Likewise.
10273         * doc/posix-functions/select.texi: Mention misplaced declaration on
10274         IRIX 5.3.
10275         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10276
10277 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
10278
10279         gitlog-to-changelog: fix git-log invocation.
10280         git-log mishandles date strings before 1970-01-01 UTC, and there is
10281         no use to specify --since=1970-01-01 by default anyway.
10282         * build-aux/gitlog-to-changelog: By default, when no --since option
10283         was given, do not specify explicit --since option to git-log.
10284
10285 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
10286
10287         gitlog-to-changelog: new option --append-dot.
10288         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
10289         first non-blank line of each commit message terminated with a dot.
10290
10291 2011-10-30  Bruno Haible  <bruno@clisp.org>
10292
10293         ffsl, ffsll: Avoid compilation error due to 'restrict'.
10294         * lib/ffsl.h: Include <config.h>.
10295         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
10296
10297 2011-10-30  Jim Meyering  <meyering@redhat.com>
10298
10299         GNUmakefile: reenable "make syntax-check" for most projects
10300         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
10301         build-aux variable", "syntax-check" would do nothing but succeed with
10302         the "No version control files detected..." diagnostic (unless you
10303         happened to override _build-aux via cfg.mk).
10304         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
10305         to precede inclusion of maint.mk.  Otherwise, these variables would
10306         be used undefined in any project that does not override the default.
10307
10308 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
10309
10310         gitlog-to-changelog: treat a message with only blank lines as empty.
10311         * build-aux/gitlog-to-changelog: Move the code that removes leading and
10312         trailing blank lines before the code that issues a warning about an
10313         empty commit message.
10314
10315 2011-10-30  Jim Meyering  <meyering@redhat.com>
10316
10317         test-parse-datetime.c: avoid new DST-related false positive test failure
10318         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
10319         based on the time/date we'll convert, not the current time.
10320         Otherwise, the moment we cross a DST boundary like today's in
10321         Europe, (CEST to CET), that offset ends up being one hour off.
10322
10323 2011-10-27  Bruno Haible  <bruno@clisp.org>
10324
10325         fstat: Tweak documentation.
10326         * modules/fstat (Description): More precise description.
10327
10328 2011-10-27  Bruno Haible  <bruno@clisp.org>
10329
10330         Update documentation regarding 'largefile' module.
10331         * doc/posix-functions/fstat.texi: Tweak wording.
10332         * doc/posix-functions/opendir.texi: Mention that the module fixes the
10333         problems with huge directories and/or small ino_t types.
10334         * doc/posix-functions/readdir.texi: Likewise.
10335         * doc/posix-functions/rewinddir.texi: Likewise.
10336
10337 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
10338
10339         maint.mk: don't maintain a second build-aux variable.
10340         * maint.mk (build_aux): Removed.  The maintainer-makefile module
10341         depends on GNUmakefile, which already maintains a cfg.mk
10342         overridable $(_build-aux) for projects with a non-standard
10343         build-aux directory location, although without the $(srcdir)
10344         prefix.  Use that variable consistently instead of introducing a
10345         second one.  Adjust all call sites.
10346
10347 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
10348
10349         Add stdalign module and use it in other modules.
10350         This is based on a previous proposal by Bruno Haible
10351         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
10352
10353         stdalign: new module
10354         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
10355         * modules/stdalign: New files.
10356         * MODULES.html.sh (c1x_core_properties): Add stdalign.
10357         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
10358
10359         stdalign-tests: new module
10360         * modules/stdalign-tests, tests/test-stdalign.c: New files.
10361
10362         argp: use stdalign
10363         * lib/argp-parse.c: Include <stdalign.h>.
10364         (alignof): Remove.
10365         * modules/argp (Depends-on): Add stdalign.
10366
10367         crypto libraries: use stdalign
10368         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
10369         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
10370         Do not include <stdlib.h> twice, in md4.c.
10371         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
10372         because we are accessing a pointer's bit-pattern, not a size.
10373         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
10374         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
10375         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
10376         * modules/crypto/sha512: Likewise.
10377
10378         sys_socket: use stdalign, not alignof
10379         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
10380         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
10381
10382 2011-10-27  Bruno Haible  <bruno@clisp.org>
10383
10384         raise test: Avoid a test failure on Linux/MIPS.
10385         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
10386         because 99 is a valid signal on Linux/MIPS.
10387
10388 2011-10-27  Bruno Haible  <bruno@clisp.org>
10389
10390         nonblocking tests: Fix test failure on Linux/MIPS.
10391         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
10392         Set to 270000.
10393
10394 2011-10-27  Bruno Haible  <bruno@clisp.org>
10395
10396         utimensat: Work around problem on Linux/hppa.
10397         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
10398         values.
10399         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
10400
10401 2011-10-25  Jim Meyering  <meyering@redhat.com>
10402
10403         maint.mk: fix a bug in sc_prohibit_stddef_without_use
10404         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
10405         after symbols like NULL, size_t, etc.
10406         Reported by Alfred M. Szmidt.
10407
10408         maint.mk: exempt ENODATA from a syntax-check rule
10409         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
10410         from the sc_prohibit_always-defined_macros syntax-check rule.
10411         Add a comment.  See this for more details:
10412         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
10413
10414 2011-10-23  Jim Meyering  <meyering@redhat.com>
10415
10416         fts: close parent dir FD before returning from post-traversal fts_read
10417         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
10418         unlink A, even though an FD open on A remained.  This is suboptimal
10419         (holding a file descriptor open longer than needed), but otherwise not
10420         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
10421         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
10422         that represents a real problem: it causes the removal of A to fail
10423         with e.g., "rm: cannot remove `A': Device or resource busy"
10424
10425         fts visits each directory twice and keeps a cache (fts_fd_ring) of
10426         directory file descriptors.  After completing the final, FTS_DP,
10427         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
10428         cache, but then proceeded to add a new FD to it via the subsequent
10429         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
10430         final file descriptor would be closed only via fts_close's call to
10431         fd_ring_clear.  Now, it is usually closed earlier, via the final
10432         FTS_DP-returning fts_read call.
10433         * lib/fts.c (restore_initial_cwd): New function, converted from
10434         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
10435         Update callers.
10436         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
10437         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
10438
10439 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
10440             Bruno Haible  <bruno@clisp.org>
10441             Jim Meyering  <jim@meyering.net>
10442
10443         readme-release: improve safety of release prep instructions.
10444         * README-release: Don't git pull all branches when only master
10445         is needed for the release process.
10446         Run make maintainer-clean before changing trees and merging.
10447         Don't try to run ./configure right after git pull in case files
10448         that influence the bootstrap process have changed, move the
10449         ./configure step to after running ./bootstrap.
10450         Don't bootstrap "one last time"... it's the first time!
10451
10452 2011-10-22  Bruno Haible  <bruno@clisp.org>
10453
10454         errno, strerror-override: Support for MSVC 10.
10455         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
10456         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
10457         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
10458         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
10459         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
10460         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
10461         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
10462         Assign values compatible with MSVC 10.
10463         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
10464         New macros.
10465         (GNULIB_defined_EWINSOCK): New macro.
10466         * lib/strerror-override.c (strerror_override): Update accordingly.
10467         * lib/strerror-override.h: Likewise.
10468         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
10469         longer equal to the corresponding errno value.
10470         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
10471
10472 2011-10-22  Bruno Haible  <bruno@clisp.org>
10473
10474         perror: Recognize when test program crashes.
10475         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
10476         strerror, set gl_cv_func_perror_works to no.
10477         Reported by Daniel Richard G. <skunk@iskunk.org>.
10478
10479         perror: Fix indentation.
10480         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
10481
10482 2011-10-22  Bruno Haible  <bruno@clisp.org>
10483
10484         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
10485         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
10486         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
10487         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
10488         functions, not as a macro.
10489         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
10490         macros.
10491         (isfinite, isinf, isnan, signbit): Check overloaded functions and
10492         absence of macro.
10493         Suggested by Eric Blake.
10494         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
10495
10496 2011-10-21  Bruno Haible  <bruno@clisp.org>
10497
10498         relocatable-prog-wrapper: Don't leave object files behind.
10499         * build-aux/install-reloc: Re-synchronize list of .o files to be
10500         removed with list of compilation units.
10501
10502 2011-10-20  Bruno Haible  <bruno@clisp.org>
10503
10504         openpty, posix_openpt: Remove code duplication.
10505         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
10506         * lib/openpty.c: Include <stdlib.h>.
10507         (openpty): Use posix_openpt on all platforms except IRIX.
10508         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
10509
10510 2011-10-20  Bruno Haible  <bruno@clisp.org>
10511
10512         unlockpt: Detect invalid argument.
10513         * lib/unlockpt.c: Include <fcntl.h>.
10514         (unlockpt): Check whether fd is valid, using fcntl().
10515         * modules/unlockpt (Depends-on): Add fcntl-h.
10516
10517 2011-10-20  Bruno Haible  <bruno@clisp.org>
10518
10519         openpty: Avoid compilation error on AIX 6.1.
10520         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
10521
10522 2011-10-20  Bruno Haible  <bruno@clisp.org>
10523
10524         posix_openpt: Support for OpenBSD.
10525         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
10526         (posix_openpt) [OpenBSD]: New code.
10527         * lib/grantpt.c: Include <fcntl.h>.
10528         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
10529         * modules/grantpt (Depends-on): Add fcntl-h.
10530
10531 2011-10-20  Bruno Haible  <bruno@clisp.org>
10532
10533         posix_openpt test: Coding style.
10534         * tests/test-posix_openpt.c: Use GNU coding style.
10535
10536 2011-10-20  Bruno Haible  <bruno@clisp.org>
10537
10538         grantpt: Support --avoid=pt_chown.
10539         * modules/grantpt (Files): Add lib/pty-private.h.
10540
10541 2011-10-20  Bruno Haible  <bruno@clisp.org>
10542
10543         posix_openpt: Fix autoconf macro.
10544         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
10545         unneeded check for _getpty.
10546
10547 2011-10-20  Bruno Haible  <bruno@clisp.org>
10548
10549         openpty: Update comments.
10550         * lib/openpty.c: Add comments about Minix.
10551
10552 2011-10-19  Eric Blake  <eblake@redhat.com>
10553
10554         openpty: relax license
10555         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
10556
10557         pt_chown: use configmake to simplify build
10558         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
10559
10560         ptsname and others: relax license
10561         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
10562         * modules/unlockpt (License): Likewise.
10563         * modules/pt_chown (License): Likewise.
10564         * modules/ptsname (License): Likewise.
10565         * modules/ttyname_r (License): Likewise.
10566
10567 2011-10-19  Jim Meyering  <meyering@redhat.com>
10568
10569         posix_openpt: remove spurious #endif
10570         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
10571
10572 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
10573
10574         maint.mk: Respect $(build_aux) in web-manual rule.
10575         * top/maint.mk (web-manual): Find gen-announce script in user's
10576         $(build_aux) directory instead of hard-coding 'build-aux'.
10577
10578 2011-10-19  Bruno Haible  <bruno@clisp.org>
10579
10580         posix_openpt: Fix compilation error.
10581         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
10582         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
10583         Mention the openpty module as an alternative.
10584
10585 2011-10-19  Bruno Haible  <bruno@clisp.org>
10586
10587         Support for old NeXTstep 3.3 frexp().
10588         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
10589         execution time of the test to 5 seconds.
10590         Reported by Daniel Richard G. <skunk@iskunk.org>.
10591
10592 2011-10-19  Bruno Haible  <bruno@clisp.org>
10593
10594         Support for old NeXTstep 3.3 sed.
10595         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
10596         part, use /.../, not \|...|. Escape periods in the header file name.
10597         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
10598         Reported by Daniel Richard G. <skunk@iskunk.org>.
10599
10600 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
10601
10602         Support for old NeXTstep 3.3 gcc.
10603         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
10604         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
10605         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
10606         * lib/spawn.in.h (_Restrict_arr_): Likewise.
10607         * lib/regex.h (_Restrict_arr_): Likewise.
10608         * lib/regex_internal.h (re_token_t): Likewise.
10609         * lib/regexec.c (check_node_accept_bytes): Likewise.
10610         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
10611
10612 2011-10-18  Eric Blake  <eblake@redhat.com>
10613
10614         posix_openpt: new module
10615         * modules/posix_openpt: New module.
10616         * m4/posix_openpt.m4: New file.
10617         * lib/posix_openpt.c: Likewise.
10618         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
10619         (gl_STDLIB_H_DEFAULTS): Set defaults.
10620         * modules/stdlib (Makefile.am): Substitute macros.
10621         * lib/stdlib.in.h (posix_openpt): Declare.
10622         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
10623         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
10624         * modules/posix_openpt-tests: New test module.
10625         * tests/test-posix_openpt.c: New test.
10626
10627 2011-10-15  Bruno Haible  <bruno@clisp.org>
10628
10629         xstrtoll: Fix compilation failure.
10630         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
10631         from lib/strtol.c.
10632         * doc/posix-headers/limits.texi: Mention missing numerical limits on
10633         some platforms.
10634         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10635
10636 2011-10-15  Bruno Haible  <bruno@clisp.org>
10637
10638         vasnprintf: Optimize bit search operation.
10639         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
10640         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
10641         gl_DOUBLE_EXPONENT_LOCATION.
10642         * modules/vasnprintf (Files): Add m4/exponentd.m4.
10643         * modules/unistdio/u8-vasnprintf (Files): Likewise.
10644         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
10645         * modules/unistdio/u16-vasnprintf (Files): Likewise.
10646         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
10647         * modules/unistdio/u32-vasnprintf (Files): Likewise.
10648         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
10649         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
10650         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
10651
10652 2011-10-15  Bruno Haible  <bruno@clisp.org>
10653
10654         vasnprintf: Fix comments.
10655         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
10656
10657 2011-10-14  Bruno Haible  <bruno@clisp.org>
10658
10659         Tests for module 'integer_length_ll'.
10660         * modules/integer_length_ll-tests: New file.
10661         * tests/test-integer_length_ll.c: New file.
10662
10663         New module 'integer_length_ll'.
10664         * lib/integer_length_ll.c: New file.
10665         * modules/integer_length_ll: New file.
10666
10667 2011-10-14  Bruno Haible  <bruno@clisp.org>
10668
10669         Tests for module 'integer_length_l'.
10670         * modules/integer_length_l-tests: New file.
10671         * tests/test-integer_length_l.c: New file.
10672
10673         New module 'integer_length_l'.
10674         * lib/integer_length_l.c: New file.
10675         * modules/integer_length_l: New file.
10676
10677 2011-10-14  Bruno Haible  <bruno@clisp.org>
10678
10679         Tests for module 'integer_length'.
10680         * modules/integer_length-tests: New file.
10681         * tests/test-integer_length.c: New file.
10682
10683         New module 'integer_length'.
10684         * lib/integer_length.h: New file.
10685         * lib/integer_length.c: New file.
10686         * modules/integer_length: New file.
10687
10688 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
10689
10690         popen: Fix dependency conditions.
10691         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
10692
10693 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
10694
10695         perror: Fix autoconf test.
10696         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
10697         <stdlib.h> and <string.h>.
10698
10699 2011-10-14  Bruno Haible  <bruno@clisp.org>
10700
10701         ffsl: Optimize on 64-bit platforms.
10702         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
10703         unrolling.
10704
10705 2011-10-13  Bruno Haible  <bruno@clisp.org>
10706
10707         ffsl: Optimize on 32-bit platforms.
10708         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
10709         use ffs() without a loop.
10710
10711         ffsl, ffsll: Optimize for GCC.
10712         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
10713         * lib/ffsl.c (GCC_BUILTIN): New macro.
10714         * lib/ffsll.c (GCC_BUILTIN): Likewise.
10715
10716 2011-10-13  Bruno Haible  <bruno@clisp.org>
10717
10718         ffs, bcopy, memset: Support symbol renaming via config.h.
10719         * lib/ffs.c: Include <config.h>.
10720         * lib/bcopy.c: Likewise.
10721         * lib/memset.c: Likewise.
10722
10723 2011-10-10  Bruno Haible  <bruno@clisp.org>
10724
10725         atanl: Simplify for platforms where 'long double' == 'double'.
10726         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10727         alternative implementation.
10728         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10729         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10730         * modules/atanl (Depends-on): Add atan. Update conditions.
10731
10732 2011-10-10  Bruno Haible  <bruno@clisp.org>
10733
10734         acosl: Simplify for platforms where 'long double' == 'double'.
10735         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10736         alternative implementation.
10737         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10738         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10739         * modules/acosl (Depends-on): Add acos. Update conditions.
10740
10741 2011-10-10  Bruno Haible  <bruno@clisp.org>
10742
10743         asinl: Simplify for platforms where 'long double' == 'double'.
10744         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10745         alternative implementation.
10746         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10747         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10748         * modules/asinl (Depends-on): Add asin. Update conditions.
10749
10750 2011-10-10  Bruno Haible  <bruno@clisp.org>
10751
10752         tanl: Simplify for platforms where 'long double' == 'double'.
10753         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10754         implementation.
10755         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10756         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10757         * modules/tanl (Depends-on): Add tan. Update conditions.
10758         (configure.ac): Don't compile trigl.c if
10759         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10760
10761 2011-10-10  Bruno Haible  <bruno@clisp.org>
10762
10763         cosl: Simplify for platforms where 'long double' == 'double'.
10764         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10765         implementation.
10766         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10767         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10768         * modules/cosl (Depends-on): Add cos. Update conditions.
10769         (configure.ac): Don't compile sincosl.c and trigl.c if
10770         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10771
10772 2011-10-10  Bruno Haible  <bruno@clisp.org>
10773
10774         sinl: Simplify for platforms where 'long double' == 'double'.
10775         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10776         implementation.
10777         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10778         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10779         * modules/sinl (Depends-on): Add sin. Update conditions.
10780         (configure.ac): Don't compile sincosl.c and trigl.c if
10781         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10782
10783 2011-10-10  Bruno Haible  <bruno@clisp.org>
10784
10785         logl: Simplify for platforms where 'long double' == 'double'.
10786         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10787         implementation.
10788         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10789         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10790         * modules/logl (Depends-on): Add log. Update conditions.
10791
10792 2011-10-10  Bruno Haible  <bruno@clisp.org>
10793
10794         expl: Simplify for platforms where 'long double' == 'double'.
10795         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10796         implementation.
10797         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10798         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10799         * modules/expl (Depends-on): Add exp. Update conditions.
10800
10801 2011-10-10  Bruno Haible  <bruno@clisp.org>
10802
10803         sqrtl: Simplify for platforms where 'long double' == 'double'.
10804         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10805         alternative implementation.
10806         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10807         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10808         * modules/sqrtl (Depends-on): Update conditions.
10809
10810 2011-10-10  Bruno Haible  <bruno@clisp.org>
10811
10812         ldexpl: Simplify for platforms where 'long double' == 'double'.
10813         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10814         alternative implementation.
10815         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10816         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10817         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
10818
10819 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
10820
10821         ffsll: set correct witness
10822         * modules/ffsll (configure.ac): Fix typo.
10823
10824 2011-10-10  Bruno Haible  <bruno@clisp.org>
10825
10826         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
10827         * lib/printf-frexpl.c: Include <config.h>.
10828         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10829         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
10830         second time.
10831         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
10832         gl_LONG_DOUBLE_VS_DOUBLE.
10833         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
10834         conditions.
10835
10836 2011-10-10  Bruno Haible  <bruno@clisp.org>
10837
10838         frexpl: Simplify for platforms where 'long double' == 'double'.
10839         * lib/frexpl.c: Include <config.h>.
10840         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10841         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10842         time.
10843         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10844         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10845         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
10846         * modules/frexpl (Depends-on): Add frexp. Update conditions.
10847         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
10848         conditions.
10849
10850 2011-10-10  Jim Meyering  <meyering@redhat.com>
10851
10852         test-renameat: don't leave behind a temporary file
10853         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
10854           ERROR: files left in build directory after distclean:
10855           ./gltests/test-renameat.too
10856           make[1]: *** [distcleancheck] Error 1
10857         Reported by Tom G. Christensen.
10858
10859 2011-10-09  Bruno Haible  <bruno@clisp.org>
10860
10861         rint: Determine RINT_LIBM correctly on AIX 7.
10862         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
10863         directly, not only through a function pointer. Also accept an optional
10864         4th argument with extra code.
10865         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
10866         rintf() call by gcc when optimizing.
10867
10868         mathfunc.m4: Refactor.
10869         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
10870         m4 variable.
10871
10872 2011-10-09  Bruno Haible  <bruno@clisp.org>
10873
10874         rintl: Simplify for platforms where 'long double' == 'double'.
10875         * lib/rintl.c: Include <config.h>.
10876         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10877         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10878         time.
10879         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10880         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10881         * modules/rintl (Depends-on): Add rint. Update conditions.
10882
10883 2011-10-09  Bruno Haible  <bruno@clisp.org>
10884
10885         roundl: Simplify for platforms where 'long double' == 'double'.
10886         * lib/roundl.c: Include <config.h>.
10887         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10888         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10889         time.
10890         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10891         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10892         * modules/roundl (Depends-on): Add round. Update conditions.
10893
10894 2011-10-09  Bruno Haible  <bruno@clisp.org>
10895
10896         truncl: Simplify for platforms where 'long double' == 'double'.
10897         * lib/truncl.c: Include <config.h>.
10898         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10899         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10900         time.
10901         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10902         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10903         * modules/truncl (Depends-on): Add trunc. Update conditions.
10904
10905 2011-10-09  Bruno Haible  <bruno@clisp.org>
10906
10907         ceill: Simplify for platforms where 'long double' == 'double'.
10908         * lib/ceill.c: Include <config.h>.
10909         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10910         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10911         time.
10912         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10913         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10914         * modules/ceill (Depends-on): Add ceil. Update conditions.
10915
10916 2011-10-09  Bruno Haible  <bruno@clisp.org>
10917
10918         floorl: Simplify for platforms where 'long double' == 'double'.
10919         * lib/floorl.c: Include <config.h>.
10920         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10921         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10922         time.
10923         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10924         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10925         * modules/floorl (Depends-on): Add floor. Update conditions.
10926
10927 2011-10-09  Bruno Haible  <bruno@clisp.org>
10928
10929         rint: Fix ordering constraints.
10930         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
10931         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
10932         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
10933
10934 2011-10-09  Bruno Haible  <bruno@clisp.org>
10935
10936         copysignl: Simplify for platforms where 'long double' == 'double'.
10937         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10938         alternative.
10939         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10940         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10941         * modules/copysignl (Depends-on): Add copysign. Update conditions.
10942
10943 2011-10-09  Bruno Haible  <bruno@clisp.org>
10944
10945         Tests for module 'rintl'.
10946         * modules/rintl-tests: New file.
10947         * tests/test-rintl.c: New file.
10948
10949         New module 'rintl'.
10950         * lib/math.in.h (rintl): New declaration.
10951         * lib/rintl.c: New file.
10952         * m4/rintl.m4: New file.
10953         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
10954         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
10955         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
10956         * modules/rintl: New file.
10957         * tests/test-math-c++.cc: Check the declaration of rintl.
10958         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
10959         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
10960         * doc/posix-functions/rintl.texi: Mention the new module.
10961
10962 2011-10-09  Bruno Haible  <bruno@clisp.org>
10963
10964         Tests for module 'rintf'.
10965         * modules/rintf-tests: New file.
10966         * tests/test-rintf.c: New file.
10967
10968         New module 'rintf'.
10969         * lib/math.in.h (rintf): New declaration.
10970         * lib/rintf.c: New file.
10971         * m4/rintf.m4: New file.
10972         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
10973         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
10974         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
10975         * modules/rintf: New file.
10976         * tests/test-math-c++.cc: Check the declaration of rintf.
10977         * doc/posix-functions/rintf.texi: Mention the new module.
10978
10979 2011-10-09  Bruno Haible  <bruno@clisp.org>
10980
10981         rint: Support for MSVC.
10982         * lib/math.in.h (rint): New declaration.
10983         * lib/rint.c: New file.
10984         * m4/rint.m4: New file.
10985         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
10986         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
10987         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
10988         * modules/rint (Description): Fix.
10989         (Files): Add lib/rint.c, m4/rint.m4.
10990         (Depends-on): Add math.
10991         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
10992         gl_MATH_MODULE_INDICATOR.
10993         * tests/test-math-c++.cc: Check the declaration of rint.
10994         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
10995         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
10996         * doc/posix-functions/rint.texi: Mention the replacement provided by
10997         the module.
10998
10999         rint tests: More tests.
11000         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
11001         minus-zero.h, infinity.h, nan.h.
11002         (main): Skip the test if the current rounding mode is not standard. Add
11003         tests for negative numbers, minus zero, infinity, NaN.
11004         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
11005         tests/nan.h.
11006         (Depends-on): Add isnand-nolibm.
11007
11008 2011-10-09  Bruno Haible  <bruno@clisp.org>
11009
11010         Tests for module 'copysignl'.
11011         * modules/copysignl-tests: New file.
11012         * tests/test-copysignl.c: New file.
11013
11014         New module 'copysignl'.
11015         * lib/math.in.h (copysignl): New declaration.
11016         * lib/copysignl.c: New file.
11017         * m4/copysignl.m4: New file.
11018         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
11019         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
11020         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
11021         HAVE_COPYSIGNL.
11022         * modules/copysignl: New file.
11023         * tests/test-math-c++.cc: Check the declaration of copysignl.
11024         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
11025         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
11026         * doc/posix-functions/copysignl.texi: Mention the new module.
11027
11028 2011-10-09  Bruno Haible  <bruno@clisp.org>
11029
11030         Tests for module 'copysignf'.
11031         * modules/copysignf-tests: New file.
11032         * tests/test-copysignf.c: New file.
11033
11034         New module 'copysignf'.
11035         * lib/math.in.h (copysignf): New declaration.
11036         * lib/copysignf.c: New file.
11037         * m4/copysignf.m4: New file.
11038         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
11039         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
11040         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
11041         HAVE_COPYSIGNF.
11042         * modules/copysignf: New file.
11043         * tests/test-math-c++.cc: Check the declaration of copysignf.
11044         * doc/posix-functions/copysignf.texi: Mention the new module.
11045
11046 2011-10-09  Bruno Haible  <bruno@clisp.org>
11047
11048         Ensure that HAVE_* variables are set to 1 before they are set to 0.
11049         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
11050         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
11051         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
11052         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
11053         gl_SIGNAL_H_DEFAULTS.
11054
11055 2011-10-09  Bruno Haible  <bruno@clisp.org>
11056
11057         poll: Make macro safer.
11058         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
11059         ac_cv_header_poll_h is not set.
11060
11061 2011-10-09  Bruno Haible  <bruno@clisp.org>
11062
11063         copysign: Provide replacement.
11064         * lib/math.in.h (copysign): New declaration.
11065         * lib/copysign.c: New file.
11066         * m4/copysign.m4: New file.
11067         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
11068         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
11069         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
11070         HAVE_COPYSIGN.
11071         * modules/copysign (Description): Clarify.
11072         (Files): Add lib/copysign.c, m4/copysign.m4.
11073         (Depends-on): Add math, signbit.
11074         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
11075         gl_MATH_MODULE_INDICATOR.
11076         * tests/test-math-c++.cc: Check the declaration of copysign.
11077         * doc/posix-functions/copysign.texi: Mention the effects of the module
11078         on Minix and MSVC.
11079
11080 2011-10-09  Bruno Haible  <bruno@clisp.org>
11081
11082         isinf: Ensure macro on AIX 5.1.
11083         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
11084         macro.
11085         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
11086
11087 2011-10-09  Bruno Haible  <bruno@clisp.org>
11088
11089         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
11090         * modules/snprintf-posix-tests (configure.ac): Require
11091         gl_LONG_DOUBLE_VS_DOUBLE.
11092         * modules/sprintf-posix-tests (configure.ac): Likewise.
11093         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
11094         * modules/vasprintf-posix-tests (configure.ac): Likewise.
11095         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
11096         * modules/vsprintf-posix-tests (configure.ac): Likewise.
11097         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
11098         tests on platforms where 'long double' is the same as 'double'.
11099         * tests/test-sprintf-posix.h (test_function): Likewise.
11100         * tests/test-vasnprintf-posix.c (test_function): Likewise.
11101         * tests/test-vasprintf-posix.c (test_function): Likewise.
11102
11103         *printf: Fix for platforms where 'long double' == 'double'.
11104         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
11105         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
11106         * modules/dprintf-posix (Files): Add m4/math_h.m4.
11107         * modules/fprintf-posix (Files): Likewise.
11108         * modules/obstack-printf-posix (Files): Likewise.
11109         * modules/snprintf-posix (Files): Likewise.
11110         * modules/sprintf-posix (Files): Likewise.
11111         * modules/vasnprintf (Files): Likewise.
11112         * modules/vasnprintf-posix (Files): Likewise.
11113         * modules/vasprintf-posix (Files): Likewise.
11114         * modules/vdprintf-posix (Files): Likewise.
11115         * modules/vfprintf-posix (Files): Likewise.
11116         * modules/vsnprintf-posix (Files): Likewise.
11117         * modules/vsprintf-posix (Files): Likewise.
11118         * modules/unistdio/u8-vasnprintf (Files): Likewise.
11119         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
11120         * modules/unistdio/u16-vasnprintf (Files): Likewise.
11121         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
11122         * modules/unistdio/u32-vasnprintf (Files): Likewise.
11123         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
11124         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
11125
11126         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
11127         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
11128         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11129         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
11130         'long double'.
11131         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
11132
11133         isinf: Fix for platforms where 'long double' == 'double'.
11134         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
11135         Don't blindly assume 80-bit 'long double'.
11136
11137         isfinite: Fix for platforms where 'long double' == 'double'.
11138         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
11139         Don't blindly assume 80-bit 'long double'.
11140
11141         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
11142         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
11143         * modules/isfinite-tests (configure.ac): Require
11144         gl_LONG_DOUBLE_VS_DOUBLE.
11145         * modules/isinf-tests (configure.ac): Likewise.
11146         * modules/isnan-tests (configure.ac): Likewise.
11147         * modules/isnanl-tests (configure.ac): Likewise.
11148         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
11149         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
11150         tests on platforms where 'long double' is the same as 'double'.
11151         * tests/test-isinf.c (test_isinfl): Likewise.
11152         * tests/test-isnan.c (test_long_double): Likewise.
11153         * tests/test-isnanl.h (main): Likewise.
11154
11155 2011-10-08  Bruno Haible  <bruno@clisp.org>
11156
11157         Tests for module 'tanhf'.
11158         * modules/tanhf-tests: New file.
11159         * tests/test-tanhf.c: New file.
11160
11161         New module 'tanhf'.
11162         * lib/math.in.h (tanhf): New declaration.
11163         * lib/tanhf.c: New file.
11164         * m4/tanhf.m4: New file.
11165         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
11166         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
11167         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
11168         * modules/tanhf: New file.
11169         * tests/test-math-c++.cc: Check the declaration of tanhf.
11170         * doc/posix-functions/tanhf.texi: Mention the new module.
11171
11172         tanh: Use a .m4 file.
11173         * m4/tanh.m4: New file.
11174         * modules/tanh (Files): Add it.
11175         (configure.ac): Just invoke gl_FUNC_TANH.
11176
11177 2011-10-08  Bruno Haible  <bruno@clisp.org>
11178
11179         Tests for module 'coshf'.
11180         * modules/coshf-tests: New file.
11181         * tests/test-coshf.c: New file.
11182
11183         New module 'coshf'.
11184         * lib/math.in.h (coshf): New declaration.
11185         * lib/coshf.c: New file.
11186         * m4/coshf.m4: New file.
11187         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
11188         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
11189         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
11190         * modules/coshf: New file.
11191         * tests/test-math-c++.cc: Check the declaration of coshf.
11192         * doc/posix-functions/coshf.texi: Mention the new module.
11193
11194         cosh: Use a .m4 file.
11195         * m4/cosh.m4: New file.
11196         * modules/cosh (Files): Add it.
11197         (configure.ac): Just invoke gl_FUNC_COSH.
11198
11199 2011-10-08  Bruno Haible  <bruno@clisp.org>
11200
11201         Tests for module 'sinhf'.
11202         * modules/sinhf-tests: New file.
11203         * tests/test-sinhf.c: New file.
11204
11205         New module 'sinhf'.
11206         * lib/math.in.h (sinhf): New declaration.
11207         * lib/sinhf.c: New file.
11208         * m4/sinhf.m4: New file.
11209         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
11210         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
11211         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
11212         * modules/sinhf: New file.
11213         * tests/test-math-c++.cc: Check the declaration of sinhf.
11214         * doc/posix-functions/sinhf.texi: Mention the new module.
11215
11216         sinh: Use a .m4 file.
11217         * m4/sinh.m4: New file.
11218         * modules/sinh (Files): Add it.
11219         (configure.ac): Just invoke gl_FUNC_SINH.
11220
11221 2011-10-08  Bruno Haible  <bruno@clisp.org>
11222
11223         Tests for module 'atan2f'.
11224         * modules/atan2f-tests: New file.
11225         * tests/test-atan2f.c: New file.
11226
11227         New module 'atan2f'.
11228         * lib/math.in.h (atan2f): New declaration.
11229         * lib/atan2f.c: New file.
11230         * m4/atan2f.m4: New file.
11231         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
11232         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
11233         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
11234         * modules/atan2f: New file.
11235         * tests/test-math-c++.cc: Check the declaration of atan2f.
11236         * doc/posix-functions/atan2f.texi: Mention the new module.
11237
11238         atan2: Use a .m4 file.
11239         * m4/atan2.m4: New file.
11240         * modules/atan2 (Files): Add it.
11241         (configure.ac): Just invoke gl_FUNC_ATAN2.
11242
11243 2011-10-08  Bruno Haible  <bruno@clisp.org>
11244
11245         Tests for module 'atanf'.
11246         * modules/atanf-tests: New file.
11247         * tests/test-atanf.c: New file.
11248
11249         New module 'atanf'.
11250         * lib/math.in.h (atanf): New declaration.
11251         * lib/atanf.c: New file.
11252         * m4/atanf.m4: New file.
11253         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
11254         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
11255         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
11256         * modules/atanf: New file.
11257         * tests/test-math-c++.cc: Check the declaration of atanf.
11258         * doc/posix-functions/atanf.texi: Mention the new module.
11259
11260         atan: Use a .m4 file.
11261         * m4/atan.m4: New file.
11262         * modules/atan (Files): Add it.
11263         (configure.ac): Just invoke gl_FUNC_ATAN.
11264
11265 2011-10-08  Bruno Haible  <bruno@clisp.org>
11266
11267         Tests for module 'acosf'.
11268         * modules/acosf-tests: New file.
11269         * tests/test-acosf.c: New file.
11270
11271         New module 'acosf'.
11272         * lib/math.in.h (acosf): New declaration.
11273         * lib/acosf.c: New file.
11274         * m4/acosf.m4: New file.
11275         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
11276         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
11277         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
11278         * modules/acosf: New file.
11279         * tests/test-math-c++.cc: Check the declaration of acosf.
11280         * doc/posix-functions/acosf.texi: Mention the new module.
11281
11282         acos: Use a .m4 file.
11283         * m4/acos.m4: New file.
11284         * modules/acos (Files): Add it.
11285         (configure.ac): Just invoke gl_FUNC_ACOS.
11286
11287 2011-10-08  Bruno Haible  <bruno@clisp.org>
11288
11289         Tests for module 'asinf'.
11290         * modules/asinf-tests: New file.
11291         * tests/test-asinf.c: New file.
11292
11293         New module 'asinf'.
11294         * lib/math.in.h (asinf): New declaration.
11295         * lib/asinf.c: New file.
11296         * m4/asinf.m4: New file.
11297         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
11298         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
11299         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
11300         * modules/asinf: New file.
11301         * tests/test-math-c++.cc: Check the declaration of asinf.
11302         * doc/posix-functions/asinf.texi: Mention the new module.
11303
11304         asin: Use a .m4 file.
11305         * m4/asin.m4: New file.
11306         * modules/asin (Files): Add it.
11307         (configure.ac): Just invoke gl_FUNC_ASIN.
11308
11309 2011-10-08  Bruno Haible  <bruno@clisp.org>
11310
11311         Tests for module 'tanf'.
11312         * modules/tanf-tests: New file.
11313         * tests/test-tanf.c: New file.
11314
11315         New module 'tanf'.
11316         * lib/math.in.h (tanf): New declaration.
11317         * lib/tanf.c: New file.
11318         * m4/tanf.m4: New file.
11319         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
11320         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
11321         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
11322         * modules/tanf: New file.
11323         * tests/test-math-c++.cc: Check the declaration of tanf.
11324         * doc/posix-functions/tanf.texi: Mention the new module.
11325
11326         tan: Use a .m4 file.
11327         * m4/tan.m4: New file.
11328         * modules/tan (Files): Add it.
11329         (configure.ac): Just invoke gl_FUNC_TAN.
11330
11331 2011-10-08  Bruno Haible  <bruno@clisp.org>
11332
11333         Tests for module 'cosf'.
11334         * modules/cosf-tests: New file.
11335         * tests/test-cosf.c: New file.
11336
11337         New module 'cosf'.
11338         * lib/math.in.h (cosf): New declaration.
11339         * lib/cosf.c: New file.
11340         * m4/cosf.m4: New file.
11341         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
11342         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
11343         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
11344         * modules/cosf: New file.
11345         * tests/test-math-c++.cc: Check the declaration of cosf.
11346         * doc/posix-functions/cosf.texi: Mention the new module.
11347
11348         cos: Use a .m4 file.
11349         * m4/cos.m4: New file.
11350         * modules/cos (Files): Add it.
11351         (configure.ac): Just invoke gl_FUNC_COS.
11352
11353 2011-10-08  Bruno Haible  <bruno@clisp.org>
11354
11355         Tests for module 'sinf'.
11356         * modules/sinf-tests: New file.
11357         * tests/test-sinf.c: New file.
11358
11359         New module 'sinf'.
11360         * lib/math.in.h (sinf): New declaration.
11361         * lib/sinf.c: New file.
11362         * m4/sinf.m4: New file.
11363         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
11364         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
11365         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
11366         * modules/sinf: New file.
11367         * tests/test-math-c++.cc: Check the declaration of sinf.
11368         * doc/posix-functions/sinf.texi: Mention the new module.
11369
11370         sin: Use a .m4 file.
11371         * m4/sin.m4: New file.
11372         * modules/sin (Files): Add it.
11373         (configure.ac): Just invoke gl_FUNC_SIN.
11374
11375 2011-10-08  Bruno Haible  <bruno@clisp.org>
11376
11377         Tests for module 'powf'.
11378         * modules/powf-tests: New file.
11379         * tests/test-powf.c: New file.
11380
11381         New module 'powf'.
11382         * lib/math.in.h (powf): New declaration.
11383         * lib/powf.c: New file.
11384         * m4/powf.m4: New file.
11385         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
11386         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
11387         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
11388         * modules/powf: New file.
11389         * tests/test-math-c++.cc: Check the declaration of powf.
11390         * doc/posix-functions/powf.texi: Mention the new module.
11391
11392         pow: Use a .m4 file.
11393         * m4/pow.m4: New file.
11394         * modules/pow (Files): Add it.
11395         (configure.ac): Just invoke gl_FUNC_POW.
11396
11397 2011-10-08  Bruno Haible  <bruno@clisp.org>
11398
11399         Tests for module 'log10f'.
11400         * modules/log10f-tests: New file.
11401         * tests/test-log10f.c: New file.
11402
11403         New module 'log10f'.
11404         * lib/math.in.h (log10f): New declaration.
11405         * lib/log10f.c: New file.
11406         * m4/log10f.m4: New file.
11407         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
11408         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
11409         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
11410         * modules/log10f: New file.
11411         * tests/test-math-c++.cc: Check the declaration of log10f.
11412         * doc/posix-functions/log10f.texi: Mention the new module.
11413
11414         log10: Use a .m4 file.
11415         * m4/log10.m4: New file.
11416         * modules/log10 (Files): Add it.
11417         (configure.ac): Just invoke gl_FUNC_LOG10.
11418
11419 2011-10-08  Bruno Haible  <bruno@clisp.org>
11420
11421         Tests for module 'logf'.
11422         * modules/logf-tests: New file.
11423         * tests/test-logf.c: New file.
11424
11425         New module 'logf'.
11426         * lib/math.in.h (logf): New declaration.
11427         * lib/logf.c: New file.
11428         * m4/logf.m4: New file.
11429         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
11430         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
11431         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
11432         * modules/logf: New file.
11433         * tests/test-math-c++.cc: Check the declaration of logf.
11434         * doc/posix-functions/logf.texi: Mention the new module.
11435
11436         log: Use a .m4 file.
11437         * m4/log.m4: New file.
11438         * modules/log (Files): Add it.
11439         (configure.ac): Just invoke gl_FUNC_LOG.
11440
11441 2011-10-08  Bruno Haible  <bruno@clisp.org>
11442
11443         Tests for module 'expf'.
11444         * modules/expf-tests: New file.
11445         * tests/test-expf.c: New file.
11446
11447         New module 'expf'.
11448         * lib/math.in.h (expf): New declaration.
11449         * lib/expf.c: New file.
11450         * m4/expf.m4: New file.
11451         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
11452         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
11453         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
11454         * modules/expf: New file.
11455         * tests/test-math-c++.cc: Check the declaration of expf.
11456         * doc/posix-functions/expf.texi: Mention the new module.
11457
11458         exp: Use a .m4 file.
11459         * m4/exp.m4: New file.
11460         * modules/exp (Files): Add it.
11461         (configure.ac): Just invoke gl_FUNC_EXP.
11462
11463 2011-10-08  Bruno Haible  <bruno@clisp.org>
11464
11465         Tests for module 'sqrtf'.
11466         * modules/sqrtf-tests: New file.
11467         * tests/test-sqrtf.c: New file.
11468
11469         New module 'sqrtf'.
11470         * lib/math.in.h (sqrtf): New declaration.
11471         * lib/sqrtf.c: New file.
11472         * m4/sqrtf.m4: New file.
11473         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
11474         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
11475         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
11476         * modules/sqrtf: New file.
11477         * tests/test-math-c++.cc: Check the declaration of sqrtf.
11478         * doc/posix-functions/sqrtf.texi: Mention the new module.
11479
11480 2011-10-08  Bruno Haible  <bruno@clisp.org>
11481
11482         Tests: Avoid link failures w.r.t. libintl.
11483         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
11484         $(LIBINTL).
11485         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
11486         $(LIBINTL).
11487         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
11488         against $(LIBINTL).
11489         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
11490         $(LIBINTL).
11491         * modules/openat-tests (Makefile.am): Link test-fchmodat against
11492         $(LIBINTL).
11493         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
11494
11495 2011-10-08  Bruno Haible  <bruno@clisp.org>
11496
11497         pow tests: Defeat compiler optimizations.
11498         * tests/test-pow.c (main): Assign arguments to x and y before use.
11499
11500 2011-10-08  Bruno Haible  <bruno@clisp.org>
11501
11502         gnulib-tool: Improve last commit.
11503         * gnulib-tool (func_modules_transitive_closure): Simplify code.
11504         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
11505         ignore dependencies that are not among the modules list.
11506
11507 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
11508
11509         gnulib-tool: don't follow dependencies to avoided modules
11510         This fixes a bug that is related to the previous one.
11511         * gnulib-tool (func_modules_transitive_closure)
11512         (func_emit_autoconf_snippets):
11513         Check whether a dependency is acceptable before using it.
11514         (--extract-dependencies): Report an error if --avoid is also used,
11515         since this combination of options is not yet supported.
11516
11517         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
11518         Problem reported by Peter Dyballa in
11519         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
11520         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
11521         when echoing "$condition".
11522
11523 2011-10-07  Bruno Haible  <bruno@clisp.org>
11524
11525         Fix documentation about math functions on MacOS X.
11526         * doc/posix-functions/exp2.texi: Don't say the function is missing on
11527         MacOS X 10.5.
11528         * doc/posix-functions/fdim.texi: Likewise.
11529         * doc/posix-functions/feclearexcept.texi: Likewise.
11530         * doc/posix-functions/fegetenv.texi: Likewise.
11531         * doc/posix-functions/fegetround.texi: Likewise.
11532         * doc/posix-functions/feholdexcept.texi: Likewise.
11533         * doc/posix-functions/feraiseexcept.texi: Likewise.
11534         * doc/posix-functions/fesetenv.texi: Likewise.
11535         * doc/posix-functions/fesetround.texi: Likewise.
11536         * doc/posix-functions/fetestexcept.texi: Likewise.
11537         * doc/posix-functions/feupdateenv.texi: Likewise.
11538         * doc/posix-functions/fmax.texi: Likewise.
11539         * doc/posix-functions/fmin.texi: Likewise.
11540         * doc/posix-functions/log2.texi: Likewise.
11541         * doc/posix-functions/modff.texi: Likewise.
11542         * doc/posix-functions/nan.texi: Likewise.
11543         * doc/posix-functions/nanf.texi: Likewise.
11544         * doc/posix-functions/nextafterf.texi: Likewise.
11545         * doc/posix-functions/remquo.texi: Likewise.
11546
11547 2011-10-07  Bruno Haible  <bruno@clisp.org>
11548
11549         modff: Drop assumption about library that defines modff.
11550         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
11551         AC_CHECK_FUNCS.
11552         * modules/modff (Files): Add m4/mathfunc.m4.
11553
11554 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
11555
11556         raise tests: Avoid a GCC warning.
11557         * tests/test-raise.c (handler): Use _Noreturn.
11558
11559 2011-10-07  Bruno Haible  <bruno@clisp.org>
11560
11561         Tests for module 'ldexpf'.
11562         * modules/ldexpf-tests: New file.
11563         * tests/test-ldexpf.c: New file.
11564
11565         New module 'ldexpf'.
11566         * lib/math.in.h (ldexpf): New declaration.
11567         * lib/ldexpf.c: New file.
11568         * m4/ldexpf.m4: New file.
11569         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
11570         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
11571         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
11572         * modules/ldexpf: New file.
11573         * tests/test-math-c++.cc: Check the declaration of ldexpf.
11574         * doc/posix-functions/ldexpf.texi: Mention the new module.
11575
11576 2011-10-06  Bruno Haible  <bruno@clisp.org>
11577
11578         frexpf: Work around problems on IRIX and mingw.
11579         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
11580         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
11581         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
11582         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
11583         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
11584         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
11585         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
11586
11587 2011-10-06  Bruno Haible  <bruno@clisp.org>
11588
11589         fabsf: Drop assumption about library that defines fabsf.
11590         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
11591         AC_CHECK_FUNCS.
11592         * modules/fabsf (Files): Add m4/mathfunc.m4.
11593
11594 2011-10-06  Bruno Haible  <bruno@clisp.org>
11595
11596         frexpf: Drop assumption about library that defines frexpf.
11597         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
11598         'int *', 'float *', 'long double *', 'float', 'long double'.
11599         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
11600         AC_CHECK_FUNCS.
11601         * modules/frexpf (Files): Add m4/mathfunc.m4.
11602
11603         Tests for module 'frexpf'.
11604         * modules/frexpf-tests: New file.
11605         * tests/test-frexpf.c: New file.
11606
11607         New module 'frexpf'.
11608         * lib/math.in.h (frexpf): New declaration.
11609         * lib/frexpf.c: New file.
11610         * m4/frexpf.m4: New file.
11611         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
11612         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
11613         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
11614         * modules/frexpf: New file.
11615         * tests/test-math-c++.cc: Check the declaration of frexpf.
11616         * doc/posix-functions/frexpf.texi: Mention the new module.
11617
11618 2011-10-06  Bruno Haible  <bruno@clisp.org>
11619
11620         math: Sort function declarations of math.in.h.
11621         * lib/math.in.h (frexp, logb): Move declarations.
11622
11623 2011-10-05  Bruno Haible  <bruno@clisp.org>
11624
11625         Tests for module 'modff'.
11626         * modules/modff-tests: New file.
11627         * tests/test-modff.c: New file.
11628
11629         New module 'modff'.
11630         * lib/math.in.h (modff): New declaration.
11631         * lib/modff.c: New file.
11632         * m4/modff.m4: New file.
11633         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
11634         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
11635         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
11636         * modules/modff: New file.
11637         * tests/test-math-c++.cc: Check the declaration of modff.
11638         * doc/posix-functions/modff.texi: Mention the new module.
11639
11640         modf tests: Make test sharper.
11641         * tests/test-modf.c (main): Strengthen upper bound.
11642
11643         modf: Use a .m4 file.
11644         * m4/modf.m4: New file.
11645         * modules/modf (Files): Add it.
11646         (configure.ac): Just invoke gl_FUNC_MODF.
11647
11648 2011-10-05  Bruno Haible  <bruno@clisp.org>
11649
11650         Tests for module 'fmodf'.
11651         * modules/fmodf-tests: New file.
11652         * tests/test-fmodf.c: New file.
11653
11654         New module 'fmodf'.
11655         * lib/math.in.h (fmodf): New declaration.
11656         * lib/fmodf.c: New file.
11657         * m4/fmodf.m4: New file.
11658         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
11659         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
11660         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
11661         * modules/fmodf: New file.
11662         * tests/test-math-c++.cc: Check the declaration of fmodf.
11663         * doc/posix-functions/fmodf.texi: Mention the new module.
11664
11665         fmod: Use a .m4 file.
11666         * m4/fmod.m4: New file.
11667         * modules/fmod (Files): Add it.
11668         (configure.ac): Just invoke gl_FUNC_FMOD.
11669
11670 2011-10-05  Bruno Haible  <bruno@clisp.org>
11671
11672         Tests for module 'fabsf'.
11673         * modules/fabsf-tests: New file.
11674         * tests/test-fabsf.c: New file.
11675
11676         New module 'fabsf'.
11677         * lib/math.in.h (fabsf): New declaration.
11678         * lib/fabsf.c: New file.
11679         * m4/fabsf.m4: New file.
11680         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
11681         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
11682         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
11683         * modules/fabsf: New file.
11684         * tests/test-math-c++.cc: Check the declaration of fabsf.
11685         * doc/posix-functions/fabsf.texi: Mention the new module.
11686
11687         fabs: Use a .m4 file.
11688         * m4/fabs.m4: New file.
11689         * modules/fabs (Files): Add it.
11690         (configure.ac): Just invoke gl_FUNC_FABS.
11691
11692 2011-10-05  Jim Meyering  <meyering@redhat.com>
11693
11694         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
11695         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
11696         ls -lL regression introduced in coreutils-8.12, it does so at the
11697         cost of an additional stat call in the common case.  Besides, now
11698         that the kernel change that prompted commit 95f7c57f has been reverted
11699         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
11700         we have no use for commit 95f7c57f, "file-has-acl: use
11701         acl_extended_file_nofollow if available".
11702
11703 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
11704
11705         file-has-acl: revert unintended change in behavior of ls -L
11706         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
11707         derived from...
11708         (file_has_acl): ...code here.  Call it.
11709         This problem was introduced with 2011-07-22 commit 95f7c57f,
11710         "file-has-acl: use acl_extended_file_nofollow if available".
11711         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
11712
11713 2011-10-03  Bruno Haible  <bruno@clisp.org>
11714
11715         poll: Avoid link errors on MSVC.
11716         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
11717         * modules/poll (Depends-on): Add sockets.
11718         (Link): New section.
11719         * NEWS: Mention the change.
11720         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
11721         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
11722         $(LIB_POLL) instead of $(LIBSOCKET).
11723
11724 2011-10-03  Bruno Haible  <bruno@clisp.org>
11725
11726         sys_select tests: Fix link error on MSVC 9.
11727         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
11728         with $(LIB_SELECT) instead of $(LIBSOCKET).
11729
11730 2011-10-03  Bruno Haible  <bruno@clisp.org>
11731
11732         sys_select: Fix compilation error on mingw.
11733         * lib/sys_select.in.h: On native Windows, include <io.h>.
11734
11735 2011-10-03  Bruno Haible  <bruno@clisp.org>
11736
11737         wmemset: Support for MSVC.
11738         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
11739         whether wmemset() exists.
11740
11741 2011-10-03  Bruno Haible  <bruno@clisp.org>
11742
11743         wmemmove: Support for MSVC.
11744         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
11745         whether wmemmove() exists.
11746
11747 2011-10-03  Bruno Haible  <bruno@clisp.org>
11748
11749         wmemcpy: Support for MSVC.
11750         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
11751         whether wmemcpy() exists.
11752
11753 2011-10-03  Bruno Haible  <bruno@clisp.org>
11754
11755         wmemcmp: Support for MSVC.
11756         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
11757         whether wmemcmp() exists.
11758
11759 2011-10-03  Bruno Haible  <bruno@clisp.org>
11760
11761         wmemchr: Support for MSVC.
11762         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
11763         whether wmemchr() exists.
11764
11765 2011-10-03  Bruno Haible  <bruno@clisp.org>
11766
11767         glthread/*, strsignal: Support for MSVC.
11768         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
11769         including <winsock.h> on MSVC 9.
11770         * lib/glthread/lock.h: Likewise.
11771         * lib/glthread/thread.h: Likewise.
11772         * lib/glthread/tls.h: Likewise.
11773         * lib/glthread/yield.h: Likewise.
11774         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
11775         if HAVE_UNISTD_H is false.
11776         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
11777
11778 2011-10-03  Bruno Haible  <bruno@clisp.org>
11779
11780         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
11781         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
11782         Set to 100000.
11783
11784 2011-10-03  Bruno Haible  <bruno@clisp.org>
11785
11786         acl: Fix specification.
11787         * lib/file-has-acl.c (file_has_acl): Fix specification.
11788
11789 2011-10-03  Bruno Haible  <bruno@clisp.org>
11790
11791         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
11792         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
11793         (compute_curr_prefix, shared_library_fullname,
11794         find_shared_library_fullname, get_shared_library_fullname, relocate):
11795         Use it together with PIC && INSTALLDIR.
11796         Reported by <jojelino@gmail.com>
11797         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
11798
11799 2011-10-01  Jim Meyering  <meyering@redhat.com>
11800
11801         maint.mk: adjust a release-related rule not to require use of gzip
11802         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
11803         Instead, check each file in $(DIST_ARCHIVES).  This is better for
11804         projects that build only .tar.xz files.  Also fix an erroneous test.
11805
11806         test-linkat: don't leave behind a temporary file
11807         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
11808         Otherwise, coreutils' "make distcheck" would fail with this:
11809           Only in /c/cu/tests/torture/coreutils/test/\
11810             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
11811           make[2]: *** [my-distcheck] Error 1
11812
11813         float, math: add omitted file
11814         * lib/itold.c: Add file, required for yesterday's float change.
11815
11816 2011-10-01  Bruno Haible  <bruno@clisp.org>
11817
11818         isinf: Fix for OpenBSD/x86.
11819         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
11820         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
11821         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
11822
11823 2011-10-01  Bruno Haible  <bruno@clisp.org>
11824
11825         isfinite: Fix syntax error in configure test.
11826         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
11827
11828         isfinite: Fix typo.
11829         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
11830         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
11831
11832 2011-10-01  Bruno Haible  <bruno@clisp.org>
11833
11834         nonblocking tests: Fix test failure on Linux/IA-64.
11835         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
11836         Set to 270000.
11837
11838 2011-10-01  Bruno Haible  <bruno@clisp.org>
11839
11840         mkfifoat tests: Fix a test failure on mingw.
11841         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
11842         with error ENOSYS.
11843
11844 2011-09-30  Bruno Haible  <bruno@clisp.org>
11845
11846         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
11847         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
11848         'long double'. Set REPLACE_ITOLD.
11849         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
11850         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
11851         * lib/itold.c: New file.
11852         * modules/float (Files): Add lib/itold.c.
11853         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
11854         (Makefile.am): Substitute REPLACE_ITOLD.
11855         * modules/math (Depends-on): Add float.
11856         (Makefile.am): Substitute REPLACE_ITOLD.
11857         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
11858         * doc/posix-headers/math.texi: Likewise.
11859         * doc/posix-functions/logl.texi: Likewise.
11860
11861 2011-09-30  Bruno Haible  <bruno@clisp.org>
11862
11863         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
11864         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
11865         Set to 140000.
11866
11867 2011-09-30  Bruno Haible  <bruno@clisp.org>
11868
11869         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
11870         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
11871         invocation, say "right after AC_PROG_CC_STDC", not "right after
11872         AC_PROG_CC".
11873         Reported by Gary V. Vaughan <gary@gnu.org>.
11874
11875 2011-09-30  Bruno Haible  <bruno@clisp.org>
11876
11877         Centralize C99 requirement.
11878         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
11879         * modules/stdarg (configure.ac-early): Invoke it instead of
11880         AC_PROG_CC_STDC.
11881         Reported by Gary V. Vaughan and Paul Eggert.
11882
11883 2011-09-29  Bruno Haible  <bruno@clisp.org>
11884
11885         float: Fix LDBL_MAX value on Linux/PowerPC.
11886         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
11887         on Linux/PowerPC.
11888         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
11889         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
11890         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
11891         platform.
11892         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
11893
11894 2011-09-29  Bruno Haible  <bruno@clisp.org>
11895
11896         doc: Improve doc about gl_EARLY.
11897         * doc/gnulib-tool.texi (Initial import): Mention where to place an
11898         AC_PROG_CC_STDC invocation.
11899         Reported by Gary V. Vaughan <gary@gnu.org>.
11900
11901 2011-09-28  Bruno Haible  <bruno@clisp.org>
11902
11903         fgetc, fputc, fread, fwrite tests: Fix link error.
11904         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
11905         on non-MSVC platforms.
11906         * tests/test-fputc.c (main): Likewise.
11907         * tests/test-fread.c (main): Likewise.
11908         * tests/test-fwrite.c (main): Likewise.
11909         Reported by Jim Meyering.
11910
11911 2011-09-27  Bruno Haible  <bruno@clisp.org>
11912
11913         fputc, fwrite tests: Avoid test failure on MSVC.
11914         * tests/test-fgetc.c: Include msvc-inval.h.
11915         (main): Invoke gl_msvc_inval_ensure_handler.
11916         * tests/test-fputc.c: Include msvc-inval.h.
11917         (main): Invoke gl_msvc_inval_ensure_handler.
11918         * tests/test-fread.c: Include msvc-inval.h.
11919         (main): Invoke gl_msvc_inval_ensure_handler.
11920         * tests/test-fwrite.c: Include msvc-inval.h.
11921         (main): Invoke gl_msvc_inval_ensure_handler.
11922         * modules/fgetc-tests (Depends-on): Add msvc-inval.
11923         * modules/fputc-tests (Depends-on): Likewise.
11924         * modules/fread-tests (Depends-on): Likewise.
11925         * modules/fwrite-tests (Depends-on): Likewise.
11926
11927 2011-09-27  Bruno Haible  <bruno@clisp.org>
11928
11929         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
11930         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
11931         (raise): Remove older, duplicated declaration.
11932         (_gl_raise_SIGPIPE): New declaration.
11933         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
11934         (rpl_raise): Remove function.
11935         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
11936         a gnulib-defined SIGPIPE here.
11937         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
11938         'sigprocmask' has detected missing signal-blocking and the module
11939         'sigpipe' is enabled.
11940         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
11941
11942 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
11943
11944         base64-tests: avoid memory leak
11945         * tests/test-base64.c (main): Plug memory leak.
11946
11947         base32: new module
11948         * modules/base32: New module.
11949         * lib/base32.c: New file.
11950         * lib/base32.h: Likewise.
11951         * m4/base32.m4: Likewise.
11952         * modules/base32-tests: New test.
11953         * tests/test-base32.c: Likewise.
11954         * MODULES.html.sh (Misc): Mention it.
11955
11956 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
11957
11958         gnulib: use more-standard license notice wording
11959         * gnulib-tool (func_emit_copyright_notice): When emitting a
11960         license notice into a file, use the standard wording as suggested
11961         by the current information for GNU maintainers, except say "file"
11962         rather than "program".  The new wording gives a license version
11963         number, which addresses an issue raised by Glenn Morris in
11964         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
11965         * m4/onceonly.m4: Use that same wording here, too.
11966
11967         dup2: minor simplification
11968         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
11969         as lib/dup2.c no longer uses 'inline'.
11970
11971 2011-09-25  Bruno Haible  <bruno@clisp.org>
11972
11973         strings: Fix compilation error on MSVC.
11974         * lib/strings.in.h: Include <stddef.h> for size_t.
11975
11976 2011-09-25  Bruno Haible  <bruno@clisp.org>
11977
11978         fflush et al.: Document limitation on MSVC.
11979         * doc/posix-functions/fflush.texi: Document possible crash in handling
11980         mode other than DEFAULT_HANDLING.
11981         * doc/posix-functions/fgetc.texi: Likewise.
11982         * doc/posix-functions/fputc.texi: Likewise.
11983         * doc/posix-functions/fread.texi: Likewise.
11984         * doc/posix-functions/fwrite.texi: Likewise.
11985
11986 2011-09-25  Bruno Haible  <bruno@clisp.org>
11987
11988         msvc-inval: Allow three invalid parameter handling modes.
11989         * lib/msvc-inval.h: Don't include <stdlib.h> here.
11990         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
11991         macros.
11992         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
11993         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
11994         SANE_LIBRARY_HANDLING as a no-op.
11995         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
11996         <stdlib.h>.
11997         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
11998
11999 2011-09-25  Bruno Haible  <bruno@clisp.org>
12000
12001         msvc-inval: Make handler multithread-safe.
12002         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
12003         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
12004         declarations.
12005         (gl_msvc_inval_current): New declaration.
12006         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
12007         Operate on the structure returned by gl_msvc_inval_current().
12008         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
12009         Remove varaiables.
12010         (tls_index, tls_initialized): New variables.
12011         (not_per_thread): New variable.
12012         (gl_msvc_inval_current): New function.
12013         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
12014         returned by gl_msvc_inval_current().
12015
12016 2011-09-25  Bruno Haible  <bruno@clisp.org>
12017
12018         msvc-inval: Install handler globally.
12019         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
12020         !_MSC_VER.
12021         (gl_msvc_invalid_parameter_handler): Remove declaration.
12022         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
12023         declarations.
12024         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
12025         Install the handler globally, don't uninstall it.
12026         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
12027         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
12028         currently valid, call RaiseException instead.
12029         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
12030         for !_MSC_VER.
12031
12032 2011-09-25  Bruno Haible  <bruno@clisp.org>
12033
12034         strerror_r-posix: Fix for MSVC 9.
12035         * lib/strerror_r.c (local_snprintf): New function.
12036         (snprintf): Define to local_snprintf, not to _snprintf.
12037
12038 2011-09-25  Bruno Haible  <bruno@clisp.org>
12039
12040         ftruncate: Support for MSVC 9.
12041         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
12042         (chsize_nothrow): New function.
12043         (chsize): Redefine as a macro.
12044         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
12045         * modules/ftruncate (Depends-on): Add msvc-inval.
12046
12047 2011-09-25  Bruno Haible  <bruno@clisp.org>
12048
12049         New module 'fstat'.
12050         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
12051         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
12052         * lib/fchdir.c (rpl_fstat): Remove function.
12053         * m4/fstat.m4: New file.
12054         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
12055         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
12056         declared.
12057         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
12058         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
12059         * modules/fstat: New file.
12060         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
12061         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
12062         is set.
12063         * doc/posix-functions/fstat.texi: Mention the new module and the
12064         problem on MSVC.
12065         * NEWS: Mention the change.
12066         * modules/acl (Depends-on): Add fstat.
12067         * modules/chdir-safer (Depends-on): Likewise.
12068         * modules/chown (Depends-on): Likewise.
12069         * modules/copy-file (Depends-on): Likewise.
12070         * modules/fchdir (Depends-on): Likewise.
12071         * modules/fdopendir (Depends-on): Likewise.
12072         * modules/fopen (Depends-on): Likewise.
12073         * modules/fts (Depends-on): Likewise.
12074         * modules/getcwd (Depends-on): Likewise.
12075         * modules/isapipe (Depends-on): Likewise.
12076         * modules/linkat (Depends-on): Likewise.
12077         * modules/lseek (Depends-on): Likewise.
12078         * modules/mkdir-p (Depends-on): Likewise.
12079         * modules/open (Depends-on): Likewise.
12080         * modules/openat (Depends-on): Likewise.
12081         * modules/read-file (Depends-on): Likewise.
12082         * modules/renameat (Depends-on): Likewise.
12083         * modules/utimens (Depends-on): Likewise.
12084
12085 2011-09-25  Bruno Haible  <bruno@clisp.org>
12086
12087         linkat: Fix compilation on MSVC 9.
12088         * lib/linkat.c: Don't include <stdint.h>.
12089
12090 2011-09-25  Bruno Haible  <bruno@clisp.org>
12091
12092         fclose: Support for MSVC 9.
12093         * lib/fclose.c: Include msvc-inval.h.
12094         (fclose_nothrow): New function.
12095         (rpl_fclose): Use it.
12096         * modules/fclose (Depends-on): Add msvc-inval.
12097         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
12098
12099 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
12100
12101         dup2: minor simplifications
12102         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
12103         that it's a performance win.
12104         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
12105         ! defined __CYGWIN__)" to "ifdef F_GETFL".
12106
12107 2011-09-24  Jim Meyering  <meyering@redhat.com>
12108
12109         test-futimens: avoid a warning from gcc -Wshadow
12110         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
12111         to avoid a shadowing warning.
12112
12113 2011-09-24  Bruno Haible  <bruno@clisp.org>
12114
12115         fdopen: Support for MSVC 9.
12116         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
12117         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
12118         * lib/fdopen.c: Include msvc-inval.h.
12119         (fdopen_nothrow): New function.
12120         (rpl_fdopen): Use it.
12121         * modules/fdopen (Depends-on): Add msvc-inval.
12122         * modules/fclose-tests (Depends-on): Add fdopen.
12123         * modules/fflush-tests (Depends-on): Likewise.
12124         * modules/fgetc-tests (Depends-on): Likewise.
12125         * modules/fputc-tests (Depends-on): Likewise.
12126         * modules/fread-tests (Depends-on): Likewise.
12127         * modules/freopen-tests (Depends-on): Likewise.
12128         * modules/fseeko-tests (Depends-on): Likewise.
12129         * modules/ftello-tests (Depends-on): Likewise.
12130         * modules/fwrite-tests  (Depends-on): Likewise.
12131         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
12132
12133 2011-09-24  Bruno Haible  <bruno@clisp.org>
12134
12135         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
12136         * modules/fgetc-tests (Depends-on): Add unistd.
12137         * modules/fputc-tests (Depends-on): Likewise.
12138         * modules/fread-tests (Depends-on): Likewise.
12139         * modules/fwrite-tests (Depends-on): Likewise.
12140
12141 2011-09-24  Bruno Haible  <bruno@clisp.org>
12142
12143         dup: Simplify autoconf test.
12144         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
12145         on gl_MSVC_INVAL's result.
12146
12147 2011-09-24  Bruno Haible  <bruno@clisp.org>
12148
12149         Tests for function fwrite().
12150         * modules/fwrite-tests: New file.
12151         * tests/test-fwrite.c: New file.
12152         * modules/stdio-tests (Depends-on): Add fwrite-tests.
12153
12154         Tests for function fread().
12155         * modules/fread-tests: New file.
12156         * tests/test-fread.c: New file.
12157         * modules/stdio-tests (Depends-on): Add fread-tests.
12158
12159         Activate fputc tests.
12160         * modules/stdio-tests (Depends-on): Add fputc-tests.
12161
12162         Enhance fgetc, fputc tests.
12163         * tests/test-fgetc.c (main): Also test the stream's error indicator.
12164         * tests/test-fputc.c (main): Likewise.
12165
12166 2011-09-24  Bruno Haible  <bruno@clisp.org>
12167
12168         write: Support for MSVC 9.
12169         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
12170         is not 1.
12171         * lib/write.c (write_nothrow): New function.
12172         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
12173         not 1. Use write_nothrow.
12174         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
12175         invalid parameter handler.
12176         (gl_PREREQ_WRITE): New macro.
12177         * modules/write (Depends-on): Add msvc-inval.
12178         (configure.ac): Invoke gl_PREREQ_WRITE.
12179         * doc/posix-functions/write.texi: Mention the problem on MSVC.
12180
12181 2011-09-24  Bruno Haible  <bruno@clisp.org>
12182
12183         read: Fix last commit.
12184         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
12185
12186 2011-09-24  Bruno Haible  <bruno@clisp.org>
12187
12188         dup2: Fix last commit.
12189         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
12190         (rpl_dup2): Disable fcntl workaround on native Windows.
12191
12192         sigprocmask: Make code safer.
12193         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
12194         section that changes macro definitions for this compilation unit.
12195
12196 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
12197
12198         dup2: clarify by coalescing Windows-specific material
12199         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
12200         "msvc-nothrow.h"' to the Windows-specific section, so that the
12201         Emacs source need not contain these include files.
12202         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
12203         Windows-specific fixes into this function rather than just the
12204         nothrow fix, as this shortens and clarifies the code.  Always
12205         define as a function, as that's a bit cleaner than having it be
12206         sometimes a function and sometimes a macro.
12207         (rpl_dup2): Move the Windows-specific stuff out of here and into
12208         ms_windows_dup2.  Don't protect the Haiku-related fix with
12209         "#if !defined __linux__", as the same code also works around
12210         a Linux kernel bug, and it doesn't add any system calls on any
12211         platform.  Add comment about FreeBSD 6.1.
12212
12213         sigprocmask: move #include directive
12214         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
12215         Windows-specific section, so that the Emacs source need not
12216         contain msvc-inval.h.
12217
12218 2011-09-23  Bruno Haible  <bruno@clisp.org>
12219
12220         read: Support for MSVC 9.
12221         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
12222         is not 1.
12223         * lib/read.c (read_nothrow): New function.
12224         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
12225         read_nothrow.
12226         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
12227         invalid parameter handler.
12228         (gl_PREREQ_READ): New macro.
12229         * modules/read (Depends-on): Add msvc-inval.
12230         (configure.ac): Invoke gl_PREREQ_READ.
12231         * doc/posix-functions/read.texi: Mention the problem on MSVC.
12232
12233 2011-09-23  Bruno Haible  <bruno@clisp.org>
12234
12235         close: Support for MSVC 9.
12236         * lib/close.c: Include <errno.h>, msvc-inval.h.
12237         (close_nothrow): New function.
12238         (rpl_close): Use it.
12239         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
12240         invalid parameter handler.
12241         * modules/close (Depends-on): Add msvc-inval.
12242         * modules/dup2-tests (Depends-on): Add close.
12243         * modules/dup3-tests (Depends-on): Likewise.
12244         * modules/fcntl-tests (Depends-on): Likewise.
12245         * modules/spawn-pipe-tests (Depends-on): Likewise.
12246         * modules/unistd-safer-tests (Depends-on): Likewise.
12247         * doc/posix-functions/close.texi: Mention the problem on MSVC.
12248
12249 2011-09-23  Bruno Haible  <bruno@clisp.org>
12250
12251         New module 'dup'.
12252         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
12253         Allow replacement.
12254         * lib/dup.c: New file.
12255         * lib/fchdir.c (rpl_dup): Remove function.
12256         * m4/dup.m4: New file.
12257         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
12258         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
12259         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
12260         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
12261         * modules/dup: New file.
12262         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
12263         'dup' module is in use.
12264         * modules/fdopendir (Depends-on): Add dup.
12265         * modules/fdutimensat-tests (Depends-on): Likewise.
12266         * modules/fts (Depends-on): Likewise.
12267         * modules/futimens-tests (Depends-on): Likewise.
12268         * modules/posix_spawnp-tests (Depends-on): Likewise.
12269         * modules/unistd-safer-tests (Depends-on): Likewise.
12270         * modules/utimens-tests (Depends-on): Likewise.
12271         * doc/posix-functions/dup.texi: Mention the new module and the problem
12272         on MSVC.
12273
12274 2011-09-23  Bruno Haible  <bruno@clisp.org>
12275
12276         getdtablesize: Support for MSVC 9.
12277         * lib/getdtablesize.c: Include msvc-inval.h.
12278         (_setmaxstdio_nothrow): New function.
12279         (_setmaxstdio): Redefine it.
12280         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
12281         * modules/getdtablesize (Depends-on): Add msvc-inval.
12282         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
12283
12284 2011-09-23  Bruno Haible  <bruno@clisp.org>
12285
12286         signal-h: Rename from signal.
12287         * modules/signal-h: Renamed from modules/signal.
12288         * modules/pthread_sigmask (Depends-on): Update.
12289         * modules/raise (Depends-on): Likewise.
12290         * modules/sigaction (Depends-on): Likewise.
12291         * modules/sigpipe (Depends-on): Likewise.
12292         * modules/sigprocmask (Depends-on): Likewise.
12293         * modules/sys_select (Depends-on): Likewise.
12294         * modules/signal-h-tests: Renamed from modules/signal-tests.
12295         (Files, Depends-on, Makefile.am): Update.
12296         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
12297         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
12298         (Files, Makefile.am): Update.
12299         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
12300         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
12301         * modules/signal: New placeholder file.
12302         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
12303         * doc/posix-headers/signal.texi: Update.
12304         * NEWS: Mention the change.
12305
12306 2011-09-23  Bruno Haible  <bruno@clisp.org>
12307
12308         sigprocmask: Avoid crashes through signal() on MSVC 9.
12309         * lib/sigprocmask.c: Include msvc-inval.h.
12310         (signal_nothrow): New function.
12311         (signal): Redefine it.
12312         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
12313         * modules/sigprocmask (Depends-on): Add msvc-inval.
12314         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
12315
12316 2011-09-23  Bruno Haible  <bruno@clisp.org>
12317
12318         Tests for module 'raise'.
12319         * modules/raise-tests: New file.
12320         * tests/test-raise.c: New file.
12321
12322         raise: Support for MSVC.
12323         * lib/signal.in.h (raise): New declaration.
12324         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
12325         for native Windows platforms.
12326         * m4/raise.m4: New file.
12327         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
12328         HAVE_RAISE, REPLACE_RAISE.
12329         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
12330         REPLACE_RAISE.
12331         * modules/raise (Status, Notice): Remove fields.
12332         (Files): Add m4/raise.m4.
12333         (Depends-on): Add signal, msvc-inval.
12334         (configure.ac): Use the common idioms.
12335         (Maintainer): Add me.
12336         * tests/test-signal-c++.cc: Check the signature of raise.
12337         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
12338
12339 2011-09-23  Bruno Haible  <bruno@clisp.org>
12340
12341         pipe2: Fix compilation on pre-C99 compilers.
12342         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
12343
12344 2011-09-23  Bruno Haible  <bruno@clisp.org>
12345
12346         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
12347         * lib/msvc-nothrow.h: New file.
12348         * lib/msvc-nothrow.c: New file.
12349         * m4/msvc-nothrow.m4: New file.
12350         * modules/msvc-nothrow: New file.
12351         * lib/dup2.c: Include msvc-nothrow.h.
12352         (rpl_dup2): No need to protect _get_osfhandle call here.
12353         * lib/accept4.c: Include msvc-nothrow.h.
12354         * lib/error.c: Likewise.
12355         * lib/fcntl.c: Likewise.
12356         * lib/lseek.c: Likewise.
12357         * lib/nonblocking.c: Likewise.
12358         * lib/poll.c: Likewise.
12359         * lib/read.c: Likewise.
12360         * lib/select.c: Likewise.
12361         * lib/sockets.h: Likewise.
12362         * lib/sockets.c: Likewise.
12363         * lib/stdio-read.c: Likewise.
12364         * lib/stdio-write.c: Likewise.
12365         * lib/write.c: Likewise.
12366         * lib/w32sock.h: Likewise.
12367         * lib/w32spawn.h: Likewise.
12368         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
12369         * lib/fsync.c: Likewise.
12370         * lib/isapipe.c: Likewise.
12371         * modules/dup2 (Depends-on): Add msvc-nothrow.
12372         * modules/accept4 (Depends-on): Likewise.
12373         * modules/error (Depends-on): Likewise.
12374         * modules/fcntl (Depends-on): Likewise.
12375         * modules/lseek (Depends-on): Likewise.
12376         * modules/nonblocking (Depends-on): Likewise.
12377         * modules/poll (Depends-on): Likewise.
12378         * modules/read (Depends-on): Likewise.
12379         * modules/select (Depends-on): Likewise.
12380         * modules/sockets (Depends-on): Likewise.
12381         * modules/sigpipe (Depends-on): Likewise.
12382         * modules/write (Depends-on): Likewise.
12383         * modules/accept (Depends-on): Likewise.
12384         * modules/bind (Depends-on): Likewise.
12385         * modules/connect (Depends-on): Likewise.
12386         * modules/gethostname (Depends-on): Likewise.
12387         * modules/getpeername (Depends-on): Likewise.
12388         * modules/getsockname (Depends-on): Likewise.
12389         * modules/getsockopt (Depends-on): Likewise.
12390         * modules/ioctl (Depends-on): Likewise.
12391         * modules/listen (Depends-on): Likewise.
12392         * modules/recv (Depends-on): Likewise.
12393         * modules/recvfrom (Depends-on): Likewise.
12394         * modules/send (Depends-on): Likewise.
12395         * modules/sendto (Depends-on): Likewise.
12396         * modules/setsockopt (Depends-on): Likewise.
12397         * modules/shutdown (Depends-on): Likewise.
12398         * modules/socket (Depends-on): Likewise.
12399         * modules/execute (Depends-on): Likewise.
12400         * modules/spawn-pipe (Depends-on): Likewise.
12401         * modules/flock (Depends-on): Likewise.
12402         * modules/fsync (Depends-on): Likewise.
12403         * modules/isapipe (Depends-on): Likewise.
12404         * tests/test-cloexec.c: Include msvc-nothrow.h.
12405         * tests/test-dup-safer.c: Likewise.
12406         * tests/test-dup2.c: Likewise.
12407         * tests/test-dup3.c: Likewise.
12408         * tests/test-fcntl.c: Likewise.
12409         * tests/test-pipe.c: Likewise.
12410         * tests/test-pipe2.c: Likewise.
12411         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
12412         * modules/unistd-safer-tests (Depends-on): Likewise.
12413         * modules/dup2-tests (Depends-on): Likewise.
12414         * modules/dup3-tests (Depends-on): Likewise.
12415         * modules/fcntl-tests (Depends-on): Likewise.
12416         * modules/pipe-posix-tests (Depends-on): Likewise.
12417         * modules/pipe2-tests (Depends-on): Likewise.
12418
12419 2011-09-23  Bruno Haible  <bruno@clisp.org>
12420
12421         dup2: Make code more maintainable.
12422         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
12423         (rpl_dup2): Use it.
12424         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
12425         * modules/dup2 (configure.ac): Invoke it.
12426         Reported by Paul Eggert.
12427
12428 2011-09-23  Bruno Haible  <bruno@clisp.org>
12429
12430         msvc-inval: Fix compilation error.
12431         * lib/msvc-inval.h: Include <excpt.h>.
12432
12433 2011-09-23  Bruno Haible  <bruno@clisp.org>
12434
12435         mkdir: Tweak for MSVC 9.
12436         * lib/sys_stat.in.h: Update comments.
12437         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
12438
12439         Tests for module 'chdir'.
12440         * modules/chdir-tests: New file.
12441         * tests/test-chdir.c: New file.
12442
12443         New module 'chdir'.
12444         * modules/chdir: New file.
12445         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
12446         (chdir): New declaration.
12447         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
12448         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
12449         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
12450         * tests/test-unistd-c++.cc: Check signature of chdir.
12451         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
12452         * modules/chdir-long (Depends-on): Add chdir.
12453         * modules/fchdir (Depends-on): Likewise.
12454         * modules/rename (Depends-on): Likewise.
12455         * modules/savewd (Depends-on): Likewise.
12456
12457         rmdir: Support for mingw, MSVC 9.
12458         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
12459         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
12460
12461         getcwd: Tweak for MSVC 9.
12462         * lib/unistd.in.h: Update comments.
12463         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
12464
12465 2011-09-22  Bruno Haible  <bruno@clisp.org>
12466
12467         strerror_r-posix: Avoid a link error on MSVC.
12468         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
12469         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
12470
12471 2011-09-22  Bruno Haible  <bruno@clisp.org>
12472
12473         select: Avoid link errors on MSVC.
12474         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
12475         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
12476         * modules/pselect (Link): Likewise.
12477         * NEWS: Mention the change.
12478         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
12479         test-select-stdin against $(LIB_SELECT).
12480         * modules/pselect-tests (Makefile.am): Link test-pselect against
12481         $(LIB_SELECT).
12482
12483 2011-09-22  Bruno Haible  <bruno@clisp.org>
12484
12485         select: Avoid compilation error on MSVC.
12486         * lib/select.c: Don't include <stdbool.h>.
12487
12488 2011-09-21  Bruno Haible  <bruno@clisp.org>
12489
12490         Consolidate all uses of PATH_MAX in *.m4 files.
12491         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
12492         macros.
12493         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
12494         and gl_PATHMAX_SNIPPET.
12495         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
12496         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
12497         * modules/chdir-long (Files): Add m4/pathmax.m4.
12498         * modules/getcwd (Files): Likewise.
12499
12500 2011-09-21  Bruno Haible  <bruno@clisp.org>
12501
12502         ftruncate: Un-deprecate, concentrate on Win32 support.
12503         * modules/ftruncate (Status, Notice): Remove sections.
12504         (Depends-on): Add largefile.
12505         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
12506         non-mingw platforms.
12507         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
12508         include <io.h>.
12509         * modules/perror-tests (Depends-on): Add ftruncate.
12510         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
12511         'ftruncate' module.
12512
12513 2011-09-21  Bruno Haible  <bruno@clisp.org>
12514
12515         Add dependencies to new dirent related modules.
12516         * modules/opendir (Depends-on): Add closedir.
12517         * modules/getcwd (Depends-on): Add opendir, closedir.
12518         * modules/dirent-safer-tests (Depends-on): Likewise.
12519         * modules/fdopendir-tests (Depends-on): Likewise.
12520         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
12521         * modules/renameat-tests (Depends-on): Likewise.
12522
12523 2011-09-21  Bruno Haible  <bruno@clisp.org>
12524
12525         opendir: Avoid compilation error on mingw.
12526         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
12527         * modules/opendir (Depends-on): Add unistd.
12528
12529 2011-09-21  Bruno Haible  <bruno@clisp.org>
12530
12531         ftruncate tests: Avoid a test failure on mingw.
12532         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
12533
12534 2011-09-21  Bruno Haible  <bruno@clisp.org>
12535
12536         select tests: Avoid test failures on OSF/1 5.1 and mingw.
12537         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
12538         native Windows.
12539
12540 2011-09-21  Bruno Haible  <bruno@clisp.org>
12541
12542         New module 'fdopen'.
12543         * lib/stdio.in.h (fdopen): New declaration.
12544         * lib/fdopen.c: New file.
12545         * m4/fdopen.m4: New file.
12546         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
12547         REPLACE_FDOPEN.
12548         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
12549         REPLACE_FDOPEN.
12550         * modules/fdopen: New file.
12551         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
12552         * tests/test-stdio-c++.cc: Check signature of fdopen.
12553         * doc/posix-functions/fdopen.texi: Mention the new module.
12554
12555 2011-09-21  Bruno Haible  <bruno@clisp.org>
12556
12557         unlockpt tests: Avoid test failure on NetBSD 5.1.
12558         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
12559         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
12560
12561 2011-09-21  Bruno Haible  <bruno@clisp.org>
12562
12563         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
12564         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
12565         * tests/test-getlogin_r.c (main): Likewise.
12566
12567 2011-09-20  Bruno Haible  <bruno@clisp.org>
12568
12569         time tests: Don't require pid_t.
12570         * doc/posix-headers/time.texi: Revert last change.
12571         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
12572         * tests/test-time.c: Comment out the check for pid_t.
12573
12574 2011-09-20  Bruno Haible  <bruno@clisp.org>
12575
12576         fsync tests: Avoid a test failure on mingw.
12577         * tests/test-fsync.c (main): Allow a failure with EIO.
12578
12579 2011-09-20  Bruno Haible  <bruno@clisp.org>
12580
12581         euidaccess: Update comments.
12582         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
12583
12584 2011-09-20  Bruno Haible  <bruno@clisp.org>
12585
12586         Ensure EBADF returns for socket functions on mingw.
12587         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
12588         descriptor is invalid.
12589         * lib/bind.c (rpl_bind): Likewise.
12590         * lib/connect.c (rpl_connect): Likewise.
12591         * lib/getpeername.c (rpl_getpeername): Likewise.
12592         * lib/getsockname.c (rpl_getsockname): Likewise.
12593         * lib/getsockopt.c (rpl_getsockopt): Likewise.
12594         * lib/listen.c (rpl_listen): Likewise.
12595         * lib/recv.c (rpl_recv): Likewise.
12596         * lib/recvfrom.c (rpl_recvfrom): Likewise.
12597         * lib/send.c (rpl_send): Likewise.
12598         * lib/sendto.c (rpl_sendto): Likewise.
12599         * lib/setsockopt.c (rpl_setsockopt): Likewise.
12600         * lib/shutdown.c (rpl_shutdown): Likewise.
12601
12602 2011-09-20  Bruno Haible  <bruno@clisp.org>
12603
12604         select tests: EBADF tests.
12605         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
12606         test_bad_fd): New functions.
12607         (test_function): Invoke also test_bad_fd.
12608
12609 2011-09-20  Bruno Haible  <bruno@clisp.org>
12610
12611         Tests for module 'posix_spawn_file_actions_addopen.
12612         * modules/posix_spawn_file_actions_addopen-tests: New file.
12613         * tests/test-posix_spawn_file_actions_addopen.c: New file.
12614
12615         Tests for module 'posix_spawn_file_actions_adddup2'.
12616         * modules/posix_spawn_file_actions_adddup2-tests: New file.
12617         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
12618
12619         Tests for module 'posix_spawn_file_actions_addclose'.
12620         * modules/posix_spawn_file_actions_addclose-tests: New file.
12621         * tests/test-posix_spawn_file_actions_addclose.c: New file.
12622
12623 2011-09-20  Bruno Haible  <bruno@clisp.org>
12624
12625         Tests for module 'unlockpt'.
12626         * modules/unlockpt-tests: New file.
12627         * tests/test-unlockpt.c: New file.
12628         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
12629
12630         Tests for module 'grantpt'.
12631         * modules/grantpt-tests: New file.
12632         * tests/test-grantpt.c: New file.
12633         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
12634
12635 2011-09-20  Bruno Haible  <bruno@clisp.org>
12636
12637         freopen tests: EBADF tests.
12638         * tests/test-freopen.c: Include errno.h, unistd.h.
12639         (main): Add tests for EBADF, commented out for the moment.
12640
12641         fclose tests: EBADF tests.
12642         * tests/test-fclose.c (main): Add tests for EBADF.
12643
12644         fflush tests: EBADF tests.
12645         * tests/test-fflush.c: Include errno.h, macros.h.
12646         (main): Add tests for EBADF.
12647
12648         ftello tests: EBADF tests.
12649         * tests/test-ftello4.sh: New file.
12650         * tests/test-ftello4.c: New file.
12651         * modules/ftello-tests (Files): Add them.
12652         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
12653
12654         fseeko tests: EBADF tests.
12655         * tests/test-fseeko4.sh: New file.
12656         * tests/test-fseeko4.c: New file.
12657         * modules/fseeko-tests (Files): Add them.
12658         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
12659
12660         Tests for function fputc().
12661         * modules/fputc-tests: New file.
12662         * tests/test-fputc.c: New file.
12663         * modules/stdio-tests (Depends-on): Add fputc-tests.
12664
12665         Tests for function fgetc().
12666         * modules/fgetc-tests: New file.
12667         * tests/test-fgetc.c: New file.
12668         * modules/stdio-tests (Depends-on): Add fgetc-tests.
12669
12670         Tests for function fdopen().
12671         * modules/fdopen-tests: New file.
12672         * tests/test-fdopen.c: New file.
12673         * modules/stdio-tests (Depends-on): Add fdopen-tests.
12674
12675         Tests for module 'vdprintf'.
12676         * modules/vdprintf-tests: New file.
12677         * tests/test-vdprintf.c: New file.
12678
12679         Tests for module 'dprintf'.
12680         * modules/dprintf-tests: New file.
12681         * tests/test-dprintf.c: New file.
12682
12683 2011-09-20  Bruno Haible  <bruno@clisp.org>
12684
12685         Tests for module 'ioctl'.
12686         * modules/ioctl-tests: New file.
12687         * tests/test-ioctl.c: New file.
12688
12689 2011-09-20  Bruno Haible  <bruno@clisp.org>
12690
12691         fcntl tests: EBADF tests.
12692         * tests/test-fcntl.c (main): Add more tests for EBADF.
12693
12694 2011-09-20  Bruno Haible  <bruno@clisp.org>
12695
12696         utimensat tests: EBADF tests.
12697         * tests/test-utimensat.c (main): Add tests for EBADF.
12698
12699         renameat tests: EBADF tests.
12700         * tests/test-renameat.c (main): Add tests for EBADF.
12701
12702         mkfifoat tests: EBADF tests.
12703         * tests/test-mkfifoat.c (main): Add tests for EBADF.
12704
12705         readlinkat tests: EBADF tests.
12706         * tests/test-readlinkat.c (main): Add tests for EBADF.
12707
12708         symlinkat tests: EBADF tests.
12709         * tests/test-symlinkat.c (main): Add tests for EBADF.
12710
12711         linkat tests: EBADF tests.
12712         * tests/test-linkat.c (main): Add tests for EBADF.
12713
12714         Tests for module 'faccessat'.
12715         * modules/faccessat-tests: New file.
12716         * tests/test-faccessat.c: New file.
12717
12718         fdopendir tests: EBADF tests.
12719         * tests/test-fdopendir.c (main): Add more tests for EBADF.
12720
12721         openat tests: EBADF tests.
12722         * tests/test-fchownat.c (main): Add tests for EBADF.
12723         * tests/test-fstatat.c (main): Likewise.
12724         * tests/test-mkdirat.c (main): Likewise.
12725         * tests/test-openat.c (main): Likewise.
12726         * tests/test-unlinkat.c (main): Likewise.
12727         * tests/test-fchmodat.c: New file.
12728         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
12729         (Makefile.am): Also run 'test-fchmodat'.
12730
12731 2011-09-20  Bruno Haible  <bruno@clisp.org>
12732
12733         utimens, futimens, fdutimensat tests: EBADF tests.
12734         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
12735
12736         Tests for function fstat().
12737         * modules/fstat-tests: New file.
12738         * tests/test-fstat.c: New file.
12739         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
12740
12741 2011-09-20  Bruno Haible  <bruno@clisp.org>
12742
12743         test-ttyname_r tests: EBADF tests.
12744         * tests/test-ttyname_r.c (main): Add tests for EBADF.
12745
12746         Tests for module 'isatty'.
12747         * modules/isatty-tests: New file.
12748         * tests/test-isatty.c: New file.
12749
12750         Tests for module 'write'.
12751         * modules/write-tests: New file.
12752         * tests/test-write.c: New file.
12753
12754         Tests for module 'read'.
12755         * modules/read-tests: New file.
12756         * tests/test-read.c: New file.
12757
12758         pwrite tests: EBADF tests.
12759         * tests/test-pwrite.c (main): Add tests for EBADF.
12760
12761         pread tests: EBADF tests.
12762         * tests/test-pread.c (main): Add tests for EBADF.
12763
12764         lseek tests: EBADF tests.
12765         * tests/test-lseek.c (main): Add more tests for EBADF.
12766
12767         Tests for module 'ftruncate'.
12768         * modules/ftruncate-tests: New file.
12769         * tests/test-ftruncate.sh: New file.
12770         * tests/test-ftruncate.c: New file.
12771
12772         fsync tests: EBADF tests.
12773         * tests/test-fsync.c (main): Add more tests for EBADF.
12774
12775         fdatasync tests: EBADF tests.
12776         * tests/test-fdatasync.c (main): Add more tests for EBADF.
12777
12778         Tests for module 'fchown'.
12779         * modules/fchown-tests: New file.
12780         * tests/test-fchown.c: New file.
12781
12782         Tests for module 'fchmod'.
12783         * modules/fchmod-tests: New file.
12784         * tests/test-fchmod.c: New file.
12785
12786         fchdir tests: EBADF tests.
12787         * tests/test-fchdir.c (main): Add more tests for EBADF.
12788
12789         dup2 tests: EBADF tests.
12790         * tests/test-dup2.c (main): Add more tests for EBADF.
12791
12792         Tests for module 'dup'.
12793         * modules/dup-tests: New file.
12794         * tests/test-dup.c: New file.
12795
12796         Tests for module 'close'.
12797         * modules/close-tests: New file.
12798         * tests/test-close.c: New file.
12799
12800 2011-09-20  Bruno Haible  <bruno@clisp.org>
12801
12802         Tests for module 'shutdown'.
12803         * modules/shutdown-tests: New file.
12804         * tests/test-shutdown.c: New file.
12805
12806         Tests for module 'setsockopt'.
12807         * modules/setsockopt-tests: New file.
12808         * tests/test-setsockopt.c: New file.
12809
12810         Tests for module 'sendto'.
12811         * modules/sendto-tests: New file.
12812         * tests/test-sendto.c: New file.
12813
12814         Tests for module 'send'.
12815         * modules/send-tests: New file.
12816         * tests/test-send.c: New file.
12817
12818         Tests for module 'recvfrom'.
12819         * modules/recvfrom-tests: New file.
12820         * tests/test-recvfrom.c: New file.
12821
12822         Tests for module 'recv'.
12823         * modules/recv-tests: New file.
12824         * tests/test-recv.c: New file.
12825
12826         Tests for module 'listen'.
12827         * modules/listen-tests: New file.
12828         * tests/test-listen.c: New file.
12829
12830         Tests for module 'getsockopt'.
12831         * modules/getsockopt-tests: New file.
12832         * tests/test-getsockopt.c: New file.
12833
12834         Tests for module 'getsockname'.
12835         * modules/getsockname-tests: New file.
12836         * tests/test-getsockname.c: New file.
12837
12838         Tests for module 'getpeername'.
12839         * modules/getpeername-tests: New file.
12840         * tests/test-getpeername.c: New file.
12841
12842         Tests for module 'connect'.
12843         * modules/connect-tests: New file.
12844         * tests/test-connect.c: New file.
12845
12846         Tests for module 'bind'.
12847         * modules/bind-tests: New file.
12848         * tests/test-bind.c: New file.
12849
12850         accept4 tests: Fix for native Windows.
12851         * tests/test-accept4.c: Include sockets.h.
12852         (main): Invoke gl_sockets_startup.
12853         * modules/accept4-tests (Depends-on): Add sockets.
12854
12855         accept tests: Fix for native Windows.
12856         * tests/test-accept.c: Include sockets.h.
12857         (main): Invoke gl_sockets_startup.
12858         * modules/accept-tests (Depends-on): Add sockets.
12859
12860 2011-09-19  Bruno Haible  <bruno@clisp.org>
12861
12862         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
12863         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
12864         do...while(0).
12865         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
12866         Suggested by Paul Eggert.
12867
12868 2011-09-19  Bruno Haible  <bruno@clisp.org>
12869
12870         sched: Ensure pid_t is defined.
12871         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
12872         not define pid_t.
12873         * lib/sched.in.h: Include <sys/types.h>.
12874         * doc/posix-headers/sched.texi: Mention the pid_t problem.
12875         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12876
12877 2011-09-19  Bruno Haible  <bruno@clisp.org>
12878
12879         msvc-inval: Ensure the entire expansion is a single statement.
12880         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
12881         of braces.
12882
12883 2011-09-19  Jim Meyering  <meyering@redhat.com>
12884
12885         tests: use printf, not echo in init.sh's warn_ function
12886         * tests/init.sh (warn_): Use printf, not echo.  The latter would
12887         misbehave when given strings containing a backslash or starting
12888         with e.g., -n.  James Youngman suggested setting IFS.
12889
12890 2011-09-19  Eric Blake  <eblake@redhat.com>
12891
12892         futimens: enhance test
12893         * tests/test-futimens.h (test_futimens): Also check for EBADF on
12894         closed non-negative fd.
12895
12896         date: accept 'hence' as opposite of 'ago'
12897         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
12898         * tests/test-parse-datetime.c (main): Enhance test.
12899         Suggested by Jesse Wilson.
12900
12901 2011-09-19  Jim Meyering  <meyering@redhat.com>
12902
12903         getcwd: don't fail in a deep directory on a system without openat
12904         Before this change, getcwd would fail when called from a directory
12905         of depth PATH_MAX / 3 or greater.  That was due to the fact that
12906         the non-openat implementation used "..", "../..", "../../..", etc.
12907         to access ancestor directories.  With too many, that string would
12908         be longer than PATH_MAX.
12909         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
12910         using gnulib's openat replacement.
12911         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
12912         we're using the replacement function.
12913
12914 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
12915
12916         maint.mk: avoid warnings from perl about missing files
12917         * top/maint.mk (def_sym_regex): Ignore files listed in
12918         $(gl_other_headers_) that do not exist, say because a project
12919         does not use a corresponding module.
12920
12921 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
12922
12923         stat: use pathmax.h only if needed
12924         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
12925         This is better for Emacs, which does not have a mingw port and
12926         therefore can avoid the pathmax module.
12927
12928         utimens: remove dependency on dup2
12929         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
12930         to work around the Linux kernel bug.
12931         * modules/utimens (Depends-on): Remove dup2.
12932
12933 2011-09-18  Bruno Haible  <bruno@clisp.org>
12934
12935         inet_ntop, inet_pton: Look for it also in libresolv.
12936         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
12937         libnsl, search for it in libresolv.
12938         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
12939         Needed on Solaris 7.
12940
12941 2011-09-18  Bruno Haible  <bruno@clisp.org>
12942
12943         accept, accept4 tests: Avoid link error on Solaris.
12944         * modules/accept-tests (Makefile.am): Link test-accept against
12945         $(LIBSOCKET).
12946         * modules/accept4-tests (Makefile.am): Link test-accept4 against
12947         $(LIBSOCKET).
12948
12949         accept4: Avoid link error on Solaris.
12950         * modules/accept4 (Link): New section.
12951
12952         socket functions: Avoid link errors on Solaris.
12953         * modules/accept (Depends-on): Add socketlib.
12954         (Link): New section.
12955         * modules/bind (Depends-on): Add socketlib.
12956         (Link): New section.
12957         * modules/connect (Depends-on): Add socketlib.
12958         (Link): New section.
12959         * modules/getpeername (Depends-on): Add socketlib.
12960         (Link): New section.
12961         * modules/getsockname (Depends-on): Add socketlib.
12962         (Link): New section.
12963         * modules/getsockopt (Depends-on): Add socketlib.
12964         (Link): New section.
12965         * modules/listen (Depends-on): Add socketlib.
12966         (Link): New section.
12967         * modules/recv (Depends-on): Add socketlib.
12968         (Link): New section.
12969         * modules/recvfrom (Depends-on): Add socketlib.
12970         (Link): New section.
12971         * modules/send (Depends-on): Add socketlib.
12972         (Link): New section.
12973         * modules/sendto (Depends-on): Add socketlib.
12974         (Link): New section.
12975         * modules/setsockopt (Depends-on): Add socketlib.
12976         (Link): New section.
12977         * modules/shutdown (Depends-on): Add socketlib.
12978         (Link): New section.
12979         * modules/socket (Depends-on): Add socketlib.
12980         (Link): New section.
12981
12982 2011-09-18  Bruno Haible  <bruno@clisp.org>
12983
12984         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
12985         * tests/test-ptsname.c (main): Terminate the test if it takes longer
12986         than 5 seconds.
12987         * modules/ptsname-tests (configure.ac): Test for alarm.
12988
12989 2011-09-18  Bruno Haible  <bruno@clisp.org>
12990
12991         posix_spawn_file_actions_add*: Fix module dependencies.
12992         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
12993         posix_spawn_file_actions_init.
12994         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
12995         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
12996
12997 2011-09-18  Bruno Haible  <bruno@clisp.org>
12998
12999         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
13000         * tests/test-rename.h (test_rename): Allow error code EEXIST.
13001         * tests/test-renameat.c (main): Likewise.
13002
13003 2011-09-18  Bruno Haible  <bruno@clisp.org>
13004
13005         Tests for module 'accept4'.
13006         * modules/accept4-tests: New file.
13007         * tests/test-accept4.c: New file.
13008
13009 2011-09-18  Bruno Haible  <bruno@clisp.org>
13010
13011         Tests for module 'accept'.
13012         * modules/accept-tests: New file.
13013         * tests/test-accept.c: New file.
13014
13015 2011-09-18  Bruno Haible  <bruno@clisp.org>
13016
13017         dup2: Support for MSVC.
13018         * lib/dup2.c: Include msvc-inval.h.
13019         (rpl_dup2): Handle invalid parameter notifications during dup2 and
13020         _get_osfhandle calls.
13021         * modules/dup2 (Depends-on): Add msvc-inval.
13022         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
13023
13024         New module 'msvc-inval'.
13025         * lib/msvc-inval.h: New file.
13026         * lib/msvc-inval.c: New file.
13027         * m4/msvc-inval.m4: New file.
13028         * modules/msvc-inval: New file.
13029
13030 2011-09-17  Bruno Haible  <bruno@clisp.org>
13031
13032         Tests for module 'pclose'.
13033         * modules/pclose-tests: New file.
13034
13035         New module 'pclose'.
13036         * lib/stdio.in.h (pclose): New declaration.
13037         * lib/pclose.c: New file.
13038         * m4/pclose.m4: New file.
13039         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
13040         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
13041         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
13042         * modules/pclose: New file.
13043         * modules/popen-tests (Depends-on): Add pclose.
13044         * modules/popen-safer-tests (Depends-on): Likewise.
13045         * doc/posix-functions/pclose.texi: Mention the new module.
13046
13047 2011-09-17  Bruno Haible  <bruno@clisp.org>
13048
13049         popen: Support for MSVC.
13050         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
13051         * lib/popen.c (popen): Provide alternate definition for native Windows.
13052         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
13053         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
13054         * modules/popen (Depends-on, configure.ac): Update condition.
13055         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
13056         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
13057         fixed.
13058
13059 2011-09-17  Bruno Haible  <bruno@clisp.org>
13060
13061         isnanl, isnand, isnanf: Work around MSVC bug.
13062         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
13063
13064 2011-09-17  Bruno Haible  <bruno@clisp.org>
13065
13066         sys_socket tests: Fix recent mistake.
13067         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
13068
13069 2011-09-17  Bruno Haible  <bruno@clisp.org>
13070
13071         putenv: Support for MSVC.
13072         * modules/putenv (Depends-on): Add environ.
13073         * lib/putenv.c (environ): Disable declaration.
13074         * lib/unistd.in.h: Update comment.
13075
13076 2011-09-17  Bruno Haible  <bruno@clisp.org>
13077
13078         math: Avoid macro redefinition warnings on MSVC.
13079         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
13080         Undefine before redefining.
13081
13082 2011-09-17  Bruno Haible  <bruno@clisp.org>
13083
13084         doc: Mention functions which are declared as macros.
13085         * doc/posix-functions/*[fl].texi: Mention that some functions are
13086         defined as macros with arguments only.
13087
13088 2011-09-17  Bruno Haible  <bruno@clisp.org>
13089
13090         Add dependencies to new dirent related modules.
13091         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
13092         * modules/fts (Depends-on): Likewise.
13093         * modules/glob (Depends-on): Likewise.
13094         * modules/savedir (Depends-on): Likewise.
13095         * modules/scandir (Depends-on): Likewise.
13096         * modules/dirent-safer (Depends-on): Add opendir, closedir.
13097         * modules/fdopendir (Depends-on): Add opendir.
13098
13099 2011-09-17  Bruno Haible  <bruno@clisp.org>
13100
13101         inet_pton: Support for MSVC on Windows Vista or newer.
13102         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
13103         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
13104         HAVE_DECL_INET_PTON is defined.
13105         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
13106         On platforms with <winsock2.h>, test whether inet_pton is declared in
13107         <ws2tcpip.h>. If so, arrange to replace it.
13108         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
13109         REPLACE_INET_PTON.
13110         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
13111         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
13112         (Depends-on, configure.ac): Update condition.
13113         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
13114
13115 2011-09-17  Bruno Haible  <bruno@clisp.org>
13116
13117         inet_ntop: Support for MSVC on Windows Vista or newer.
13118         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
13119         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
13120         HAVE_DECL_INET_NTOP is defined.
13121         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
13122         On platforms with <winsock2.h>, test whether inet_ntop is declared in
13123         <ws2tcpip.h>. If so, arrange to replace it.
13124         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
13125         REPLACE_INET_NTOP.
13126         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
13127         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
13128         (Depends-on, configure.ac): Update condition.
13129         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
13130
13131 2011-09-16  Eric Blake  <eblake@redhat.com>
13132
13133         test-fsync: yet another enhancement
13134         * tests/test-fsync.c (main): Also test behavior on read-only text
13135         file.
13136
13137 2011-09-16  Bruno Haible  <bruno@clisp.org>
13138
13139         Enhance fsync, fdatasync tests.
13140         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
13141         * tests/test-fdatasync.c (main): Likewise.
13142
13143 2011-09-16  Bruno Haible  <bruno@clisp.org>
13144
13145         Support for MSVC compiler: Ensure mode_t gets defined.
13146         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
13147         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
13148         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
13149         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
13150         * tests/test-fcntl-h.c: Check that mode_t is defined.
13151         * tests/test-sys_stat.c: Likewise.
13152         * tests/test-sys_types.c: Likewise.
13153         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
13154         * doc/posix-headers/sys_stat.texi: Likewise.
13155         * doc/posix-headers/sys_types.texi: Likewise.
13156
13157 2011-09-16  Bruno Haible  <bruno@clisp.org>
13158
13159         sys_stat: Support for MSVC.
13160         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
13161         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
13162         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
13163         MSVC.
13164
13165 2011-09-16  Bruno Haible  <bruno@clisp.org>
13166
13167         Support for MSVC compiler: Ensure off_t gets defined.
13168         * lib/unistd.in.h: Include <sys/types.h>.
13169         * tests/test-fcntl-h.c: Check that off_t is defined.
13170         * tests/test-sys_stat.c: Likewise.
13171         * tests/test-sys_types.c: Likewise.
13172
13173 2011-09-16  Eric Blake  <eblake@redhat.com>
13174
13175         fdatasync: port to Solaris
13176         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
13177         * modules/fdatasync (Link): Document it.
13178         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
13179
13180         fdatasync: port to MacOS X 10.7
13181         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
13182         declared.
13183         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
13184         * modules/unistd (Makefile.am): Substitute it.
13185         * lib/unistd.in.h (fdatasync): Declare on MacOS.
13186         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
13187
13188         fdatasync: minor improvements
13189         * modules/fdatasync (Depends-on): Add condition for fsync.
13190         * lib/fdatasync.c (fdatasync): Add comment.
13191         * tests/test-unistd-c++.cc: Test fdatasync.
13192
13193         unistd: update refs to newer POSIX
13194         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
13195         Suggested by Bruno Haible.
13196
13197         fdatasync: new module
13198         * modules/fsync (Description): Document difference to fdatasync.
13199         * modules/fdatasync: New module.
13200         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
13201         * lib/fdatasync.c (fdatasync): Likewise.
13202         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
13203         defaults.
13204         * modules/unistd (Makefile.am): Set witnesses.
13205         * lib/unistd.in.h (fdatasync): Declare.
13206         * MODULES.html.sh: Document it.
13207         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
13208         * modules/fdatasync-tests: New test.
13209         * tests/test-fdatasync.c: Likewise.
13210
13211 2011-09-16  Eric Blake  <eblake@redhat.com>
13212
13213         test-fsync: enhance tests
13214         * modules/fsync-tests (Depends-on): Add errno, for mingw.
13215         * tests/test-fsync.c (main): Enhance test.
13216
13217 2011-09-15  Bruno Haible  <bruno@clisp.org>
13218
13219         Support for MSVC compiler: Ensure ssize_t gets defined.
13220         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
13221         * doc/posix-headers/stdio.texi: Likewise.
13222         * modules/stdio (Depends-on): Add ssize_t.
13223         * modules/sys_socket (Depends-on): Likewise.
13224         * modules/sys_types (Depends-on): Likewise.
13225         * modules/sys_uio (Depends-on): Likewise.
13226         * modules/unistd (Depends-on): Likewise.
13227         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
13228         * tests/test-sys_types.c: Check that ssize_t is defined.
13229
13230 2011-09-14  Bruno Haible  <bruno@clisp.org>
13231
13232         Avoid using #, the m4 comment starter character, near brackets.
13233         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
13234         delimiter character in sed expressions.
13235         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
13236         Suggested by Eric Blake.
13237
13238         Properly quote AC_CHECK_DECLS' 4th argument.
13239         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
13240         argument.
13241         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
13242         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
13243         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
13244         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
13245         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
13246         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
13247         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
13248         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
13249         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
13250         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
13251         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
13252         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
13253         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
13254         * m4/isinf.m4 (gl_ISINF): Likewise.
13255         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
13256         * m4/readutmp.m4 (gl_READUTMP): Likewise.
13257         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
13258         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
13259         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
13260         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
13261         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
13262         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
13263         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
13264         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
13265         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
13266         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13267         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
13268         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
13269         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
13270         Reported by Eric Blake.
13271
13272         Properly quote AC_CHECK_DECL's 4th argument.
13273         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
13274         argument.
13275         * m4/argp.m4 (gl_ARGP): Likewise.
13276         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
13277         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
13278         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
13279         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
13280         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
13281         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
13282         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
13283         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
13284         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
13285         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
13286         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
13287         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
13288         Reported by Eric Blake.
13289
13290 2011-09-14  Eric Blake  <eblake@redhat.com>
13291
13292         opendir: avoid compile warning
13293         * lib/opendir.c (includes): Always include errno.h.
13294         Reported by Tatsuro MATSUOKA.
13295
13296 2011-09-14  Jim Meyering  <meyering@redhat.com>
13297
13298         maint.mk: sc_tight_scope: propagate failure from sub-make
13299         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
13300         Reported by Martin von Gagern.
13301
13302 2011-09-13  Bruno Haible  <bruno@clisp.org>
13303
13304         tempname: Support for MSVC.
13305         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
13306         MSVC.
13307         * modules/tempname (Depends-on): Add fcntl-h.
13308
13309 2011-09-13  Bruno Haible  <bruno@clisp.org>
13310
13311         sys_time: Support for MSVC.
13312         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
13313         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
13314         include <winsock2.h>.
13315         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
13316         function declarations that collide with POSIX.
13317         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
13318         (Makefile.am): Substitute HAVE_WINSOCK2_H.
13319
13320 2011-09-13  Bruno Haible  <bruno@clisp.org>
13321
13322         stat: Support for MSVC.
13323         * lib/stat.c: Include pathmax.h.
13324         * modules/stat (Depends-on): Add pathmax.
13325
13326         pathmax: Support for native Windows.
13327         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
13328
13329 2011-09-12  Bruno Haible  <bruno@clisp.org>
13330
13331         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
13332         * lib/dirent.in.h (struct dirent): New type.
13333         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
13334         DT_WHT): New macros.
13335         (DIR): New type.
13336         (opendir, closedir): Declare only if the module 'opendir' is enabled.
13337         (readdir, rewinddir): New declarations.
13338         * lib/dirent-private.h: New file.
13339         * lib/opendir.c: New file.
13340         * lib/readdir.c: New file.
13341         * lib/rewinddir.c: New file.
13342         * lib/closedir.c: New file.
13343         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
13344         * m4/opendir.m4: New file.
13345         * m4/readdir.m4: New file.
13346         * m4/rewinddir.m4: New file.
13347         * m4/closedir.m4: New file.
13348         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
13349         REPLACE_CLOSEDIR here.
13350         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
13351         readdir, rewinddir are declared.
13352         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
13353         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
13354         HAVE_REWINDDIR, HAVE_CLOSEDIR.
13355         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
13356         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
13357         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
13358         * modules/opendir: New file.
13359         * modules/readdir: New file.
13360         * modules/rewinddir: New file.
13361         * modules/closedir: New file.
13362         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
13363         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
13364         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
13365         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
13366         * NEWS: Mention the 'fchdir' change.
13367
13368 2011-09-11  Bruno Haible  <bruno@clisp.org>
13369
13370         asm-underscore.m4: Support for MSVC.
13371         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
13372         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
13373
13374 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
13375
13376         Doc about crypt functions.
13377         * doc/posix-functions/crypt.texi: Expand range of glibc versions
13378         needing for _GNU_SOURCE to get crypt.
13379         * doc/posix-functions/encrypt.texi: Likewise.
13380         * doc/posix-functions/setkey.texi: Likewise.
13381
13382 2011-09-11  Bruno Haible  <bruno@clisp.org>
13383
13384         doc: Update regarding MSVC 9.
13385         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
13386         tested".
13387         * doc/posix-functions/*.texi: Update with info about MSVC 9.
13388         * doc/posix-headers/*.texi: Likewise.
13389         * doc/pastposix-functions/*.texi: Likewise.
13390         * doc/glibc-functions/*.texi: Likewise.
13391         * doc/glibc-headers/*.texi: Likewise.
13392
13393 2011-09-11  Bruno Haible  <bruno@clisp.org>
13394
13395         unistd et al.: Don't assume <unistd.h> exists.
13396         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
13397         does not exist.
13398         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
13399         exist. But include <stdlib.h>.
13400         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
13401         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
13402         symlink() does not exist.
13403         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
13404         include <io.h> instead.
13405         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
13406         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
13407         include <direct.h> instead.
13408         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
13409         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
13410         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
13411         <io.h> instead.
13412         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
13413         correctly if the system does not have hard links.
13414         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
13415         <direct.h> instead.
13416         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
13417         it when looking for function declarations.
13418         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
13419         <direct.h> and <io.h> instead.
13420         * doc/posix-headers/unistd.texi: More details about MSVC problem.
13421
13422 2011-09-11  Bruno Haible  <bruno@clisp.org>
13423
13424         strcase: Support for MSVC.
13425         * modules/strcase (Status, Notice): Remove obsoletion mark.
13426         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
13427         * doc/posix-functions/strncasecmp.texi: Likewise.
13428
13429         strings: Don't assume <strings.h> exists.
13430         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
13431         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
13432         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
13433         * doc/posix-headers/strings.texi: Mention the MSVC problem.
13434
13435 2011-09-11  Bruno Haible  <bruno@clisp.org>
13436
13437         dirent: Don't assume <dirent.h> exists.
13438         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
13439         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
13440         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
13441         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
13442
13443 2011-09-11  Bruno Haible  <bruno@clisp.org>
13444
13445         Fix wint_t on MSVC.
13446         * lib/wchar.in.h (wint_t): On MSVC, override it.
13447         * lib/wctype.in.h (wint_t): Likewise.
13448         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
13449         MSVC.
13450         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
13451         * doc/posix-headers/wctype.texi: Likewise.
13452
13453 2011-09-11  Bruno Haible  <bruno@clisp.org>
13454
13455         sys_types: Fix typo.
13456         * lib/sys_types.in.h: Fix typo in comment.
13457         Reported by Paul Eggert.
13458
13459         Support for MSVC compiler: Ensure size_t gets defined.
13460         * modules/strings (Depends-on): Add 'sys_types'.
13461         * modules/sys_uio (Depends-on): Likewise.
13462         * lib/sys_uio.in.h: Update comment.
13463
13464         C++ tests for module 'sys_types'.
13465         * modules/sys_types-c++-tests: New file.
13466         * tests/test-sys_types-c++.cc: New file.
13467
13468         Tests for module 'sys_types'.
13469         * modules/sys_types-tests: New file.
13470         * tests/test-sys_types.c: New file.
13471
13472         New module 'sys_types'.
13473         * lib/sys_types.in.h: New file.
13474         * m4/sys_types_h.m4: New file.
13475         * modules/sys_types: New file.
13476         * doc/posix-headers/sys_types.texi: Mention the new module and the
13477         size_t problem on MSVC 9.
13478
13479 2011-09-11  Bruno Haible  <bruno@clisp.org>
13480
13481         Support for MSVC compiler: Avoid division by a literal 0.
13482         * lib/math.in.h (NAN): Define through a function call also on MSVC.
13483         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
13484         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
13485         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
13486         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
13487         * tests/infinity.h: New file.
13488         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
13489         on MSVC.
13490         * tests/test-ceilf1.c: Include infinity.h.
13491         (main): Use Infinityf.
13492         * tests/test-ceil1.c: Include infinity.h.
13493         (main): Use Infinityd.
13494         * tests/test-ceill.c: Include infinity.h.
13495         (main): Use Infinityl.
13496         * tests/test-dprintf-posix.c: Include infinity.h.
13497         (test_function): Use Infinityd.
13498         * tests/test-floorf1.c: Include infinity.h.
13499         (main): Use Infinityf.
13500         * tests/test-floor1.c: Include infinity.h.
13501         (main): Use Infinityd.
13502         * tests/test-floorl.c: Include infinity.h.
13503         (main): Use Infinityl.
13504         * tests/test-fprintf-posix.c: Include infinity.h.
13505         (test_function): Use Infinityd.
13506         * tests/test-frexp.c: Include infinity.h.
13507         (main): Use Infinityd.
13508         * tests/test-frexpl.c: Include infinity.h.
13509         (main): Use Infinityl.
13510         * tests/test-isfinite.c: Include infinity.h.
13511         (test_isfinitef): Use Infinityf.
13512         (test_isfinited): Use Infinityd.
13513         (test_isfinitel): Use Infinityl.
13514         * tests/test-isinf.c: Include infinity.h.
13515         (test_isinff): Use Infinityf.
13516         (test_isinfd): Use Infinityd.
13517         (test_isinfl): Use Infinityl.
13518         * tests/test-isnan.c: Include infinity.h.
13519         (test_float): Use Infinityf.
13520         (test_double): Use Infinityd.
13521         (test_long_double): Use Infinityl.
13522         * tests/test-isnanf.h: Include infinity.h.
13523         (main): Use Infinityf.
13524         * tests/test-isnand.h: Include infinity.h.
13525         (main): Use Infinityd.
13526         * tests/test-isnanl.h: Include infinity.h.
13527         (main): Use Infinityl.
13528         * tests/test-ldexpl.c: Include infinity.h.
13529         (main): Use Infinityl.
13530         * tests/test-printf-posix.h: Include infinity.h.
13531         (test_function): Use Infinityd.
13532         * tests/test-roundf1.c: Include infinity.h.
13533         (main): Use Infinityf.
13534         * tests/test-round1.c: Include infinity.h.
13535         (main): Use Infinityd.
13536         * tests/test-roundl.c: Include infinity.h.
13537         (main): Use Infinityl.
13538         * tests/test-signbit.c: Include infinity.h.
13539         (test_signbitf): Use Infinityf.
13540         (test_signbitd): Use Infinityd.
13541         (test_signbitl): Use Infinityl.
13542         * tests/test-snprintf-posix.h: Include infinity.h.
13543         (test_function): Use Infinityd, Infinityl.
13544         * tests/test-sprintf-posix.h: Include infinity.h.
13545         (test_function): Use Infinityd, Infinityl.
13546         * tests/test-truncf1.c: Include infinity.h.
13547         (main): Use Infinityf.
13548         * tests/test-trunc1.c: Include infinity.h.
13549         (main): Use Infinityd.
13550         * tests/test-truncl.c: Include infinity.h.
13551         (main): Use Infinityl.
13552         * tests/test-vasnprintf-posix.c: Include infinity.h.
13553         (test_function): Use Infinityd, Infinityl.
13554         * tests/test-vasprintf-posix.c: Include infinity.h.
13555         (test_function): Use Infinityd, Infinityl.
13556         * modules/ceilf-tests (Files): Add tests/infinity.h.
13557         * modules/ceil-tests (Files): Likewise.
13558         * modules/ceill-tests (Files): Likewise.
13559         * modules/dprintf-posix-tests (Files): Likewise.
13560         * modules/floorf-tests (Files): Likewise.
13561         * modules/floor-tests (Files): Likewise.
13562         * modules/floorl-tests (Files): Likewise.
13563         * modules/fprintf-posix-tests (Files): Likewise.
13564         * modules/frexp-tests (Files): Likewise.
13565         * modules/frexp-nolibm-tests (Files): Likewise.
13566         * modules/frexpl-tests (Files): Likewise.
13567         * modules/frexpl-nolibm-tests (Files): Likewise.
13568         * modules/isfinite-tests (Files): Likewise.
13569         * modules/isinf-tests (Files): Likewise.
13570         * modules/isnan-tests (Files): Likewise.
13571         * modules/isnanf-tests (Files): Likewise.
13572         * modules/isnanf-nolibm-tests (Files): Likewise.
13573         * modules/isnand-tests (Files): Likewise.
13574         * modules/isnand-nolibm-tests (Files): Likewise.
13575         * modules/isnanl-tests (Files): Likewise.
13576         * modules/isnanl-nolibm-tests (Files): Likewise.
13577         * modules/ldexpl-tests (Files): Likewise.
13578         * modules/printf-posix-tests (Files): Likewise.
13579         * modules/roundf-tests (Files): Likewise.
13580         * modules/round-tests (Files): Likewise.
13581         * modules/roundl-tests (Files): Likewise.
13582         * modules/signbit-tests (Files): Likewise.
13583         * modules/snprintf-posix-tests (Files): Likewise.
13584         * modules/sprintf-posix-tests (Files): Likewise.
13585         * modules/truncf-tests (Files): Likewise.
13586         * modules/trunc-tests (Files): Likewise.
13587         * modules/truncl-tests (Files): Likewise.
13588         * modules/vasnprintf-posix-tests (Files): Likewise.
13589         * modules/vasprintf-posix-tests (Files): Likewise.
13590         * modules/vdprintf-posix-tests (Files): Likewise.
13591         * modules/vfprintf-posix-tests (Files): Likewise.
13592         * modules/vprintf-posix-tests (Files): Likewise.
13593         * modules/vsnprintf-posix-tests (Files): Likewise.
13594         * modules/vsprintf-posix-tests (Files): Likewise.
13595         * modules/xprintf-posix-tests (Files): Likewise.
13596
13597 2011-09-11  Bruno Haible  <bruno@clisp.org>
13598
13599         Ensure pid_t gets defined.
13600         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
13601         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
13602         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
13603         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
13604         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
13605         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
13606         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
13607         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
13608         * tests/test-fcntl-h.c: Check that pid_t is defined.
13609         * tests/test-sched.c: Likewise.
13610         * tests/test-termios.c: Likewise.
13611         * tests/test-time.c: Likewise.
13612         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
13613         * doc/posix-headers/signal.texi: Likewise.
13614         * doc/posix-headers/sys_types.texi: Likewise.
13615         * doc/posix-headers/time.texi: Likewise.
13616
13617 2011-09-11  Bruno Haible  <bruno@clisp.org>
13618
13619         acl: Fix compilation on Solaris 10 (older version).
13620         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
13621         of ACE_EVERYONE.
13622         * lib/set-mode-acl.c (qset_acl): Likewise.
13623         Reported by Christian Jullien <eligis@orange.fr>.
13624
13625 2011-09-10  Bruno Haible  <bruno@clisp.org>
13626
13627         iconv, unsetenv: Add support for MSVC compiler.
13628         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
13629         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
13630
13631 2011-09-10  Bruno Haible  <bruno@clisp.org>
13632
13633         *printf: Add support for MSVC compiler.
13634         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
13635         handles the exception caused by the %n directive. When cross-compiling,
13636         guess no on native Windows.
13637         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
13638         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
13639         emulate it through vsnprintf.
13640         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
13641         * doc/posix-functions/dprintf.texi: Update documentation regarding
13642         MSVC 9.
13643         * doc/posix-functions/fprintf.texi: Likewise.
13644         * doc/posix-functions/printf.texi: Likewise.
13645         * doc/posix-functions/snprintf.texi: Likewise.
13646         * doc/posix-functions/sprintf.texi: Likewise.
13647         * doc/posix-functions/swprintf.texi: Likewise.
13648         * doc/posix-functions/vdprintf.texi: Likewise.
13649         * doc/posix-functions/vfprintf.texi: Likewise.
13650         * doc/posix-functions/vprintf.texi: Likewise.
13651         * doc/posix-functions/vsnprintf.texi: Likewise.
13652         * doc/posix-functions/vsprintf.texi: Likewise.
13653         * doc/glibc-functions/asprintf.texi: Likewise.
13654         * doc/glibc-functions/obstack_printf.texi: Likewise.
13655         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
13656         * doc/glibc-functions/vasprintf.texi: Likewise.
13657
13658 2011-09-10  Bruno Haible  <bruno@clisp.org>
13659
13660         nocrash: Add support for native Windows.
13661         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
13662
13663 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
13664             Bruno Haible  <bruno@clisp.org>
13665
13666         absolute-header, include-next: Add support for MSVC compiler.
13667         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
13668         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
13669         directory separator in #line directives.
13670         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
13671         recognize also backslash as directory separator in #line directives.
13672
13673 2011-09-08  Jim Meyering  <meyering@redhat.com>
13674
13675         maint.mk: mark the post-release commit log with "maint: " prefix
13676         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
13677         one-line commit-log summary.
13678
13679 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
13680             Bruno Haible  <bruno@clisp.org>
13681
13682         Doc about crypt functions.
13683         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
13684         systems.
13685         * doc/posix-functions/encrypt.texi: Likewise.
13686         * doc/posix-functions/setkey.texi: Likewise.
13687
13688 2011-09-08  Simon Josefsson  <simon@josefsson.org>
13689
13690         * lib/gc.h: Fix copyright header.
13691
13692 2011-09-07  Bruno Haible  <bruno@clisp.org>
13693
13694         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
13695         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
13696         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
13697
13698 2011-09-07  Bruno Haible  <bruno@clisp.org>
13699
13700         openat: Work around compilation error with OSF/1 5.1 DTK cc.
13701         * lib/fopen.c: Use different syntax for include of <stdio.h>.
13702         * lib/freopen.c: Likewise.
13703         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
13704         * lib/lstat.c: Likewise.
13705         * lib/stat.c: Likewise.
13706         * lib/open.c: Use different syntax for include of <fcntl.h>.
13707         * lib/openat.c: Include fcntl.h again, explicitly.
13708
13709 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
13710
13711         parse-datetime: document the newly accepted format
13712         * doc/parse-datetime.texi (Combined date and time of day items):
13713         New section.
13714
13715 2011-09-06  Bruno Haible  <bruno@clisp.org>
13716
13717         acl: Fix a test failure on newer Solaris 10 with ZFS.
13718         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
13719         ENOSYS as no ACL.
13720         Reported by Jim Meyering.
13721
13722 2011-09-06  Bruno Haible  <bruno@clisp.org>
13723
13724         acl: Update for AIX >= 5.3 with NFS.
13725         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
13726         ENOSYS as no ACL.
13727
13728         acl: Fix a test failure on AIX >= 5.3 with NFS.
13729         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
13730         as no ACL.
13731
13732 2011-09-06  Bruno Haible  <bruno@clisp.org>
13733
13734         acl: Fix a test failure on IRIX 6.5 with NFS.
13735         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
13736         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
13737         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
13738         * lib/copy-acl.c (qcopy_acl): Likewise.
13739
13740 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
13741
13742         openat: port to AIX 7.1 with large files
13743         AIX 7.1 does a "#define openat open64at" if large files are in use,
13744         so we can't simply #undef openat.  Use the orig_openat trick (similar
13745         to orig_open in lib/open.c) to work around the problem.  Problem
13746         reported by Kevin Brott for GNU tar, in the thread containing
13747         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
13748         * lib/openat.c (__need_system_fcntl_h): Define first.
13749         Include <fcntl.h> and <sys/types.h> before undefining.
13750         (orig_openat) [HAVE_OPENAT]: New inline function.
13751         (openat) [HAVE_OPENAT]: Do not undef.
13752         (rpl_openat): Use orig_openat, not openat.
13753
13754 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
13755             Bruno Haible  <bruno@clisp.org>
13756
13757         acl: Avoid errors on NonStop Kernel.
13758         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
13759         ENOTSUP errors.
13760
13761 2011-09-05  Bruno Haible  <bruno@clisp.org>
13762
13763         acl: Clean up Solaris code.
13764         * lib/acl-internal.h: Remove no-op #if.
13765         * lib/file-has-acl.c: Likewise.
13766         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
13767         * lib/copy-acl.c (qcopy_acl): Likewise.
13768
13769 2011-09-05  Bruno Haible  <bruno@clisp.org>
13770
13771         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
13772         binaries built on the original Solaris 10.
13773         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
13774         trivial.
13775
13776 2011-09-05  Bruno Haible  <bruno@clisp.org>
13777
13778         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
13779         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
13780         10.
13781         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
13782         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
13783         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
13784         instead of acl_get, facl_get, acl_set, facl_set.
13785
13786 2011-09-05  Bruno Haible  <bruno@clisp.org>
13787
13788         copy-file: Try unit tests on more file systems.
13789         * tests/test-copy-file-1.sh: New file.
13790         * tests/test-copy-file-2.sh: New file.
13791         * modules/copy-file-tests (Files): Add them.
13792         (Makefile.am): Add them to TESTS.
13793
13794         acl: Try unit tests on more file systems.
13795         * tests/test-file-has-acl-1.sh: New file.
13796         * tests/test-file-has-acl-2.sh: New file.
13797         * tests/test-set-mode-acl-1.sh: New file.
13798         * tests/test-set-mode-acl-2.sh: New file.
13799         * tests/test-copy-acl-1.sh: New file.
13800         * tests/test-copy-acl-2.sh: New file.
13801         * modules/acl-tests (Files): Add them.
13802         (Makefile.am): Add them to TESTS.
13803
13804 2011-09-04  Bruno Haible  <bruno@clisp.org>
13805
13806         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
13807         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
13808         10.
13809         (OLD_ALLOW, OLD_DENY): New macros.
13810         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
13811         ACE_ACCESS_ALLOWED_ACE_TYPE.
13812         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
13813         ACE_ACCESS_DENIED_ACE_TYPE.
13814         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
13815         (NEW_ACE_EXECUTE): Fix value.
13816         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
13817         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
13818         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
13819         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
13820         NEW_ACE_SYNCHRONIZE): New macros.
13821         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
13822         instead of acl_fromtext, acl_set, facl_set.
13823         Fixes a coreutils/tests/cp/perm failure.
13824
13825 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
13826
13827         openat: test for fstatat (..., 0) bug
13828         Further testing with tar suggests that fstatat (..., 0)
13829         does not work in general, on AIX 7.1; see
13830         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
13831         So, give up entirely on AIX 7.1's fstatat, and fall back on our
13832         replacement fstatat (which is what older AIX releases were using
13833         anyway).
13834         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
13835         use is now changed to orig_fstatat.  This was probably the right
13836         thing to do anyway.
13837         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
13838         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
13839         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
13840         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
13841         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
13842         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
13843         if the bug is found.
13844
13845         openat: test for fstatat (AT_FDCWD, ..., 0) bug
13846         This tests for another fstatat bug on AIX 7.1:
13847         fstatat (AT_FDCWD, ..., 0) does not work.  See
13848         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
13849         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
13850         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
13851         (rpl_fstatat): Adjust so that it works around either (or both)
13852         bugs if present.
13853         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
13854
13855 2011-09-03  Karl Berry  <karl@gnu.org>
13856
13857         * doc/regex.texi (Character Class Operators): Avoid literal ":"
13858         in index entries.
13859
13860 2011-09-02  Bruno Haible  <bruno@clisp.org>
13861
13862         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
13863         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
13864         values of AR, ARFLAGS, RANLIB.
13865         Reported by John W. Eaton <jwe@gnu.org> for Octave.
13866
13867 2011-09-02  Bruno Haible  <bruno@clisp.org>
13868
13869         Find 'ar' program that fits with --host argument.
13870         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
13871
13872 2011-09-02  Bruno Haible  <bruno@clisp.org>
13873
13874         tests: init.sh: Support any non-GNU diff.
13875         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
13876         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
13877         Solaris 8.
13878
13879 2011-09-02  Bruno Haible  <bruno@clisp.org>
13880
13881         tests: init.sh: work also with any non-GNU diff that supports -u
13882         * tests/init.sh: Relax check for diff -u support.
13883         Rather than checking for GNU diff via --version, simply check
13884         for support for -u itself.  Useful at least on OpenBSD 4.9,
13885         AIX 7.1, IRIX 6.5, and Solaris 10.
13886
13887 2011-09-01  Bruno Haible  <bruno@clisp.org>
13888
13889         strtoimax, strtoumax: Document problem on HP-UX 11.
13890         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
13891         * doc/posix-functions/strtoumax.texi: Likewise.
13892
13893 2011-09-01  Bruno Haible  <bruno@clisp.org>
13894
13895         strtoumax: Avoid link error on OSF/1 with DTK cc.
13896         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
13897         defined as a function.
13898         * modules/strtoumax (Depends-on, configure.ac): Test only whether
13899         strtoumax is defined, not whether it is declared.
13900
13901 2011-09-01  Bruno Haible  <bruno@clisp.org>
13902
13903         strtoimax: Avoid link error on OSF/1 with DTK cc.
13904         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
13905         defined as a function.
13906         * modules/strtoimax (Depends-on, configure.ac): Test only whether
13907         strtoimax is defined, not whether it is declared.
13908
13909 2011-09-01  Bruno Haible  <bruno@clisp.org>
13910
13911         imaxdiv: Avoid link error on OSF/1 with DTK cc.
13912         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
13913         as a function.
13914         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
13915         whether it is declared.
13916
13917 2011-09-01  Bruno Haible  <bruno@clisp.org>
13918
13919         imaxabs: Avoid link error on OSF/1 with DTK cc.
13920         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
13921         as a function.
13922         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
13923         whether it is declared.
13924
13925 2011-09-01  Bruno Haible  <bruno@clisp.org>
13926
13927         Tests for module 'strtoumax'.
13928         * modules/strtoumax-tests: New file.
13929         * tests/test-strtoumax.c: New file.
13930
13931         Tests for module 'strtoimax'.
13932         * modules/strtoimax-tests: New file.
13933         * tests/test-strtoimax.c: New file.
13934
13935         Tests for module 'imaxdiv'.
13936         * modules/imaxdiv-tests: New file.
13937         * tests/test-imaxdiv.c: New file.
13938
13939         Tests for module 'imaxabs'.
13940         * modules/imaxabs-tests: New file.
13941         * tests/test-imaxabs.c: New file.
13942
13943 2011-09-01  Bruno Haible  <bruno@clisp.org>
13944
13945         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
13946         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
13947         pthread_create.
13948
13949 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
13950
13951         openat: work around AIX 7.1 fstatat issue
13952         This should fix the problem that was not properly fixed
13953         in the previous change, dated 2011-08-30.
13954         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
13955         __need_system_stat_h defined.
13956         (orig_fstatat) [HAVE_FSTATAT]: New function.
13957         (rpl_fstatat): Go back to the old way of doing things,
13958         except call orig_fstatat instead of fstatat.
13959         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
13960         Remove unnecessary check whether fstatat fills in st_size etc.
13961
13962 2011-09-01  Bruno Haible  <bruno@clisp.org>
13963
13964         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
13965         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
13966         just include the system's header.
13967
13968 2011-08-31  Jim Meyering  <meyering@redhat.com>
13969
13970         tests: avoid spurious assertion failure in test-float.c on ppc64
13971         * tests/test-float.c (test_long_double): Comment out an assertion,
13972         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
13973         with gcc-4.4.4.
13974
13975         maint: indent with spaces, not TABs
13976         I need to get in the habit of running gnulib's "make check".
13977         Both of these would have been caught.
13978         * m4/largefile.m4: Indent with spaces, not TABs.
13979         * lib/parse-datetime.y (iso_8601_time): Likewise.
13980         Spotted by Pádraig Brady.
13981
13982         test-parse-datetime.c: accommodate a relatively strict gcc warning
13983         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
13984         to avoid a warning from gcc's -Werror=missing-declarations.
13985         Insert a few spaces-before-funcall-parenthesis.
13986
13987 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
13988
13989         parse-datetime: accept ISO 8601 date and time rep with "T" separator
13990         The parser now accepts ISO 8601 date-time strings with "T" as the
13991         separator.  It has long parsed dates like "2004-02-29 16:21:42"
13992         with a space between the date and time strings.  Now it also parses
13993         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
13994         variants like "2004-02-29T16:21:42.333-07:00"
13995         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
13996         of day representation using the 'T' separator character.
13997         * doc/parse-datetime.texi (General date syntax): replace use of
13998         deprecated --iso-8601 option with --rfc-3339 in example of date
13999         command output formats that can be parsed.
14000         * tests/test-parse-datetime.c (tm_diff): New function, taken from
14001         lib/parse-datetime.y.
14002         (gmt_offset): New function.
14003         (main): Add additional test cases to validate ISO8601 extended
14004         date and time of day parsing.
14005
14006 2011-08-31  Bruno Haible  <bruno@clisp.org>
14007
14008         freopen: Documentation.
14009         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
14010         name.
14011         Reported by Claudio Bley <claudio.bley@gmail.com>.
14012
14013 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
14014
14015         freopen: Don't crash if the filename argument is NULL.
14016         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
14017         NULL.
14018
14019 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
14020
14021         openat: work around AIX 7.1 fstatat bug
14022         Problem reported by Kevin Brott for GNU tar, in the thread containing
14023         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
14024         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
14025         FSTATAT_ST_SIZE_ETC_BROKEN.
14026         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
14027         rpl_fstatat.
14028         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
14029         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
14030         AC_CHECK_FUNCS_ONCE for fstatat.
14031         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
14032         fchmodat, mkdirat, openat and unlinkat.
14033
14034 2011-08-30  Bruno Haible  <bruno@clisp.org>
14035
14036         Avoid endless recursions if config.h includes some header files.
14037         * lib/fopen.c (__need_FILE): Define already before including config.h.
14038         * lib/freopen.c (__need_FILE): Likewise.
14039         * lib/open.c (__need_system_fcntl_h): Likewise.
14040         * lib/stat.c (__need_system_sys_stat_h): Likewise.
14041         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
14042         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
14043
14044 2011-08-25  Karl Berry  <karl@gnu.org>
14045
14046         * config/srclist.txt (ylwrap): new try.
14047         * build-aux/ylwrap: new file.
14048
14049 2011-08-23  Bruno Haible  <bruno@clisp.org>
14050
14051         tmpdir: Use a good default directory on native Windows.
14052         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
14053         (P_tmpdir): Default to _P_tmpdir on native Windows.
14054         (path_search): On native Windows, try the value returned by GetTempPath
14055         before trying P_tmpdir.
14056         * modules/tmpdir (Depends-on): Add pathmax.
14057         Suggested by John Darrington <john@darrington.wattle.id.au>.
14058
14059 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
14060
14061         doc: fix typo in README-release
14062         * top/README-release: Capitalize first word of a sentence.
14063
14064 2011-08-19  Jim Meyering  <meyering@redhat.com>
14065
14066         fts: do not exhaust memory when processing million-entry directories
14067         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
14068         directory would require about 256*N bytes of memory.  Thus, it was
14069         easy to construct a directory too large to be processed by any of
14070         those tools.  With this change, fts' maximum memory utilization is
14071         now limited to around 30MB.
14072         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
14073         (fts_read): When we've processed the final entry (i.e., when
14074         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
14075         using the parent entry to read any remaining entries.  Dispatch
14076         depending on what fts_build returns:
14077         - NULL+stop, aka failure: stop
14078         - NULL otherwise: move up in the dir hierarchy
14079         - non-NULL: handle this new entry
14080         (fts_build): Declare and use new local, continue_readdir.
14081         Prepare to be called from fts_read, when the entries
14082         from a partially-read directory have just been exhausted.
14083         In that case, we'll skip the opendir and instead use the parent's
14084         fts_dirp and derive dir_fd from that.
14085         Finally, in the readdir loop, if we read max_entries entries,
14086         exit the loop ensuring *not* to call closedir.  This is required
14087         so that fts_dirp can be reused on a subsequent call.
14088         Prompted by Ben England's report of memory exhaustion in find
14089         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
14090
14091         maint: fts: move decl of `dp' down into while loop; split a long line
14092         * lib/fts.c (fts_build): No semantic change.
14093
14094         fts: add/use new struct member, fts_dirp
14095         We are about to use this to manage any directory with
14096         too many entries to read all of them into memory at once.
14097         To do that, we'll need to save the DIR* pointer in each
14098         affected FTSENT struct.
14099         * lib/fts_.h: Include <dirent.h>.
14100         (struct FTSENT) [fts_dirp]: New member.
14101         * lib/fts.c (closedir_and_clear): Define.
14102         Use it in place of closedir so that we are sure to
14103         clear the new fts_dirp member when done with it.
14104         (fts_alloc): Initialize the new member.
14105         (fts_lfree): Free, if needed.
14106
14107         maint: fts: give __opendir2 a new parameter and rename
14108         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
14109         than surreptitiously using sole caller's "dir_fd".
14110         (fts_opendir): Rename from __opendir2.
14111
14112         maint: fts.c: remove __opendir2's now-unused parameter, oflag
14113         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
14114
14115         maint: fts.c: correct off-by-one indentation
14116         * lib/fts.c (fts_build): Correct indentation, change style
14117         of a couple of block comments, and bracing style.
14118
14119         maint: fts.c: move __opendir2 #define "up" out of function body
14120         * lib/fts.c (__opendir2): Move "up".  No semantic change.
14121
14122         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
14123         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
14124         out for a long time and besides was useful only on BSD systems.
14125
14126 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
14127
14128         regex: port to Stratus OpenVOS
14129         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
14130         define to empty, rather than attempting nonportable optimizations.
14131         Problem reported by Paul Green in:
14132         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
14133         and fix suggested by Eric Blake in:
14134         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
14135
14136 2011-08-17  Eric Blake  <eblake@redhat.com>
14137
14138         getcwd: fix test failures on mingw
14139         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
14140         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
14141         test if long directory cannot be created, and allow mingw errno.
14142
14143         getcwd-lgpl: fix m4 to match relaxed test for BSD
14144         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
14145         (gl_FUNC_GETCWD_SIGNATURE): New macro.
14146         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
14147         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
14148         signature problem.
14149
14150         getcwd: fix compilation on mingw64
14151         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
14152         getcwd.
14153         Reported by Marc-André Lureau.
14154
14155         pipe2: silence compiler warning
14156         * lib/pipe2.c (pipe2): Hide label if it is not used.
14157
14158 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
14159
14160         relocatable-prog: fix link error
14161         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
14162         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
14163         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
14164         into modules/relocatable-lib without noticing that
14165         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
14166         also needs to build relocatable.c.
14167
14168 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
14169
14170         getaddrinfo: fix sh typo in gai_strerrorA decl checking
14171         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
14172         shell code: it contained a 'break' that was not in a loop.
14173         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
14174         via a shell-language loop; this may have been true in old Autoconf
14175         versions, but it's not true in Autoconf 2.68.  I found this bug
14176         when testing coreutils git on Solaris 8, whose shell complains
14177         about the syntax error.
14178
14179 2011-08-12  Simon Josefsson  <simon@josefsson.org>
14180
14181         * lib/base64.c: Fix comment to reference RFC 4648.
14182         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
14183         <gvtulder@gmail.com>.
14184
14185 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
14186
14187         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
14188
14189         po/Makefile.in.in: fix make -q problem
14190         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
14191         rule, since there's no file named 'check-macro-version' and its
14192         use as a file breaks make -q.
14193         (all): Don't depend on check-macro-version.
14194         (CHECK_MACRO_VERSION): New macro.
14195         (stamp-po): Use it.
14196
14197         configmake: fix make -q problem
14198         * modules/configmake (configmake.h): Update configmake.h's time stamp
14199         even if the file does not change.  Otherwise, 'make -q' fails.
14200         Problem reported by Simon Josefsson in
14201         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
14202
14203 2011-08-11  Jim Meyering  <meyering@redhat.com>
14204
14205         git-version-gen: correct the advice in a comment
14206         * build-aux/git-version-gen: Correct comment.
14207         Don't recommend to list .tarball-version in .gitignore.
14208
14209 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
14210
14211         base64: fix off-by-one buffer size bug
14212         Problem and (trivial) fix reported by Gijs van Tulder in
14213         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
14214         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
14215         * tests/test-base64.c (main): Catch the bug.
14216
14217 2011-08-10  Eric Blake  <eblake@redhat.com>
14218
14219         closein: correct comments
14220         * lib/closein.c (close_stdin): Improve comments.
14221
14222 2011-08-09  Bruno Haible  <bruno@clisp.org>
14223
14224         More tests for 'fseeko'.
14225         * tests/test-fseeko3.c: New file, from Eric Blake.
14226         * tests/test-fseeko3.sh: New file.
14227         * modules/fseeko-tests (Files): Add them.
14228         (TESTS): Add test-fseeko3.sh.
14229         (check_PROGRAMS): Add test-fseeko3.
14230
14231 2011-08-09  Eric Blake  <eblake@redhat.com>
14232
14233         fseeko: remove unneeded hack
14234         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
14235
14236         fseeko: fix bug on glibc
14237         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
14238         Reported by John W. Eaton.
14239
14240 2011-08-08  Bruno Haible  <bruno@clisp.org>
14241
14242         unictype/base: Fix interoperability with preinstalled libunistring.
14243         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
14244         Reported by Simon Josefsson.
14245
14246 2011-08-08  Bruno Haible  <bruno@clisp.org>
14247
14248         iswblank: Detect declaration correctly.
14249         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
14250         AC_CHECK_DECLS invocation.
14251
14252 2011-08-08  Bruno Haible  <bruno@clisp.org>
14253
14254         tcgetsid: Detect declaration correctly.
14255         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
14256         AC_CHECK_DECLS invocation.
14257         Reported by Simon Josefsson.
14258
14259 2011-08-08  Eric Blake  <eblake@redhat.com>
14260
14261         largefile: fix typo that regressed large file support
14262         * modules/largefile (configure.ac-early): Fix section name.
14263
14264 2011-08-06  Karl Berry  <karl@gnu.org>
14265
14266         * MODULES.html.sh (func_all_files): _Noreturn is no longer
14267         a separate module.
14268
14269 2011-08-05  Simon Josefsson  <simon@josefsson.org>
14270
14271         openat: Fix warnings and commens when building unlinkat.c on Hurd.
14272         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
14273         get prototype for free.
14274
14275 2011-08-04  Bruno Haible  <bruno@clisp.org>
14276
14277         Tests for module 'pathmax'.
14278         * modules/pathmax-tests: New file.
14279         * tests/test-pathmax.c: New file.
14280
14281         canonicalize-lgpl: Support larger filenames on the Hurd.
14282         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
14283         Reported by Paul Eggert.
14284
14285         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
14286         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
14287         * lib/chdir-long.h: Include pathmax.h.
14288         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
14289         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
14290         (PATH_MAX): Remove code that is done by pathmax.h.
14291         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
14292         * lib/tmpfile.c: Add a comment.
14293         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
14294         * modules/chdir-long (Depends-on): Add pathmax.
14295         * modules/getcwd (Depends-on): Add pathmax.
14296         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
14297         is not defined.
14298         * doc/posix-headers/limits.texi: Mention the pathmax module.
14299         * NEWS: Mention the change.
14300
14301 2011-08-02  Bruno Haible  <bruno@clisp.org>
14302
14303         pthread_sigmask: Actually use results of gl_THREADLIB.
14304         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
14305         gl_THREADLIB, not gl_[]THREADLIB.
14306         Reported by Eric Blake.
14307
14308 2011-08-02  Jim Meyering  <meyering@redhat.com>
14309
14310         maint.mk: relax the default _gl_TS_function_match regexp
14311         * top/maint.mk (_gl_TS_function_match): Don't require at least one
14312         space between function name and "(" in an "extern" declaration.
14313         That would fail to match a decl with no space there: extern void foo();
14314
14315 2011-07-31  Iain Nicol  <iain@thenicols.net>
14316
14317         git-version-gen: document that EXTRA_DIST must include .version
14318         * build-aux/git-version-gen: In the how-to-use comment, document
14319         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
14320         will fail when run from an unpacked distribution tarball.
14321
14322 2011-08-01  Bruno Haible  <bruno@clisp.org>
14323
14324         wctype-h: Fix last change.
14325         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
14326         REPLACE_TOWLOWER to 0.
14327         Reported by Sam Steingold <sds@gnu.org>.
14328
14329 2011-07-31  Bruno Haible  <bruno@clisp.org>
14330
14331         frexpl: Update autoconf test.
14332         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
14333         according to changes of 2011-06-20.
14334
14335 2011-07-31  Bruno Haible  <bruno@clisp.org>
14336
14337         sys_utsname: Add support for Minix.
14338         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
14339         <sys/utsname.h>.
14340         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
14341         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
14342
14343 2011-07-31  Bruno Haible  <bruno@clisp.org>
14344
14345         strings: Add support for Minix.
14346         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
14347         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
14348         * doc/posix-headers/strings.texi: Document the Minix problem.
14349
14350 2011-07-31  Bruno Haible  <bruno@clisp.org>
14351
14352         wctype-h: Add support for Minix.
14353         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
14354         REPLACE_TOWLOWER.
14355         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
14356         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
14357         REPLACE_ISWCNTRL.
14358
14359 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
14360
14361         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
14362         This is a performance improvement for 64-bit hosts: it causes the
14363         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
14364
14365 2011-07-31  Bruno Haible  <bruno@clisp.org>
14366
14367         stdioext: Add support for Minix.
14368         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
14369         * lib/fpurge.c (fpurge): Likewise.
14370         * lib/freadahead.c (freadahead): Likewise.
14371         * lib/freadable.c (freadable): Likewise.
14372         * lib/freading.c (freading): Likewise.
14373         * lib/freadptr.c (freadptr): Likewise.
14374         * lib/freadseek.c (freadptrinc): Likewise.
14375         * lib/fseeko.c (rpl_fseeko): Likewise.
14376         * lib/fseterr.c (fseterr): Likewise.
14377         * lib/fwritable.c (fwritable): Likewise.
14378         * lib/fwriting.c (fwriting): Likewise.
14379         * lib/fflush.c (clear_ungetc_buffer): Update comment.
14380         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
14381
14382 2011-07-31  Bruno Haible  <bruno@clisp.org>
14383
14384         errno: Port to Minix.
14385         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
14386         ECONNABORTED are defined.
14387         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
14388         GNULIB_defined_ECONNABORTED): New macros.
14389         * lib/strerror-override.h (strerror_override): Test also
14390         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
14391         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
14392         ECONNABORTED.
14393         * doc/posix-headers/errno.texi: Mention the Minix problem.
14394
14395 2011-07-31  Bruno Haible  <bruno@clisp.org>
14396
14397         Work around declaration collisions on Minix.
14398         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
14399         defined, set REPLACE_MBSINIT.
14400         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
14401         defined, set REPLACE_MBRTOWC.
14402         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
14403         set REPLACE_MBRLEN.
14404         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
14405         defined, set REPLACE_MBSRTOWCS.
14406         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
14407         defined, set REPLACE_WCRTOMB.
14408         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
14409         defined, set REPLACE_WCSRTOMBS.
14410
14411 2011-07-31  Bruno Haible  <bruno@clisp.org>
14412
14413         Add support for Minix with ACK compiler.
14414         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
14415         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
14416         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
14417
14418 2011-07-31  Bruno Haible  <bruno@clisp.org>
14419
14420         Documentation about Minix.
14421         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
14422         * doc/glibc-headers/*.texi: Likewise.
14423         * doc/posix-functions/*.texi: Likewise.
14424         * doc/glibc-functions/*.texi: Likewise.
14425
14426 2011-07-31  Bruno Haible  <bruno@clisp.org>
14427
14428         snippet/warn-on-use: Fix indentation.
14429         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
14430
14431 2011-07-25  Jim Meyering  <meyering@redhat.com>
14432
14433         tests: test-update-copyright.sh: remove unnecessary "rm" commands
14434         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
14435         commands.
14436
14437 2011-07-27  Jim Meyering  <meyering@redhat.com>
14438
14439         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
14440         * top/maint.mk (gl_extract_significant_defines_): Now that
14441         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
14442         gnulib/lib/signal.in.h, and now that we recommend to
14443         define-if-undefined those two symbols in application code,
14444         we must filter them out of the "significant" list.
14445         This avoids a "make syntax-check" failure in coreutils.
14446
14447 2011-07-26  Eric Blake  <eblake@redhat.com>
14448
14449         warnings: add comments about previous patch
14450         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
14451         * m4/include_next.m4: Likewise.
14452         * m4/warn-on-use.m4: Likewise.
14453         * m4/warnings.m4: Likewise, and simplify use.
14454         Suggested by Stefano Lattarini.
14455
14456         include-next, warnings: support older autoconf
14457         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
14458         AS_VAR_PUSHDEF in a way that works with older autoconf.
14459         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
14460         Reported by Daniel P. Berrange.
14461
14462 2011-07-25  Bruno Haible  <bruno@clisp.org>
14463
14464         fseek, ftell: Fix doc.
14465         * doc/posix-functions/fseek.texi: Reword statement about
14466         AC_SYS_LARGEFILE.
14467         * doc/posix-functions/ftell.texi: Likewise.
14468
14469 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
14470             Bruno Haible  <bruno@clisp.org>
14471
14472         Add dependencies to the 'largefile' module.
14473         * modules/fopen (Depends-on): Add 'largefile'.
14474         * modules/freopen (Depends-on): Likewise.
14475         * modules/fseeko (Depends-on): Likewise.
14476         * modules/ftello (Depends-on): Likewise.
14477         * modules/glob (Depends-on): Likewise.
14478         * modules/lseek (Depends-on): Likewise.
14479         * modules/lstat (Depends-on): Likewise.
14480         * modules/mkostemp (Depends-on): Likewise.
14481         * modules/mkostemps (Depends-on): Likewise.
14482         * modules/mkstemp (Depends-on): Likewise.
14483         * modules/mkstemps (Depends-on): Likewise.
14484         * modules/open (Depends-on): Likewise.
14485         * modules/openat (Depends-on): Likewise.
14486         * modules/pread (Depends-on): Likewise.
14487         * modules/pwrite (Depends-on): Likewise.
14488         * modules/scandir (Depends-on): Likewise.
14489         * modules/stat (Depends-on): Likewise.
14490         * modules/tmpfile (Depends-on): Likewise.
14491         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
14492         since the containing module now depends on the largefile module.
14493         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
14494         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
14495         off_t is fixed by gnulib.
14496         * doc/posix-functions/freopen.texi: Likewise.
14497         * doc/posix-functions/fseeko.texi: Likewise.
14498         * doc/posix-functions/fstatat.texi: Likewise.
14499         * doc/posix-functions/ftello.texi: Likewise.
14500         * doc/posix-functions/glob.texi: Likewise.
14501         * doc/posix-functions/lseek.texi: Likewise.
14502         * doc/posix-functions/lstat.texi: Likewise.
14503         * doc/posix-functions/mkstemp.texi: Likewise.
14504         * doc/posix-functions/open.texi: Likewise.
14505         * doc/posix-functions/openat.texi: Likewise.
14506         * doc/posix-functions/pread.texi: Likewise.
14507         * doc/posix-functions/pwrite.texi: Likewise.
14508         * doc/posix-functions/scandir.texi: Likewise.
14509         * doc/posix-functions/stat.texi: Likewise.
14510         * doc/posix-functions/tmpfile.texi: Likewise.
14511         * doc/glibc-functions/mkostemp.texi: Likewise.
14512         * doc/glibc-functions/mkostemps.texi: Likewise.
14513         * doc/glibc-functions/mkstemps.texi: Likewise.
14514
14515 2011-07-25  Bruno Haible  <bruno@clisp.org>
14516
14517         fcntl: Move AC_LIBOBJ invocation to module description.
14518         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
14519         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
14520
14521         fcntl: Remove call-in from fchdir.m4.
14522         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
14523         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
14524
14525         dup3: Remove potential call-in from fchdir.m4.
14526         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
14527         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
14528
14529         dup2: Move AC_LIBOBJ invocation to module description.
14530         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
14531         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
14532         Don't invoke AC_LIBOBJ.
14533         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
14534
14535         dup2: Remove call-in from fchdir.m4.
14536         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
14537         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
14538
14539         fclose: Move AC_LIBOBJ invocation to module description.
14540         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
14541         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
14542         to 1.
14543         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
14544
14545         fclose: Remove call-in from close.m4.
14546         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
14547         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
14548
14549         close: Move AC_LIBOBJ invocation to module description.
14550         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
14551         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
14552         1.
14553         * modules/close (configure.ac): Invoke AC_LIBOBJ.
14554
14555         close: Remove call-in from fchdir.m4.
14556         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
14557         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
14558
14559         open: Move AC_LIBOBJ invocation to module description.
14560         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
14561         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
14562         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
14563
14564         open: Remove call-in from fchdir.m4.
14565         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
14566         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
14567
14568         fchdir: Start to remove gl_REPLACE_* idiom.
14569         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
14570         (gl_FUNC_FCHDIR): Invoke it.
14571
14572 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
14573
14574         * lib/ftell.c (ftell): Comment out cast.
14575
14576         close: use gl_REPLACE_FCLOSE only if defined
14577         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
14578         is defined.  The close module doesn't depend on the fclose module
14579         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
14580         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
14581         I reproduced the problem with "./gnulib-tool --test close sys_socket".
14582
14583 2011-07-24  Jim Meyering  <meyering@redhat.com>
14584
14585         test-select.h: avoid warning when using gcc's -Wmissing-declarations
14586         * tests/test-select.h (test_function): Declare as "static".
14587
14588 2011-07-24  Bruno Haible  <bruno@clisp.org>
14589
14590         doc: Mention the effects of AC_SYS_LARGEFILE.
14591         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
14592         on this function.
14593         * doc/posix-functions/aio_error.texi: Likewise.
14594         * doc/posix-functions/aio_fsync.texi: Likewise.
14595         * doc/posix-functions/aio_read.texi: Likewise.
14596         * doc/posix-functions/aio_return.texi: Likewise.
14597         * doc/posix-functions/aio_suspend.texi: Likewise.
14598         * doc/posix-functions/aio_write.texi: Likewise.
14599         * doc/posix-functions/fgetpos.texi: Likewise.
14600         * doc/posix-functions/fopen.texi: Likewise.
14601         * doc/posix-functions/freopen.texi: Likewise.
14602         * doc/posix-functions/fsetpos.texi: Likewise.
14603         * doc/posix-functions/fstatvfs.texi: Likewise.
14604         * doc/posix-functions/ftruncate.texi: Likewise.
14605         * doc/posix-functions/ftw.texi: Likewise.
14606         * doc/posix-functions/getrlimit.texi: Likewise.
14607         * doc/posix-functions/glob.texi: Likewise.
14608         * doc/posix-functions/lio_listio.texi: Likewise.
14609         * doc/posix-functions/lockf.texi: Likewise.
14610         * doc/posix-functions/mkstemp.texi: Likewise.
14611         * doc/posix-functions/mmap.texi: Likewise.
14612         * doc/posix-functions/nftw.texi: Likewise.
14613         * doc/posix-functions/openat.texi: Likewise.
14614         * doc/posix-functions/opendir.texi: Likewise.
14615         * doc/posix-functions/posix_fadvise.texi: Likewise.
14616         * doc/posix-functions/posix_fallocate.texi: Likewise.
14617         * doc/posix-functions/pread.texi: Likewise.
14618         * doc/posix-functions/pwrite.texi: Likewise.
14619         * doc/posix-functions/readdir.texi: Likewise.
14620         * doc/posix-functions/readdir_r.texi: Likewise.
14621         * doc/posix-functions/rewinddir.texi: Likewise.
14622         * doc/posix-functions/scandir.texi: Likewise.
14623         * doc/posix-functions/seekdir.texi: Likewise.
14624         * doc/posix-functions/setrlimit.texi: Likewise.
14625         * doc/posix-functions/statvfs.texi: Likewise.
14626         * doc/posix-functions/telldir.texi: Likewise.
14627         * doc/posix-functions/tmpfile.texi: Likewise.
14628         * doc/posix-functions/truncate.texi: Likewise.
14629         * doc/glibc-functions/fallocate.texi: Likewise.
14630         * doc/glibc-functions/fstatfs.texi: Likewise.
14631         * doc/glibc-functions/fts_children.texi: Likewise.
14632         * doc/glibc-functions/fts_read.texi: Likewise.
14633         * doc/glibc-functions/getdirentries.texi: Likewise.
14634         * doc/glibc-functions/mkostemp.texi: Likewise.
14635         * doc/glibc-functions/mkostemps.texi: Likewise.
14636         * doc/glibc-functions/mkstemps.texi: Likewise.
14637         * doc/glibc-functions/preadv.texi: Likewise.
14638         * doc/glibc-functions/pwritev.texi: Likewise.
14639         * doc/glibc-functions/sendfile.texi: Likewise.
14640         * doc/glibc-functions/statfs.texi: Likewise.
14641
14642 2011-07-24  Bruno Haible  <bruno@clisp.org>
14643
14644         doc: Fix typo.
14645         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
14646
14647 2011-07-24  Bruno Haible  <bruno@clisp.org>
14648
14649         doc: Mention fsusage.
14650         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
14651
14652 2011-07-24  Bruno Haible  <bruno@clisp.org>
14653
14654         doc: Mention new glibc headers and functions.
14655         * doc/glibc-headers/gshadow.texi: New file.
14656         * doc/glibc-functions/endsgent.texi: New file.
14657         * doc/glibc-functions/fgetsgent.texi: New file.
14658         * doc/glibc-functions/fgetsgent_r.texi: New file.
14659         * doc/glibc-functions/getsgent.texi: New file.
14660         * doc/glibc-functions/getsgent_r.texi: New file.
14661         * doc/glibc-functions/getsgnam.texi: New file.
14662         * doc/glibc-functions/getsgnam_r.texi: New file.
14663         * doc/glibc-functions/putsgent.texi: New file.
14664         * doc/glibc-functions/setsgent.texi: New file.
14665         * doc/glibc-functions/sgetsgent.texi: New file.
14666         * doc/glibc-functions/sgetsgent_r.texi: New file.
14667         * doc/glibc-functions/malloc_info.texi: New file.
14668         * doc/glibc-functions/preadv.texi: New file.
14669         * doc/glibc-functions/pwritev.texi: New file.
14670         * doc/glibc-functions/register_printf_modifier.texi: New file.
14671         * doc/glibc-functions/register_printf_specifier.texi: New file.
14672         * doc/glibc-functions/register_printf_type.texi: New file.
14673         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
14674         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
14675         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
14676         * doc/glibc-functions/pthread_getname_np.texi: New file.
14677         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
14678         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
14679         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
14680         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
14681         * doc/glibc-functions/pthread_setname_np.texi: New file.
14682         * doc/glibc-functions/pthread_sigqueue.texi: New file.
14683         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
14684         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
14685         * doc/glibc-functions/qsort_r.texi: New file.
14686         * doc/glibc-functions/quick_exit.texi: New file.
14687         * doc/glibc-functions/syncfs.texi: New file.
14688         * doc/gnulib.texi: Include them.
14689         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
14690         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
14691         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
14692         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
14693         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
14694         * doc/glibc-functions/execvpe.texi: Likewise.
14695
14696 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
14697
14698         ftell: don't include <unistd.h>
14699         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
14700         guaranteed to define off_t, and the ftell module depends on the
14701         stdio module.
14702
14703         ftell: do not assume wraparound signed arithmetic
14704         * lib/ftell.c: Include <limits.h>.
14705         (ftell): Don't assume wraparound signed arithmetic.
14706
14707 2011-07-24  Bruno Haible  <bruno@clisp.org>
14708
14709         close: No longer depend on module 'fclose'.
14710         * modules/close (Depends-on): Remove fclose.
14711         * NEWS: Mention the change.
14712         Suggested by Sam Steingold <sds@gnu.org>.
14713
14714 2011-07-24  Bruno Haible  <bruno@clisp.org>
14715
14716         fsusage: Enable large volume support on AIX >= 5.2.
14717         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
14718         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
14719         instead of STAT_STATVFS.
14720         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
14721
14722         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
14723         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
14724         f_blocks field only on MacOS X.
14725
14726         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
14727         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
14728         * modules/fsusage (Depends-on): Add largefile.
14729
14730 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
14731
14732         * README: Modernize discussion of signed integers.
14733         Assuming overflow wraparound is no longer safe.
14734         Mention ones' complement and signed magnitude.
14735
14736 2011-07-22  Bruno Haible  <bruno@clisp.org>
14737
14738         select tests, pselect tests: Refactor.
14739         * tests/test-select.h: New file, extracted from tests/test-select.c.
14740         (select_fn): New type.
14741         (test, do_select, do_select_nowait, do_select_wait, test_tty,
14742         test_connect_first, test_accept_first, test_pair, test_socket_pair,
14743         test_pipe): Add my_select argument.
14744         (test_function): Renamed from main. Add my_select argument.
14745         * tests/test-select.c: Move most code to tests/test-select.h. Include
14746         test-select.h.
14747         * modules/select-tests (Files): Add tests/test-select.h.
14748         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
14749         (my_select, main): New functions.
14750         * modules/pselect-tests (Files): Add tests/test-select.h,
14751         tests/macros.h, tests/signature.h.
14752         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
14753         (configure.ac): Check for <sys/wait.h>.
14754
14755 2011-07-22  Bruno Haible  <bruno@clisp.org>
14756
14757         sys_select tests: Check the signature of FD_*.
14758         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
14759         signature tests from here...
14760         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
14761         here.
14762         * modules/sys_select-tests (Files): Add tests/signature.h.
14763
14764 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
14765
14766         largefile: new module, replacing large-inode
14767         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
14768         * MODULES.html.sh: Add largefile, remove large-inode.
14769         * modules/largefile, m4/largefile.m4: New files.
14770         * modules/large-inode, m4/large-inode.m4: Remove.
14771
14772         fsusage: port to MacOS X 10.7 with 4 TiB file systems
14773         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
14774         implementations that use only 32 bits to count blocks.
14775         On typical hosts with 1024-byte blocks, this fails with file
14776         systems as small as 4 TiB.  Problem reported by Herb Wartens
14777         <http://debbugs.gnu.org/9140> and this should also fix a similar
14778         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
14779
14780         large-inode: New module
14781         * MODULES.html.sh: Add it.
14782         * modules/large-inode, m4/large-inode.m4: New files.
14783
14784         extensions: Enable extensions on MacOS X 10.5 and later.
14785         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
14786
14787 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
14788
14789         file-has-acl: use acl_extended_file_nofollow if available
14790         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
14791         (acl_extended_file): New macro.
14792         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
14793         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
14794
14795 2011-07-21  Bruno Haible  <bruno@clisp.org>
14796
14797         Declare system functions in a way that works with C++.
14798         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
14799         declare fdopendir as extern "C".
14800         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
14801         declare frexpl as extern "C".
14802         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
14803         declare gai_strerror as extern "C".
14804         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
14805         programs, declare gai_strerror as extern "C".
14806         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
14807         declare getlogin_r as extern "C".
14808         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
14809         as extern "C".
14810         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
14811         declare ldexpl as extern "C".
14812         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
14813         as extern "C".
14814         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
14815         program, declare getmntinfo as extern "C".
14816         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
14817         stpncpy as extern "C".
14818         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
14819         program, declare __xpg_strerror_r as extern "C".
14820         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
14821         strndup as extern "C".
14822         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
14823         declare memset and bzero as extern "C".
14824         Reported by Sam Steingold <sds@gnu.org>.
14825
14826 2011-07-12  Jim Meyering  <meyering@redhat.com>
14827
14828         maint.mk: prohibit inclusion of "verify.h" without use
14829         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
14830
14831 2011-07-19  Pádraig Brady  <P@draigBrady.com>
14832
14833         timer-time: A new module to check for timer_settime()
14834         * m4/timer_time.m4: Check for the posix function.
14835         * modules/timer-time: Add the new module.
14836         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
14837         Mention it.
14838
14839 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
14840             Bruno Haible  <bruno@clisp.org>
14841
14842         pthread_sigmask: assume POSIX threads if --avoid=threadlib
14843         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
14844         not defined, assume POSIX threads and look for pthread_sigmask in
14845         $LIBS, without changing $CPPFLAGS.
14846
14847 2011-07-19  Bruno Haible  <bruno@clisp.org>
14848
14849         strstr: Update cross-compilation guess.
14850         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
14851         CPUs, guess no, in view of glibc
14852         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
14853         Suggested by Eric Blake. Reported by Reuben Thomas.
14854
14855 2011-07-19  Pádraig Brady  <P@draigBrady.com>
14856
14857         getopt-gnu: suppress core dumps from detection code
14858         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
14859         to suppress core dumps that may well occur on glibc systems.
14860         * modules/getopt-gnu: Depend on nocrash.
14861
14862 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
14863
14864         pthread_sigmask: ensure usleep is declared
14865         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
14866         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
14867
14868 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
14869
14870         doc: Document NonStop portability issues.
14871         * doc/posix-functions/sigaction.texi (sigaction):
14872         * doc/posix-headers/signal.texi (signal.h):
14873         Document NonStop.  See Joachim Schmitz in
14874         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
14875
14876 2011-07-15  Bruno Haible  <bruno@clisp.org>
14877
14878         ffsl, ffsll: Avoid unportable behaviour.
14879         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
14880
14881 2011-07-15  Bruno Haible  <bruno@clisp.org>
14882
14883         ffs: More tests.
14884         * tests/test-ffs.c (NBITS): New macro.
14885         (main): Add more tests.
14886         * tests/test-ffsl.c (NBITS): New macro.
14887         (main): Add more tests.
14888         * tests/test-ffsll.c (NBITS): New macro.
14889         (main): Add more tests.
14890
14891 2011-07-15  Eric Blake  <eblake@redhat.com>
14892
14893         ffsl, ffsll: new modules
14894         * modules/ffsl: New file.
14895         * modules/ffsll: Likewise.
14896         * m4/ffsl.m4: Likewise.
14897         * m4/ffsll.m4: Likewise.
14898         * lib/ffsl.c: Likewise.
14899         * lib/ffsl.h: Likewise.
14900         * lib/ffsll.c: Likewise.
14901         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
14902         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
14903         * modules/string (Makefile.am): Substitute witnesses.
14904         * lib/strings.in.h (ffsl, ffsll): Declare.
14905         * modules/ffsl-tests: New test file.
14906         * modules/ffsll-tests: Likewise.
14907         * tests/test-ffsl.c: Likewise.
14908         * tests/test-ffsll.c: Likewise.
14909         * MODULES.html.sh (Integer arithmetic functions): Mention it.
14910         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
14911         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
14912
14913         ffs: fix m4 prerequisite
14914         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
14915
14916         ffs: avoid undefined behavior
14917         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
14918         * tests/test-ffs.c (naive, main): Avoid signed shifts.
14919         Reported by Bruno Haible.
14920
14921 2011-07-12  Bruno Haible  <bruno@clisp.org>
14922
14923         pthread_sigmask: Rely on module 'threadlib'.
14924         * modules/pthread_sigmask (Depends-on): Add threadlib.
14925         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
14926         is defined.
14927
14928 2011-07-12  Bruno Haible  <bruno@clisp.org>
14929
14930         regex: Depend on module 'strcase'.
14931         * modules/regex (Depends-on): Add strcase, for strcasecmp().
14932
14933 2011-07-12  Jim Meyering  <meyering@redhat.com>
14934
14935         warn-on-use: fix typo in file name
14936         * modules/snippet/warn-on-use (Files): Correct file name:
14937         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
14938
14939 2011-07-12  Bruno Haible  <bruno@clisp.org>
14940
14941         strings: Document module.
14942         * doc/posix-headers/strings.texi: Mention module 'strings'.
14943
14944 2011-07-12  Bruno Haible  <bruno@clisp.org>
14945
14946         Rename module '_Noreturn' to 'snippet/_Noreturn'.
14947         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
14948         (Files, Makefile.am): Update.
14949         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
14950         * modules/stdlib (Depends-on): Update.
14951
14952 2011-07-12  Bruno Haible  <bruno@clisp.org>
14953
14954         * NEWS: Mention the changes.
14955
14956         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
14957         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
14958         (Files, Makefile.am): Update.
14959         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
14960         * modules/arpa_inet (Depends-on): Update.
14961         * modules/ctype (Depends-on): Update.
14962         * modules/dirent (Depends-on): Update.
14963         * modules/fcntl-h (Depends-on): Update.
14964         * modules/glob (Depends-on): Update.
14965         * modules/iconv-h (Depends-on): Update.
14966         * modules/inttypes-incomplete (Depends-on): Update.
14967         * modules/langinfo (Depends-on): Update.
14968         * modules/locale (Depends-on): Update.
14969         * modules/math (Depends-on): Update.
14970         * modules/netdb (Depends-on): Update.
14971         * modules/poll-h (Depends-on): Update.
14972         * modules/pty (Depends-on): Update.
14973         * modules/search (Depends-on): Update.
14974         * modules/signal (Depends-on): Update.
14975         * modules/spawn (Depends-on): Update.
14976         * modules/stdio (Depends-on): Update.
14977         * modules/stdlib (Depends-on): Update.
14978         * modules/string (Depends-on): Update.
14979         * modules/strings (Depends-on): Update.
14980         * modules/sys_file (Depends-on): Update.
14981         * modules/sys_ioctl (Depends-on): Update.
14982         * modules/sys_select (Depends-on): Update.
14983         * modules/sys_socket (Depends-on): Update.
14984         * modules/sys_stat (Depends-on): Update.
14985         * modules/sys_time (Depends-on): Update.
14986         * modules/sys_times (Depends-on): Update.
14987         * modules/sys_utsname (Depends-on): Update.
14988         * modules/sys_wait (Depends-on): Update.
14989         * modules/termios (Depends-on): Update.
14990         * modules/time (Depends-on): Update.
14991         * modules/unistd (Depends-on): Update.
14992         * modules/wchar (Depends-on): Update.
14993         * modules/wctype-h (Depends-on): Update.
14994         * MODULES.html.sh (Support for building libraries and executables):
14995         Update.
14996
14997         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
14998         * modules/snippet/unused-parameter: Renamed from
14999         modules/unused-parameter.
15000         (Files, Makefile.am): Update.
15001         * build-aux/snippet/unused-parameter.h: Renamed from
15002         build-aux/unused-parameter.h.
15003         * modules/selinux-h (Depends-on): Update.
15004         * modules/unistr/base (Depends-on): Update.
15005         * MODULES.html.sh (Core language properties): Update.
15006
15007         Rename module 'link-warning' to 'snippet/link-warning'.
15008         * modules/snippet/link-warning: Renamed from modules/link-warning.
15009         (Files, Makefile.am): Update.
15010         * build-aux/snippet/link-warning.h: Renamed from
15011         build-aux/link-warning.h.
15012         * MODULES.html.sh (Support for building libraries and executables):
15013         Update.
15014
15015         Rename module 'c++defs' to 'snippet/c++defs'.
15016         * modules/snippet/c++defs: Renamed from modules/c++defs.
15017         (Files, Makefile.am): Update.
15018         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
15019         * modules/arpa_inet (Depends-on): Update.
15020         * modules/ctype (Depends-on): Update.
15021         * modules/dirent (Depends-on): Update.
15022         * modules/fcntl-h (Depends-on): Update.
15023         * modules/glob (Depends-on): Update.
15024         * modules/iconv-h (Depends-on): Update.
15025         * modules/langinfo (Depends-on): Update.
15026         * modules/locale (Depends-on): Update.
15027         * modules/math (Depends-on): Update.
15028         * modules/netdb (Depends-on): Update.
15029         * modules/poll-h (Depends-on): Update.
15030         * modules/pty (Depends-on): Update.
15031         * modules/search (Depends-on): Update.
15032         * modules/signal (Depends-on): Update.
15033         * modules/spawn (Depends-on): Update.
15034         * modules/stdio (Depends-on): Update.
15035         * modules/stdlib (Depends-on): Update.
15036         * modules/string (Depends-on): Update.
15037         * modules/strings (Depends-on): Update.
15038         * modules/sys_ioctl (Depends-on): Update.
15039         * modules/sys_select (Depends-on): Update.
15040         * modules/sys_socket (Depends-on): Update.
15041         * modules/sys_stat (Depends-on): Update.
15042         * modules/sys_time (Depends-on): Update.
15043         * modules/sys_wait (Depends-on): Update.
15044         * modules/termios (Depends-on): Update.
15045         * modules/time (Depends-on): Update.
15046         * modules/unistd (Depends-on): Update.
15047         * modules/wchar (Depends-on): Update.
15048         * modules/wctype-h (Depends-on): Update.
15049
15050         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
15051         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
15052         (Files, Makefile.am): Update.
15053         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
15054         * modules/argv-iter (Depends-on): Update.
15055         * modules/arpa_inet (Depends-on): Update.
15056         * modules/dirent (Depends-on): Update.
15057         * modules/fcntl-h (Depends-on): Update.
15058         * modules/fnmatch (Depends-on): Update.
15059         * modules/getopt-posix (Depends-on): Update.
15060         * modules/glob (Depends-on): Update.
15061         * modules/iconv-h (Depends-on): Update.
15062         * modules/inttypes-incomplete (Depends-on): Update.
15063         * modules/locale (Depends-on): Update.
15064         * modules/math (Depends-on): Update.
15065         * modules/netdb (Depends-on): Update.
15066         * modules/search (Depends-on): Update.
15067         * modules/signal (Depends-on): Update.
15068         * modules/spawn (Depends-on): Update.
15069         * modules/stdio (Depends-on): Update.
15070         * modules/stdlib (Depends-on): Update.
15071         * modules/string (Depends-on): Update.
15072         * modules/strings (Depends-on): Update.
15073         * modules/sys_socket (Depends-on): Update.
15074         * modules/sys_stat (Depends-on): Update.
15075         * modules/sys_time (Depends-on): Update.
15076         * modules/sys_times (Depends-on): Update.
15077         * modules/sys_utsname (Depends-on): Update.
15078         * modules/time (Depends-on): Update.
15079         * modules/unistd (Depends-on): Update.
15080         * modules/wchar (Depends-on): Update.
15081         * MODULES.html.sh (Support for building libraries and executables):
15082         Update.
15083
15084 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
15085
15086         Improvements on _Noreturn and related modules.
15087
15088         modules/_Exit-tests: test _Noreturn too
15089         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
15090         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
15091         (main): Use them.
15092
15093         stdnoreturn, stdnoreturn-tests: remove modules
15094         They're not needed here and a bit premature for use elsewhere.  See
15095         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
15096         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
15097         * tests/test-stdnoreturn.c: Remove files.
15098         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
15099         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
15100         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
15101         and using noreturn.
15102         * modules/openat, modules/sigpipe-die, modules/xalloc:
15103         * modules/xmemdup0, modules/xstrtol:
15104         Remove dependency on stdnoreturn.
15105
15106         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
15107         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
15108         Reparenthesize to avoid GCC warning.
15109         Support Microsoft's syntax.
15110         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
15111
15112         _Noreturn-tests: remove module
15113         * modules/_Noreturn-tests: Remove.
15114         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
15115         * tests/test-_Noreturn.c: Remove.
15116         * tests/test-stdnoreturn.c: Merge from the old
15117         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
15118
15119 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
15120
15121         _Noreturn, stdnoreturn, and related modules.
15122
15123         * top/maint.mk: Adjust to new noreturn support.
15124         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
15125         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
15126
15127         xalloc: use stdnoreturn.h
15128         * lib/xalloc.h: Include <stdnoreturn.h>.
15129         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
15130         * modules/xalloc (Depends-on): Add stdnoreturn.
15131
15132         xstrtol: use stdnoreturn.h
15133         * lib/xstrtol.h: Include <stdnoreturn.h>.
15134         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
15135         * modules/xstrtol (Depends-on): Add stdnoreturn.
15136
15137         xmemdup0: use stdnoreturn.h
15138         * lib/xmemdup0.h: Include <stdnoreturn.h>.
15139         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
15140         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
15141
15142         sigpipe-die: use stdnoreturn.h
15143         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
15144         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
15145         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
15146
15147         openat: use stdnoreturn.h
15148         * lib/openat.h: Include <stdnoreturn.h>.
15149         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
15150         * modules/openat (Depends-on): Add stdnoreturn.
15151
15152         * lib/openat-die.c (openat_save_fail): Modernize comment.
15153
15154         * lib/xalloc-die.c (xalloc_die): Modernize comment.
15155
15156         * lib/glthread/thread.h: Modernize comment.
15157
15158         obstack: use _Noreturn
15159         * lib/obstack.c (__attribute__): Remove macro.
15160         (print_and_abort): Use _Noreturn.
15161
15162         c-stack: use _Noreturn
15163         * lib/c-stack.c (die, overflow_handler, segv_handler):
15164         Use _Noreturn rather than __attribute__((noreturn)).
15165
15166         argmatch-tests, exclude_tests: use _Noreturn
15167         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
15168         Remove.
15169         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
15170
15171         stdlib: use _Noreturn
15172         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
15173         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
15174         * modules/stdlib (Depends-on): Add _Noreturn.
15175         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
15176
15177         stdnoreturn-tests: new module
15178         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
15179
15180         stdnoreturn: new module
15181         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
15182         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
15183
15184         _Noreturn-tests: new module
15185         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
15186
15187         _Noreturn: new module
15188         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
15189         New section, mentioning it.
15190         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
15191
15192         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
15193
15194 2011-07-11  Eric Blake  <eblake@redhat.com>
15195
15196         ffs: new module
15197         * modules/ffs: New file.
15198         * m4/ffs.m4: Likewise.
15199         * lib/ffs.c: Likewise.
15200         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
15201         * modules/strings (Makefile.am): Substitute witness.
15202         (Depends-on): Add c++defs.
15203         * lib/strings.in.h (ffs): Declare.
15204         * modules/ffs-tests: New test file.
15205         * tests/test-ffs.c: Test new module.
15206         * MODULES.html.sh (Integer arithmetic functions): Mention it.
15207         * doc/posix-functions/ffs.texi (ffs): Likewise.
15208
15209         regex: avoid compiler warning
15210         * lib/regex.c (includes): Include <strings.h>, for use of
15211         strcasecmp in regcomp.c.
15212         Reported by Joachim Schmitz.
15213
15214 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
15215
15216         stdint: respect system's intmax_t if INTMAX_MAX
15217         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
15218         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
15219         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
15220         long but int64_t is long long, and where we will clash with the
15221         system intmax_t if we override it.  See
15222         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
15223         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
15224         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
15225         similarly for UINTMAX_C.
15226
15227 2011-07-08  Bruno Haible  <bruno@clisp.org>
15228
15229         pthread_sigmask tests: Avoid a compiler warning.
15230         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
15231         non-zero.
15232
15233         sigprocmask tests: A better way to avoid a compiler warning.
15234         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
15235         (main): Complain if system() returns non-zero.
15236         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
15237
15238 2011-07-08  Bruno Haible  <bruno@clisp.org>
15239
15240         pthread_sigmask: Work around IRIX bug.
15241         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
15242         bug.
15243         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
15244         there may be unblocked pending signals.
15245         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
15246
15247 2011-07-08  Bruno Haible  <bruno@clisp.org>
15248
15249         pthread_sigmask: Work around Cygwin bug.
15250         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
15251         bug.
15252         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
15253         the system's pthread_sigmask function.
15254         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
15255
15256 2011-07-08  Bruno Haible  <bruno@clisp.org>
15257
15258         pthread_sigmask: Work around bug in single-threaded implementation.
15259         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
15260         FreeBSD, HP-UX, Solaris bug.
15261         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
15262         * lib/pthread_sigmask.c: Include <stddef.h>.
15263         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
15264         the system's pthread_sigmask function.
15265         * modules/pthread_sigmask (configure.ac): Invoke
15266         gl_PREREQ_PTHREAD_SIGMASK.
15267         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
15268         HP-UX, Solaris.
15269
15270 2011-07-08  Eric Blake  <eblake@redhat.com>
15271
15272         test-sigprocmask: avoid compiler warning
15273         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
15274         * tests/test-sigprocmask.c (main): Use it to silence warning.
15275         Reported by Jim Meyering.
15276
15277         test-snprintf: avoid compiler warning
15278         * tests/test-snprintf.c (main): Avoid shadowed declaration.
15279         * tests/test-vsnprintf.c (main): Likewise.
15280         Reported by Jim Meyering.
15281
15282 2011-07-08  Bruno Haible  <bruno@clisp.org>
15283
15284         Tests for module 'pthread_sigmask'.
15285         * modules/pthread_sigmask-tests: New file.
15286         * tests/test-pthread_sigmask1.c: New file, based on
15287         tests/test-sigprocmask.c.
15288         * tests/test-pthread_sigmask2.c: New file.
15289
15290 2011-07-08  Jim Meyering  <meyering@redhat.com>
15291
15292         test-getopt.h: avoid warning about an unused variable
15293         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
15294
15295 2011-07-07  Jim Meyering  <meyering@redhat.com>
15296
15297         maint: reduce list of files exempt from sc_prohibit_leading_TABs
15298         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
15299         now that it no longer contains leading TABs.
15300         Remove unused "url=FIXME" statement.
15301
15302 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
15303
15304         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
15305         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
15306         When gl_THREADLIB is not in use, assume that the POSIX sematics
15307         are desired.  This is better for Emacs, which uses POSIX semantics
15308         on GNUish and/or POSIXish platforms, and does not use threads at
15309         all otherwise.
15310
15311         pthread_sigmask: fix typo when testing for libraries
15312         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
15313         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
15314
15315 2011-07-08  Eric Blake  <eblake@redhat.com>
15316
15317         fts: introduce FTS_NOATIME
15318         * lib/fts_.h (FTS_NOATIME): New bit flag.
15319         (FTS_OPTIONMASK): Adjust.
15320         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
15321         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
15322
15323 2011-07-08  Bruno Haible  <bruno@clisp.org>
15324
15325         Tests for module 'thread'.
15326         * modules/thread-tests: New file.
15327         * tests/test-thread_self.c: New file.
15328         * tests/test-thread_create.cc: New file.
15329
15330 2011-07-08  Bruno Haible  <bruno@clisp.org>
15331
15332         thread: Avoid gcc warnings when using gl_thread_self().
15333         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
15334         'void *'.
15335         (gl_thread_self_pointer): Update.
15336
15337 2011-07-07  Bruno Haible  <bruno@clisp.org>
15338
15339         signal-c++-tests: Check declaration of pthread_sigmask.
15340         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
15341         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
15342         $(LIB_PTHREAD_SIGMASK).
15343
15344 2011-07-07  Bruno Haible  <bruno@clisp.org>
15345
15346         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
15347         * lib/signal.in.h (pthread_sigmask): Override if
15348         REPLACE_PTHREAD_SIGMASK is 1.
15349         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
15350         REPLACE_PTHREAD_SIGMASK.
15351         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
15352         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
15353         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
15354         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
15355         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
15356
15357 2011-07-07  Bruno Haible  <bruno@clisp.org>
15358
15359         pthread_sigmask: Ensure declaration in <signal.h>.
15360         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
15361         include <pthread.h>.
15362         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
15363         problem.
15364
15365 2011-07-07  Bruno Haible  <bruno@clisp.org>
15366
15367         pthread_sigmask: Document the module.
15368         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
15369
15370 2011-07-07  Bruno Haible  <bruno@clisp.org>
15371
15372         pthread_sigmask: Follow gnulib conventions.
15373         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
15374         gl_PTHREAD_SIGMASK.
15375         * modules/pthread_sigmask (configure.ac): Update.
15376
15377 2011-07-07  Bruno Haible  <bruno@clisp.org>
15378
15379         pthread_sigmask: Make declaration C++ safe.
15380         * lib/signal.in.h: In two special conditions, just do an #include_next.
15381         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
15382         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
15383         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
15384         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
15385         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
15386         not REPLACE_PTHREAD_MASK.
15387         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
15388         not REPLACE_PTHREAD_MASK.
15389         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
15390
15391 2011-07-07  Bruno Haible  <bruno@clisp.org>
15392
15393         pthread_sigmask: Fix return value.
15394         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
15395         * lib/pthread_sigmask.c: New file.
15396         * modules/pthread_sigmask (Files): Add it.
15397         (configure.ac): Invoke AC_LIBOBJ.
15398
15399 2011-07-07  Eric Blake  <eblake@redhat.com>
15400
15401         getopt: more portable argv creation
15402         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
15403         const, use char arrays rather than strings.
15404         Suggested by Paul Eggert.
15405
15406 2011-07-07  Bruno Haible  <bruno@clisp.org>
15407
15408         Tests for module 'sigprocmask'.
15409         * modules/sigprocmask-tests: New file.
15410         * tests/test-sigprocmask.c: New file.
15411
15412 2011-07-07  Bruno Haible  <bruno@clisp.org>
15413
15414         float tests: Tweak.
15415         * tests/test-float.c (main): Tweak skip message.
15416
15417 2011-07-07  Eric Blake  <eblake@redhat.com>
15418
15419         getopt: avoid compiler warning during configure
15420         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
15421         assigning string literals to non-const pointer.
15422
15423         getopt-gnu: avoid crash in glibc getopt
15424         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
15425         * tests/test-getopt.h (test_getopt): Enhance test.
15426         * tests/test-getopt_long.h (test_getopt_long): Likewise.
15427         * doc/posix-functions/getopt.texi (getopt): Document it.
15428         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
15429         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
15430         Likewise.
15431
15432 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
15433
15434         getopt: handle W; without long options in getopt [BZ #12922]
15435         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
15436         but no long options are defined, just return 'W'.
15437
15438 2011-07-07  Bruno Haible  <bruno@clisp.org>
15439
15440         Avoid literal tabs.
15441         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
15442         variable containing a tab instead of a literal tab.
15443         Reported by Jim Meyering.
15444
15445 2011-07-07  Bruno Haible  <bruno@clisp.org>
15446
15447         Comments.
15448         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
15449
15450 2011-07-06  Bruno Haible  <bruno@clisp.org>
15451
15452         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
15453         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
15454         <winsock2.h>.
15455         (rpl_fd_isset, FD_ISSET): New definitions, copied from
15456         lib/sys_socket.in.h.
15457         (close, gethostname): Hide declarations from <winsock2.h>.
15458         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
15459         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
15460         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
15461         (select): Don't override if gnulib's <sys/select.h> was already
15462         included.
15463         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
15464         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
15465         setsockopt, shutdown, select): Tweak indentation.
15466
15467 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
15468
15469         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
15470         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
15471         in an application that does not use the sys_select module.
15472
15473 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
15474
15475         poll: do not return 0 on timeout=-1
15476         * lib/poll.c: Loop with yield if no events occurred.
15477
15478 2011-07-06  Eric Blake  <eblake@redhat.com>
15479
15480         pthread_sigmask: always replace when not using pthread
15481         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
15482         replacement when using some threading other than pthread.  Fix
15483         logic bug.
15484
15485 2011-07-06  Bruno Haible  <bruno@clisp.org>
15486
15487         Comments.
15488         * m4/printf.m4: Update comments about mingw.
15489
15490 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
15491
15492         sys_select: define sigset_t more portably
15493         * lib/sys_select.in.h: Always include <sys/types.h>, since
15494         we now need sigset_t and mingw defines it there.
15495         Include <signal.h> before split inclusion guard, to avoid
15496         mishaps on Solaris, whose <signal.h> eventually includes us.
15497         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
15498         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
15499         which come from ...
15500         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
15501         gl_CHECK_TYPE_SIGSET_T.
15502         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
15503         does the real work.
15504         * modules/sys_select (Depends-on): Add 'signal'.
15505
15506         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
15507         Suggested by Bruno Haible.
15508
15509         pselect: Use pthread_sigmask, not sigprocmask.
15510         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
15511         multithreaded apps better than sigprocmask does.
15512         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
15513         sigprocmask directly.
15514
15515 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
15516
15517         * lib/pselect.c (pselect): Use plain name, without "rpl_".
15518         Don't #undef,  since we don't need any underlying pselect.
15519         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
15520         (Depends-on): Add select.
15521         (Link): Add $(LIBSOCKET).
15522         These changes suggested by Bruno Haible.
15523
15524         pselect: document better
15525         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
15526         * doc/posix-functions/pselect.texi (pselect): Document new module.
15527
15528         pthread_sigmask: new module
15529         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
15530         * doc/posix-functions/pthread_sigmask.texi: Document new module.
15531         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
15532         This is done only as a macro; I don't know how well that'll
15533         work for C++.  Move <sys/types.h> include before the include_next,
15534         to avoid mishap on Solaris.
15535         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
15536         * modules/signal (Makefile.am): Substitute the check's results.
15537         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
15538
15539         test-pselect: new module
15540         * modules/pselect-tests, tests/test-pselect.c: New files.
15541         * tests/test-select.c, tests/test-sys_select-c++.cc:
15542         If TEST_PSELECT is defined, test pselect instead of testing select.
15543
15544         * tests/test-sys_select.c (sigset_t): Test for it, too.
15545         Suggested by Bruno Haible.
15546
15547 2011-07-05  Eric Blake  <eblake@redhat.com>
15548
15549         snprintf: guarantee %1$d, for libintl
15550         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
15551         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
15552         * doc/posix-functions/snprintf.texi (snprintf): Update.
15553         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
15554         * tests/test-snprintf.c (main): Enhance test.
15555         * tests/test-vsnprintf.c (main): Likewise.
15556
15557 2011-07-05  Jim Meyering  <meyering@redhat.com>
15558
15559         maint: exempt stdio-read.c and stdio-write.c from the cppi check
15560         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
15561         per Bruno's request, to accommodate this idiom (no space after "#")
15562         even when the function is inside an #if block:
15563         char *
15564         gets (char *s)
15565         #undef gets
15566         {
15567           ...
15568         }
15569
15570 2011-07-04  Jim Meyering  <meyering@redhat.com>
15571
15572         maint: indent with spaces, not TABs, and add a rule to check this
15573         * tests/test-userspec.c: Indent with spaces, not TABs.
15574         * tests/test-argp.c: Likewise.
15575         * tests/test-c-stack2.sh: Likewise.
15576         * tests/test-parse-duration.sh: Likewise
15577         * m4/strtod.m4: Likewise.
15578         * m4/alloca.m4: Likewise.
15579         * m4/pselect.m4: Likewise.
15580         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
15581
15582 2011-07-03  Jim Meyering  <meyering@redhat.com>
15583
15584         maint.mk: correct omissions in prohibit_argmatch_without_use check
15585         This rule would mistakenly report that argmatch.h is included without
15586         use even when both the argmatch and invalid_arg macro were used.
15587         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
15588         of argmatch and invalid_arg.
15589
15590 2011-07-03  Bruno Haible  <bruno@clisp.org>
15591
15592         Comments about EINTR.
15593         * lib/safe-read.h: Explain the purpose of this module.
15594         * lib/safe-write.h: Likewise.
15595         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
15596         module.
15597         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
15598         module.
15599         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15600
15601 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
15602
15603         xnanosleep: Rewrite to use new dtotimespec module.
15604         It has the conversion code that used to be in xnanosleep.
15605         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
15606         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
15607         (TIME_T_MAX): Remove.
15608         (xnanosleep): Rewrite in terms of dtotimespec.
15609         * modules/xnanosleep (Depends-on): Add dtotimespec.
15610         Remove intprops, stdbool.
15611
15612         timespec-add, timespec-sub: new modules
15613         * lib/timespec.h (timespec_add, timespec_sub): New decls.
15614         * lib/timespec-add.c, lib/timespec-sub.c:
15615         * modules/timespec-add, modules/timespec-sub: New files.
15616
15617         dtotimespec: new module
15618         * lib/timespec.h (dtotimespec): New decl.
15619         * lib/dtotimespec.c, modules/dtotimespec: New files.
15620
15621         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
15622
15623         pselect: new module
15624         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
15625         (pselect): New decls.
15626         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
15627         since the standard pselect decl uses 'restrict'.
15628         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
15629         HAVE_PSELECT, REPLACE_PSELECT.
15630         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
15631         HAVE_PSELECT, REPLACE_PSELECT.
15632         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
15633
15634         sys_select: don't depend on sys_socket
15635         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
15636         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
15637         This fix works on GNU and GNU-like platforms, but has not been tested
15638         on native Windows.
15639         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
15640         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
15641         gl_HEADER_SYS_SOCKET.
15642         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
15643         gl_PREREQ_SYS_H_WINSOCK2.
15644
15645 2011-06-29  Eric Blake  <eblake@redhat.com>
15646
15647         pipe2: fix C89 compile problem
15648         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
15649         Reported by Bruno Haible.
15650
15651         pipe, pipe2: don't corrupt fd on error
15652         * lib/pipe.c (pipe): Leave fd unchanged on error.
15653         * lib/pipe2.c (pipe2): Likewise.
15654         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
15655         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
15656
15657 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
15658
15659         mmap-anon: do not use regular expressions inadvertently
15660         * m4/mmap-anon.m4: Remove trailing period from strings sought
15661         in the output.
15662
15663 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
15664
15665         nanosleep: fix integer overflow problem
15666         * lib/nanosleep.c (my_usleep): Don't assume signed integer
15667         arithmetic wraps around on overflow.
15668
15669         nanosleep: simplify carrying
15670         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
15671         first call to the underyling nanosleep, not for the last one.
15672         This doesn't fix any bugs, but it simplifies the computation of
15673         the remaining delay.  Found while auditing integer overflow issues.
15674
15675         dup2: remove test for existence of fcntl
15676         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
15677         "#if HAVE_FCNTL", in the configure-time test program.
15678         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
15679         and therefore speeds up "configure" a bit.  Found while
15680         adding the dup2 module to Emacs.
15681
15682 2011-06-24  Eric Blake  <eblake@redhat.com>
15683
15684         maint.mk: enhance useless header checks
15685         * top/maint.mk (_sc_header_without_use): Check both include
15686         styles.
15687         (sc_prohibit_assert_without_use)
15688         (sc_prohibit_close_stream_without_use)
15689         (sc_prohibit_getopt_without_use)
15690         (sc_prohibit_quotearg_without_use)
15691         (sc_prohibit_quote_without_use)
15692         (sc_prohibit_long_options_without_use)
15693         (sc_prohibit_inttostr_without_use)
15694         (sc_prohibit_ignore_value_without_use)
15695         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
15696         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
15697         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
15698         (sc_prohibit_hash_pjw_without_use)
15699         (sc_prohibit_safe_read_without_use)
15700         (sc_prohibit_argmatch_without_use)
15701         (sc_prohibit_canonicalize_without_use)
15702         (sc_prohibit_root_dev_ino_without_use)
15703         (sc_prohibit_openat_without_use)
15704         (sc_prohibit_c_ctype_without_use)
15705         (sc_prohibit_signal_without_use)
15706         (sc_prohibit_stdio--_without_use)
15707         (sc_prohibit_stdio-safer_without_use)
15708         (sc_prohibit_strings_without_use)
15709         (sc_prohibit_intprops_without_use)
15710         (sc_prohibit_stddef_without_use)
15711         (sc_prohibit_xfreopen_without_use): Update clients.
15712
15713 2011-06-24  Jim Meyering  <meyering@redhat.com>
15714
15715         syntax-check: keep one maint.mk rule in sync with its header
15716         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
15717         of the bug Eric has just fixed, with today's commit 25e4c2ec.
15718         I prefer to avoid temporary files here, so use <(...), but that
15719         is not supported by /bin/sh, so...
15720         (SHELL): Define to /bin/bash.
15721
15722 2011-06-24  Eric Blake  <eblake@redhat.com>
15723
15724         maint.mk: update sc_prohibit_intprops_without_use
15725         * top/maint.mk (_intprops_names): Match recent changes.
15726
15727 2011-06-24  Bruno Haible  <bruno@clisp.org>
15728
15729         strerror-override: No-op tweak.
15730         * lib/strerror-override.h (strerror_override): Reorder conditions,
15731         for consistency with lib/strerror-override.c.
15732
15733 2011-06-23  Eric Blake  <eblake@redhat.com>
15734
15735         maint.mk: test further PATH_MAX issues
15736         * top/maint.mk (sc_prohibit_path_max_array): Rename...
15737         (sc_prohibit_path_max_allocation): ...and also test alloca.
15738         Suggested by Jim Meyering.
15739
15740 2011-06-22  Eric Blake  <eblake@redhat.com>
15741
15742         maint.mk: add syntax-check to avoid char[PATH_MAX]
15743         * top/maint.mk (sc_prohibit_path_max_array): New rule.
15744
15745         stat: be robust to PATH_MAX definition
15746         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
15747         * modules/stat (Depends-on): Add verify.
15748
15749         link: work around IRIX bug
15750         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
15751         * lib/link.c (rpl_link): Work around it.
15752         * tests/test-link.h (test_link): Enhance test.
15753         * doc/posix-functions/link.texi (link): Document the bug.
15754
15755         getopt: silence clang warning
15756         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
15757         dereference.
15758         Reported by Gustavo Martin Domato.
15759
15760 2011-06-22  Jim Meyering  <meyering@redhat.com>
15761
15762         bootstrap: do not insert a blank line into each .gitignore file
15763         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
15764
15765 2011-06-21  Eric Blake  <eblake@redhat.com>
15766
15767         perror: test for output mismatch
15768         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
15769         perror on IRIX.
15770
15771         strerror_r: fix OpenBSD behavior on out-of-range
15772         * lib/strerror_r.c (strerror_r): Always use maximal string.
15773         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
15774
15775         strerror_r: fix OpenBSD behavior on 0
15776         * lib/strerror-override.c (strerror_override): Also override 0
15777         when needed.
15778         * lib/strerror-override.h (strerror_override): Likewise.
15779         * lib/strerror.c (strerror): Simplify, now that 0 override is done
15780         earlier.
15781         * lib/strerror_r.c (strerror_r): Likewise.
15782         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
15783         behavior...
15784         (gl_FUNC_STRERROR_0): ...into new macro.
15785         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
15786         is overridden.
15787         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
15788         * modules/strerror-override (Files): Add strerror.m4.
15789         (configure.ac): Also provide override for 0 when needed.
15790         * doc/posix-functions/strerror.texi (strerror): Document this.
15791         * doc/posix-functions/perror.texi (perror): Likewise.
15792
15793         perror: adjust array size
15794         * modules/perror (Depends-on): Add strerror-override.
15795         * lib/perror.c (perror): Use it to avoid magic number.
15796
15797         strerror-override: reduce size
15798         * lib/strerror-override.c (strerror_override): Use fewer lines.
15799
15800 2011-06-20  Bruno Haible  <bruno@clisp.org>
15801
15802         pathmax: Ensure correct value for PATH_MAX on HP-UX.
15803         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
15804
15805 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
15806
15807         alloca: port to compilers that can optimize like GCC 4.6.0
15808         * lib/alloca.c (find_stack_direction): New signature, taken from
15809         Autoconf git.  This works with GCC 4.6.0.  This code should never
15810         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
15811         be used with other compilers that optimize as well as GCC 4.6.0 does.
15812         (alloca): Adjust to new signature.
15813         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
15814         New macro, which patches Autoconf in a similar way.
15815
15816         c-stack: stop worrying about stack direction
15817         * lib/c-stack.c (find_stack_direction): Remove.
15818         (segv_handler): Don't worry about stack direction growth, as it's
15819         too much of a pain to configure this correctly, given how compilers
15820         are optimizing-away our stack-growth detection code.  Instead, assume
15821         that any access to just before or just after the stack is OK.
15822         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
15823         Don't require AC_FUNC_ALLOCA; no longer needed.
15824
15825 2011-06-20  Eric Blake  <eblake@redhat.com>
15826
15827         test-stat: don't allocate PATH_MAX bytes
15828         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
15829         PATH_MAX-sized buffer.
15830         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
15831         * modules/stat-tests (Depends-on): Likewise.
15832         * tests/test-fstatat.c (includes): Drop pathmax.h.
15833         * tests/test-stat.c (includes): Likewise.
15834         Reported by Bruno Haible.
15835
15836 2011-06-20  Bruno Haible  <bruno@clisp.org>
15837
15838         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
15839         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
15840         * lib/float.c: New file.
15841         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
15842         REPLACE_FLOAT_LDBL.
15843         * modules/float (Files): Add lib/float.c.
15844         (configure.ac): Invoke AC_LIBOBJ.
15845         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
15846
15847 2011-06-20  Bruno Haible  <bruno@clisp.org>
15848
15849         Tests for module 'float'.
15850         * modules/float-tests: New file.
15851         * tests/test-float.c: New file.
15852
15853 2011-06-19  Bruno Haible  <bruno@clisp.org>
15854
15855         isinf: Coding style.
15856         * lib/isinf.c: Use GNU coding style.
15857
15858 2011-06-19  Bruno Haible  <bruno@clisp.org>
15859
15860         linkat test: Avoid test failure on AIX 7.1.
15861         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
15862         * tests/test-link.h (test_link): Likewise.
15863
15864 2011-06-19  Bruno Haible  <bruno@clisp.org>
15865
15866         pread test: Avoid test failure on OpenBSD 4.9.
15867         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
15868
15869 2011-06-19  Bruno Haible  <bruno@clisp.org>
15870
15871         sprintf-posix: Fix test failure on AIX 7.1.
15872         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
15873         * doc/posix-functions/dprintf.texi: Mention limited precision problem
15874         on AIX.
15875         * doc/posix-functions/fprintf.texi: Likewise.
15876         * doc/posix-functions/printf.texi: Likewise.
15877         * doc/posix-functions/snprintf.texi: Likewise.
15878         * doc/posix-functions/sprintf.texi: Likewise.
15879         * doc/posix-functions/vdprintf.texi: Likewise.
15880         * doc/posix-functions/vfprintf.texi: Likewise.
15881         * doc/posix-functions/vprintf.texi: Likewise.
15882         * doc/posix-functions/vsnprintf.texi: Likewise.
15883         * doc/posix-functions/vsprintf.texi: Likewise.
15884
15885 2011-06-19  Bruno Haible  <bruno@clisp.org>
15886
15887         roundl-ieee: Fix test failure on AIX 7.1.
15888         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
15889         * doc/posix-functions/roundl.texi: Mention problem with negative
15890         arguments.
15891
15892 2011-06-19  Bruno Haible  <bruno@clisp.org>
15893
15894         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
15895         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
15896         * doc/posix-functions/round.texi: Mention problem with negative
15897         arguments.
15898         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
15899
15900 2011-06-19  Bruno Haible  <bruno@clisp.org>
15901
15902         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
15903         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
15904         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
15905         * doc/posix-functions/roundf.texi: Mention problem with negative
15906         arguments.
15907         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
15908
15909 2011-06-19  Bruno Haible  <bruno@clisp.org>
15910
15911         ceilf-ieee: Work around bug on MacOS X 10.5.
15912         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
15913
15914         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
15915         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
15916         IEEE compliant, avoid compiler optimizations.
15917         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
15918         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
15919         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
15920         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
15921         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
15922         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
15923         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15924         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
15925         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
15926         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
15927
15928 2011-06-19  Bruno Haible  <bruno@clisp.org>
15929
15930         ceilf-ieee: Work around bug on AIX 7.1.
15931         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
15932         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
15933
15934 2011-06-19  Bruno Haible  <bruno@clisp.org>
15935
15936         ceil-ieee: Work around bug on AIX 7.1.
15937         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
15938         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
15939
15940 2011-06-18  Bruno Haible  <bruno@clisp.org>
15941
15942         fsync test: Avoid test failure on MacOS X and AIX.
15943         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
15944         EINVAL.
15945
15946 2011-06-18  Bruno Haible  <bruno@clisp.org>
15947
15948         openat, fdopendir tests: Fix link errors.
15949         * modules/openat-tests (Depends-on): Add progname.
15950         * modules/fdopendir-tests (Depends-on): Likewise.
15951         * tests/test-fchownat.c: Include progname.h.
15952         (main): Call set_program_name.
15953         * tests/test-fstatat.c: Include progname.h.
15954         (main): Call set_program_name.
15955         * tests/test-mkdirat.c: Include progname.h.
15956         (main): Call set_program_name.
15957         * tests/test-openat.c: Include progname.h.
15958         (main): Call set_program_name.
15959         * tests/test-unlinkat.c: Include progname.h.
15960         (main): Call set_program_name.
15961         * tests/test-fdopendir.c: Include progname.h.
15962         (main): Call set_program_name.
15963
15964 2011-06-18  Bruno Haible  <bruno@clisp.org>
15965
15966         Doc update.
15967         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
15968         HP-UX.
15969         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
15970
15971 2011-06-18  Bruno Haible  <bruno@clisp.org>
15972
15973         getcwd tests: Avoid compilation error on HP-UX 11.31.
15974         * modules/getcwd-tests (Depends-on): Add pathmax.
15975         * tests/test-getcwd.c: Include pathmax.h.
15976
15977 2011-06-18  Bruno Haible  <bruno@clisp.org>
15978
15979         isfinite, isinf: Fix link error on AIX 6 and 7.
15980         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
15981         needed, also test the macro with a 'float' argument.
15982         * m4/isinf.m4 (gl_ISINF): Likewise.
15983
15984 2011-06-18  Bruno Haible  <bruno@clisp.org>
15985
15986         getloadavg: Don't clobber LIBS. Regression from previous commit.
15987         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
15988         AC_CHECK_LIB from here...
15989         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
15990         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
15991         gl_func_getloadavg_done.
15992         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15993
15994 2011-06-18  Bruno Haible  <bruno@clisp.org>
15995
15996         clean-temp: Improve documentation.
15997         * lib/clean-temp.h: Explain better how to use this module.
15998         Reported by John Darrington <john@darrington.wattle.id.au>.
15999
16000 2011-06-17  Bruno Haible  <bruno@clisp.org>
16001
16002         pread, pwrite: Avoid cc warning on AIX.
16003         * lib/unistd.in.h (pread): Undefine before defining as a macro.
16004         (pwrite): Likewise.
16005
16006 2011-06-17  Bruno Haible  <bruno@clisp.org>
16007
16008         spawn-pipe tests: Fix link error.
16009         * tests/test-spawn-pipe-child.c: Undefine fprintf.
16010         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16011
16012 2011-06-17  Bruno Haible  <bruno@clisp.org>
16013
16014         Tests: Remove unnecessary dependency.
16015         * modules/canonicalize-tests (Depends-on): Remove progname.
16016         * modules/chown-tests (Depends-on): Likewise.
16017         * modules/dirname-tests (Depends-on): Likewise.
16018         * modules/fdopendir-tests (Depends-on): Likewise.
16019         * modules/fdutimensat-tests (Depends-on): Likewise.
16020         * modules/hash-tests (Depends-on): Likewise.
16021         * modules/lchown-tests (Depends-on): Likewise.
16022         * modules/linkat-tests (Depends-on): Likewise.
16023         * modules/renameat-tests (Depends-on): Likewise.
16024         * modules/spawn-pipe-tests (Depends-on): Likewise.
16025         * modules/utimensat-tests (Depends-on): Likewise.
16026
16027 2011-06-17  Bruno Haible  <bruno@clisp.org>
16028
16029         spawn-pipe tests: Fix link error.
16030         * tests/test-spawn-pipe-child.c: Undefine fflush.
16031
16032 2011-06-17  Bruno Haible  <bruno@clisp.org>
16033
16034         Fix tests link errors.
16035         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
16036         * modules/chown-tests (Makefile.am): Don't link test-chown with
16037         LIBINTL.
16038         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
16039         LIBINTL.
16040         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
16041         LIBINTL.
16042         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
16043         LIBINTL.
16044
16045 2011-06-16  Bruno Haible  <bruno@clisp.org>
16046
16047         crypto/gc-sha1: Fix recent regression.
16048         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
16049         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
16050
16051         crypto/gc-md5: Fix recent regression.
16052         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
16053
16054         crypto/gc-md4: Fix recent regression.
16055         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
16056         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
16057
16058         crypto/gc-arctwo: Fix recent regression.
16059         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
16060         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
16061
16062         crypto/gc-rijndael: Fix recent regression.
16063         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
16064         (configure.ac): Invoke AC_LIBOBJ here.
16065         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
16066         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16067
16068         crypto/gc-hmac-sha1: Fix recent regression.
16069         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
16070         (configure.ac): Invoke AC_LIBOBJ here.
16071         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
16072         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16073
16074         crypto/gc-hmac-md5: Fix recent regression.
16075         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
16076         (configure.ac): Invoke AC_LIBOBJ here.
16077         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
16078         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16079
16080         crypto/gc-des: Fix recent regression.
16081         * modules/crypto/gc-des (Files): Remove m4/des.m4.
16082         (configure.ac): Invoke AC_LIBOBJ here.
16083         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
16084         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16085
16086         crypto/gc-arcfour: Fix recent regression.
16087         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
16088         (configure.ac): Invoke AC_LIBOBJ here.
16089         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
16090         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16091
16092 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
16093
16094         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
16095         After the 2011-05-21 change, this macro requires
16096         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
16097         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
16098
16099 2011-06-16  Bruno Haible  <bruno@clisp.org>
16100
16101         fprintftime: Move AC_LIBOBJ invocations to module description.
16102         * m4/fprintftime.m4: Remove file.
16103         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
16104         (configure.ac): Remove gl_FPRINTFTIME call.
16105         (Makefile.am): Augment lib_SOURCES.
16106         Reported by Jim Meyering.
16107
16108 2011-06-16  Bruno Haible  <bruno@clisp.org>
16109
16110         tmpfile-safer: Finish 2011-05-23 commit.
16111         * m4/stdio-safer.m4: Really remove file.
16112         Reported by Jim Meyering.
16113
16114 2011-06-16  Bruno Haible  <bruno@clisp.org>
16115
16116         syntax-check: Fix typo.
16117         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
16118         printf-posix.m4.
16119         Reported by Jim Meyering.
16120
16121 2011-06-13  Jim Meyering  <meyering@redhat.com>
16122
16123         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
16124         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
16125
16126 2011-05-23  Bruno Haible  <bruno@clisp.org>
16127
16128         yesno: Move AC_LIBOBJ invocations to module description.
16129         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
16130         * modules/yesno (Makefile.am): Augment lib_SOURCES.
16131
16132 2011-05-23  Bruno Haible  <bruno@clisp.org>
16133
16134         xstrtol: Move AC_LIBOBJ invocations to module description.
16135         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
16136         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
16137
16138 2011-05-23  Bruno Haible  <bruno@clisp.org>
16139
16140         xstrtold: Move AC_LIBOBJ invocations to module description.
16141         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
16142         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
16143
16144 2011-05-23  Bruno Haible  <bruno@clisp.org>
16145
16146         xstrtod: Move AC_LIBOBJ invocations to module description.
16147         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
16148         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
16149
16150 2011-05-23  Bruno Haible  <bruno@clisp.org>
16151
16152         xnanosleep: Move AC_LIBOBJ invocations to module description.
16153         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
16154         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
16155
16156 2011-05-23  Bruno Haible  <bruno@clisp.org>
16157
16158         xgetcwd: Move AC_LIBOBJ invocations to module description.
16159         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
16160         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
16161
16162 2011-05-23  Bruno Haible  <bruno@clisp.org>
16163
16164         xalloc: Move AC_LIBOBJ invocations to module description.
16165         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
16166         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
16167
16168 2011-05-23  Bruno Haible  <bruno@clisp.org>
16169
16170         write-any-file: Move AC_LIBOBJ invocations to module description.
16171         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
16172         invocation.
16173         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
16174
16175 2011-05-23  Bruno Haible  <bruno@clisp.org>
16176
16177         utimens: Move AC_LIBOBJ invocations to module description.
16178         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
16179         * modules/utimens (Makefile.am): Augment lib_SOURCES.
16180
16181 2011-05-23  Bruno Haible  <bruno@clisp.org>
16182
16183         utimecmp: Move AC_LIBOBJ invocations to module description.
16184         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
16185         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
16186
16187 2011-05-23  Bruno Haible  <bruno@clisp.org>
16188
16189         userspec: Move AC_LIBOBJ invocations to module description.
16190         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
16191         * modules/userspec (Makefile.am): Augment lib_SOURCES.
16192
16193 2011-05-23  Bruno Haible  <bruno@clisp.org>
16194
16195         unlinkdir: Move AC_LIBOBJ invocations to module description.
16196         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
16197         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
16198
16199 2011-05-23  Bruno Haible  <bruno@clisp.org>
16200
16201         unistd-safer: Move AC_LIBOBJ invocations to module description.
16202         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
16203         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
16204
16205 2011-05-23  Bruno Haible  <bruno@clisp.org>
16206
16207         tempname: Move AC_LIBOBJ invocations to module description.
16208         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
16209         * modules/tempname (Makefile.am): Augment lib_SOURCES.
16210
16211 2011-05-23  Bruno Haible  <bruno@clisp.org>
16212
16213         strftime: Move AC_LIBOBJ invocations to module description.
16214         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
16215         * modules/strftime (Makefile.am): Augment lib_SOURCES.
16216
16217 2011-05-23  Bruno Haible  <bruno@clisp.org>
16218
16219         stdlib-safer: Move AC_LIBOBJ invocations to module description.
16220         * m4/stdlib-safer.m4: Remove file.
16221         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
16222         (configure.ac): Remove gl_STDLIB_SAFER call.
16223         (Makefile.am): Augment lib_SOURCES.
16224
16225 2011-05-23  Bruno Haible  <bruno@clisp.org>
16226
16227         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
16228         * m4/stdio-safer.m4: Remove file.
16229         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
16230         (configure.ac): Remove gl_TMPFILE_SAFER call.
16231         (Makefile.am): Augment lib_SOURCES.
16232
16233 2011-05-23  Bruno Haible  <bruno@clisp.org>
16234
16235         popen-safer: Move AC_LIBOBJ invocations to module description.
16236         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
16237         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
16238         (configure.ac): Remove gl_POPEN_SAFER call.
16239         (Makefile.am): Augment lib_SOURCES.
16240
16241 2011-05-23  Bruno Haible  <bruno@clisp.org>
16242
16243         freopen-safer: Move AC_LIBOBJ invocations to module description.
16244         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
16245         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
16246         (configure.ac): Remove gl_FREOPEN_SAFER call.
16247         (Makefile.am): Augment lib_SOURCES.
16248
16249 2011-05-23  Bruno Haible  <bruno@clisp.org>
16250
16251         fopen-safer: Move AC_LIBOBJ invocations to module description.
16252         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
16253         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
16254         (configure.ac): Remove gl_FOPEN_SAFER call.
16255         (Makefile.am): Augment lib_SOURCES.
16256
16257 2011-05-23  Bruno Haible  <bruno@clisp.org>
16258
16259         crypto/sha512: Move AC_LIBOBJ invocations to module description.
16260         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
16261         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
16262
16263 2011-05-23  Bruno Haible  <bruno@clisp.org>
16264
16265         crypto/sha256: Move AC_LIBOBJ invocations to module description.
16266         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
16267         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
16268
16269 2011-05-23  Bruno Haible  <bruno@clisp.org>
16270
16271         crypto/sha1: Move AC_LIBOBJ invocations to module description.
16272         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
16273         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
16274
16275 2011-05-23  Bruno Haible  <bruno@clisp.org>
16276
16277         settime: Move AC_LIBOBJ invocations to module description.
16278         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
16279         * modules/settime (Makefile.am): Augment lib_SOURCES.
16280
16281 2011-05-23  Bruno Haible  <bruno@clisp.org>
16282
16283         savedir: Move AC_LIBOBJ invocations to module description.
16284         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
16285         * modules/savedir (Makefile.am): Augment lib_SOURCES.
16286
16287 2011-05-23  Bruno Haible  <bruno@clisp.org>
16288
16289         save-cwd: Move AC_LIBOBJ invocations to module description.
16290         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
16291         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
16292
16293 2011-05-23  Bruno Haible  <bruno@clisp.org>
16294
16295         same: Move AC_LIBOBJ invocations to module description.
16296         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
16297         * modules/same (Makefile.am): Augment lib_SOURCES.
16298
16299 2011-05-23  Bruno Haible  <bruno@clisp.org>
16300
16301         safe-write: Move AC_LIBOBJ invocations to module description.
16302         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
16303         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
16304         instead of gl_SAFE_WRITE.
16305         (Makefile.am): Augment lib_SOURCES.
16306
16307 2011-05-23  Bruno Haible  <bruno@clisp.org>
16308
16309         safe-read: Move AC_LIBOBJ invocations to module description.
16310         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
16311         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
16312         of gl_SAFE_READ.
16313         (Makefile.am): Augment lib_SOURCES.
16314
16315 2011-05-23  Bruno Haible  <bruno@clisp.org>
16316
16317         safe-alloc: Move AC_LIBOBJ invocations to module description.
16318         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
16319         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
16320
16321 2011-05-23  Bruno Haible  <bruno@clisp.org>
16322
16323         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
16324         * m4/rijndael.m4: Remove file.
16325         * modules/crypto/rijndael (Files): Remove it.
16326         (configure.ac): Remove gl_RIJNDAEL call.
16327         (Makefile.am): Augment lib_SOURCES.
16328
16329 2011-05-23  Bruno Haible  <bruno@clisp.org>
16330
16331         readtokens: Move AC_LIBOBJ invocations to module description.
16332         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
16333         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
16334
16335 2011-05-23  Bruno Haible  <bruno@clisp.org>
16336
16337         read-file: Move AC_LIBOBJ invocations to module description.
16338         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
16339         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
16340         of gl_FUNC_READ_FILE.
16341         (Makefile.am): Augment lib_SOURCES.
16342
16343 2011-05-23  Bruno Haible  <bruno@clisp.org>
16344
16345         quotearg: Move AC_LIBOBJ invocations to module description.
16346         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
16347         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
16348
16349 2011-05-23  Bruno Haible  <bruno@clisp.org>
16350
16351         quote: Move AC_LIBOBJ invocations to module description.
16352         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
16353         * modules/quote (Makefile.am): Augment lib_SOURCES.
16354
16355 2011-05-23  Bruno Haible  <bruno@clisp.org>
16356
16357         posixver: Move AC_LIBOBJ invocations to module description.
16358         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
16359         * modules/posixver (Makefile.am): Augment lib_SOURCES.
16360
16361 2011-05-23  Bruno Haible  <bruno@clisp.org>
16362
16363         posixtm: Move AC_LIBOBJ invocations to module description.
16364         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
16365         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
16366
16367 2011-05-23  Bruno Haible  <bruno@clisp.org>
16368
16369         physmem: Move AC_LIBOBJ invocations to module description.
16370         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
16371         * modules/physmem (Makefile.am): Augment lib_SOURCES.
16372
16373 2011-05-23  Bruno Haible  <bruno@clisp.org>
16374
16375         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
16376         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
16377         invocation.
16378         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
16379
16380 2011-05-23  Bruno Haible  <bruno@clisp.org>
16381
16382         mpsort: Move AC_LIBOBJ invocations to module description.
16383         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
16384         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
16385
16386 2011-05-23  Bruno Haible  <bruno@clisp.org>
16387
16388         modechange: Move AC_LIBOBJ invocations to module description.
16389         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
16390         * modules/modechange (Makefile.am): Augment lib_SOURCES.
16391
16392 2011-05-23  Bruno Haible  <bruno@clisp.org>
16393
16394         mkdir-p: Move AC_LIBOBJ invocations to module description.
16395         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
16396         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
16397
16398 2011-05-23  Bruno Haible  <bruno@clisp.org>
16399
16400         mkancesdirs: Move AC_LIBOBJ invocations to module description.
16401         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
16402         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
16403
16404 2011-05-23  Bruno Haible  <bruno@clisp.org>
16405
16406         mgetgroups: Move AC_LIBOBJ invocations to module description.
16407         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
16408         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
16409
16410 2011-05-23  Bruno Haible  <bruno@clisp.org>
16411
16412         memxor: Move AC_LIBOBJ invocations to module description.
16413         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
16414         * modules/memxor (Makefile.am): Augment lib_SOURCES.
16415
16416 2011-05-23  Bruno Haible  <bruno@clisp.org>
16417
16418         memcoll: Move AC_LIBOBJ invocations to module description.
16419         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
16420         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
16421
16422 2011-05-23  Bruno Haible  <bruno@clisp.org>
16423
16424         memcasecmp: Move AC_LIBOBJ invocations to module description.
16425         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
16426         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
16427
16428 2011-05-23  Bruno Haible  <bruno@clisp.org>
16429
16430         crypto/md5: Move AC_LIBOBJ invocations to module description.
16431         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
16432         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
16433
16434 2011-05-23  Bruno Haible  <bruno@clisp.org>
16435
16436         crypto/md4: Move AC_LIBOBJ invocations to module description.
16437         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
16438         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
16439
16440 2011-05-23  Bruno Haible  <bruno@clisp.org>
16441
16442         crypto/md2: Move AC_LIBOBJ invocations to module description.
16443         * m4/md2.m4: Remove file.
16444         * modules/crypto/md2 (Files): Remove it.
16445         (configure.ac): Remove gl_MD2 call.
16446         (Makefile.am): Augment lib_SOURCES.
16447
16448 2011-05-23  Bruno Haible  <bruno@clisp.org>
16449
16450         long-options: Move AC_LIBOBJ invocations to module description.
16451         * m4/long-options.m4: Remove file.
16452         * modules/long-options (Files): Remove it.
16453         (configure.ac): Remove gl_LONG_OPTIONS call.
16454         (Makefile.am): Augment lib_SOURCES.
16455
16456 2011-05-23  Bruno Haible  <bruno@clisp.org>
16457
16458         i-ring: Move AC_LIBOBJ invocations to module description.
16459         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
16460         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
16461
16462 2011-05-23  Bruno Haible  <bruno@clisp.org>
16463
16464         idcache: Move AC_LIBOBJ invocations to module description.
16465         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
16466         * modules/idcache (Makefile.am): Augment lib_SOURCES.
16467
16468 2011-05-23  Bruno Haible  <bruno@clisp.org>
16469
16470         human: Move AC_LIBOBJ invocations to module description.
16471         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
16472         * modules/human (Makefile.am): Augment lib_SOURCES.
16473
16474 2011-05-23  Bruno Haible  <bruno@clisp.org>
16475
16476         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
16477         * m4/hmac-sha1.m4: Remove file.
16478         * modules/crypto/hmac-sha1 (Files): Remove it.
16479         (configure.ac): Remove gl_HMAC_SHA1 call.
16480         (Makefile.am): Augment lib_SOURCES.
16481
16482 2011-05-23  Bruno Haible  <bruno@clisp.org>
16483
16484         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
16485         * m4/hmac-md5.m4: Remove file.
16486         * modules/crypto/hmac-md5 (Files): Remove it.
16487         (configure.ac): Remove gl_HMAC_MD5 call.
16488         (Makefile.am): Augment lib_SOURCES.
16489
16490 2011-05-23  Bruno Haible  <bruno@clisp.org>
16491
16492         hash: Move AC_LIBOBJ invocations to module description.
16493         * m4/hash.m4: Remove file.
16494         * modules/hash (Files): Remove it.
16495         (configure.ac): Remove gl_HASH call.
16496         (Makefile.am): Augment lib_SOURCES.
16497
16498 2011-05-23  Bruno Haible  <bruno@clisp.org>
16499
16500         hard-locale: Move AC_LIBOBJ invocations to module description.
16501         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
16502         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
16503
16504 2011-05-23  Bruno Haible  <bruno@clisp.org>
16505
16506         getugroups: Move AC_LIBOBJ invocations to module description.
16507         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
16508         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
16509
16510 2011-05-23  Bruno Haible  <bruno@clisp.org>
16511
16512         gettime: Move AC_LIBOBJ invocations to module description.
16513         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
16514         * modules/gettime (Makefile.am): Augment lib_SOURCES.
16515
16516 2011-05-23  Bruno Haible  <bruno@clisp.org>
16517
16518         getndelim2: Move AC_LIBOBJ invocations to module description.
16519         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
16520         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
16521
16522 2011-05-23  Bruno Haible  <bruno@clisp.org>
16523
16524         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
16525         * m4/gc-pbkdf2-sha1.m4: Remove file.
16526         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
16527         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
16528         (Makefile.am): Augment lib_SOURCES.
16529
16530 2011-05-23  Bruno Haible  <bruno@clisp.org>
16531
16532         fts: Move AC_LIBOBJ invocations to module description.
16533         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
16534         * modules/fts (configure.ac): ... to here.
16535
16536 2011-05-23  Bruno Haible  <bruno@clisp.org>
16537
16538         file-type: Move AC_LIBOBJ invocations to module description.
16539         * m4/file-type.m4: Remove file.
16540         * modules/file-type (Files): Remove it.
16541         (configure.ac): Remove gl_FILE_TYPE call.
16542         (Makefile.am): Augment lib_SOURCES.
16543
16544 2011-05-23  Bruno Haible  <bruno@clisp.org>
16545
16546         filenamecat*: Respect rules for use of AC_LIBOBJ.
16547         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
16548         Remove AC_LIBOBJ invocation.
16549         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
16550         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
16551
16552 2011-05-23  Bruno Haible  <bruno@clisp.org>
16553
16554         filemode: Move AC_LIBOBJ invocations to module description.
16555         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
16556         * modules/filemode (Makefile.am): Augment lib_SOURCES.
16557
16558 2011-05-23  Bruno Haible  <bruno@clisp.org>
16559
16560         openat-safer: Move AC_LIBOBJ invocations to module description.
16561         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
16562         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
16563
16564 2011-05-23  Bruno Haible  <bruno@clisp.org>
16565
16566         fcntl-safer: Move AC_LIBOBJ invocations to module description.
16567         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
16568         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
16569
16570 2011-05-23  Bruno Haible  <bruno@clisp.org>
16571
16572         exclude: Move AC_LIBOBJ invocations to module description.
16573         * m4/exclude.m4: Remove file.
16574         * modules/exclude (Files): Remove it.
16575         (configure.ac): Remove gl_EXCLUDE call.
16576         (Makefile.am): Augment lib_SOURCES.
16577
16578 2011-05-23  Bruno Haible  <bruno@clisp.org>
16579
16580         dirname*: Respect rules for use of AC_LIBOBJ.
16581         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
16582         invocations.
16583         * modules/dirname (Makefile.am): Augment lib_SOURCES.
16584         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
16585
16586 2011-05-23  Bruno Haible  <bruno@clisp.org>
16587
16588         dirent-safer: Move AC_LIBOBJ invocations to module description.
16589         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
16590         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
16591
16592 2011-05-23  Bruno Haible  <bruno@clisp.org>
16593
16594         crypto/des: Move AC_LIBOBJ invocations to module description.
16595         * m4/des.m4: Remove file.
16596         * modules/crypto/des (Files): Remove it.
16597         (configure.ac): Remove gl_DES call.
16598         (Makefile.am): Augment lib_SOURCES.
16599
16600 2011-05-23  Bruno Haible  <bruno@clisp.org>
16601
16602         cycle-check: Move AC_LIBOBJ invocations to module description.
16603         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
16604         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
16605
16606 2011-05-23  Bruno Haible  <bruno@clisp.org>
16607
16608         c-strtold: Move AC_LIBOBJ invocations to module description.
16609         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
16610         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
16611
16612 2011-05-23  Bruno Haible  <bruno@clisp.org>
16613
16614         c-strtod: Move AC_LIBOBJ invocations to module description.
16615         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
16616         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
16617
16618 2011-05-23  Bruno Haible  <bruno@clisp.org>
16619
16620         crc: Move AC_LIBOBJ invocations to module description.
16621         * m4/crc.m4: Remove file.
16622         * modules/crc (Files): Remove it.
16623         (configure.ac): Remove gl_CRC call.
16624         (Makefile.am): Augment lib_SOURCES.
16625
16626 2011-05-23  Bruno Haible  <bruno@clisp.org>
16627
16628         close-stream: Move AC_LIBOBJ invocations to module description.
16629         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
16630         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
16631
16632 2011-05-23  Bruno Haible  <bruno@clisp.org>
16633
16634         closeout: Move AC_LIBOBJ invocations to module description.
16635         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
16636         * modules/closeout (Makefile.am): Augment lib_SOURCES.
16637
16638 2011-05-23  Bruno Haible  <bruno@clisp.org>
16639
16640         closein: Move AC_LIBOBJ invocations to module description.
16641         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
16642         * modules/closein (Makefile.am): Augment lib_SOURCES.
16643
16644 2011-05-23  Bruno Haible  <bruno@clisp.org>
16645
16646         cloexec: Move AC_LIBOBJ invocations to module description.
16647         * m4/cloexec.m4: Remove file.
16648         * modules/cloexec (Files): Remove it.
16649         (configure.ac): Remove gl_CLOEXEC call.
16650         (Makefile.am): Augment lib_SOURCES.
16651
16652 2011-05-23  Bruno Haible  <bruno@clisp.org>
16653
16654         check-version: Move AC_LIBOBJ invocations to module description.
16655         * m4/check-version.m4: Remove file.
16656         * modules/check-version (Files): Remove it.
16657         (configure.ac): Remove gl_CHECK_VERSION call.
16658         (Makefile.am): Augment lib_SOURCES.
16659
16660 2011-05-23  Bruno Haible  <bruno@clisp.org>
16661
16662         chdir-safer: Move AC_LIBOBJ invocations to module description.
16663         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
16664         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
16665
16666 2011-05-23  Bruno Haible  <bruno@clisp.org>
16667
16668         canonicalize: Move AC_LIBOBJ invocations to module description.
16669         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
16670         AC_LIBOBJ invocation.
16671         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
16672
16673 2011-05-23  Bruno Haible  <bruno@clisp.org>
16674
16675         canon-host: Move AC_LIBOBJ invocations to module description.
16676         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
16677         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
16678         instead of gl_CANON_HOST.
16679         (Makefile.am): Augment lib_SOURCES.
16680
16681 2011-05-23  Bruno Haible  <bruno@clisp.org>
16682
16683         backupfile: Move AC_LIBOBJ invocations to module description.
16684         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
16685         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
16686
16687 2011-05-23  Bruno Haible  <bruno@clisp.org>
16688
16689         argmatch: Move AC_LIBOBJ invocations to module description.
16690         * m4/argmatch.m4: Remove file.
16691         * modules/argmatch (Files): Remove it.
16692         (configure.ac): Remove gl_ARGMATCH call.
16693         (Makefile.am): Augment lib_SOURCES.
16694
16695 2011-05-23  Bruno Haible  <bruno@clisp.org>
16696
16697         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
16698         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
16699         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
16700
16701 2011-05-23  Bruno Haible  <bruno@clisp.org>
16702
16703         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
16704         * m4/arcfour.m4: Remove file.
16705         * modules/crypto/arcfour (Files): Remove it.
16706         (configure.ac): Remove gl_ARCFOUR call.
16707         (Makefile.am): Augment lib_SOURCES.
16708
16709 2011-05-22  Bruno Haible  <bruno@clisp.org>
16710
16711         write: Move AC_LIBOBJ invocations to module description.
16712         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
16713         * modules/write (configure.ac): ... to here.
16714
16715 2011-05-22  Bruno Haible  <bruno@clisp.org>
16716
16717         wmemset: Move AC_LIBOBJ invocations to module description.
16718         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
16719         here...
16720         * modules/wmemset (configure.ac): ... to here.
16721
16722 2011-05-22  Bruno Haible  <bruno@clisp.org>
16723
16724         wmemmove: Move AC_LIBOBJ invocations to module description.
16725         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
16726         here...
16727         * modules/wmemmove (configure.ac): ... to here.
16728
16729 2011-05-22  Bruno Haible  <bruno@clisp.org>
16730
16731         wmemcpy: Move AC_LIBOBJ invocations to module description.
16732         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
16733         here...
16734         * modules/wmemcpy (configure.ac): ... to here.
16735
16736 2011-05-22  Bruno Haible  <bruno@clisp.org>
16737
16738         wmemcmp: Move AC_LIBOBJ invocations to module description.
16739         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
16740         here...
16741         * modules/wmemcmp (configure.ac): ... to here.
16742
16743 2011-05-22  Bruno Haible  <bruno@clisp.org>
16744
16745         wmemchr: Move AC_LIBOBJ invocations to module description.
16746         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
16747         here...
16748         * modules/wmemchr (configure.ac): ... to here.
16749
16750 2011-05-22  Bruno Haible  <bruno@clisp.org>
16751
16752         wcswidth: Move AC_LIBOBJ invocations to module description.
16753         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
16754         here...
16755         * modules/wcswidth (configure.ac): ... to here.
16756
16757 2011-05-22  Bruno Haible  <bruno@clisp.org>
16758
16759         wcwidth: Respect rules for use of AC_LIBOBJ.
16760         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
16761         invocation from here...
16762         * modules/wcwidth (configure.ac): ... to here.
16763         (Depends-on): Update conditions.
16764
16765 2011-05-22  Bruno Haible  <bruno@clisp.org>
16766
16767         wctype: Move AC_LIBOBJ invocations to module description.
16768         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
16769         invocation from here...
16770         * modules/wctype (configure.ac): ... to here.
16771         (Depends-on): Update conditions.
16772
16773 2011-05-22  Bruno Haible  <bruno@clisp.org>
16774
16775         wctrans: Move AC_LIBOBJ invocations to module description.
16776         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
16777         invocation from here...
16778         * modules/wctrans (configure.ac): ... to here.
16779
16780 2011-05-22  Bruno Haible  <bruno@clisp.org>
16781
16782         wctomb: Move AC_LIBOBJ invocations to module description.
16783         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
16784         invocations from here...
16785         * modules/wctomb (configure.ac): ... to here.
16786
16787 2011-05-22  Bruno Haible  <bruno@clisp.org>
16788
16789         wctob: Move AC_LIBOBJ invocations to module description.
16790         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
16791         gl_PREREQ_WCTOB invocations from here...
16792         * modules/wctob (configure.ac): ... to here.
16793         (Depends-on): Update conditions.
16794
16795 2011-05-22  Bruno Haible  <bruno@clisp.org>
16796
16797         wcsxfrm: Move AC_LIBOBJ invocations to module description.
16798         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
16799         here...
16800         * modules/wcsxfrm (configure.ac): ... to here.
16801
16802 2011-05-22  Bruno Haible  <bruno@clisp.org>
16803
16804         wcstok: Move AC_LIBOBJ invocations to module description.
16805         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
16806         * modules/wcstok (configure.ac): ... to here.
16807
16808 2011-05-22  Bruno Haible  <bruno@clisp.org>
16809
16810         wcsstr: Move AC_LIBOBJ invocations to module description.
16811         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
16812         * modules/wcsstr (configure.ac): ... to here.
16813
16814 2011-05-22  Bruno Haible  <bruno@clisp.org>
16815
16816         wcsspn: Move AC_LIBOBJ invocations to module description.
16817         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
16818         * modules/wcsspn (configure.ac): ... to here.
16819
16820 2011-05-22  Bruno Haible  <bruno@clisp.org>
16821
16822         wcsrtombs: Move AC_LIBOBJ invocations to module description.
16823         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
16824         gl_PREREQ_WCSRTOMBS invocations from here...
16825         * modules/wcsrtombs (configure.ac): ... to here.
16826
16827 2011-05-22  Bruno Haible  <bruno@clisp.org>
16828
16829         wcsrchr: Move AC_LIBOBJ invocations to module description.
16830         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
16831         here...
16832         * modules/wcsrchr (configure.ac): ... to here.
16833
16834 2011-05-22  Bruno Haible  <bruno@clisp.org>
16835
16836         wcspbrk: Move AC_LIBOBJ invocations to module description.
16837         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
16838         here...
16839         * modules/wcspbrk (configure.ac): ... to here.
16840
16841 2011-05-22  Bruno Haible  <bruno@clisp.org>
16842
16843         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
16844         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
16845         gl_PREREQ_WCSNRTOMBS invocations from here...
16846         * modules/wcsnrtombs (configure.ac): ... to here.
16847
16848 2011-05-22  Bruno Haible  <bruno@clisp.org>
16849
16850         wcsnlen: Move AC_LIBOBJ invocations to module description.
16851         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
16852         here...
16853         * modules/wcsnlen (configure.ac): ... to here.
16854
16855 2011-05-22  Bruno Haible  <bruno@clisp.org>
16856
16857         wcsncpy: Move AC_LIBOBJ invocations to module description.
16858         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
16859         here...
16860         * modules/wcsncpy (configure.ac): ... to here.
16861
16862 2011-05-22  Bruno Haible  <bruno@clisp.org>
16863
16864         wcsncmp: Move AC_LIBOBJ invocations to module description.
16865         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
16866         here...
16867         * modules/wcsncmp (configure.ac): ... to here.
16868
16869 2011-05-22  Bruno Haible  <bruno@clisp.org>
16870
16871         wcsncat: Move AC_LIBOBJ invocations to module description.
16872         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
16873         here...
16874         * modules/wcsncat (configure.ac): ... to here.
16875
16876 2011-05-22  Bruno Haible  <bruno@clisp.org>
16877
16878         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
16879         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
16880         from here...
16881         * modules/wcsncasecmp (configure.ac): ... to here.
16882
16883 2011-05-22  Bruno Haible  <bruno@clisp.org>
16884
16885         wcslen: Move AC_LIBOBJ invocations to module description.
16886         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
16887         * modules/wcslen (configure.ac): ... to here.
16888
16889 2011-05-22  Bruno Haible  <bruno@clisp.org>
16890
16891         wcsdup: Move AC_LIBOBJ invocations to module description.
16892         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
16893         * modules/wcsdup (configure.ac): ... to here.
16894
16895 2011-05-22  Bruno Haible  <bruno@clisp.org>
16896
16897         wcscspn: Move AC_LIBOBJ invocations to module description.
16898         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
16899         here...
16900         * modules/wcscspn (configure.ac): ... to here.
16901
16902 2011-05-22  Bruno Haible  <bruno@clisp.org>
16903
16904         wcscpy: Move AC_LIBOBJ invocations to module description.
16905         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
16906         * modules/wcscpy (configure.ac): ... to here.
16907
16908 2011-05-22  Bruno Haible  <bruno@clisp.org>
16909
16910         wcscoll: Move AC_LIBOBJ invocations to module description.
16911         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
16912         here...
16913         * modules/wcscoll (configure.ac): ... to here.
16914
16915 2011-05-22  Bruno Haible  <bruno@clisp.org>
16916
16917         wcscmp: Move AC_LIBOBJ invocations to module description.
16918         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
16919         * modules/wcscmp (configure.ac): ... to here.
16920
16921 2011-05-22  Bruno Haible  <bruno@clisp.org>
16922
16923         wcschr: Move AC_LIBOBJ invocations to module description.
16924         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
16925         * modules/wcschr (configure.ac): ... to here.
16926
16927 2011-05-22  Bruno Haible  <bruno@clisp.org>
16928
16929         wcscat: Move AC_LIBOBJ invocations to module description.
16930         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
16931         * modules/wcscat (configure.ac): ... to here.
16932
16933 2011-05-22  Bruno Haible  <bruno@clisp.org>
16934
16935         wcscasecmp: Move AC_LIBOBJ invocations to module description.
16936         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
16937         here...
16938         * modules/wcscasecmp (configure.ac): ... to here.
16939
16940 2011-05-22  Bruno Haible  <bruno@clisp.org>
16941
16942         wcrtomb: Move AC_LIBOBJ invocations to module description.
16943         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
16944         invocations from here...
16945         * modules/wcrtomb (configure.ac): ... to here.
16946
16947 2011-05-22  Bruno Haible  <bruno@clisp.org>
16948
16949         wcpncpy: Move AC_LIBOBJ invocations to module description.
16950         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
16951         here...
16952         * modules/wcpncpy (configure.ac): ... to here.
16953
16954 2011-05-22  Bruno Haible  <bruno@clisp.org>
16955
16956         wcpcpy: Move AC_LIBOBJ invocations to module description.
16957         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
16958         * modules/wcpcpy (configure.ac): ... to here.
16959
16960 2011-05-22  Bruno Haible  <bruno@clisp.org>
16961
16962         waitpid: Move AC_LIBOBJ invocations to module description.
16963         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
16964         invocation from here...
16965         * modules/waitpid (configure.ac): ... to here.
16966
16967 2011-05-22  Bruno Haible  <bruno@clisp.org>
16968
16969         utimensat: Move AC_LIBOBJ invocations to module description.
16970         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
16971         here...
16972         * modules/utimensat (configure.ac): ... to here.
16973
16974 2011-05-22  Bruno Haible  <bruno@clisp.org>
16975
16976         usleep: Move AC_LIBOBJ invocations to module description.
16977         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
16978         here...
16979         * modules/usleep (configure.ac): ... to here.
16980
16981 2011-05-22  Bruno Haible  <bruno@clisp.org>
16982
16983         unlockpt: Move AC_LIBOBJ invocations to module description.
16984         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
16985         gl_PREREQ_UNLOCKPT invocations from here...
16986         * modules/unlockpt (configure.ac): ... to here.
16987
16988 2011-05-22  Bruno Haible  <bruno@clisp.org>
16989
16990         unlink: Respect rules for use of AC_LIBOBJ.
16991         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
16992         * modules/unlink (configure.ac): ... to here.
16993
16994 2011-05-22  Bruno Haible  <bruno@clisp.org>
16995
16996         uname: Move AC_LIBOBJ invocations to module description.
16997         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
16998         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
16999         here...
17000         * modules/uname (configure.ac): ... to here.
17001
17002 2011-05-22  Bruno Haible  <bruno@clisp.org>
17003
17004         ttyname_r: Move AC_LIBOBJ invocations to module description.
17005         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
17006         gl_PREREQ_TTYNAME_R invocations from here...
17007         * modules/ttyname_r (configure.ac): ... to here.
17008
17009 2011-05-22  Bruno Haible  <bruno@clisp.org>
17010
17011         tsearch: Move AC_LIBOBJ invocations to module description.
17012         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
17013         invocations from here...
17014         * modules/tsearch (configure.ac): ... to here.
17015
17016 2011-05-22  Bruno Haible  <bruno@clisp.org>
17017
17018         towctrans: Move AC_LIBOBJ invocations to module description.
17019         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
17020         AC_LIBOBJ invocation from here...
17021         * modules/towctrans (configure.ac): ... to here.
17022
17023 2011-05-22  Bruno Haible  <bruno@clisp.org>
17024
17025         tmpfile: Move AC_LIBOBJ invocations to module description.
17026         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
17027         invocations from here...
17028         * modules/tmpfile (configure.ac): ... to here.
17029
17030 2011-05-22  Bruno Haible  <bruno@clisp.org>
17031
17032         times: Move AC_LIBOBJ invocations to module description.
17033         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
17034         * modules/times (configure.ac): ... to here.
17035
17036 2011-05-22  Bruno Haible  <bruno@clisp.org>
17037
17038         time_r: Move AC_LIBOBJ invocations to module description.
17039         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
17040         invocations from here...
17041         * modules/time_r (configure.ac): ... to here.
17042
17043 2011-05-22  Bruno Haible  <bruno@clisp.org>
17044
17045         timegm: Move AC_LIBOBJ invocations to module description.
17046         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
17047         invocations from here...
17048         * modules/timegm (configure.ac): ... to here.
17049
17050 2011-05-22  Bruno Haible  <bruno@clisp.org>
17051
17052         tcgetsid: Move AC_LIBOBJ invocations to module description.
17053         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
17054         and gl_PREREQ_TCGETSID invocations from here...
17055         * modules/tcgetsid (configure.ac): ... to here.
17056         (Depends-on): Update conditions.
17057
17058 2011-05-22  Bruno Haible  <bruno@clisp.org>
17059
17060         symlinkat: Move AC_LIBOBJ invocations to module description.
17061         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
17062         here...
17063         * modules/symlinkat (configure.ac): ... to here.
17064
17065 2011-05-22  Bruno Haible  <bruno@clisp.org>
17066
17067         symlink: Move AC_LIBOBJ invocations to module description.
17068         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
17069         here...
17070         * modules/symlink (configure.ac): ... to here.
17071
17072 2011-05-22  Bruno Haible  <bruno@clisp.org>
17073
17074         strverscmp: Move AC_LIBOBJ invocations to module description.
17075         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
17076         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
17077         from here...
17078         * modules/strverscmp (configure.ac): ... to here.
17079
17080 2011-05-22  Bruno Haible  <bruno@clisp.org>
17081
17082         strtok_r: Move AC_LIBOBJ invocations to module description.
17083         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
17084         and gl_PREREQ_STRTOK_R invocations from here...
17085         * modules/strtok_r (configure.ac): ... to here.
17086         (Depends-on): Update conditions.
17087
17088 2011-05-22  Bruno Haible  <bruno@clisp.org>
17089
17090         strtoumax: Move AC_LIBOBJ invocations to module description.
17091         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
17092         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
17093         from here...
17094         * modules/strtoumax (configure.ac): ... to here.
17095
17096 2011-05-22  Bruno Haible  <bruno@clisp.org>
17097
17098         strtoimax: Move AC_LIBOBJ invocations to module description.
17099         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
17100         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
17101         from here...
17102         * modules/strtoimax (configure.ac): ... to here.
17103
17104 2011-05-22  Bruno Haible  <bruno@clisp.org>
17105
17106         strtoull: Move AC_LIBOBJ invocations to module description.
17107         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
17108         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
17109         from here...
17110         * modules/strtoull (configure.ac): ... to here.
17111
17112 2011-05-22  Bruno Haible  <bruno@clisp.org>
17113
17114         strtoll: Move AC_LIBOBJ invocations to module description.
17115         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
17116         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
17117         here...
17118         * modules/strtoll (configure.ac): ... to here.
17119
17120 2011-05-22  Bruno Haible  <bruno@clisp.org>
17121
17122         strtoul: Move AC_LIBOBJ invocations to module description.
17123         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
17124         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
17125         * modules/strtoul (configure.ac): ... to here.
17126
17127 2011-05-22  Bruno Haible  <bruno@clisp.org>
17128
17129         strtol: Move AC_LIBOBJ invocations to module description.
17130         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
17131         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
17132         * modules/strtol (configure.ac): ... to here.
17133
17134 2011-05-22  Bruno Haible  <bruno@clisp.org>
17135
17136         strtod: Move AC_LIBOBJ invocations to module description.
17137         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
17138         invocations from here...
17139         * modules/strtod (configure.ac): ... to here.
17140
17141 2011-05-22  Bruno Haible  <bruno@clisp.org>
17142
17143         strstr*: Move AC_LIBOBJ invocations to module description.
17144         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
17145         invocations from here...
17146         * modules/strstr-simple (configure.ac): ... to here.
17147         * modules/strstr (configure.ac): ... and here.
17148
17149 2011-05-22  Bruno Haible  <bruno@clisp.org>
17150
17151         strsignal: Move AC_LIBOBJ invocations to module description.
17152         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
17153         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
17154         * modules/strsignal (configure.ac): ... to here.
17155         (Depends-on): Update conditions.
17156
17157 2011-05-22  Bruno Haible  <bruno@clisp.org>
17158
17159         strsep: Move AC_LIBOBJ invocations to module description.
17160         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
17161         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
17162         here...
17163         * modules/strsep (configure.ac): ... to here.
17164
17165 2011-05-22  Bruno Haible  <bruno@clisp.org>
17166
17167         strptime: Move AC_LIBOBJ invocations to module description.
17168         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
17169         gl_PREREQ_STRPTIME invocations from here...
17170         * modules/strptime (configure.ac): ... to here.
17171
17172 2011-05-22  Bruno Haible  <bruno@clisp.org>
17173
17174         strpbrk: Move AC_LIBOBJ invocations to module description.
17175         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
17176         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
17177         here...
17178         * modules/strpbrk (configure.ac): ... to here.
17179
17180 2011-05-22  Bruno Haible  <bruno@clisp.org>
17181
17182         strnlen: Move AC_LIBOBJ invocations to module description.
17183         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
17184         invocations from here...
17185         * modules/strnlen (configure.ac): ... to here.
17186
17187 2011-05-22  Bruno Haible  <bruno@clisp.org>
17188
17189         strndup: Move AC_LIBOBJ invocations to module description.
17190         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
17191         invocations from here...
17192         * modules/strndup (configure.ac): ... to here.
17193         (Depends-on): Update conditions.
17194
17195 2011-05-22  Bruno Haible  <bruno@clisp.org>
17196
17197         strncat: Move AC_LIBOBJ invocations to module description.
17198         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
17199         invocations from here...
17200         * modules/strncat (configure.ac): ... to here.
17201
17202 2011-05-22  Bruno Haible  <bruno@clisp.org>
17203
17204         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
17205         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
17206         invocations from here...
17207         * modules/strdup (configure.ac): ... to here.
17208         * modules/strdup-posix (configure.ac): ... and here.
17209
17210 2011-05-22  Bruno Haible  <bruno@clisp.org>
17211
17212         strcspn: Move AC_LIBOBJ invocations to module description.
17213         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
17214         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
17215         here...
17216         * modules/strcspn (configure.ac): ... to here.
17217
17218 2011-05-22  Bruno Haible  <bruno@clisp.org>
17219
17220         strchrnul: Move AC_LIBOBJ invocations to module description.
17221         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
17222         gl_PREREQ_STRCHRNUL invocations from here...
17223         * modules/strchrnul (configure.ac): ... to here.
17224
17225 2011-05-22  Bruno Haible  <bruno@clisp.org>
17226
17227         strcasestr*: Move AC_LIBOBJ invocations to module description.
17228         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
17229         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
17230         * modules/strcasestr-simple (configure.ac): ... to here.
17231         * modules/strcasestr (configure.ac): ... and here.
17232
17233 2011-05-22  Bruno Haible  <bruno@clisp.org>
17234
17235         strcase: Move AC_LIBOBJ invocations to module description.
17236         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
17237         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
17238         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
17239         gl_PREREQ_STRNCASECMP invocations from here...
17240         * modules/strcase (configure.ac): ... to here.
17241
17242 2011-05-22  Bruno Haible  <bruno@clisp.org>
17243
17244         stpncpy: Move AC_LIBOBJ invocations to module description.
17245         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
17246         here...
17247         * modules/stpncpy (configure.ac): ... to here.
17248
17249 2011-05-22  Bruno Haible  <bruno@clisp.org>
17250
17251         stpcpy: Move AC_LIBOBJ invocations to module description.
17252         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
17253         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
17254         here...
17255         * modules/stpcpy (configure.ac): ... to here.
17256
17257 2011-05-21  Bruno Haible  <bruno@clisp.org>
17258
17259         stat: Move AC_LIBOBJ invocations to module description.
17260         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
17261         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
17262         here...
17263         * modules/stat (configure.ac): ... to here.
17264
17265 2011-05-21  Bruno Haible  <bruno@clisp.org>
17266
17267         sleep: Move AC_LIBOBJ invocations to module description.
17268         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
17269         * modules/sleep (configure.ac): ... to here.
17270
17271 2011-05-21  Bruno Haible  <bruno@clisp.org>
17272
17273         signbit: Move AC_LIBOBJ invocations to module description.
17274         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
17275         * modules/signbit (configure.ac): ... to here.
17276
17277 2011-05-21  Bruno Haible  <bruno@clisp.org>
17278
17279         sigprocmask: Move AC_LIBOBJ invocations to module description.
17280         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
17281         gl_PREREQ_SIGPROMASK invocations from here...
17282         * modules/sigprocmask (configure.ac): ... to here.
17283
17284 2011-05-21  Bruno Haible  <bruno@clisp.org>
17285
17286         sigaction: Move AC_LIBOBJ invocations to module description.
17287         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
17288         gl_PREREQ_SIGACTION invocations from here...
17289         * modules/sigaction (configure.ac): ... to here.
17290
17291 2011-05-21  Bruno Haible  <bruno@clisp.org>
17292
17293         sig2str: Move AC_LIBOBJ invocations to module description.
17294         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
17295         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
17296         here...
17297         * modules/sig2str (configure.ac): ... to here.
17298
17299 2011-05-21  Bruno Haible  <bruno@clisp.org>
17300
17301         setlocale: Move AC_LIBOBJ invocations to module description.
17302         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
17303         gl_PREREQ_SETLOCALE invocations from here...
17304         * modules/setlocale (configure.ac): ... to here.
17305
17306 2011-05-21  Bruno Haible  <bruno@clisp.org>
17307
17308         unsetenv: Move AC_LIBOBJ invocations to module description.
17309         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
17310         and gl_PREREQ_UNSETENV invocations from here...
17311         * modules/unsetenv (configure.ac): ... to here.
17312         (Depends-on): Update.
17313
17314 2011-05-21  Bruno Haible  <bruno@clisp.org>
17315
17316         setenv: Move AC_LIBOBJ invocations to module description.
17317         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
17318         here...
17319         * modules/setenv (configure.ac): ... to here.
17320
17321 2011-05-21  Bruno Haible  <bruno@clisp.org>
17322
17323         selinux-h: Move AC_LIBOBJ invocations to module description.
17324         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
17325         AC_LIBOBJ invocation from here...
17326         * modules/selinux-h (configure.ac): ... to here.
17327
17328 2011-05-21  Bruno Haible  <bruno@clisp.org>
17329
17330         select: Respect rules for use of AC_LIBOBJ.
17331         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
17332         here...
17333         * modules/select (configure.ac): ... to here.
17334
17335 2011-05-21  Bruno Haible  <bruno@clisp.org>
17336
17337         scandir: Move AC_LIBOBJ invocations to module description.
17338         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
17339         invocations from here...
17340         * modules/scandir (configure.ac): ... to here.
17341
17342 2011-05-21  Bruno Haible  <bruno@clisp.org>
17343
17344         rpmatch: Move AC_LIBOBJ invocations to module description.
17345         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
17346         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
17347         here...
17348         * modules/rpmatch (configure.ac): ... to here.
17349
17350 2011-05-21  Bruno Haible  <bruno@clisp.org>
17351
17352         rmdir: Respect rules for use of AC_LIBOBJ.
17353         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
17354         * modules/rmdir (configure.ac): ... to here.
17355
17356 2011-05-21  Bruno Haible  <bruno@clisp.org>
17357
17358         renameat: Move AC_LIBOBJ invocations to module description.
17359         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
17360         here...
17361         * modules/renameat (configure.ac): ... to here.
17362
17363 2011-05-21  Bruno Haible  <bruno@clisp.org>
17364
17365         rename: Respect rules for use of AC_LIBOBJ.
17366         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
17367         here...
17368         * modules/rename (configure.ac): ... to here.
17369
17370 2011-05-21  Bruno Haible  <bruno@clisp.org>
17371
17372         remove: Move AC_LIBOBJ invocations to module description.
17373         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
17374         here...
17375         * modules/remove (configure.ac): ... to here.
17376
17377 2011-05-21  Bruno Haible  <bruno@clisp.org>
17378
17379         relocatable-lib: Move AC_LIBOBJ invocations to module description.
17380         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
17381         macro.
17382         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
17383         * modules/relocatable-lib (configure.ac): ... to here.
17384         * modules/relocatable-prog-wrapper (configure.ac): Invoke
17385         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
17386
17387 2011-05-21  Bruno Haible  <bruno@clisp.org>
17388
17389         relocatable-prog: Move AC_LIBOBJ invocations to module description.
17390         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
17391         here...
17392         * modules/relocatable-prog (configure.ac): ... to here.
17393
17394 2011-05-21  Bruno Haible  <bruno@clisp.org>
17395
17396         regex: Move AC_LIBOBJ invocations to module description.
17397         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
17398         invocations from here...
17399         * modules/regex (configure.ac): ... to here.
17400
17401 2011-05-21  Bruno Haible  <bruno@clisp.org>
17402
17403         realloc-*: Move AC_LIBOBJ invocations to module description.
17404         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
17405         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
17406         AC_LIBOBJ invocations from here...
17407         * modules/realloc-gnu (configure.ac): ... to here.
17408         * modules/realloc-posix (configure.ac): ... and here.
17409
17410 2011-05-21  Bruno Haible  <bruno@clisp.org>
17411
17412         readutmp: Move AC_LIBOBJ invocations to module description.
17413         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
17414         * modules/readutmp (configure.ac): ... to here.
17415
17416 2011-05-21  Bruno Haible  <bruno@clisp.org>
17417
17418         readlinkat: Move AC_LIBOBJ invocations to module description.
17419         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
17420         here...
17421         * modules/readlinkat (configure.ac): ... to here.
17422
17423 2011-05-21  Bruno Haible  <bruno@clisp.org>
17424
17425         readlink: Move AC_LIBOBJ invocations to module description.
17426         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
17427         gl_PREREQ_READLINK invocations from here...
17428         * modules/readlink (configure.ac): ... to here.
17429
17430 2011-05-21  Bruno Haible  <bruno@clisp.org>
17431
17432         readline: Move AC_LIBOBJ invocations to module description.
17433         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
17434         gl_PREREQ_READLINE invocations from here...
17435         * modules/readline (configure.ac): ... to here.
17436
17437 2011-05-21  Bruno Haible  <bruno@clisp.org>
17438
17439         read: Move AC_LIBOBJ invocations to module description.
17440         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
17441         * modules/read (configure.ac): ... to here.
17442
17443 2011-05-21  Bruno Haible  <bruno@clisp.org>
17444
17445         rawmemchr: Move AC_LIBOBJ invocations to module description.
17446         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
17447         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
17448         from here...
17449         * modules/rawmemchr (configure.ac): ... to here.
17450
17451 2011-05-21  Bruno Haible  <bruno@clisp.org>
17452
17453         random_r: Move AC_LIBOBJ invocations to module description.
17454         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
17455         gl_PREREQ_RANDOM_R invocations from here...
17456         * modules/random_r (configure.ac): ... to here.
17457
17458 2011-05-21  Bruno Haible  <bruno@clisp.org>
17459
17460         pwrite: Move AC_LIBOBJ invocations to module description.
17461         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
17462         * modules/pwrite (configure.ac): ... to here.
17463
17464 2011-05-21  Bruno Haible  <bruno@clisp.org>
17465
17466         putenv: Move AC_LIBOBJ invocations to module description.
17467         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
17468         * modules/putenv (configure.ac): ... to here.
17469
17470 2011-05-21  Bruno Haible  <bruno@clisp.org>
17471
17472         login_tty: Move AC_LIBOBJ invocations to module description.
17473         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
17474         * modules/login_tty (configure.ac): ... to here.
17475
17476 2011-05-21  Bruno Haible  <bruno@clisp.org>
17477
17478         openpty: Move AC_LIBOBJ invocations to module description.
17479         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
17480         * modules/openpty (configure.ac): ... to here.
17481
17482 2011-05-21  Bruno Haible  <bruno@clisp.org>
17483
17484         forkpty: Move AC_LIBOBJ invocations to module description.
17485         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
17486         * modules/forkpty (configure.ac): ... to here.
17487
17488 2011-05-21  Bruno Haible  <bruno@clisp.org>
17489
17490         ptsname: Move AC_LIBOBJ invocations to module description.
17491         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
17492         invocations from here...
17493         * modules/ptsname (configure.ac): ... to here.
17494
17495 2011-05-21  Bruno Haible  <bruno@clisp.org>
17496
17497         pread: Move AC_LIBOBJ invocations to module description.
17498         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
17499         * modules/pread (configure.ac): ... to here.
17500
17501 2011-05-21  Bruno Haible  <bruno@clisp.org>
17502
17503         posix_spawn*: Move AC_LIBOBJ invocations to module description.
17504         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
17505         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
17506         * modules/posix_spawn (configure.ac): ... to here.
17507         * modules/posix_spawnp (configure.ac): ... and here.
17508
17509 2011-05-21  Bruno Haible  <bruno@clisp.org>
17510
17511         popen: Move AC_LIBOBJ invocations to module description.
17512         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
17513         invocations from here...
17514         * modules/popen (configure.ac): ... to here.
17515
17516 2011-05-21  Bruno Haible  <bruno@clisp.org>
17517
17518         poll: Move AC_LIBOBJ invocations to module description.
17519         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
17520         invocations from here...
17521         * modules/poll (configure.ac): ... to here.
17522
17523 2011-05-21  Bruno Haible  <bruno@clisp.org>
17524
17525         pipe-posix: Move AC_LIBOBJ invocations to module description.
17526         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
17527         * modules/pipe-posix (configure.ac): ... to here.
17528
17529 2011-05-21  Bruno Haible  <bruno@clisp.org>
17530
17531         openat: Respect rules for use of AC_LIBOBJ.
17532         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
17533         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
17534         * modules/openat (configure.ac): ... to here.
17535
17536 2011-05-21  Bruno Haible  <bruno@clisp.org>
17537
17538         obstack-printf*: Move AC_LIBOBJ invocations to module description.
17539         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
17540         invocation from here...
17541         * modules/obstack-printf (configure.ac): ... to here.
17542         * modules/obstack-printf-posix (configure.ac): ... and here.
17543
17544 2011-05-21  Bruno Haible  <bruno@clisp.org>
17545
17546         nl_langinfo: Move AC_LIBOBJ invocations to module description.
17547         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
17548         from here...
17549         * modules/nl_langinfo (configure.ac): ... to here.
17550
17551 2011-05-21  Bruno Haible  <bruno@clisp.org>
17552
17553         nanosleep: Move AC_LIBOBJ invocations to module description.
17554         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
17555         gl_PREREQ_NANOSLEEP invocations from here...
17556         * modules/nanosleep (configure.ac): ... to here.
17557
17558 2011-05-21  Bruno Haible  <bruno@clisp.org>
17559
17560         mountlist: Move AC_LIBOBJ invocations to module description.
17561         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
17562         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
17563         * modules/mountlist (configure.ac): ... to here.
17564
17565 2011-05-21  Bruno Haible  <bruno@clisp.org>
17566
17567         mktime: Respect rules for use of AC_LIBOBJ.
17568         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
17569         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
17570         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
17571         (gl_FUNC_MKTIME_INTERNAL): ... and here...
17572         * modules/mktime (configure.ac): ... to here.
17573         * modules/mktime-internal (configure.ac): ... and here.
17574         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
17575
17576 2011-05-21  Bruno Haible  <bruno@clisp.org>
17577
17578         mkstemps: Move AC_LIBOBJ invocations to module description.
17579         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
17580         here...
17581         * modules/mkstemps (configure.ac): ... to here.
17582
17583 2011-05-21  Bruno Haible  <bruno@clisp.org>
17584
17585         mkstemp: Move AC_LIBOBJ invocations to module description.
17586         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
17587         gl_PREREQ_MKSTEMP invocations from here...
17588         * modules/mkstemp (configure.ac): ... to here.
17589
17590 2011-05-21  Bruno Haible  <bruno@clisp.org>
17591
17592         mkostemps: Move AC_LIBOBJ invocations to module description.
17593         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
17594         here...
17595         * modules/mkostemps (configure.ac): ... to here.
17596
17597 2011-05-21  Bruno Haible  <bruno@clisp.org>
17598
17599         mkostemp: Move AC_LIBOBJ invocations to module description.
17600         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
17601         gl_PREREQ_MKOSTEMP invocations from here...
17602         * modules/mkostemp (configure.ac): ... to here.
17603
17604 2011-05-21  Bruno Haible  <bruno@clisp.org>
17605
17606         mknod: Move AC_LIBOBJ invocations to module description.
17607         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
17608         * modules/mknod (configure.ac): ... to here.
17609
17610 2011-05-21  Bruno Haible  <bruno@clisp.org>
17611
17612         mkfifoat: Move AC_LIBOBJ invocations to module description.
17613         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
17614         here...
17615         * modules/mkfifoat (configure.ac): ... to here.
17616
17617 2011-05-21  Bruno Haible  <bruno@clisp.org>
17618
17619         mkfifo: Respect rules for use of AC_LIBOBJ.
17620         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
17621         here...
17622         * modules/mkfifo (configure.ac): ... to here.
17623
17624 2011-05-21  Bruno Haible  <bruno@clisp.org>
17625
17626         mkdtemp: Move AC_LIBOBJ invocations to module description.
17627         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
17628         invocations from here...
17629         * modules/mkdtemp (configure.ac): ... to here.
17630
17631 2011-05-21  Bruno Haible  <bruno@clisp.org>
17632
17633         mkdir: Move AC_LIBOBJ invocations to module description.
17634         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
17635         * modules/mkdir (configure.ac): ... to here.
17636
17637 2011-05-21  Bruno Haible  <bruno@clisp.org>
17638
17639         memset: Move AC_LIBOBJ invocations to module description.
17640         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
17641         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
17642         here...
17643         * modules/memset (configure.ac): ... to here.
17644
17645 2011-05-21  Bruno Haible  <bruno@clisp.org>
17646
17647         memrchr: Move AC_LIBOBJ invocations to module description.
17648         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
17649         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
17650         here...
17651         * modules/memrchr (configure.ac): ... to here.
17652
17653 2011-05-21  Bruno Haible  <bruno@clisp.org>
17654
17655         mempcpy: Move AC_LIBOBJ invocations to module description.
17656         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
17657         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
17658         here...
17659         * modules/mempcpy (configure.ac): ... to here.
17660
17661 2011-05-21  Bruno Haible  <bruno@clisp.org>
17662
17663         memmove: Move AC_LIBOBJ invocations to module description.
17664         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
17665         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
17666         here...
17667         * modules/memmove (configure.ac): ... to here.
17668
17669 2011-05-21  Bruno Haible  <bruno@clisp.org>
17670
17671         memmem*: Move AC_LIBOBJ invocations to module description.
17672         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
17673         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
17674         here...
17675         (gl_FUNC_MEMMEM): ... and here...
17676         * modules/memmem-simple (configure.ac): ... to here.
17677         * modules/memmem (configure.ac): ... and here.
17678
17679 2011-05-21  Bruno Haible  <bruno@clisp.org>
17680
17681         memcpy: Move AC_LIBOBJ invocations to module description.
17682         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
17683         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
17684         here...
17685         * modules/memcpy (configure.ac): ... to here.
17686
17687 2011-05-21  Bruno Haible  <bruno@clisp.org>
17688
17689         memcmp: Simplify autoconf macro.
17690         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
17691         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
17692         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
17693
17694 2011-05-21  Bruno Haible  <bruno@clisp.org>
17695
17696         memcmp: Move AC_LIBOBJ invocations to module description.
17697         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
17698         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
17699         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
17700         * modules/memcmp (configure.ac): ... to here.
17701         (Depends-on): Update conditions.
17702
17703 2011-05-21  Bruno Haible  <bruno@clisp.org>
17704
17705         memchr: Respect rules for use of AC_LIBOBJ.
17706         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
17707         invocations from here...
17708         * modules/memchr (configure.ac): ... to here.
17709
17710 2011-05-21  Bruno Haible  <bruno@clisp.org>
17711
17712         mbtowc: Move AC_LIBOBJ invocations to module description.
17713         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
17714         invocations from here...
17715         * modules/mbtowc (configure.ac): ... to here.
17716
17717 2011-05-21  Bruno Haible  <bruno@clisp.org>
17718
17719         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
17720         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
17721         gl_PREREQ_MBSRTOWCS invocations from here...
17722         * modules/mbsrtowcs (configure.ac): ... to here.
17723
17724 2011-05-21  Bruno Haible  <bruno@clisp.org>
17725
17726         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
17727         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
17728         gl_PREREQ_MBSNRTOWCS invocations from here...
17729         * modules/mbsnrtowcs (configure.ac): ... to here.
17730
17731 2011-05-21  Bruno Haible  <bruno@clisp.org>
17732
17733         mbsinit: Move AC_LIBOBJ invocations to module description.
17734         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
17735         invocations from here...
17736         * modules/mbsinit (configure.ac): ... to here.
17737
17738 2011-05-21  Bruno Haible  <bruno@clisp.org>
17739
17740         mbrlen: Move AC_LIBOBJ invocations to module description.
17741         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
17742         invocations from here...
17743         * modules/mbrlen (configure.ac): ... to here.
17744
17745 2011-05-21  Bruno Haible  <bruno@clisp.org>
17746
17747         mbrtowc: Respect rules for use of AC_LIBOBJ.
17748         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
17749         invocations from here...
17750         * modules/mbrtowc (configure.ac): ... to here.
17751
17752 2011-05-21  Bruno Haible  <bruno@clisp.org>
17753
17754         malloc-*: Move AC_LIBOBJ invocations to module description.
17755         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
17756         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
17757         AC_LIBOBJ invocations from here...
17758         * modules/malloc-gnu (configure.ac): ... to here.
17759         * modules/malloc-posix (configure.ac): ... and here.
17760
17761 2011-05-21  Bruno Haible  <bruno@clisp.org>
17762
17763         lstat, openat: Respect rules for use of AC_LIBOBJ.
17764         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
17765         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
17766         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
17767         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
17768         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
17769         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
17770         here.
17771         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
17772
17773 2011-05-21  Bruno Haible  <bruno@clisp.org>
17774
17775         lseek: Move AC_LIBOBJ invocations to module description.
17776         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
17777         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
17778         * modules/lseek (configure.ac): ... to here.
17779
17780 2011-05-21  Bruno Haible  <bruno@clisp.org>
17781
17782         linkat: Move AC_LIBOBJ invocations to module description.
17783         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
17784         here...
17785         * modules/linkat (configure.ac): ... to here.
17786
17787 2011-05-21  Bruno Haible  <bruno@clisp.org>
17788
17789         link: Respect rules for use of AC_LIBOBJ.
17790         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
17791         * modules/link (configure.ac): ... to here.
17792
17793 2011-05-21  Bruno Haible  <bruno@clisp.org>
17794
17795         lchown: Move AC_LIBOBJ invocations to module description.
17796         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
17797         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
17798         * modules/lchown (configure.ac): ... to here.
17799
17800 2011-05-21  Bruno Haible  <bruno@clisp.org>
17801
17802         iswctype: Move AC_LIBOBJ invocations to module description.
17803         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
17804         here...
17805         * modules/iswctype (configure.ac): ... to here.
17806
17807 2011-05-21  Bruno Haible  <bruno@clisp.org>
17808
17809         iswblank: Move AC_LIBOBJ invocations to module description.
17810         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
17811         here...
17812         * modules/iswblank (configure.ac): ... to here.
17813
17814 2011-05-21  Bruno Haible  <bruno@clisp.org>
17815
17816         atanl: Move AC_LIBOBJ invocations to module description.
17817         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
17818         * modules/atanl (configure.ac): ... to here.
17819
17820 2011-05-21  Bruno Haible  <bruno@clisp.org>
17821
17822         acosl: Move AC_LIBOBJ invocations to module description.
17823         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
17824         * modules/acosl (configure.ac): ... to here.
17825
17826 2011-05-21  Bruno Haible  <bruno@clisp.org>
17827
17828         asinl: Respect rules for use of AC_LIBOBJ.
17829         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
17830         * modules/asinl (configure.ac): ... to here.
17831
17832 2011-05-21  Bruno Haible  <bruno@clisp.org>
17833
17834         tanl: Move AC_LIBOBJ invocations to module description.
17835         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
17836         * modules/tanl (configure.ac): ... to here.
17837
17838 2011-05-21  Bruno Haible  <bruno@clisp.org>
17839
17840         cosl: Move AC_LIBOBJ invocations to module description.
17841         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
17842         * modules/cosl (configure.ac): ... to here.
17843
17844 2011-05-21  Bruno Haible  <bruno@clisp.org>
17845
17846         sinl: Move AC_LIBOBJ invocations to module description.
17847         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
17848         * modules/sinl (configure.ac): ... to here.
17849
17850 2011-05-21  Bruno Haible  <bruno@clisp.org>
17851
17852         logl: Move AC_LIBOBJ invocations to module description.
17853         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
17854         * modules/logl (configure.ac): ... to here.
17855
17856 2011-05-21  Bruno Haible  <bruno@clisp.org>
17857
17858         expl: Move AC_LIBOBJ invocations to module description.
17859         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
17860         * modules/expl (configure.ac): ... to here.
17861
17862 2011-05-21  Bruno Haible  <bruno@clisp.org>
17863
17864         roundl: Move AC_LIBOBJ invocations to module description.
17865         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
17866         * modules/roundl (configure.ac): ... to here.
17867
17868 2011-05-21  Bruno Haible  <bruno@clisp.org>
17869
17870         round: Move AC_LIBOBJ invocations to module description.
17871         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
17872         * modules/round (configure.ac): ... to here.
17873
17874 2011-05-21  Bruno Haible  <bruno@clisp.org>
17875
17876         roundf: Move AC_LIBOBJ invocations to module description.
17877         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
17878         * modules/roundf (configure.ac): ... to here.
17879
17880 2011-05-21  Bruno Haible  <bruno@clisp.org>
17881
17882         truncl: Move AC_LIBOBJ invocations to module description.
17883         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
17884         * modules/truncl (configure.ac): ... to here.
17885
17886 2011-05-21  Bruno Haible  <bruno@clisp.org>
17887
17888         trunc: Move AC_LIBOBJ invocations to module description.
17889         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
17890         * modules/trunc (configure.ac): ... to here.
17891
17892 2011-05-21  Bruno Haible  <bruno@clisp.org>
17893
17894         truncf: Move AC_LIBOBJ invocations to module description.
17895         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
17896         * modules/truncf (configure.ac): ... to here.
17897
17898 2011-05-21  Bruno Haible  <bruno@clisp.org>
17899
17900         ceill: Move AC_LIBOBJ invocations to module description.
17901         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
17902         * modules/ceill (configure.ac): ... to here.
17903
17904 2011-05-21  Bruno Haible  <bruno@clisp.org>
17905
17906         ceil: Move AC_LIBOBJ invocations to module description.
17907         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
17908         * modules/ceil (configure.ac): ... to here.
17909
17910 2011-05-21  Bruno Haible  <bruno@clisp.org>
17911
17912         ceilf: Move AC_LIBOBJ invocations to module description.
17913         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
17914         * modules/ceilf (configure.ac): ... to here.
17915
17916 2011-05-21  Bruno Haible  <bruno@clisp.org>
17917
17918         floorl: Respect rules for use of AC_LIBOBJ.
17919         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
17920         * modules/floorl (configure.ac): ... to here.
17921
17922 2011-05-21  Bruno Haible  <bruno@clisp.org>
17923
17924         floor: Respect rules for use of AC_LIBOBJ.
17925         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
17926         * modules/floor (configure.ac): ... to here.
17927
17928 2011-05-21  Bruno Haible  <bruno@clisp.org>
17929
17930         floorf: Move AC_LIBOBJ invocations to module description.
17931         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
17932         * modules/floorf (configure.ac): ... to here.
17933
17934 2011-05-20  Bruno Haible  <bruno@clisp.org>
17935
17936         sqrtl: Respect rules for use of AC_LIBOBJ.
17937         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
17938         * modules/sqrtl (configure.ac): ... to here.
17939
17940 2011-05-20  Bruno Haible  <bruno@clisp.org>
17941
17942         ldexpl: Respect rules for use of AC_LIBOBJ.
17943         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
17944         * modules/ldexpl (configure.ac): ... to here.
17945
17946 2011-05-20  Bruno Haible  <bruno@clisp.org>
17947
17948         frexpl*: Respect rules for use of AC_LIBOBJ.
17949         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
17950         invocation from here...
17951         * modules/frexpl (configure.ac): ... to here.
17952         * modules/frexpl-nolibm (configure.ac): ... and here.
17953
17954 2011-05-20  Bruno Haible  <bruno@clisp.org>
17955
17956         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
17957         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
17958         invocation from here...
17959         * modules/frexp (configure.ac): ... to here.
17960         * modules/frexp-nolibm (configure.ac): ... and here.
17961
17962 2011-05-20  Bruno Haible  <bruno@clisp.org>
17963
17964         isnan: Respect rules for use of AC_LIBOBJ.
17965         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
17966         invocations here.
17967         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
17968         REPLACE_ISNAN.
17969         * modules/isnand (configure.ac): Likewise.
17970         * modules/isnanl (configure.ac): Likewise.
17971
17972 2011-05-20  Bruno Haible  <bruno@clisp.org>
17973
17974         isnanl*: Respect rules for use of AC_LIBOBJ.
17975         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
17976         invocation from here...
17977         * modules/isnanl (configure.ac): ... to here.
17978         * modules/isnanl-nolibm (configure.ac): ... and here.
17979
17980 2011-05-20  Bruno Haible  <bruno@clisp.org>
17981
17982         isnand*: Move AC_LIBOBJ invocations to module description.
17983         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
17984         invocation from here...
17985         * modules/isnand (configure.ac): ... to here.
17986         * modules/isnand-nolibm (configure.ac): ... and here.
17987
17988 2011-05-20  Bruno Haible  <bruno@clisp.org>
17989
17990         isnanf*: Move AC_LIBOBJ invocations to module description.
17991         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
17992         invocation from here...
17993         * modules/isnanf (configure.ac): ... to here.
17994         * modules/isnanf-nolibm (configure.ac): ... and here.
17995
17996 2011-05-20  Bruno Haible  <bruno@clisp.org>
17997
17998         isnan*: Separate the AC_LIBOBJ invocations.
17999         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
18000         AC_LIBOBJ invocation.
18001         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
18002         here.
18003         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
18004         AC_LIBOBJ invocation.
18005         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
18006         here.
18007         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
18008         AC_LIBOBJ invocation.
18009         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
18010         here.
18011         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
18012
18013 2011-05-08  Bruno Haible  <bruno@clisp.org>
18014
18015         isinf: Move AC_LIBOBJ invocations to module description.
18016         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
18017         * modules/isinf (configure.ac): ... to here.
18018
18019 2011-05-08  Bruno Haible  <bruno@clisp.org>
18020
18021         isfinite: Move AC_LIBOBJ invocations to module description.
18022         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
18023         * modules/isfinite (configure.ac): ... to here.
18024
18025 2011-05-08  Bruno Haible  <bruno@clisp.org>
18026
18027         isblank: Move AC_LIBOBJ invocations to module description.
18028         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
18029         here...
18030         * modules/isblank (configure.ac): ... to here.
18031
18032 2011-05-08  Bruno Haible  <bruno@clisp.org>
18033
18034         isapipe: Move AC_LIBOBJ invocations to module description.
18035         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
18036         gl_PREREQ_ISAPIPE invocations from here...
18037         * modules/isapipe (configure.ac): ... to here.
18038         (Depends-on): Update condition.
18039
18040 2011-05-08  Bruno Haible  <bruno@clisp.org>
18041
18042         ioctl: Move AC_LIBOBJ invocations to module description.
18043         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
18044         invocations from here...
18045         * modules/ioctl (configure.ac): ... to here.
18046         (Depends-on): Update condition.
18047
18048 2011-05-08  Bruno Haible  <bruno@clisp.org>
18049
18050         imaxdiv: Move AC_LIBOBJ invocations to module description.
18051         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
18052         invocations from here...
18053         * modules/imaxdiv (configure.ac): ... to here.
18054
18055 2011-05-08  Bruno Haible  <bruno@clisp.org>
18056
18057         imaxabs: Move AC_LIBOBJ invocations to module description.
18058         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
18059         invocations from here...
18060         * modules/imaxabs (configure.ac): ... to here.
18061
18062 2011-05-08  Bruno Haible  <bruno@clisp.org>
18063
18064         getaddrinfo: Move AC_LIBOBJ invocations to module description.
18065         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
18066         AC_LIBOBJ invocations from here...
18067         * modules/getaddrinfo (configure.ac): ... to here.
18068         (Depends-on): Add conditions.
18069
18070 2011-05-08  Bruno Haible  <bruno@clisp.org>
18071
18072         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
18073         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
18074         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
18075         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
18076         (gl_PREREQ_INET_PTON): ... from here.
18077         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
18078         gl_PREREQ_INET_PTON here.
18079         (Depends-on): Update condition.
18080
18081 2011-05-08  Bruno Haible  <bruno@clisp.org>
18082
18083         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
18084         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
18085         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
18086         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
18087         (gl_PREREQ_INET_NTOP): ... from here.
18088         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
18089         gl_PREREQ_INET_NTOP here.
18090         (Depends-on): Update condition.
18091
18092 2011-05-08  Bruno Haible  <bruno@clisp.org>
18093
18094         iconv_open: Move AC_LIBOBJ invocations to module description.
18095         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
18096         AC_LIBOBJ invocations from here...
18097         * modules/iconv_open (configure.ac): ... to here.
18098
18099 2011-05-08  Bruno Haible  <bruno@clisp.org>
18100
18101         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
18102         If module 'iconv_open' is among the main modules and module
18103         'iconv_open-utf' is among the tests dependencies, then
18104         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
18105         return the special iconv_t values. Therefore iconv() and iconv_close()
18106         must support these special iconv_t values, already in lib, not only in
18107         tests.
18108         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
18109         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
18110         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
18111         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
18112         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
18113         (Depends-on): Add the dependencies of iconv_open-utf.
18114         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
18115         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
18116         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
18117
18118 2011-05-08  Bruno Haible  <bruno@clisp.org>
18119
18120         group-member: Move AC_LIBOBJ invocations to module description.
18121         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
18122         gl_PREREQ_GROUP_MEMBER invocations from here...
18123         * modules/group-member (configure.ac): ... to here.
18124
18125 2011-05-08  Bruno Haible  <bruno@clisp.org>
18126
18127         grantpt: Move AC_LIBOBJ invocations to module description.
18128         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
18129         invocations from here...
18130         * modules/grantpt (configure.ac): ... to here.
18131
18132 2011-05-08  Bruno Haible  <bruno@clisp.org>
18133
18134         glob: Move AC_LIBOBJ invocations to module description.
18135         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
18136         from here...
18137         * modules/glob (configure.ac): ... to here.
18138
18139 2011-05-08  Bruno Haible  <bruno@clisp.org>
18140
18141         getusershell: Move AC_LIBOBJ invocations to module description.
18142         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
18143         Move AC_LIBOBJ invocation from here...
18144         * modules/getusershell (configure.ac): ... to here.
18145         (Depends-on): Update condition.
18146
18147 2011-05-08  Bruno Haible  <bruno@clisp.org>
18148
18149         gettimeofday: Move AC_LIBOBJ invocations to module description.
18150         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
18151         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
18152         gl_PREREQ_GETTIMEOFDAY invocations from here...
18153         * modules/gettimeofday (configure.ac): ... to here.
18154
18155 2011-05-08  Bruno Haible  <bruno@clisp.org>
18156
18157         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
18158         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
18159         just gl_FUNC_TZSET.
18160         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
18161         (gl_FUNC_TZSET_CLOBBER): Remove actions.
18162         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
18163         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
18164
18165 2011-05-08  Bruno Haible  <bruno@clisp.org>
18166
18167         getsubopt: Move AC_LIBOBJ invocations to module description.
18168         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
18169         gl_PREREQ_GETSUBOPT invocations from here...
18170         * modules/getsubopt (configure.ac): ... to here.
18171
18172 2011-05-08  Bruno Haible  <bruno@clisp.org>
18173
18174         getpass-gnu: Move AC_LIBOBJ invocations to module description.
18175         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
18176         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
18177         * modules/getpass-gnu (configure.ac): ... to here.
18178
18179 2011-05-08  Bruno Haible  <bruno@clisp.org>
18180
18181         getpass: Move AC_LIBOBJ invocations to module description.
18182         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
18183         gl_PREREQ_GETPASS invocations from here...
18184         * modules/getpass (configure.ac): ... to here.
18185
18186 2011-05-08  Bruno Haible  <bruno@clisp.org>
18187
18188         getpagesize: Move AC_LIBOBJ invocations to module description.
18189         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
18190         from here...
18191         * modules/getpagesize (configure.ac): ... to here.
18192
18193 2011-05-08  Bruno Haible  <bruno@clisp.org>
18194
18195         getopt: Move AC_LIBOBJ invocations to module description.
18196         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
18197         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
18198         invocations from here...
18199         * modules/getopt-gnu (configure.ac): ... to here.
18200         * modules/getopt-posix (configure.ac): ... and here.
18201         (Depends-on): Update condition.
18202
18203 2011-05-08  Bruno Haible  <bruno@clisp.org>
18204
18205         getopt, argp: Respect rules for use of AC_LIBOBJ.
18206         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
18207         (gl_REPLACE_GETOPT_ALWAYS): New macro.
18208         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
18209         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
18210
18211 2011-05-08  Bruno Haible  <bruno@clisp.org>
18212
18213         getlogin_r: Move AC_LIBOBJ invocations to module description.
18214         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
18215         gl_PREREQ_GETLOGIN_R invocations from here...
18216         * modules/getlogin_r (configure.ac): ... to here.
18217
18218 2011-05-08  Bruno Haible  <bruno@clisp.org>
18219
18220         getlogin: Move AC_LIBOBJ invocations to module description.
18221         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
18222         here...
18223         * modules/getlogin (configure.ac): ... to here.
18224
18225 2011-05-08  Bruno Haible  <bruno@clisp.org>
18226
18227         getloadavg: Move AC_LIBOBJ invocations to module description.
18228         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
18229         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
18230         * modules/getloadavg (configure.ac): ... to here.
18231
18232 2011-05-08  Bruno Haible  <bruno@clisp.org>
18233
18234         gethrxtime: Move AC_LIBOBJ invocations to module description.
18235         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
18236         LIB_GETHRXTIME from here...
18237         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
18238         invocations from here...
18239         * modules/gethrxtime (configure.ac): ... to here.
18240
18241 2011-05-08  Bruno Haible  <bruno@clisp.org>
18242
18243         gethostname: Move AC_LIBOBJ invocations to module description.
18244         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
18245         gl_PREREQ_GETHOSTNAME invocations from here...
18246         * modules/gethostname (configure.ac): ... to here.
18247
18248 2011-05-08  Bruno Haible  <bruno@clisp.org>
18249
18250         getgroups: Move AC_LIBOBJ invocations to module description.
18251         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
18252         here...
18253         * modules/getgroups (configure.ac): ... to here.
18254
18255 2011-05-08  Bruno Haible  <bruno@clisp.org>
18256
18257         getdtablesize: Move AC_LIBOBJ invocations to module description.
18258         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
18259         invocation from here...
18260         * modules/getdtablesize (configure.ac): ... to here.
18261
18262 2011-05-08  Bruno Haible  <bruno@clisp.org>
18263
18264         getdomainname: Move AC_LIBOBJ invocations to module description.
18265         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
18266         gl_PREREQ_GETDOMAINNAME invocations from here...
18267         * modules/getdomainname (configure.ac): ... to here.
18268
18269 2011-05-08  Bruno Haible  <bruno@clisp.org>
18270
18271         getline: Move AC_LIBOBJ invocations to module description.
18272         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
18273         invocations from here...
18274         * modules/getline (configure.ac): ... to here.
18275
18276 2011-05-08  Bruno Haible  <bruno@clisp.org>
18277
18278         getline: Simplify.
18279         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
18280         It's already handled through the module dependency.
18281
18282 2011-05-08  Bruno Haible  <bruno@clisp.org>
18283
18284         getdelim: Move AC_LIBOBJ invocations to module description.
18285         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
18286         and gl_PREREQ_GETDELIM invocations from here...
18287         * modules/getdelim (configure.ac): ... to here.
18288         (Depends-on): Fix condition.
18289
18290 2011-05-08  Bruno Haible  <bruno@clisp.org>
18291
18292         getcwd: Move AC_LIBOBJ invocations to module description.
18293         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
18294         invocations from here...
18295         * modules/getcwd (configure.ac): ... to here.
18296
18297 2011-05-08  Bruno Haible  <bruno@clisp.org>
18298
18299         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
18300         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
18301         here...
18302         * modules/getcwd-lgpl (configure.ac): ... to here.
18303
18304 2011-05-07  Bruno Haible  <bruno@clisp.org>
18305
18306         crypto/gc: Move AC_LIBOBJ invocations to module description.
18307         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
18308         * modules/crypto/gc (configure.ac): ... to here.
18309
18310 2011-05-07  Bruno Haible  <bruno@clisp.org>
18311
18312         fwriting: Move AC_LIBOBJ invocations to module description.
18313         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
18314         here...
18315         * modules/fwriting (configure.ac): ... to here.
18316
18317 2011-05-07  Bruno Haible  <bruno@clisp.org>
18318
18319         fwritable: Move AC_LIBOBJ invocations to module description.
18320         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
18321         here...
18322         * modules/fwritable (configure.ac): ... to here.
18323
18324 2011-05-07  Bruno Haible  <bruno@clisp.org>
18325
18326         futimens: Move AC_LIBOBJ invocations to module description.
18327         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
18328         here...
18329         * modules/futimens (configure.ac): ... to here.
18330
18331 2011-05-07  Bruno Haible  <bruno@clisp.org>
18332
18333         ftruncate: Move AC_LIBOBJ invocations to module description.
18334         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
18335         gl_PREREQ_FTRUNCATE invocations from here...
18336         * modules/ftruncate (configure.ac): ... to here.
18337
18338 2011-05-07  Bruno Haible  <bruno@clisp.org>
18339
18340         fsync: Move AC_LIBOBJ invocations to module description.
18341         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
18342         invocations from here...
18343         * modules/fsync (configure.ac): ... to here.
18344
18345 2011-05-07  Bruno Haible  <bruno@clisp.org>
18346
18347         fsusage: Move AC_LIBOBJ invocations to module description.
18348         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
18349         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
18350         * modules/fsusage (configure.ac): ... to here.
18351
18352 2011-05-07  Bruno Haible  <bruno@clisp.org>
18353
18354         freopen: Move AC_LIBOBJ invocations to module description.
18355         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
18356         invocations from here...
18357         * modules/freopen (configure.ac): ... to here.
18358
18359 2011-05-07  Bruno Haible  <bruno@clisp.org>
18360
18361         free: Move AC_LIBOBJ invocations to module description.
18362         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
18363         invocations from here...
18364         * modules/free (configure.ac): ... to here.
18365
18366 2011-05-07  Bruno Haible  <bruno@clisp.org>
18367
18368         freadable: Move AC_LIBOBJ invocations to module description.
18369         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
18370         here...
18371         * modules/freadable (configure.ac): ... to here.
18372
18373 2011-05-07  Bruno Haible  <bruno@clisp.org>
18374
18375         fpurge: Move AC_LIBOBJ invocations to module description.
18376         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
18377         invocations from here...
18378         * modules/fpurge (configure.ac): ... to here.
18379
18380 2011-05-07  Bruno Haible  <bruno@clisp.org>
18381
18382         fpending: Move AC_LIBOBJ invocations to module description.
18383         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
18384         gl_FUNC_FPENDING.
18385         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
18386         invocations from here...
18387         * modules/fpending (configure.ac): ... to here.
18388
18389 2011-05-07  Bruno Haible  <bruno@clisp.org>
18390
18391         fopen: Move AC_LIBOBJ invocations to module description.
18392         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
18393         invocations from here...
18394         * modules/fopen (configure.ac): ... to here.
18395
18396 2011-05-07  Bruno Haible  <bruno@clisp.org>
18397
18398         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
18399         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
18400         gl_FUNC_FNMATCH_POSIX.
18401         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
18402         invocations from here...
18403         * modules/fnmatch (configure.ac): ... to here.
18404         * modules/fnmatch-gnu (configure.ac): ... and here.
18405
18406 2011-05-07  Bruno Haible  <bruno@clisp.org>
18407
18408         flock: Move AC_LIBOBJ invocations to module description.
18409         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
18410         invocations from here...
18411         * modules/flock (configure.ac): ... to here.
18412
18413 2011-05-07  Bruno Haible  <bruno@clisp.org>
18414
18415         fileblocks: Move AC_LIBOBJ invocations to module description.
18416         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
18417         gl_PREREQ_FILEBLOCKS invocations from here...
18418         * modules/fileblocks (configure.ac): ... to here.
18419
18420 2011-05-06  Bruno Haible  <bruno@clisp.org>
18421
18422         fflush: Move AC_LIBOBJ invocations to module description.
18423         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
18424         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
18425         invocations from here...
18426         * modules/fflush (configure.ac): ... to here.
18427
18428 2011-05-06  Bruno Haible  <bruno@clisp.org>
18429
18430         fdopendir: Move AC_LIBOBJ invocations to module description.
18431         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
18432         here...
18433         * modules/fdopendir (configure.ac): ... to here.
18434         (Depends-on): Improve conditions.
18435
18436 2011-05-06  Bruno Haible  <bruno@clisp.org>
18437
18438         _Exit: Move AC_LIBOBJ invocations to module description.
18439         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
18440         invocations from here...
18441         * modules/_Exit (configure.ac): ... to here.
18442
18443 2011-05-21  Bruno Haible  <bruno@clisp.org>
18444
18445         euidaccess: Respect rules for use of AC_LIBOBJ.
18446         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
18447         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
18448         from here...
18449         * modules/euidaccess (configure.ac): ... to here.
18450
18451 2011-05-06  Bruno Haible  <bruno@clisp.org>
18452
18453         error: Move AC_LIBOBJ invocations to module description.
18454         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
18455         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
18456         invocations from here...
18457         * modules/error (configure.ac): ... to here.
18458
18459 2011-05-06  Bruno Haible  <bruno@clisp.org>
18460
18461         duplocale: Move AC_LIBOBJ invocations to module description.
18462         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
18463         gl_PREREQ_DUPLOCALE invocations from here...
18464         * modules/duplocale (configure.ac): ... to here.
18465
18466 2011-05-05  Bruno Haible  <bruno@clisp.org>
18467
18468         dirfd: Move AC_LIBOBJ invocations to module description.
18469         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
18470         gl_FUNC_DIRFD.
18471         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
18472         here...
18473         * modules/dirfd (configure.ac): ... to here.
18474         (Depends-on): Fix condition.
18475
18476 2011-05-05  Bruno Haible  <bruno@clisp.org>
18477
18478         chown: Respect rules for use of AC_LIBOBJ.
18479         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
18480         * modules/chown (configure.ac): ... to here.
18481
18482 2011-05-05  Bruno Haible  <bruno@clisp.org>
18483
18484         chdir-long: Move AC_LIBOBJ invocations to module description.
18485         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
18486         gl_PREREQ_CHDIR_LONG invocations from here...
18487         * modules/chdir-long (configure.ac): ... to here.
18488
18489 2011-05-05  Bruno Haible  <bruno@clisp.org>
18490
18491         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
18492         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
18493         from here...
18494         * modules/canonicalize-lgpl (configure.ac): ... to here.
18495
18496 2011-05-05  Bruno Haible  <bruno@clisp.org>
18497
18498         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
18499         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
18500         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
18501         REPLACE_CALLOC.
18502         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
18503         * modules/calloc-gnu (configure.ac): Likewise.
18504
18505 2011-05-05  Bruno Haible  <bruno@clisp.org>
18506
18507         btowc: Move AC_LIBOBJ invocations to module description.
18508         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
18509         invocations from here...
18510         * modules/btowc (configure.ac): ... to here.
18511
18512 2011-05-21  Bruno Haible  <bruno@clisp.org>
18513
18514         atexit: Move AC_LIBOBJ invocations to module description.
18515         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
18516         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
18517         here...
18518         * modules/atexit (configure.ac): ... to here.
18519
18520 2011-05-05  Bruno Haible  <bruno@clisp.org>
18521
18522         atoll: Move AC_LIBOBJ invocations to module description.
18523         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
18524         invocations from here...
18525         * modules/atoll (configure.ac): ... to here.
18526
18527 2011-05-05  Bruno Haible  <bruno@clisp.org>
18528
18529         argz: Move AC_LIBOBJ invocations to module description.
18530         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
18531         * modules/argz (configure.ac): ... to here.
18532
18533 2011-05-05  Bruno Haible  <bruno@clisp.org>
18534
18535         alphasort: Move AC_LIBOBJ invocations to module description.
18536         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
18537         gl_PREREQ_ALPHASORT invocations from here...
18538         * modules/alphasort (configure.ac): ... to here.
18539
18540 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
18541
18542         verify: new macro verify_expr; verify_true deprecated
18543         * NEWS: Mention this.
18544         * doc/verify.texi (Compile-time Assertions): Document this.
18545         * lib/verify.h (verify_true): Deprecate.
18546         (verify_expr): New macro.
18547         * tests/test-verify.c (function): Test verify_expr.
18548
18549 2011-06-14  Jim Meyering  <meyering@redhat.com>
18550
18551         init.sh: give more portable redirection-related advice in a comment
18552         * tests/init.sh (stderr_fileno_): Update the advice in comments.
18553         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
18554         for lots of discussion.  Stefano Lattarini suggested the solution
18555         of putting "9>&2" after the command.  Reported by Bruno Haible.
18556
18557 2011-06-13  Bruno Haible  <bruno@clisp.org>
18558
18559         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
18560         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
18561         'none'.
18562
18563 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
18564
18565         ftoastr: use strtof only if HAVE_STRTOF
18566         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
18567         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
18568         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
18569         * modules/ftoastr (configure.ac): Check for strtof.
18570
18571 2011-06-13  Bruno Haible  <bruno@clisp.org>
18572
18573         gnulib-tool: Addendum to 2011-06-08 commit.
18574         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
18575         and --witness-c-macro have been given, augment AM_CPPFLAGS.
18576
18577 2011-06-13  Bruno Haible  <bruno@clisp.org>
18578
18579         fseeko: Provide a non-inline replacement of fseek().
18580         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
18581         * modules/fseeko (Depends-on): Add fseek.
18582         * modules/fseek (License): Change to LGPLv2+.
18583
18584 2011-06-13  Bruno Haible  <bruno@clisp.org>
18585
18586         ftello: Provide a non-inline replacement of ftell().
18587         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
18588         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
18589         not have ftello() (such as on mingw).
18590         * modules/ftello (Depends-on): Add ftell.
18591         * modules/ftell (License): Change to LGPLv2+.
18592
18593 2011-05-07  Bruno Haible  <bruno@clisp.org>
18594
18595         ftell: Move AC_LIBOBJ invocations to module description.
18596         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
18597         * modules/ftell (configure.ac): ... to here.
18598
18599 2011-05-07  Bruno Haible  <bruno@clisp.org>
18600
18601         ftello: Respect rules for use of AC_LIBOBJ.
18602         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
18603         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
18604         here...
18605         * modules/ftello (configure.ac): ... to here.
18606
18607 2011-05-07  Bruno Haible  <bruno@clisp.org>
18608
18609         fseeko: Simplify.
18610         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
18611         (gl_FUNC_FSEEKO): Inline it here.
18612
18613 2011-05-07  Bruno Haible  <bruno@clisp.org>
18614
18615         fseek: Move AC_LIBOBJ invocations to module description.
18616         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
18617         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
18618         * modules/fseek (configure.ac): ... to here.
18619
18620 2011-05-07  Bruno Haible  <bruno@clisp.org>
18621
18622         fseek: Respect rules for use of AC_LIBOBJ.
18623         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
18624         here...
18625         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
18626
18627 2011-05-07  Bruno Haible  <bruno@clisp.org>
18628
18629         fseeko: Respect rules for use of AC_LIBOBJ.
18630         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
18631         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
18632         here...
18633         * modules/fseeko (configure.ac): ... to here.
18634
18635 2011-06-13  Bruno Haible  <bruno@clisp.org>
18636
18637         gnulib-tool: Allow comments in the 'Depends-on' section.
18638         * doc/gnulib.texi (Module description): Mention comment syntax in the
18639         Depends-on section.
18640         * gnulib-tool (func_get_dependencies): Filter out comment lines.
18641
18642 2011-06-13  Bruno Haible  <bruno@clisp.org>
18643
18644         file-set.h: guard __attibute__ use, now that it's not always defined
18645         * lib/file-set.h (record_file): Use __attribute__ only with compiler
18646         versions that support it.  This fixes a coreutils build failure with
18647         the vendor cc on HP-UX 11.31.
18648
18649 2011-06-12  Bruno Haible  <bruno@clisp.org>
18650
18651         acl: Add support for HP-UX >= 11.11 JFS ACLs.
18652         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
18653         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
18654         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
18655         (acl, aclsort): New declarations.
18656         (aclv_nontrivial): New declaration.
18657         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
18658         (file_has_acl): Read also the second kind of HP-UX ACLs.
18659         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
18660         kind of HP-UX ACLs if the first kind fails.
18661         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
18662         second kind of HP-UX ACLs.
18663         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
18664         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
18665         agree.
18666         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
18667         hpuxjfs.
18668         Handle hpuxjfs.
18669         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
18670         hpuxjfs.
18671         Handle hpuxjfs.
18672         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
18673         (func_test_same_acls): Use both lsacl and getacl.
18674         Handle hpuxjfs.
18675         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
18676         (func_test_same_acls): Use both lsacl and getacl.
18677         Handle hpuxjfs.
18678
18679 2011-06-12  Bruno Haible  <bruno@clisp.org>
18680
18681         acl: Complete the 2010-08-10 fix.
18682         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
18683         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
18684         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
18685         explicitly.
18686         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
18687         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
18688
18689 2011-06-12  Bruno Haible  <bruno@clisp.org>
18690
18691         spawn-pipe tests: Comments.
18692         * tests/test-spawn-pipe-child.c (main): Update comment.
18693         Reported by James Youngman <jay@gnu.org>.
18694
18695 2011-06-11  James Youngman  <jay@gnu.org>
18696
18697         New module 'stat-size'.
18698         * modules/stat-size: New module.  Provides macros for accessing
18699         file size information in instances of struct stat.  Depends on the
18700         fileblocks module because it calls st_blocks.
18701         * lib/stat-size.h: New file, adapted from coreutils' system.h.
18702         * doc/gnulib.texi: Include stat-size.texi.
18703         * doc/stat-size.texi: Documentation for this module.
18704         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
18705         * m4/fileblocks.m4: Mention that stat-size depends on the call to
18706         AC_STRUCT_ST_BLOCKS.
18707
18708 2011-06-09  Bruno Haible  <bruno@clisp.org>
18709
18710         thread: Support pthreads-win32.
18711         * lib/glthread/thread.h (gl_thread_self): Define differently on
18712         pthreads-win32.
18713         (gl_null_thread): New declaration.
18714         (gl_thread_self_pointer): New macro.
18715         * lib/glthread/thread.c (gl_null_thread): New constant.
18716         * tests/test-lock.c: Use gl_thread_self_pointer instead of
18717         gl_thread_self.
18718         * tests/test-tls.c: Likewise.
18719         Suggested by Paul Eggert. Reported by Eric Blake.
18720
18721 2011-06-09  Bruno Haible  <bruno@clisp.org>
18722
18723         thread: Fix confusion between NULL and 0.
18724         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
18725         Reported by Paul Eggert.
18726
18727 2011-06-09  Bruno Haible  <bruno@clisp.org>
18728
18729         spawn-pipe tests: Avoid test failure on HP-UX 11.
18730         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
18731         is closed.
18732
18733 2011-06-09  Bruno Haible  <bruno@clisp.org>
18734
18735         acl tests: Fix compilation error on HP-UX 11.
18736         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
18737
18738 2011-06-09  Bruno Haible  <bruno@clisp.org>
18739
18740         rmdir: Avoid test failure on HP-UX 10.20.
18741         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
18742         EEXIST.
18743
18744 2011-06-08  Eric Blake  <eblake@redhat.com>
18745
18746         perror: fix test on mingw
18747         * modules/perror-tests (Depends-on): Add dup2.
18748
18749         strerror_r-posix: fix on MacOS
18750         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
18751         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
18752         logic bug.
18753         * lib/strerror_r.c (strerror_r): Fix the bug.
18754         * lib/strerror.c (strerror): Likewise.
18755         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
18756         problem.
18757         * doc/posix-functions/strerror.texi (strerror): Likewise.
18758         * doc/posix-functions/perror.texi (perror): Likewise.
18759         * tests/test-strerror.c (main): Enhance test.
18760         * tests/test-strerror_r.c (main): Likewise.
18761
18762 2011-06-08  Bruno Haible  <bruno@clisp.org>
18763
18764         gnulib-tool: Better isolation between different gnulib-tool invocations.
18765         * gnulib-tool: New option --witness-c-macro.
18766         (witness_c_macro): New variable.
18767         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
18768         AM_CPPFLAGS define it as a C macro.
18769         (func_emit_tests_Makefile_am): Likewise.
18770         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
18771         read it from there.
18772         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
18773         m4_define, not AC_DEFUN.
18774         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
18775         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
18776         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
18777         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
18778         s|...|...|, to substitute the values of the GNULIB_* module indicator
18779         variables.
18780         * modules/dirent (Makefile.am): Likewise.
18781         * modules/fcntl-h (Makefile.am): Likewise.
18782         * modules/iconv-h (Makefile.am): Likewise.
18783         * modules/langinfo (Makefile.am): Likewise.
18784         * modules/locale (Makefile.am): Likewise.
18785         * modules/math (Makefile.am): Likewise.
18786         * modules/netdb (Makefile.am): Likewise.
18787         * modules/poll-h (Makefile.am): Likewise.
18788         * modules/pty (Makefile.am): Likewise.
18789         * modules/search (Makefile.am): Likewise.
18790         * modules/signal (Makefile.am): Likewise.
18791         * modules/spawn (Makefile.am): Likewise.
18792         * modules/stdio (Makefile.am): Likewise.
18793         * modules/stdlib (Makefile.am): Likewise.
18794         * modules/string (Makefile.am): Likewise.
18795         * modules/sys_ioctl (Makefile.am): Likewise.
18796         * modules/sys_select (Makefile.am): Likewise.
18797         * modules/sys_socket (Makefile.am): Likewise.
18798         * modules/sys_stat (Makefile.am): Likewise.
18799         * modules/sys_times (Makefile.am): Likewise.
18800         * modules/sys_utsname (Makefile.am): Likewise.
18801         * modules/sys_wait (Makefile.am): Likewise.
18802         * modules/termios (Makefile.am): Likewise.
18803         * modules/time (Makefile.am): Likewise.
18804         * modules/unistd (Makefile.am): Likewise.
18805         * modules/wchar (Makefile.am): Likewise.
18806
18807 2011-06-08  Eric Blake  <eblake@redhat.com>
18808
18809         strerror: simplify replacement
18810         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
18811         * modules/strerror (configure.ac): No prereqs needed here...
18812         * modules/strerror-override (configure.ac): ...but this needs it.
18813         (Files): Add file for needed prereq macro.
18814
18815 2011-06-08  Bruno Haible  <bruno@clisp.org>
18816
18817         strerror_r-posix: Tweaks.
18818         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
18819         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
18820         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
18821         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
18822         (gl_FUNC_STRERROR_R): ... to here.
18823         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
18824
18825 2011-06-07  Eric Blake  <eblake@redhat.com>
18826
18827         perror: document fixed bugs
18828         * doc/posix-functions/perror.texi (perror): Document recent
18829         patches.
18830
18831 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
18832
18833         stat-time: get_stat_birthtime failure is better-defined
18834         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
18835         return a timestamp whose tv_sec and tv_nsec values are both -1.
18836         Previously, the spec said only that the tv_nsec value was negative.
18837         This upward-compatible change simplifies GNU tar a bit.
18838
18839 2011-06-07  Eric Blake  <eblake@redhat.com>
18840
18841         strerror_r-posix: work around cygwin 1.7.9
18842         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
18843         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
18844         bug without replacing strerror_r.
18845         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
18846         strerror_r is buggy, but without requiring strerror_r compilation.
18847         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
18848
18849         test-perror: relax test to ignore cygwin bug
18850         * tests/test-perror2.c (main): Relax test on requiring detection
18851         of stream errors, and use unbuffered stream.
18852         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
18853         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
18854         * doc/posix-functions/fputc.texi (fputc): Likewise.
18855         * doc/posix-functions/fputs.texi (fputs): Likewise.
18856         * doc/posix-functions/fputws.texi (fputws): Likewise.
18857         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
18858         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
18859         * doc/posix-functions/getopt.texi (getopt): Likewise.
18860         * doc/posix-functions/perror.texi (perror): Likewise.
18861         * doc/posix-functions/printf.texi (printf): Likewise.
18862         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
18863         * doc/posix-functions/psignal.texi (psignal): Likewise.
18864         * doc/posix-functions/putc.texi (putc): Likewise.
18865         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
18866         Likewise.
18867         * doc/posix-functions/putchar.texi (putchar): Likewise.
18868         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
18869         Likewise.
18870         * doc/posix-functions/puts.texi (puts): Likewise.
18871         * doc/posix-functions/putwc.texi (putwc): Likewise.
18872         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
18873         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
18874         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
18875         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
18876         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
18877         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
18878         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
18879         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
18880
18881 2011-05-22  Bruno Haible  <bruno@clisp.org>
18882
18883         strerror: Move AC_LIBOBJ invocations to module description.
18884         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
18885         gl_PREREQ_STRERROR invocations from here...
18886         * modules/strerror (configure.ac): ... to here.
18887
18888 2011-05-21  Bruno Haible  <bruno@clisp.org>
18889
18890         perror: Use common idiom.
18891         * modules/perror (configure.ac): Reorder statements.
18892
18893 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
18894
18895         tests: fix usage message in 'mktempd_'
18896         * tests/init.sh (mktempd_): In the usage message, use literal
18897         'mktempd_', not '$ME' (which is even undefined), as the name of
18898         the subroutine.
18899
18900 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
18901
18902         tests init: new function 'fatal_', for hard errors
18903         Before this patch, the only way offered by tests/init.sh to
18904         properly signal a hard error was the `framework_failure_'
18905         function.  But the error message issued by that function,
18906         as its name would suggest, refers to a set-up failure in the
18907         testsuite, while hard errors can obviously also be due to
18908         other reasons.  The best way to fix this inconsistency is to
18909         introduce a new function with a more general error message.
18910         * tests/init.sh (fatal_): New function.
18911
18912 2011-06-06  Eric Blake  <eblake@redhat.com>
18913
18914         canonicalize-lgpl: use common idiom
18915         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
18916         over newer POSIX -Rf.
18917         Reported by Bruno Haible.
18918
18919         canonicalize-lgpl: work around AIX realpath bug
18920         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
18921         * doc/posix-functions/realpath.texi (realpath): Document it.
18922         Reported by Bruno Haible.
18923
18924         strerror: work around FreeBSD bug
18925         * lib/strerror.c (strerror): Special case 0.
18926         Reported by Bruno Haible.
18927
18928         strerror-override: avoid bloating errno module
18929         * modules/errno (Files, configure.ac): Move replacement strings...
18930         * modules/strerror-override: ...to new module.
18931         * modules/strerror (Depends-on): Add strerror-override.
18932         * modules/strerror_r-posix (Depends-on): Likewise.
18933         * MODULES.html.sh: Document new module.
18934         Reported by Bruno Haible.
18935
18936 2011-06-06  Bruno Haible  <bruno@clisp.org>
18937
18938         spawn-pipe tests: Rename program.
18939         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
18940         * tests/test-spawn-pipe-child.c: Update comment.
18941         * tests/test-spawn-pipe.sh: Update.
18942         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
18943
18944         spawn-pipe tests: Link the child program only against libc.
18945         * tests/test-spawn-pipe-child.c: New file, extracted from
18946         tests/test-spawn-pipe.c.
18947         (main): Expect only one argument.
18948         (is_open): New function, copied from tests/test-pipe.c.
18949         * tests/test-spawn-pipe.c: Don't include <errno.h>.
18950         (child_main): Remove function.
18951         (test_pipe): Pass only one argument to the child program.
18952         (main): Remove child process code. Expect the child program's name as
18953         first argument.
18954         * tests/test-spawn-pipe.sh: Pass the child program's name as first
18955         argument.
18956         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
18957         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
18958         test-spawn-pipe-child against no libraries.
18959
18960 2011-06-06  Bruno Haible  <bruno@clisp.org>
18961
18962         careadlinkat: Avoid mismatch between ssize_t and int.
18963         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
18964         * lib/careadlinkat.c (careadlinkatcwd): Define always.
18965
18966 2011-06-06  Jim Meyering  <meyering@redhat.com>
18967
18968         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
18969         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
18970         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
18971
18972 2011-06-05  Bruno Haible  <bruno@clisp.org>
18973
18974         ansi-c++-opt: Interoperability with libtool.
18975         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
18976         set the variable to "no", not to ":".
18977         * NEWS: Mention the change.
18978
18979 2011-06-05  Bruno Haible  <bruno@clisp.org>
18980
18981         acl: Fix test failure on AIX 7.
18982         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
18983         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
18984
18985 2011-06-05  Bruno Haible  <bruno@clisp.org>
18986
18987         pipe-filter-ii: Fix test failure on AIX and IRIX.
18988         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
18989         with EAGAIN, retry with a smaller buffer size.
18990
18991 2011-06-05  Bruno Haible  <bruno@clisp.org>
18992
18993         localename: Fix link dependencies.
18994         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
18995         * modules/localename-tests (Makefile.am): Link test-localename with
18996         $(LIBTHREAD).
18997
18998 2011-06-05  Bruno Haible  <bruno@clisp.org>
18999
19000         error: Avoid gcc warning.
19001         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
19002
19003 2011-06-05  Bruno Haible  <bruno@clisp.org>
19004
19005         unsetenv: Avoid gcc warning.
19006         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
19007
19008 2011-06-05  Bruno Haible  <bruno@clisp.org>
19009
19010         setenv: Avoid gcc warning.
19011         * lib/setenv.c (setenv): Provide declaration if system lacks it.
19012
19013 2011-06-05  Bruno Haible  <bruno@clisp.org>
19014
19015         sys_select: Ensure memset is declared also on AIX 7.
19016         * lib/sys_select.in.h: Include <string.h> also on AIX.
19017         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
19018         self-contained also on AIX 7.1.
19019
19020 2011-06-04  Jim Meyering  <meyering@redhat.com>
19021
19022         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
19023         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
19024         function name, "error".
19025         (_gl_translatable_diag_func_re): New configurable variable.
19026
19027 2011-06-04  Bruno Haible  <bruno@clisp.org>
19028
19029         getopt: Avoid gcc warning.
19030         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
19031
19032 2011-06-04  Bruno Haible  <bruno@clisp.org>
19033
19034         strerror_r: Fix comments.
19035         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
19036         commit.
19037
19038 2011-06-04  Bruno Haible  <bruno@clisp.org>
19039
19040         perror: Fix compilation error.
19041         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
19042         Undefine fprintf, not sprintf.
19043         * modules/perror (Depends-on): Remove intprops, verify.
19044
19045 2011-06-04  Bruno Haible  <bruno@clisp.org>
19046
19047         setlocale: Enable replacement on Cygwin 1.5.
19048         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
19049         Cygwin 1.5.x.
19050         * doc/posix-functions/setlocale.texi: Mention that the problem with the
19051         LC_CTYPE category also exists on Cygwin 1.5.x.
19052
19053 2011-06-04  Bruno Haible  <bruno@clisp.org>
19054
19055         strerror-override: Don't disable symbol renamings.
19056         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
19057         * lib/strerror-override.c: Include config.h.
19058         (strerror_override): Don't undefine.
19059
19060 2011-06-03  Bruno Haible  <bruno@clisp.org>
19061
19062         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
19063         * lib/localename.h: Update copyright header.
19064         * lib/localename.c: Likewise.
19065         * lib/relocatable.h: Likewise.
19066         * lib/relocatable.c: Likewise.
19067
19068 2011-06-02  Bruno Haible  <bruno@clisp.org>
19069
19070         doc: Fix a module name.
19071         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
19072
19073 2011-06-02  Bruno Haible  <bruno@clisp.org>
19074
19075         pipe2: Remove dependency on 'nonblocking' module.
19076         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
19077         O_NONBLOCK is defined by gnulib.
19078         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
19079         is zero.
19080         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
19081         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
19082         defined by gnulib.
19083         (get_nonblocking_flag): New function.
19084         (main): Test O_NONBLOCK flag only if it is nonzero.
19085         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
19086
19087 2011-06-03  Jim Meyering  <meyering@redhat.com>
19088
19089         maint: three new prohibit-header-without-use rules
19090         Prohibit use of cloexec.h, posixver.h, same.h without use.
19091         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
19092         (sc_prohibit_posixver_without_use): Likewise.
19093         (sc_prohibit_same_without_use): Likewise.
19094
19095 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
19096
19097         allocator: 'die' routine is now given requested size
19098         * lib/allocator.h (struct allocator.die): New size arg.
19099         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
19100         If the actual problem is an ssize_t limitation, not a size_t or
19101         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
19102
19103 2011-06-01  Eric Blake  <eblake@redhat.com>
19104
19105         strerror: drop strerror_r dependency
19106         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
19107         * lib/strerror-override.c (strerror_override): ...to new file.
19108         * lib/strerror-override.h: Add prototype.
19109         * lib/strerror-impl.h: Delete.
19110         * lib/strerror.c (strerror): New implementation.
19111         * modules/errno (Files): Add new files.
19112         (configure.ac): Compile new file as appropriate.
19113         * modules/strerror (Files): Drop unused file.
19114         (Depends-on): Drop strerror_r-posix.
19115         * MODULES.html.sh: Document strerror_r-posix.
19116         Requested by Sam Steingold.
19117
19118         perror: call strerror_r directly
19119         * modules/perror (Files): Drop strerror-impl.h.
19120         * lib/perror.c (perror): Use our own stack buffer, rather than
19121         calling a wrapper that uses static storage.
19122         * doc/posix-functions/perror.texi (perror): Document a limitation
19123         of our replacement.
19124
19125         strerror_r: fix includes for FreeBSD
19126         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
19127         since we use abort on some platforms.
19128         Reported by Matthias Bolte.
19129
19130 2011-05-31  Bruno Haible  <bruno@clisp.org>
19131
19132         Fix link errors in tests: openat-die uses gettext-h.
19133         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
19134         against $(LIBINTL).
19135         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
19136         against $(LIBINTL).
19137         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
19138         $(LIBINTL).
19139         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
19140         against $(LIBINTL).
19141         * modules/linkat-tests (Makefile.am): Link test-linkat against
19142         $(LIBINTL).
19143         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
19144         $(LIBINTL).
19145         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
19146         against $(LIBINTL).
19147         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
19148         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
19149         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
19150         $(LIBINTL).
19151         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
19152         $(LIBINTL).
19153         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
19154         $(LIBINTL).
19155         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19156
19157 2011-05-31  Bruno Haible  <bruno@clisp.org>
19158
19159         Fix link errors in tests: wait-process uses gettext-h.
19160         * modules/nonblocking-pipe-tests (Makefile.am): Set
19161         test_nonblocking_pipe_main_LDADD.
19162         * modules/nonblocking-socket-tests (Makefile.am): Link
19163         test-nonblocking-socket-main against $(LIBINTL).
19164         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19165
19166 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
19167
19168         assert-h: work around 'verify' incompatibility
19169         * lib/verify.h: Use @...@ directives, not ifdef.
19170         * modules/assert-h (assert.h): Implement the directives.
19171         (assert.h): Substitute the symbol-prefix more consistently.
19172
19173 2011-05-29  Jim Meyering  <meyering@redhat.com>
19174
19175         trim: remove three superfluous assignments
19176         * lib/trim.c (trim2): Remove three superfluous assignments
19177         and correct brace positioning.
19178
19179 2011-05-29  Bruno Haible  <bruno@clisp.org>
19180
19181         wctype-h: Avoid namespace pollution on Solaris 2.6.
19182         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
19183         identifiers.
19184         * doc/posix-headers/wctype.texi: Mention the problem.
19185         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19186
19187 2011-05-28  Jim Meyering  <meyering@redhat.com>
19188
19189         parse-datetime.y: accommodate -Wstrict-overflow
19190         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
19191         placate -Wstrict-overflow.
19192
19193         trim: avoid a warning from -O2 -Wstrict-overflow
19194         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
19195
19196 2011-05-29  Bruno Haible  <bruno@clisp.org>
19197
19198         gnulib-tool: Fix bug in yesterday's commit.
19199         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
19200         twice.
19201
19202 2011-05-29  Bruno Haible  <bruno@clisp.org>
19203
19204         Allow multiple gnulib generated include files to be combined.
19205         * gnulib-tool (func_compute_include_guard_prefix): New function.
19206         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
19207         ${gl_include_guard_prefix} references.
19208         (func_import, func_create_testdir): Invoke
19209         func_compute_include_guard_prefix.
19210         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
19211         * lib/ctype.in.h: Likewise.
19212         * lib/dirent.in.h: Likewise.
19213         * lib/errno.in.h: Likewise.
19214         * lib/fcntl.in.h: Likewise.
19215         * lib/float.in.h: Likewise.
19216         * lib/getopt.in.h: Likewise.
19217         * lib/iconv.in.h: Likewise.
19218         * lib/langinfo.in.h: Likewise.
19219         * lib/locale.in.h: Likewise.
19220         * lib/math.in.h: Likewise.
19221         * lib/netdb.in.h: Likewise.
19222         * lib/netinet_in.in.h: Likewise.
19223         * lib/poll.in.h: Likewise.
19224         * lib/pthread.in.h: Likewise.
19225         * lib/pty.in.h: Likewise.
19226         * lib/sched.in.h: Likewise.
19227         * lib/se-selinux.in.h: Likewise.
19228         * lib/search.in.h: Likewise.
19229         * lib/signal.in.h: Likewise.
19230         * lib/spawn.in.h: Likewise.
19231         * lib/stdarg.in.h: Likewise.
19232         * lib/stddef.in.h: Likewise.
19233         * lib/stdint.in.h: Likewise.
19234         * lib/stdio.in.h: Likewise.
19235         * lib/stdlib.in.h: Likewise.
19236         * lib/string.in.h: Likewise.
19237         * lib/strings.in.h: Likewise.
19238         * lib/sys_file.in.h: Likewise.
19239         * lib/sys_ioctl.in.h: Likewise.
19240         * lib/sys_select.in.h: Likewise.
19241         * lib/sys_socket.in.h: Likewise.
19242         * lib/sys_stat.in.h: Likewise.
19243         * lib/sys_time.in.h: Likewise.
19244         * lib/sys_times.in.h: Likewise.
19245         * lib/sys_uio.in.h: Likewise.
19246         * lib/sys_utsname.in.h: Likewise.
19247         * lib/sys_wait.in.h: Likewise.
19248         * lib/sysexits.in.h: Likewise.
19249         * lib/termios.in.h: Likewise.
19250         * lib/time.in.h: Likewise.
19251         * lib/unistd.in.h: Likewise.
19252         * lib/wchar.in.h: Likewise.
19253         * lib/wctype.in.h: Likewise.
19254         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
19255         * modules/ctype (Makefile.am): Likewise.
19256         * modules/dirent (Makefile.am): Likewise.
19257         * modules/errno (Makefile.am): Likewise.
19258         * modules/fcntl-h (Makefile.am): Likewise.
19259         * modules/float (Makefile.am): Likewise.
19260         * modules/getopt-posix (Makefile.am): Likewise.
19261         * modules/iconv-h (Makefile.am): Likewise.
19262         * modules/langinfo (Makefile.am): Likewise.
19263         * modules/locale (Makefile.am): Likewise.
19264         * modules/math (Makefile.am): Likewise.
19265         * modules/netdb (Makefile.am): Likewise.
19266         * modules/netinet_in (Makefile.am): Likewise.
19267         * modules/poll-h (Makefile.am): Likewise.
19268         * modules/pthread (Makefile.am): Likewise.
19269         * modules/pty (Makefile.am): Likewise.
19270         * modules/sched (Makefile.am): Likewise.
19271         * modules/search (Makefile.am): Likewise.
19272         * modules/selinux-h (Makefile.am): Likewise.
19273         * modules/signal (Makefile.am): Likewise.
19274         * modules/spawn (Makefile.am): Likewise.
19275         * modules/stdarg (Makefile.am): Likewise.
19276         * modules/stddef (Makefile.am): Likewise.
19277         * modules/stdint (Makefile.am): Likewise.
19278         * modules/stdio (Makefile.am): Likewise.
19279         * modules/stdlib (Makefile.am): Likewise.
19280         * modules/string (Makefile.am): Likewise.
19281         * modules/strings (Makefile.am): Likewise.
19282         * modules/sys_file (Makefile.am): Likewise.
19283         * modules/sys_ioctl (Makefile.am): Likewise.
19284         * modules/sys_select (Makefile.am): Likewise.
19285         * modules/sys_socket (Makefile.am): Likewise.
19286         * modules/sys_stat (Makefile.am): Likewise.
19287         * modules/sys_time (Makefile.am): Likewise.
19288         * modules/sys_times (Makefile.am): Likewise.
19289         * modules/sys_uio (Makefile.am): Likewise.
19290         * modules/sys_utsname (Makefile.am): Likewise.
19291         * modules/sys_wait (Makefile.am): Likewise.
19292         * modules/sysexits (Makefile.am): Likewise.
19293         * modules/termios (Makefile.am): Likewise.
19294         * modules/time (Makefile.am): Likewise.
19295         * modules/unistd (Makefile.am): Likewise.
19296         * modules/wchar (Makefile.am): Likewise.
19297         * modules/wctype-h (Makefile.am): Likewise.
19298         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
19299
19300 2011-05-29  Bruno Haible  <bruno@clisp.org>
19301
19302         assert-h: Allow multiple gnulib generated replacements to coexist.
19303         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
19304
19305 2011-05-29  Bruno Haible  <bruno@clisp.org>
19306
19307         argp: Allow coexistence with strerror_r-posix module.
19308         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
19309         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
19310         by gnulib's <string.h> replacement), assume it has the POSIX signature,
19311         not the glibc signature.
19312
19313 2011-05-28  Bruno Haible  <bruno@clisp.org>
19314
19315         gnulib-tool: Alternative structure of testdirs, similar to --import.
19316         * gnulib-tool: New option --single-configure.
19317         (func_usage): Document it.
19318         (single_configure): New variable.
19319         (func_modules_transitive_closure_separately,
19320         func_modules_transitive_closure_separately,
19321         func_determine_use_libtests, func_modules_add_dummy_separately,
19322         func_modules_to_filelist_separately): New functions, extracted from
19323         func_import.
19324         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
19325         (func_import): Use the new functions.
19326         (func_create_testdir): Set final_modules. Handle $single_configure =
19327         true case.
19328
19329 2011-05-28  Bruno Haible  <bruno@clisp.org>
19330
19331         getloadavg: Remove an unreliable safety check.
19332         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
19333         getloadavg.c is in place.
19334         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
19335         Reported by Sam Steingold <sds@gnu.org>.
19336
19337 2011-05-28  Bruno Haible  <bruno@clisp.org>
19338
19339         doc: Cleanup yet another file produced by texinfo.tex.
19340         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
19341
19342 2011-05-28  Bruno Haible  <bruno@clisp.org>
19343
19344         Finish the conditional dependencies mechanism.
19345         * gnulib-tool: New option --no-conditional-dependencies.
19346         (func_usage): Document it. Don't mark --conditional-dependencies as
19347         experimental.
19348         (cond_dependencies): The possible values can now be true, false, empty.
19349         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
19350         (func_import): Store setting in gnulib-cache.m4 and read it from there.
19351         * doc/gnulib-tool.texi (Conditional dependencies): New section.
19352
19353 2011-05-28  Bruno Haible  <bruno@clisp.org>
19354
19355         doc: Use a recent texinfo.tex.
19356         * doc/Makefile (tex_opts): New variable.
19357         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
19358
19359 2011-05-28  Jim Meyering  <meyering@redhat.com>
19360
19361         intprops.h: adjust comment to match code change
19362         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
19363         only once, it *may* have side effects.  Also fix an unrelated typo.
19364         (_GL_INT_SIGNED): Likewise.
19365
19366 2011-05-26  Simon Josefsson  <simon@josefsson.org>
19367
19368         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
19369
19370 2011-05-26  Bruno Haible  <bruno@clisp.org>
19371
19372         mbsrchr: Avoid collision with system function on Interix.
19373         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
19374         Reported by Markus Duft <mduft@gentoo.org>.
19375
19376 2011-05-15  James Youngman  <jay@gnu.org>
19377
19378         getopt: for ambiguous options, enumerate the possibilities.
19379         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
19380         the ambiguous options when an ambiguous prefix is given. This was
19381         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
19382         glibc change was
19383         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
19384
19385 2011-05-25  Eric Blake  <eblake@redhat.com>
19386
19387         getcwd: work around mingw bug
19388         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
19389         * doc/posix-functions/getcwd.texi (getcwd): Document it.
19390         Reported by Matthias Bolte.
19391
19392 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
19393
19394         test-intprops: disable -Wtype-limits diagnostics
19395         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
19396         diagnostics.  Otherwise, the integer overflow macros generate many
19397         diagnostics.  Reported by Jim Meyering in
19398         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
19399
19400         intprops: shorten, to pacify gcc -Woverlength-strings
19401         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
19402         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
19403         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
19404         likely to run afoul of C compiler limits for string constant lengths.
19405         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
19406
19407 2011-05-24  Eric Blake  <eblake@redhat.com>
19408
19409         docs: document recently fixed glibc printf bug
19410         * doc/posix-functions/fprintf.texi (fprintf): Document it.
19411         * doc/posix-functions/printf.texi (printf): Likewise.
19412         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
19413         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
19414
19415         closein-tests: convert to init.sh
19416         * modules/closein-tests (Files): Add init.sh
19417         * tests/test-closein.sh Use it.
19418
19419         yesno-tests: convert to init.sh
19420         * modules/yesno-tests (Files): Add init.sh.
19421         * tests/test-yesno.sh: Use it.
19422
19423         atexit-tests: ensure reliable exit status
19424         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
19425         Reported by Bruno Haible.
19426
19427 2011-05-24  Bruno Haible  <bruno@clisp.org>
19428
19429         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
19430         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
19431         gl_PREREQ_STRERROR_R invocations from here...
19432         * modules/strerror_r-posix (configure.ac): ... to here.
19433
19434 2011-05-24  Eric Blake  <eblake@redhat.com>
19435
19436         strerror_r: fix missing header
19437         * lib/strerror_r.c: Avoid compiler warning about snprintf.
19438
19439         strerror_r: fix AIX test failures
19440         * lib/strerror_r.c (strerror_r): Convert silent truncation to
19441         ERANGE failure.
19442
19443         strerror_r: fix Solaris test failures
19444         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
19445         failures.
19446         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
19447
19448         strerror_r: enforce POSIX recommendations
19449         * lib/strerror_r.c (safe_copy): New helper method.
19450         (strerror_r): Guarantee a non-empty string.
19451         * tests/test-strerror_r.c (main): Enhance tests to incorporate
19452         recent POSIX rulings and to match our strerror guarantees.
19453         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
19454
19455 2011-05-24  Jim Meyering  <meyering@redhat.com>
19456
19457         test-perror2.c: avoid warning about unused variable
19458         * tests/test-perror2.c (main): Remove declaration of unused "fp".
19459
19460 2011-05-24  Eric Blake  <eblake@redhat.com>
19461
19462         perror: avoid spurious test failure on HP-UX
19463         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
19464
19465         tests: fix logic bug in init.sh
19466         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
19467         shell.
19468
19469 2011-05-24  Jim Meyering  <meyering@redhat.com>
19470
19471         utimensat: do not reference an out-of-scope buffer
19472         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
19473         declared in an inner scope, yet "times" would be dereferenced outside
19474         the scope in which "ts" was valid.
19475         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
19476         of ts[2] "out/up", so that the use of aliased "times" (via
19477         "times = ts;") does not end up referencing an out-of-scope "ts"
19478
19479         opendir-safer.c: don't clobber errno; don't close negative FD
19480         * lib/opendir-safer.c (opendir_safer):
19481         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
19482         file descriptor, and more importantly, don't clobber the
19483         offending errno value with EINVAL.  Before, upon failure
19484         of dup_safer, we would pass the negative file descriptor to
19485         fdopendir, which would clobber errno.
19486
19487 2011-05-23  Bruno Haible  <bruno@clisp.org>
19488
19489         idcache: Fix module description.
19490         * modules/idcache (Include): Set to "idcache.h".
19491
19492 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
19493
19494         gnulib-tool: fix portability problem with MacOS sed
19495         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
19496         before the "}".  Problem reported by Leo in
19497         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
19498         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
19499         sed_extract_condition1, sed_extract_condition2.
19500
19501 2011-05-23  Bruno Haible  <bruno@clisp.org>
19502
19503         hash: Simplify autoconf macro.
19504         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
19505
19506 2011-05-23  Bruno Haible  <bruno@clisp.org>
19507
19508         getugroups: Fix module description.
19509         * modules/getugroups (Include): Set to "getugroups.h".
19510
19511 2011-05-23  Bruno Haible  <bruno@clisp.org>
19512
19513         linkat: Simplify autoconf macro.
19514         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
19515
19516 2011-05-23  Bruno Haible  <bruno@clisp.org>
19517             Eric Blake  <eblake@redhat.com>
19518
19519         linkat, renameat: Update dependencies.
19520         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
19521         * modules/linkat (Depends-on): Likewise. Remove also readlink,
19522         symlinkat.
19523
19524 2011-05-23  Jim Meyering  <meyering@redhat.com>
19525
19526         maint.mk: more tight_scope improvements
19527         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
19528         (_gl_TS_headers): Define only in if-0'd block.
19529         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
19530         sometimes we must *not* use it.  Adjust uses accordingly.
19531         (sc_tight_scope): Use much simpler grep-based test to determine
19532         whether we skip this rule.
19533
19534         maint.mk: generalize/improve the tight-scope rule
19535         * top/maint.mk: Emit a warning when the test is skipped.
19536         (_gl_TS_dir): Add $(srcdir)/ prefix.
19537         (_gl_TS_function_match): Simplify, rather than trying
19538         to enumerate common types.  Otherwise, it would fail to match an
19539         "extern unsigned char const *" declaration in idutils.
19540         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
19541         a way to support use of that type of macro.
19542         (_gl_TS_var_match): Simplify regexp.
19543         (_gl_TS_obj_files): New configurable variable.
19544         (_gl_TS_headers): Likewise.
19545
19546 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
19547
19548         verify: fix bug when gnulib <assert.h> is also included
19549         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
19550         is defined, not if _GL_STATIC_ASSERT_H is not defined.
19551         Perhaps there's a better way, but this fixes the immediate problem.
19552         Problem reported by Bruno Haible in
19553         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
19554
19555 2011-05-22  Bruno Haible  <bruno@clisp.org>
19556
19557         xgetcwd: Simplify autoconf macro.
19558         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
19559
19560 2011-05-22  Bruno Haible  <bruno@clisp.org>
19561
19562         New module 'mktime-internal'.
19563         * modules/mktime-internal: New file.
19564         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
19565         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
19566         mktime_internal as a C macro if libc has __mktime_internal.
19567         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
19568         conditions.
19569         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
19570
19571 2011-05-22  Bruno Haible  <bruno@clisp.org>
19572
19573         timegm: Correct mktime replacement statements.
19574         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
19575         defining mktime as a C macro. This completes a 2009-07-28 commit.
19576
19577 2011-05-22  Bruno Haible  <bruno@clisp.org>
19578
19579         timegm: Simplify autoconf macro.
19580         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
19581
19582 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
19583
19584         clock-time: change to LGPLv2+.
19585         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
19586         BSD-like but we have no mark for that; this is good enough for now.
19587
19588 2011-05-21  Bruno Haible  <bruno@clisp.org>
19589
19590         strerror_r: Fix comments.
19591         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
19592
19593 2011-05-21  Bruno Haible  <bruno@clisp.org>
19594
19595         relocatable-prog-wrapper: Fix possible link error.
19596         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
19597         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
19598         (gl_FUNC_SETENV): ... to here.
19599         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
19600         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
19601
19602 2011-05-21  Bruno Haible  <bruno@clisp.org>
19603
19604         relocatable-prog-wrapper: Assume strerror() exists.
19605         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
19606         m4/strerror.m4.
19607         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
19608         * lib/relocwrapper.c: Remove mention of strerror module.
19609         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
19610         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
19611         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
19612         C macro.
19613
19614 2011-05-21  Bruno Haible  <bruno@clisp.org>
19615
19616         select: Simplify replacement idiom.
19617         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
19618         Win32 platforms.
19619         * lib/sys_select.in.h (select): Simplify accordingly.
19620         * modules/select (Depends-on): Likewise.
19621
19622 2011-05-21  Bruno Haible  <bruno@clisp.org>
19623
19624         mkdir-p: Simplify autoconf macro.
19625         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
19626         gl_FUNC_LCHOWN.
19627
19628 2011-05-21  Eric Blake  <eblake@redhat.com>
19629
19630         strerror_r: avoid clobbering strerror on cygwin
19631         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
19632         fall back instead to sys_errlist.
19633         * modules/strerror (configure.ac): Add witness.
19634         * tests/test-strerror_r.c (main): Enhance test.
19635         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
19636         * tests/test-perror2.c (main): Free memory before exit.
19637
19638 2011-05-21  Bruno Haible  <bruno@clisp.org>
19639
19640         mkdtemp: Use gnulib naming conventions.
19641         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
19642         * modules/mkdtemp (configure.ac): Update.
19643
19644 2011-05-20  Eric Blake  <eblake@redhat.com>
19645
19646         strerror_r: avoid corrupting errno on Solaris
19647         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
19648         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
19649
19650         strerror_r: avoid compiler warning
19651         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
19652
19653         strerror_r: simplify AIX code
19654         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
19655
19656         test-perror: avoid spurious failure on FreeBSD
19657         * modules/perror-tests (Depends-on): Add strerror, now that
19658         strerror_r no longer pulls it in.
19659
19660 2011-05-20  Bruno Haible  <bruno@clisp.org>
19661
19662         strerror_r-posix: Remove unused dependencies.
19663         * modules/strerror_r-posix (Depends-on): Remove strerror.
19664         Reported by Eric Blake.
19665
19666 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
19667
19668         intprops: remove assumption about A|B representation
19669         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
19670         is a valid integer if both A and B are.  Although this is true for
19671         all known practical hosts, the C standard doesn't guarantee it,
19672         and the code need not assume it.  Also, this change may work around
19673         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
19674         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
19675
19676 2011-05-20  Eric Blake  <eblake@redhat.com>
19677
19678         perror: work around FreeBSD bug
19679         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
19680         is broken.  Move AC_LIBOBJ...
19681         * modules/perror (configure.ac): Here.
19682         * doc/posix-functions/perror.texi (perror): Document this.
19683         * tests/test-perror2.c (main): Enhance test.
19684
19685         test-perror: check for strerror interactions
19686         * tests/macros.h (STREQ): Add macro.
19687         * modules/perror-tests (Files): Add second test.
19688         * tests/test-perror2.c (main): New file.
19689         * doc/posix-functions/perror.texi (perror): Document glibc bug.
19690
19691         test-perror: rewrite to use init script
19692         * modules/perror-tests (Files): Add init.sh.
19693         * tests/test-perror.sh: Use temporary directory.
19694
19695 2011-05-20  Jim Meyering  <meyering@redhat.com>
19696
19697         maint: replace misused "a" with "an"
19698         * doc/intprops.texi: "a integer"
19699         * doc/regex.texi: "a explanation"
19700         * lib/alignof.h: "a object"
19701         * lib/argmatch.h: "a explanation"
19702         * lib/argp-help.c: "a option" and "a OPTION_DOC"
19703         * lib/stdint.in.h: "a integer"
19704         * lib/userspec.c: "a owner"
19705         * doc/gnulib.texi: Fix "a idea", and reword.
19706
19707 2011-05-19  Jim Meyering  <meyering@redhat.com>
19708
19709         maint: correct misuse of "a" and "an"
19710         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
19711         * lib/argp-help.c: "an docum...": s/an/a/
19712         * lib/argp-parse.c: "An vector": s/An/A/
19713         * lib/execute.c: "an native": s/an/a/
19714         * lib/spawn-pipe.c: Likewise.
19715         * lib/gc.h: "an Gc_rc": s/an/a/
19716         * lib/unigbrk.in.h: "an grapheme": s/an/a/
19717         * lib/fts.c: "an stat.st_dev": s/an/a/
19718
19719 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
19720
19721         intprops-tests: work around HP-UX 11.23 cc bug with constants
19722         * tests/test-intprops.c (VERIFY): New macro.
19723         (main): Use it, instead of verify, to work around the compiler bug; see
19724         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
19725
19726         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
19727         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
19728         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
19729         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
19730         (_GL_REMAINDER_OVERFLOW): Use it.
19731
19732         intprops-tests: revert unsigned part of previous change
19733         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
19734         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
19735         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
19736         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
19737
19738 2011-05-19  Bruno Haible  <bruno@clisp.org>
19739
19740         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
19741         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
19742         strerror_r() returned without filling the buffer.
19743         Reported by Eric Blake.
19744
19745 2011-05-19  Eric Blake  <eblake@redhat.com>
19746
19747         strerror_r: guarantee unchanged errno
19748         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
19749         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
19750         failure.
19751         * tests/test-strerror_r.c (main): Enhance test.
19752
19753 2011-05-19  Bruno Haible  <bruno@clisp.org>
19754
19755         strerror_r: Reorder #if blocks.
19756         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
19757         for consistency with the previous commit.
19758
19759 2011-05-19  Bruno Haible  <bruno@clisp.org>
19760
19761         perror: Avoid clobbering the strerror buffer when possible.
19762         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
19763         * lib/strerror.c: Include it.
19764         * modules/strerror (Files): Add lib/strerror-impl.h.
19765         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
19766         (my_strerror): New function, defined through lib/strerror-impl.h.
19767         (perror): Use it instead of strerror.
19768         * modules/perror (Files): Add lib/strerror-impl.h.
19769         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
19770
19771 2011-05-19  Eric Blake  <eblake@redhat.com>
19772
19773         strerror_r: fix on newer cygwin
19774         * lib/strerror_r.c (strerror_r): Cygwin now has
19775         __xpg_strerror_r, use it.
19776
19777 2011-05-19  Bruno Haible  <bruno@clisp.org>
19778
19779         strerror_r: Avoid clobbering the strerror buffer when possible.
19780         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
19781         (sys_nerr, sys_errlist): New declarations.
19782         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
19783         HP-UX, native Win32, IRIX, and 32-bit Solaris.
19784         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
19785
19786 2011-05-19  Bruno Haible  <bruno@clisp.org>
19787
19788         strerror_r: Fix test failure on mingw.
19789         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
19790         EXTEND_STRERROR_R.
19791         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
19792         macros from errno.in.h instead.
19793
19794 2011-05-19  Eric Blake  <eblake@redhat.com>
19795
19796         strerror: relax test for Solaris
19797         * tests/test-strerror.c (main): Permit Solaris behavior.
19798         * tests/test-strerror_r.c (main): Likewise.
19799
19800         strerror: enforce POSIX ruling on strerror(0)
19801         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
19802         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
19803         * lib/strerror_r.c (rpl_strerror_r): Work around it.
19804         * doc/posix-functions/strerror.texi (strerror): Document it.
19805         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
19806         * tests/test-strerror.c (main): Strengthen test.
19807         * tests/test-strerror_r.c (main): Likewise.
19808
19809 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
19810
19811         intprop-tests: port to older and more-pedantic compilers
19812         * modules/intprops-tests (Files): Add tests/macros.h.
19813         * tests/test-intprops.c: Include macros.h.
19814         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
19815         it's no longer documented to expand to an integer constant expression.
19816         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
19817         argument is floating point, as it's no longer documented to expand
19818         to an integer constant expression in that case.
19819         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
19820         compiler bugs reported by Bruno Haible.  See
19821         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
19822         (U0, U1): New constants, to work around the same bugs.  Also,
19823         in tests, use e.g., "(unsigned int) 39" rather than "39u".
19824
19825         intprops: work around C compiler bugs
19826         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
19827         bug in Sun C 5.11 2010/08/13 and other compilers; see
19828         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
19829
19830         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
19831         * doc/intprops.texi (Integer Type Determination): Fix
19832         documentation for TYPE_IS_INTEGER: it returns an constant
19833         expression, not an integer constant expression.  Fix doc for
19834         TYPE_SIGNED: it returns an integer constant expression only if its
19835         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
19836         hardly worth documented that way....)
19837
19838 2011-05-18  Bruno Haible  <bruno@clisp.org>
19839
19840         strerror_r: Avoid clobbering the strerror buffer when possible.
19841         * lib/strerror_r.c (strerror_r): Merge the three implementations.
19842         Handle gnulib defined errno values here. When strerror() returns NULL
19843         or an empty string, return EINVAL.
19844         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
19845         gnulib defined errno values here.
19846         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
19847
19848 2011-05-18  Eric Blake  <eblake@redhat.com>
19849
19850         fnmatch: avoid compiler warning
19851         * lib/fnmatch_loop.c (FCT): Use correct type.
19852         Reported by Matthias Bolte.
19853
19854 2011-05-13  Jim Meyering  <meyering@redhat.com>
19855
19856         maint.mk: three new prohibit_<HDR>_without_use rules
19857         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
19858         (sc_prohibit_stdio-safer_without_use): Likewise.
19859         (sc_prohibit_xfreopen_without_use): Likewise.
19860
19861 2011-05-17  Jim Meyering  <meyering@redhat.com>
19862
19863         announce-gen: fail if the NEWS delta is empty
19864         If there's nothing noteworthy in NEWS, then either you forgot
19865         or you shouldn't be releasing.
19866         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
19867
19868 2011-05-17  Pádraig Brady <P@draigBrady.com>
19869
19870         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
19871         reserved symbols starting with double underscore from the check.
19872
19873 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
19874
19875         intprops: add doc
19876         * doc/intprops.texi: New file, documenting intprops.
19877         * doc/gnulib.texi (Particular Modules): Include it.
19878
19879         verify: add doc to gnulib manual and fix example
19880         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
19881         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
19882         (Compile-time Assertions): Fix example so it can't overflow.
19883
19884 2011-05-17  Jim Meyering  <meyering@redhat.com>
19885
19886         warnings.m4: don't usurp save_CPPFLAGS variable name
19887         * m4/warnings.m4: Prefix local temporary variable name with gl_.
19888
19889         doc: fix typo
19890         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
19891
19892 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
19893             Bruno Haible  <bruno@clisp.org>
19894
19895         doc: Tweak recent change.
19896         * README (Portability guidelines): Tweak new text.
19897         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
19898         Interix 6.1.
19899
19900 2011-05-16  Eric Blake  <eblake@redhat.com>
19901
19902         inttypes: avoid autoconf warning
19903         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
19904         * m4/stdint.m4 (gl_STDINT_H): Likewise.
19905
19906 2011-05-16  Sam Steingold <sds@gnu.org>
19907         and Eric Blake  <eblake@redhat.com>
19908
19909         vc-list-files: accept multiple directory operands
19910         * build-aux/vc-list-files: Iterate over all remaining operands.
19911
19912 2011-05-16  Bruno Haible  <bruno@clisp.org>
19913
19914         Fix confusion regarding deprecated modules.
19915         * modules/calloc (Status, Notice): Mark module as deprecated, not
19916         obsolete.
19917         * modules/fnmatch-posix (Status, Notice): Likewise.
19918         * modules/getdate (Status, Notice): Likewise.
19919         * modules/getopt (Status, Notice): Likewise.
19920         * modules/malloc (Status, Notice): Likewise.
19921         * modules/pipe (Status, Notice): Likewise.
19922         * modules/realloc (Status, Notice): Likewise.
19923         * modules/rename-dest-slash (Status, Notice): Likewise.
19924         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
19925         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
19926         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
19927         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
19928         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
19929
19930 2011-05-16  Bruno Haible  <bruno@clisp.org>
19931
19932         doc: List the target platforms.
19933         * doc/gnulib-intro.texi (Target Platforms): New section.
19934         * doc/gnulib.texi (Introduction): Update menu.
19935         * README (Portability guidelines): Refer to the new section. Update
19936         statement about oldest supported environment. Remove rationale why
19937         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
19938         unportable C89 function.
19939         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
19940         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
19941
19942 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
19943
19944         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
19945
19946 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
19947
19948         intprops-tests: new module
19949         * modules/intprops-tests, tests/test-intprops.c: New files.
19950
19951         intprops: add safe, portable integer overflow checking
19952         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
19953         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
19954         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
19955         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
19956         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
19957         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
19958         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
19959         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
19960         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
19961         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
19962         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
19963
19964 2011-05-12  James Youngman  <jay@gnu.org>
19965
19966         Add a test for glibc's Bugzilla bug #12378.
19967         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
19968         doesn't allow the literal matching of a lone "[" (which is
19969         required by POSIX).
19970         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
19971
19972 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
19973
19974         Sync glibc change fixing Bugzilla bug #12378.
19975         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
19976         beginning and fall back to matching as normal character if the
19977         string ends before the matching ']' is found.  This is what POSIX
19978         requires.
19979
19980 2011-05-13  Eric Blake  <eblake@redhat.com>
19981
19982         getcwd-lgpl: relax test for FreeBSD
19983         * doc/posix-functions/getcwd.texi (getcwd): Document portability
19984         issue.
19985         * tests/test-getcwd-lgpl.c (main): Relax test.
19986         Reported by Matthias Bolte.
19987
19988 2011-05-11  Eric Blake  <eblake@redhat.com>
19989
19990         test-fflush: silence compiler warning
19991         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
19992
19993 2011-05-11  Bruno Haible  <bruno@clisp.org>
19994
19995         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
19996         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
19997         * modules/canonicalize (Depends-on): Add 'nocrash'.
19998         * modules/canonicalize-lgpl (Depends-on): Likewise.
19999         * doc/posix-functions/realpath.texi: Update platforms list.
20000         Reported by Ryan Schmidt <ryandesign@macports.org>.
20001
20002 2011-05-11  Bruno Haible  <bruno@clisp.org>
20003
20004         group-member: Declare function in <unistd.h>.
20005         * lib/unistd.in.h (group_member): New declaration.
20006         * lib/group-member.h: Remove file.
20007         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
20008         * tests/test-unistd-c++.cc: Check signature of group_member.
20009         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
20010         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
20011         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
20012         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
20013         HAVE_GROUP_MEMBER.
20014         * modules/group-member (Files): Remove lib/group-member.h.
20015         (Depends-on): Add unistd. Specify conditions.
20016         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20017         (Include): Change to <unistd.h>.
20018         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
20019         HAVE_GROUP_MEMBER.
20020         * NEWS: Mention the change.
20021         * lib/euidaccess.c: Don't include group-member.h.
20022
20023 2011-05-11  Bruno Haible  <bruno@clisp.org>
20024
20025         group-member: Document module.
20026         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
20027         module.
20028
20029 2011-05-11  Bruno Haible  <bruno@clisp.org>
20030
20031         fclose: Fix mistake earlier today.
20032         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
20033
20034 2011-05-11  Eric Blake  <eblake@redhat.com>
20035
20036         fclose: preserve fflush errors
20037         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
20038         Reported by Jim Meyering.
20039
20040         bootstrap: support a prereq of 'rpcgen -' on RHEL5
20041         * build-aux/bootstrap (check_versions): When no specific version
20042         is required, merely check that the app produces an exit status
20043         that indicates its existence.
20044
20045         maint.mk: drop redundant check
20046         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
20047         the same but better.
20048
20049 2011-05-11  Bruno Haible  <bruno@clisp.org>
20050
20051         fclose: Fix possible link error.
20052         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
20053         unregister_shadow_fd. Improve comments.
20054         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
20055         Eric Blake.
20056
20057 2011-05-11  Jim Meyering  <meyering@redhat.com>
20058
20059         maint.mk: improve "can not" detection and generalize rule name
20060         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
20061         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
20062         Use the same technique as in sc_prohibit_doubled_word, so that
20063         we recognize "can not" also when the words are separated by a newline.
20064         Suggested by Eric Blake.
20065         (perl_filename_lineno_text_): Define.  Factored out of...
20066         (prohibit_doubled_word_): ...here.  Use the new definition.
20067         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
20068         (prohibit_undesirable_word_seq_RE_): New overridable variable.
20069         (ignore_undesirable_word_sequence_RE_): New overridable variable.
20070
20071 2011-05-10  Eric Blake  <eblake@redhat.com>
20072
20073         fclose: avoid double close race when possible
20074         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
20075         all but WINDOWS_SOCKETS.
20076
20077 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
20078
20079         openat: correct new comment
20080         * lib/openat-proc.c (openat_proc_name): Correct the comment.
20081
20082 2011-05-10  Jim Meyering  <meyering@redhat.com>
20083
20084         openat: add comments
20085         * lib/openat-proc.c (openat_proc_name): Add comments,
20086         mostly from Eric Blake.
20087
20088 2011-05-09  Eric Blake  <eblake@redhat.com>
20089
20090         openat: reduce syscalls in first probe of /proc
20091         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
20092         be a directory.  Simplify the probe for .. bugs.
20093         * modules/openat (Depends-on): Drop same-inode.
20094         Reported by Bastien ROUCARIES.
20095
20096 2011-05-09  Jim Meyering  <meyering@redhat.com>
20097
20098         maint.mk: change semantics/name of tight_scope variables
20099         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
20100         Rename variables to align with semantics that make them more useful.
20101
20102         maint.mk: tweak new rule's name not to impinge
20103         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
20104         (sc_tight_scope): Use new rule name rather than $@-0.
20105
20106         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
20107         * top/maint.mk (sc_tight_scope): New rule.
20108         (sc_tight_scope-0): New rule, ifdef'd out.
20109         (_gl_TS_dir): Default.
20110         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
20111         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
20112
20113 2011-05-09  Simon Josefsson  <simon@josefsson.org>
20114
20115         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
20116         Haible <bruno@clisp.org>.
20117
20118 2011-05-08  Bruno Haible  <bruno@clisp.org>
20119
20120         Comments.
20121         * m4/isnanf.m4: Add comment.
20122         * m4/isnanl.m4: Likewise.
20123
20124 2011-05-08  Bruno Haible  <bruno@clisp.org>
20125
20126         glob: Remove obsolete macro.
20127         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
20128
20129 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
20130
20131         intprops: Sun C 5.11 supports __typeof__
20132         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
20133         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
20134         which is new.
20135         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
20136
20137         intprops: switch to usual gnulib indenting and naming
20138         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
20139         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
20140
20141         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
20142
20143 2011-05-08  Jim Meyering  <meyering@redhat.com>
20144
20145         maint.mk: suppress "Entering/Leaving directory" diag in announcement
20146         * top/maint.mk (release-prep): Use make's --no-print-directory
20147         option when generating the announcement.  This eliminates the
20148         pesky "make[2]: Entering/Leaving directory" diagnostics in the
20149         generated announcement template.
20150
20151 2011-05-08  Bruno Haible  <bruno@clisp.org>
20152
20153         tzset: Fix gettimeofday wrapper on Solaris 2.6.
20154         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
20155         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
20156
20157 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
20158
20159         ignore-value, verify: Omit include files from lib_SOURCES.
20160         * modules/ignore-value, modules/verify (Makefile.am):
20161         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
20162         that leads Automake to duplicate use of am__objects_... variables
20163         in Makefile.in.  See
20164         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
20165
20166 2011-05-07  Bruno Haible  <bruno@clisp.org>
20167
20168         fclose: Simplify autoconf macro.
20169         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
20170         defined.
20171
20172 2011-05-07  Bruno Haible  <bruno@clisp.org>
20173
20174         canonicalize-lgpl: Fix autoconf macro ordering bug.
20175         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
20176         gl_STDLIB_H_DEFAULTS.
20177
20178 2011-05-06  Eric Blake  <eblake@redhat.com>
20179
20180         maintainer-makefile: make sc_po_check easier to tune
20181         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
20182         to probe for strings, such as an alternate location for gnulib.
20183
20184         fclose: guarantee behavior on seekable stdin
20185         * modules/fclose (Depends-on): Add fflush.
20186         * doc/posix-functions/fclose.texi (fclose): Document this.
20187         * tests/test-fclose.c (main): Make test for this unconditional.
20188
20189 2011-05-06  Bruno Haible  <bruno@clisp.org>
20190
20191         fflush, fpurge: Relicense under LGPLv2+.
20192         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
20193         * modules/fpurge (License): Likewise.
20194         With permission from Eric Blake and Jim Meyering.
20195         Suggested by Eric Blake.
20196
20197 2011-05-06  Karl Berry  <karl@gnu.org>
20198
20199         * MODULES.html.sh (func_all_modules): remove exit.
20200
20201 2011-05-06  Jim Meyering  <meyering@redhat.com>
20202
20203         maint.mk: use info-gnu@ as the default only for a stable release
20204         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
20205         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
20206         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
20207         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
20208
20209 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
20210
20211         assert-h: new module, which supports C1X-style static_assert
20212         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
20213         * lib/verify.h: Revamp so that this can be copied into assert.h,
20214         while retaining the ability to use it standalone as before.
20215         Rename private identifiers so as not to encroach on the
20216         standard C namespace, since this is now used by assert.h.
20217         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
20218         the old verify_true.
20219         (_GL_VERIFY_TRUE): New macro, with much of the contents of
20220         the old verify_true.  Use _GL_VERIFY_TYPE.
20221         (_GL_VERIFY): New macro, with much of the contents of the old verify.
20222         (static_assert): New macro, if _GL_STATIC_ASSERT_H
20223         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
20224         defined when this file is copied into the replacement assert.h.
20225         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
20226         and _Static_assert is not built in.
20227         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
20228         defined, and use the new macros mentioned above.
20229         * doc/posix-headers/assert.texi: Document this.
20230
20231 2011-05-05  Bruno Haible  <bruno@clisp.org>
20232
20233         fclose, fflush: Respect rules for use of AC_LIBOBJ.
20234         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
20235         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
20236         gl_REPLACE_FCLOSE here.
20237         * modules/fflush (Depends-on): Remove fclose.
20238         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
20239         combination with module 'fclose'.
20240
20241 2011-05-05  Bruno Haible  <bruno@clisp.org>
20242
20243         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
20244         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
20245         gl_FUNC_FFLUSH.
20246         (gl_FUNC_FFLUSH): Use it.
20247         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
20248         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
20249         gl_REPLACE_FSEEKO here.
20250
20251 2011-05-05  Bruno Haible  <bruno@clisp.org>
20252
20253         tzset: Relicense under LGPL.
20254         * modules/tzset (License): Change to LGPL.
20255         No agreement needed; it's a no-op.
20256
20257         strtoimax, strtoumax: Relicense under LGPL.
20258         * modules/strtoimax (License): Change to LGPL.
20259         * modules/strtoumax (License): Likewise.
20260         With permission from Jim Meyering, Paul Eggert:
20261         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
20262         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
20263
20264         getgroups: Relicense under LGPL.
20265         * modules/getgroups (License): Change to LGPL.
20266         With permission from Jim Meyering, Paul Eggert, Eric Blake:
20267         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
20268         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
20269         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
20270
20271         nanosleep: Relicense under LGPL.
20272         * modules/nanosleep (License): Change to LGPL.
20273         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
20274         Haible:
20275         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
20276         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
20277         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
20278         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
20279
20280         futimens: Relicense under LGPL.
20281         * modules/futimens (License): Change to LGPL.
20282         With permission from Eric Blake:
20283         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
20284
20285         fflush: Relicense under LGPL.
20286         * modules/fflush (License): Change to LGPL.
20287         With permission from Eric Blake, Bruno Haible, Jim Meyering:
20288         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
20289         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
20290         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
20291
20292         tmpfile: Relicense under LGPL.
20293         * modules/tmpfile (License): Change to LGPL.
20294         With permission from Ben Pfaff:
20295         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
20296
20297         isfinite: Relicense under LGPL.
20298         * modules/isfinite (License): Change to LGPL.
20299         With permission from Ben Pfaff, Bruno Haible:
20300         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
20301         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
20302
20303         acosl..tanl: Relicense under LGPL.
20304         * modules/acosl (License): Change to LGPL.
20305         * modules/asinl (License): Likewise.
20306         * modules/atanl (License): Likewise.
20307         * modules/cosl (License): Likewise.
20308         * modules/expl (License): Likewise.
20309         * modules/logl (License): Likewise.
20310         * modules/sinl (License): Likewise.
20311         * modules/sqrtl (License): Likewise.
20312         * modules/tanl (License): Likewise.
20313         Source code originally from glibc and Paolo Bonzini. Agreements:
20314         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
20315         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
20316
20317 2011-05-05  Bruno Haible  <bruno@clisp.org>
20318
20319         signal: Define sighandler_t.
20320         * lib/signal.in.h (sighandler_t): New type.
20321         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
20322         whether sighandler_t is defined.
20323         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
20324         * modules/signal (Depends-on): Add extensions.
20325         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
20326         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
20327         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
20328
20329 2011-05-05  Eric Blake  <eblake@redhat.com>
20330
20331         maint: remove useless REPLACE_*_H macros
20332         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
20333         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
20334         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
20335         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
20336         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
20337         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
20338         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
20339         * m4/btowc.m4: Update callers.
20340         * m4/dirfd.m4: Likewise.
20341         * m4/duplocale.m4: Likewise.
20342         * m4/fchdir.m4: Likewise.
20343         * m4/fdopendir.m4: Likewise.
20344         * m4/inet_ntop.m4: Likewise.
20345         * m4/inet_pton.m4: Likewise.
20346         * m4/ioctl.m4: Likewise.
20347         * m4/mbrlen.m4: Likewise.
20348         * m4/mbrtowc.m4: Likewise.
20349         * m4/mbsinit.m4: Likewise.
20350         * m4/mbsnrtowcs.m4: Likewise.
20351         * m4/mbsrtowcs.m4: Likewise.
20352         * m4/poll.m4: Likewise.
20353         * m4/setlocale.m4: Likewise.
20354         * m4/wcrtomb.m4: Likewise.
20355         * m4/wcsnrtombs.m4: Likewise.
20356         * m4/wcsrtombs.m4: Likewise.
20357         * m4/wctob.m4: Likewise.
20358         * m4/wcwidth.m4: Likewise.
20359         * modules/posix_spawn: Likewise.
20360         * modules/posix_spawn_file_actions_addclose: Likewise.
20361         * modules/posix_spawn_file_actions_adddup2: Likewise.
20362         * modules/posix_spawn_file_actions_addopen: Likewise.
20363         * modules/posix_spawn_file_actions_destroy: Likewise.
20364         * modules/posix_spawn_file_actions_init: Likewise.
20365         * modules/posix_spawnattr_destroy: Likewise.
20366         * modules/posix_spawnattr_getflags: Likewise.
20367         * modules/posix_spawnattr_getpgroup: Likewise.
20368         * modules/posix_spawnattr_getschedparam: Likewise.
20369         * modules/posix_spawnattr_getschedpolicy: Likewise.
20370         * modules/posix_spawnattr_getsigdefault: Likewise.
20371         * modules/posix_spawnattr_getsigmask: Likewise.
20372         * modules/posix_spawnattr_init: Likewise.
20373         * modules/posix_spawnattr_setflags: Likewise.
20374         * modules/posix_spawnattr_setpgroup: Likewise.
20375         * modules/posix_spawnattr_setschedparam: Likewise.
20376         * modules/posix_spawnattr_setschedpolicy: Likewise.
20377         * modules/posix_spawnattr_setsigdefault: Likewise.
20378         * modules/posix_spawnattr_setsigmask: Likewise.
20379         * modules/posix_spawnp: Likewise.
20380
20381 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
20382
20383         Add option to do-release-commit-and-tag to specify branch.
20384         * build-aux/do-release-commit-and-tag: Add --branch.
20385
20386 2011-05-03  Bruno Haible  <bruno@clisp.org>
20387
20388         Avoid unnecessary compilation units, through conditional dependencies.
20389         * modules/accept (Depends-on): Add conditions to the dependencies.
20390         * modules/acosl (Depends-on): Likewise.
20391         * modules/argz (Depends-on): Likewise.
20392         * modules/asinl (Depends-on): Likewise.
20393         * modules/atanl (Depends-on): Likewise.
20394         * modules/atoll (Depends-on): Likewise.
20395         * modules/bind (Depends-on): Likewise.
20396         * modules/btowc (Depends-on): Likewise.
20397         * modules/canonicalize-lgpl (Depends-on): Likewise.
20398         * modules/ceil (Depends-on): Likewise.
20399         * modules/ceilf (Depends-on): Likewise.
20400         * modules/ceill (Depends-on): Likewise.
20401         * modules/chdir-long (Depends-on): Likewise.
20402         * modules/chown (Depends-on): Likewise.
20403         * modules/close (Depends-on): Likewise.
20404         * modules/connect (Depends-on): Likewise.
20405         * modules/cosl (Depends-on): Likewise.
20406         * modules/dirfd (Depends-on): Likewise.
20407         * modules/dprintf (Depends-on): Likewise.
20408         * modules/dprintf-posix (Depends-on): Likewise.
20409         * modules/error (Depends-on): Likewise.
20410         * modules/euidaccess (Depends-on): Likewise.
20411         * modules/expl (Depends-on): Likewise.
20412         * modules/faccessat (Depends-on): Likewise.
20413         * modules/fchdir (Depends-on): Likewise.
20414         * modules/fclose (Depends-on): Likewise.
20415         * modules/fcntl (Depends-on): Likewise.
20416         * modules/fdopendir (Depends-on): Likewise.
20417         * modules/fflush (Depends-on): Likewise.
20418         * modules/floor (Depends-on): Likewise.
20419         * modules/floorf (Depends-on): Likewise.
20420         * modules/floorl (Depends-on): Likewise.
20421         * modules/fnmatch (Depends-on): Likewise.
20422         * modules/fopen (Depends-on): Likewise.
20423         * modules/fprintf-posix (Depends-on): Likewise.
20424         * modules/frexp (Depends-on): Likewise.
20425         * modules/frexp-nolibm (Depends-on): Likewise.
20426         * modules/frexpl (Depends-on): Likewise.
20427         * modules/frexpl-nolibm (Depends-on): Likewise.
20428         * modules/fseek (Depends-on): Likewise.
20429         * modules/fsusage (Depends-on): Likewise.
20430         * modules/ftell (Depends-on): Likewise.
20431         * modules/ftello (Depends-on): Likewise.
20432         * modules/futimens (Depends-on): Likewise.
20433         * modules/getcwd (Depends-on): Likewise.
20434         * modules/getcwd-lgpl (Depends-on): Likewise.
20435         * modules/getdelim (Depends-on): Likewise.
20436         * modules/getdomainname (Depends-on): Likewise.
20437         * modules/getgroups (Depends-on): Likewise.
20438         * modules/gethostname (Depends-on): Likewise.
20439         * modules/getline (Depends-on): Likewise.
20440         * modules/getlogin_r (Depends-on): Likewise.
20441         * modules/getopt-posix (Depends-on): Likewise.
20442         * modules/getpeername (Depends-on): Likewise.
20443         * modules/getsockname (Depends-on): Likewise.
20444         * modules/getsockopt (Depends-on): Likewise.
20445         * modules/getsubopt (Depends-on): Likewise.
20446         * modules/getusershell (Depends-on): Likewise.
20447         * modules/glob (Depends-on): Likewise.
20448         * modules/grantpt (Depends-on): Likewise.
20449         * modules/iconv_open (Depends-on): Likewise.
20450         * modules/iconv_open-utf (Depends-on): Likewise.
20451         * modules/inet_ntop (Depends-on): Likewise.
20452         * modules/inet_pton (Depends-on): Likewise.
20453         * modules/ioctl (Depends-on): Likewise.
20454         * modules/isapipe (Depends-on): Likewise.
20455         * modules/isfinite (Depends-on): Likewise.
20456         * modules/isinf (Depends-on): Likewise.
20457         * modules/lchown (Depends-on): Likewise.
20458         * modules/ldexpl (Depends-on): Likewise.
20459         * modules/link (Depends-on): Likewise.
20460         * modules/linkat (Depends-on): Likewise.
20461         * modules/listen (Depends-on): Likewise.
20462         * modules/logl (Depends-on): Likewise.
20463         * modules/lstat (Depends-on): Likewise.
20464         * modules/mbrlen (Depends-on): Likewise.
20465         * modules/mbrtowc (Depends-on): Likewise.
20466         * modules/mbsinit (Depends-on): Likewise.
20467         * modules/mbsnrtowcs (Depends-on): Likewise.
20468         * modules/mbsrtowcs (Depends-on): Likewise.
20469         * modules/mbtowc (Depends-on): Likewise.
20470         * modules/memcmp (Depends-on): Likewise.
20471         * modules/mkdir (Depends-on): Likewise.
20472         * modules/mkdtemp (Depends-on): Likewise.
20473         * modules/mkfifo (Depends-on): Likewise.
20474         * modules/mkfifoat (Depends-on): Likewise.
20475         * modules/mknod (Depends-on): Likewise.
20476         * modules/mkostemp (Depends-on): Likewise.
20477         * modules/mkostemps (Depends-on): Likewise.
20478         * modules/mkstemp (Depends-on): Likewise.
20479         * modules/mkstemps (Depends-on): Likewise.
20480         * modules/mktime (Depends-on): Likewise.
20481         * modules/nanosleep (Depends-on): Likewise.
20482         * modules/open (Depends-on): Likewise.
20483         * modules/openat (Depends-on): Likewise.
20484         * modules/perror (Depends-on): Likewise.
20485         * modules/poll (Depends-on): Likewise.
20486         * modules/popen (Depends-on): Likewise.
20487         * modules/posix_spawn (Depends-on): Likewise.
20488         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
20489         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
20490         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
20491         * modules/posix_spawnp (Depends-on): Likewise.
20492         * modules/pread (Depends-on): Likewise.
20493         * modules/printf-posix (Depends-on): Likewise.
20494         * modules/ptsname (Depends-on): Likewise.
20495         * modules/putenv (Depends-on): Likewise.
20496         * modules/pwrite (Depends-on): Likewise.
20497         * modules/readline (Depends-on): Likewise.
20498         * modules/readlink (Depends-on): Likewise.
20499         * modules/readlinkat (Depends-on): Likewise.
20500         * modules/recv (Depends-on): Likewise.
20501         * modules/recvfrom (Depends-on): Likewise.
20502         * modules/regex (Depends-on): Likewise.
20503         * modules/remove (Depends-on): Likewise.
20504         * modules/rename (Depends-on): Likewise.
20505         * modules/renameat (Depends-on): Likewise.
20506         * modules/rmdir (Depends-on): Likewise.
20507         * modules/round (Depends-on): Likewise.
20508         * modules/roundf (Depends-on): Likewise.
20509         * modules/roundl (Depends-on): Likewise.
20510         * modules/rpmatch (Depends-on): Likewise.
20511         * modules/select (Depends-on): Likewise.
20512         * modules/send (Depends-on): Likewise.
20513         * modules/sendto (Depends-on): Likewise.
20514         * modules/setenv (Depends-on): Likewise.
20515         * modules/setlocale (Depends-on): Likewise.
20516         * modules/setsockopt (Depends-on): Likewise.
20517         * modules/shutdown (Depends-on): Likewise.
20518         * modules/sigaction (Depends-on): Likewise.
20519         * modules/signbit (Depends-on): Likewise.
20520         * modules/sigprocmask (Depends-on): Likewise.
20521         * modules/sinl (Depends-on): Likewise.
20522         * modules/sleep (Depends-on): Likewise.
20523         * modules/snprintf (Depends-on): Likewise.
20524         * modules/snprintf-posix (Depends-on): Likewise.
20525         * modules/socket (Depends-on): Likewise.
20526         * modules/sprintf-posix (Depends-on): Likewise.
20527         * modules/sqrtl (Depends-on): Likewise.
20528         * modules/stat (Depends-on): Likewise.
20529         * modules/strchrnul (Depends-on): Likewise.
20530         * modules/strdup-posix (Depends-on): Likewise.
20531         * modules/strerror (Depends-on): Likewise.
20532         * modules/strerror_r-posix (Depends-on): Likewise.
20533         * modules/strndup (Depends-on): Likewise.
20534         * modules/strnlen (Depends-on): Likewise.
20535         * modules/strptime (Depends-on): Likewise.
20536         * modules/strsep (Depends-on): Likewise.
20537         * modules/strsignal (Depends-on): Likewise.
20538         * modules/strstr-simple (Depends-on): Likewise.
20539         * modules/strtod (Depends-on): Likewise.
20540         * modules/strtoimax (Depends-on): Likewise.
20541         * modules/strtok_r (Depends-on): Likewise.
20542         * modules/strtoumax (Depends-on): Likewise.
20543         * modules/symlink (Depends-on): Likewise.
20544         * modules/symlinkat (Depends-on): Likewise.
20545         * modules/tanl (Depends-on): Likewise.
20546         * modules/tcgetsid (Depends-on): Likewise.
20547         * modules/tmpfile (Depends-on): Likewise.
20548         * modules/trunc (Depends-on): Likewise.
20549         * modules/truncf (Depends-on): Likewise.
20550         * modules/truncl (Depends-on): Likewise.
20551         * modules/uname (Depends-on): Likewise.
20552         * modules/unlink (Depends-on): Likewise.
20553         * modules/unlockpt (Depends-on): Likewise.
20554         * modules/unsetenv (Depends-on): Likewise.
20555         * modules/usleep (Depends-on): Likewise.
20556         * modules/utimensat (Depends-on): Likewise.
20557         * modules/vasprintf (Depends-on): Likewise.
20558         * modules/vdprintf (Depends-on): Likewise.
20559         * modules/vdprintf-posix (Depends-on): Likewise.
20560         * modules/vfprintf-posix (Depends-on): Likewise.
20561         * modules/vprintf-posix (Depends-on): Likewise.
20562         * modules/vsnprintf (Depends-on): Likewise.
20563         * modules/vsnprintf-posix (Depends-on): Likewise.
20564         * modules/vsprintf-posix (Depends-on): Likewise.
20565         * modules/wcrtomb (Depends-on): Likewise.
20566         * modules/wcscasecmp (Depends-on): Likewise.
20567         * modules/wcscspn (Depends-on): Likewise.
20568         * modules/wcsdup (Depends-on): Likewise.
20569         * modules/wcsncasecmp (Depends-on): Likewise.
20570         * modules/wcsnrtombs (Depends-on): Likewise.
20571         * modules/wcspbrk (Depends-on): Likewise.
20572         * modules/wcsrtombs (Depends-on): Likewise.
20573         * modules/wcsspn (Depends-on): Likewise.
20574         * modules/wcsstr (Depends-on): Likewise.
20575         * modules/wcstok (Depends-on): Likewise.
20576         * modules/wcswidth (Depends-on): Likewise.
20577         * modules/wctob (Depends-on): Likewise.
20578         * modules/wctomb (Depends-on): Likewise.
20579         * modules/wctype (Depends-on): Likewise.
20580         * modules/wcwidth (Depends-on): Likewise.
20581         * modules/write (Depends-on): Likewise.
20582
20583 2011-05-03  Bruno Haible  <bruno@clisp.org>
20584
20585         Support for conditional dependencies.
20586         * doc/gnulib.texi (Module description): Document the syntax of
20587         conditional dependencies.
20588         * gnulib-tool: New option --conditional-dependencies.
20589         (func_usage): Document it.
20590         (cond_dependencies): New variable.
20591         (func_get_automake_snippet_conditional,
20592         func_get_automake_snippet_unconditional): New functions, extracted from
20593         func_get_automake_snippet.
20594         (func_get_automake_snippet): Use them.
20595         (sed_first_32_chars): New variable.
20596         (func_module_shellfunc_name): New function.
20597         (func_module_shellvar_name): New function.
20598         (func_module_conditional_name): New function.
20599         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
20600         func_cond_module_condition): New functions.
20601         (func_modules_transitive_closure): Add support for conditional
20602         dependencies.
20603         (func_emit_lib_Makefile_am): For a conditional module, enclose the
20604         conditional automake snippet in an automake conditional.
20605         (func_emit_autoconf_snippets): Emit shell functions that contain the
20606         code for conditional modules.
20607         (func_import, func_create_testdir): Update specification.
20608
20609 2011-05-03  Eric Blake  <eblake@redhat.com>
20610
20611         test-getaddrinfo: report error information
20612         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
20613
20614 2011-05-03  Jim Meyering  <meyering@redhat.com>
20615
20616         bootstrap: avoid build failure when $GZIP is set
20617         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
20618         program name.  If defined at all, it is supposed to list gzip options.
20619         Reported by Alan Curry in http://debbugs.gnu.org/8609
20620
20621 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
20622
20623         readme-release: new module with release instructions
20624         * modules/readme-release: New module.
20625         * top/README-release: New file, from coreutils, grep, diffutils.
20626         * MODULES.html.sh (Support for maintaining and releasing): Add it.
20627
20628 2011-05-02  Eric Blake  <eblake@redhat.com>
20629
20630         fflush: also replace fclose when fixing fflush
20631         * modules/fflush (Depends-on): Add fclose.
20632         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
20633         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
20634         memstreams with no backing fd.
20635         * doc/posix-functions/fclose.texi (fclose): Document the use of
20636         fflush module to fix the bug.
20637         * tests/test-fclose.c (main): Relax test when fclose is used in
20638         isolation.
20639
20640         fclose: add some tests
20641         * modules/fclose-tests: New test module.
20642         * tests/test-fclose.c: New file.
20643         * doc/posix-functions/fclose.texi (fclose): Document the bug.
20644
20645         fclose: reduced dependencies
20646         * modules/fclose (Depends-on): Switch from fflush/fseeko to
20647         simpler lseek.
20648         * lib/fclose.c (rpl_fclose): Likewise.
20649         Reported by Simon Josefsson.
20650
20651         exit: drop remaining clients
20652         * modules/argmatch (Depends-on): Replace exit with stdlib.
20653         * modules/copy-file (Depends-on): Likewise.
20654         * modules/execute (Depends-on): Likewise.
20655         * modules/exitfail (Depends-on): Likewise.
20656         * modules/obstack (Depends-on): Likewise.
20657         * modules/pagealign_alloc (Depends-on): Likewise.
20658         * modules/pipe-filter-gi (Depends-on): Likewise.
20659         * modules/pipe-filter-ii (Depends-on): Likewise.
20660         * modules/savewd (Depends-on): Likewise.
20661         * modules/spawn-pipe (Depends-on): Likewise.
20662         * modules/wait-process (Depends-on): Likewise.
20663         * modules/xsetenv (Depends-on): Likewise.
20664         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
20665         * modules/git-merge-changelog (Depends-on): Likewise.
20666         * modules/long-options (Depends-on): Likewise.
20667         * modules/pt_chown (Depends-on): Likewise.
20668         * modules/sysexits (Depends-on): Likewise.
20669
20670         freading: relax license from LGPLv3+ to LGPLv2+
20671         * modules/freading (License): Relax LGPL version.
20672
20673 2011-05-02  Bruno Haible  <bruno@clisp.org>
20674
20675         fchdir: Remove unused dependencies.
20676         * modules/fchdir (Depends-on): Remove include_next.
20677
20678 2011-05-02  Bruno Haible  <bruno@clisp.org>
20679
20680         gnulib-tool: Refactor.
20681         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
20682         from func_emit_autoconf_snippets.
20683         (func_emit_autoconf_snippets): Use it.
20684
20685 2011-05-02  Simon Josefsson  <simon@josefsson.org>
20686
20687         * NEWS: Document removal of 'exit'.
20688         * modules/exit: Remove file.
20689
20690 2011-05-01  Bruno Haible  <bruno@clisp.org>
20691
20692         Update DEPENDENCIES.
20693         * DEPENDENCIES (gettext): Recommend the newest release.
20694         Reported by Simon Josefsson.
20695
20696 2011-05-01  Bruno Haible  <bruno@clisp.org>
20697
20698         gnulib-tool: Reduce code duplication.
20699         * gnulib-tool (func_emit_autoconf_snippets): New function.
20700         (func_import, func_create_testdir): Use it.
20701
20702 2011-04-30  Eric Blake  <eblake@redhat.com>
20703
20704         fclose: don't fail on non-seekable input stream
20705         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
20706         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
20707         since fflush is allowed to fail in that case.
20708
20709 2011-04-30  Bruno Haible  <bruno@clisp.org>
20710
20711         dup3: cleanup
20712         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
20713
20714 2011-04-30  Bruno Haible  <bruno@clisp.org>
20715
20716         netdb: Make it work in C++ mode.
20717         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
20718         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
20719         module.
20720         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
20721         gl_MODULE_INDICATOR_FOR_TESTS.
20722         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
20723         * modules/netdb-c++-tests: New file.
20724         * tests/test-netdb-c++.cc: New file.
20725
20726 2011-04-30  Bruno Haible  <bruno@clisp.org>
20727
20728         New modules 'vfscanf', 'vscanf'.
20729         * modules/vfscanf: New file.
20730         * modules/vscanf: New file.
20731         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
20732         here.
20733         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
20734         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
20735
20736 2011-04-30  Bruno Haible  <bruno@clisp.org>
20737
20738         passfd: Add comments.
20739         * lib/passfd.c: Add comments about platforms.
20740
20741 2011-04-30  Bruno Haible  <bruno@clisp.org>
20742
20743         sys_uio: Make <sys/uio.h> self-contained.
20744         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
20745         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
20746
20747 2011-04-30  Bruno Haible  <bruno@clisp.org>
20748
20749         sys_socket: Ensure 'struct iovec' definition.
20750         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
20751         <sys/socket.h>.
20752         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
20753
20754 2011-04-30  Bruno Haible  <bruno@clisp.org>
20755
20756         sys_uio: Protect definition of 'struct iovec'.
20757         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
20758         it as a C struct.
20759
20760 2011-04-30  Bruno Haible  <bruno@clisp.org>
20761
20762         manywarnings: fix indentation
20763         * m4/manywarnings.m4: Indent by 2 spaces consistently.
20764
20765 2011-04-30  Pádraig Brady <P@draigBrady.com>
20766
20767         manywarnings: add -Wno-missing-field-initializers if needed.
20768         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
20769         option if it's needed to allow initialization with { 0, }
20770
20771 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
20772
20773         announce-gen: cosmetic improvement
20774         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
20775
20776 2011-04-29  Jim Meyering  <meyering@redhat.com>
20777
20778         vc-list-files: indent with spaces, not TABs
20779         * build-aux/vc-list-files: Convert leading TABs to spaces,
20780         to match the style of most other files in gnulib.
20781
20782         announce-gen: indent with spaces, not TABs
20783         * build-aux/announce-gen: Convert all TABs to spaces, to match
20784         the style of most other files in gnulib.
20785
20786 2011-04-29  Eric Blake  <eblake@redhat.com>
20787
20788         quotearg: avoid uninitialized variable use
20789         * lib/quotearg.c (quoting_options_from_style): Initialize
20790         remaining fields, and ensure that custom styles are only used via
20791         quoting_options rather than quoting_style.
20792
20793 2011-04-29  Jim Meyering  <meyering@redhat.com>
20794
20795         maint.mk: remove unused VC-tag variable
20796         * top/maint.mk (VC-tag): Remove unused variable.
20797
20798 2011-04-29  Bruno Haible  <bruno@clisp.org>
20799
20800         netdb: fix gai_strerror replacements
20801         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
20802         * modules/netdb: Substitute it.
20803
20804 2011-04-29  Jim Meyering  <meyering@redhat.com>
20805
20806         test-getcwd.c: avoid new set-but-not-used warning
20807         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
20808         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
20809         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
20810         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
20811
20812         test-hash.c: avoid a new shadowing warning
20813         * tests/test-hash.c (main): Don't shadow "dup".
20814
20815 2011-04-28  Eric Blake  <eblake@redhat.com>
20816
20817         getaddrinfo: fix gai_strerror signature
20818         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
20819         and work around mingw with UNICODE defined.
20820         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
20821         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
20822         * modules/netdb (Makefile.am): Substitute it.
20823         * lib/netdb.in.h (gai_strerror): Declare replacement.
20824         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
20825         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
20826         the fix.
20827
20828         getsockopt: avoid compiler warning
20829         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
20830         Reported by Matthias Bolte.
20831
20832         tests: drop unused link dependency
20833         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
20834         * modules/dirent-safer-tests (Makefile.am): Likewise.
20835         * modules/fdopendir-tests (Makefile.am): Likewise.
20836         * modules/mkfifoat-tests (Makefile.am): Likewise.
20837         * modules/openat-safer-tests (Makefile.am): Likewise.
20838         * modules/openat-tests (Makefile.am): Likewise.
20839         * modules/readlinkat-tests (Makefile.am): Likewise.
20840         * modules/symlinkat-tests (Makefile.am): Likewise.
20841         * modules/linkat-tests (Makefile.am): Likewise.
20842         (Depends-on): Switch to filenamecat-lgpl.
20843         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
20844         LIBINTL.
20845         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
20846         * tests/test-linkat.c (main): Don't require xalloc.
20847
20848         hash, mgetgroups: drop xalloc dependency
20849         * lib/hash.c (includes): Adjust includes.
20850         * lib/mgetgroups.c (includes): Likewise.
20851         (xgetgroups): Move...
20852         * lib/xgetgroups.c: ...to new file.
20853         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
20854         * modules/xgetgroups: New file, split from...
20855         * modules/mgetgroups: ...here.
20856         (Depends-on): Add xalloc-oversized.
20857         * modules/hash (Depends-on): Likewise.
20858         * modules/hash-tests (Depends-on): Drop xalloc.
20859         (test_hash_LDADD): Drop unused library.
20860         * tests/test-hash.c (main): Break xalloc dependency.
20861         (includes): Drop unused include.
20862
20863         xalloc-oversized: new module
20864         * modules/xalloc-oversized: New module.
20865         * modules/xalloc (Depends-on): Add it.
20866         * lib/xalloc.h (xalloc_oversized): Move...
20867         * lib/xalloc-oversized.h: ...into new file.
20868
20869         utimecmp: drop dependency on xmalloc
20870         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
20871         due to memory pressure.
20872         * modules/utimecmp (Depends-on): Drop xalloc.
20873
20874 2011-04-27  Eric Blake  <eblake@redhat.com>
20875
20876         getcwd: fix mingw bugs
20877         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
20878         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
20879         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
20880
20881 2011-04-27  Bruno Haible  <bruno@clisp.org>
20882
20883         mkstemps: Ensure declaration on MacOS X 10.5.
20884         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
20885         * doc/glibc-functions/mkstemps.texi: Document header file problem on
20886         MacOS X.
20887
20888 2011-04-27  Bruno Haible  <bruno@clisp.org>
20889
20890         mkstemp: More documentation.
20891         * doc/posix-functions/mkstemp.texi: Document header file problem on
20892         MacOS X.
20893
20894 2011-04-27  Bruno Haible  <bruno@clisp.org>
20895
20896         mkstemp: Tweak configure message when cross-compiling.
20897         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
20898         result as a guess.
20899
20900 2011-04-27  Bruno Haible  <bruno@clisp.org>
20901
20902         clean-temp: Clarify what it does.
20903         * lib/clean-temp.h: Add more comments.
20904         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
20905         module.
20906         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
20907         * doc/glibc-functions/mkstemps.texi: Likewise.
20908         * doc/glibc-functions/mkostemps.texi: Likewise.
20909
20910 2011-04-27  Eric Blake  <eblake@redhat.com>
20911
20912         fchdir: avoid extra chdir and fix test
20913         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
20914         getcwd-lgpl.
20915         * lib/fchdir.c (get_name): Any absolute name will do; it does not
20916         have to be canonical.
20917         (canonicalize_file_name): Drop unused macro.
20918         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
20919
20920         filenamecat-lgpl: fix licence
20921         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
20922         when it was first created.
20923
20924         linkat, renameat: add missing dependency
20925         * modules/linkat (Depends-on): Require getcwd-lgpl.
20926         * modules/renameat (Depends-on): Likewise.
20927
20928         tests: reduce dependencies
20929         * tests/test-linkat.c (main): Use lighter-weight getcwd.
20930         * tests/test-renameat.c (main): Likewise.
20931         * modules/linkat-tests (Depends-on): Relax dependency.
20932         * modules/renameat-tests (Depends-on): Likewise.
20933         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
20934         dependency explicit.
20935
20936         save-cwd: reduce default dependency
20937         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
20938         * lib/save-cwd.c: Update comments.
20939         * NEWS: Document the semantic change.
20940
20941         getcwd: enhance tests
20942         * tests/test-getcwd-lgpl.c: New file, taken from...
20943         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
20944         repeat long path stress tests from m4 probe.
20945         * modules/getcwd-lgpl-tests: New module.
20946         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
20947         * m4/getcwd-abort-bug.m4: Update comment.
20948         * m4/getcwd-path-max.m4: Likewise.
20949
20950         getcwd-lgpl: new module
20951         * modules/getcwd-lgpl: New module.
20952         * lib/getcwd-lgpl.c: New file.
20953         * doc/posix-functions/getcwd.texi (getcwd): Document it.
20954         * MODULES.html.sh (lacking POSIX:2008): Likewise.
20955         * modules/getcwd (configure.ac): Set C witness.
20956         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
20957
20958         getcwd: tweak comments
20959         * m4/getcwd-abort-bug.m4: Fix comments.
20960         * m4/getcwd-path-max.m4: Likewise.
20961         * m4/getcwd.m4: Likewise.
20962
20963 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
20964         and Eric Blake  <eblake@redhat.com>
20965
20966         mkstemp: replace if system version uses wrong permissions
20967         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
20968         read/write mode bits set in file created by mkstemp.
20969         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
20970
20971 2011-04-27  Eric Blake  <eblake@redhat.com>
20972
20973         passfd: avoid compiler warning
20974         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
20975         Reported by Laine Stump.
20976
20977 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
20978
20979         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
20980         required by the NetBSD (and perhaps other 4.4BSD derived) join.
20981
20982 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
20983         and Eric Blake  <eblake@redhat.com>
20984
20985         mkstemp: mention clean-temp module
20986         * lib/mkstemp.c: Add comment.
20987         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
20988
20989 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
20990
20991         inttypes: also provide default values for 32-bit tests
20992         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
20993         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
20994
20995 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
20996
20997         strtoumax: remove dependency on strtoimax
20998         This is like the strtoull change of yesterday.
20999         * modules/strtoumax (Files): Add lib/strtoimax.c.
21000         (Depends-on): Remove strtoimax and add verify.
21001
21002         inttypes-incomplete: new module
21003         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
21004         all but the PRI* and SCN* parts of gl_INTTYPES_H.
21005         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
21006         of gl_INTTYPES_H.
21007         (gl_INTTYPES_H): Rewrite in terms of these new macros.
21008         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
21009         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
21010         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
21011         * modules/strtoumax, modules/xstrtol (Depends-on):
21012         Depend on inttypes-incomplete, not inttypes.
21013         * modules/inttypes-incomplete: New module, containing the contents
21014         of the old modules/inttypes module, except that the Files: section
21015         omits m4/inttypes-pri.m4, and the configure.ac section invokes
21016         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
21017         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
21018         (Depends-on): Depend only on inttypes-incomplete.
21019         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
21020
21021         inttypes: omit now-redundant strtoimax and strtoumax work
21022         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
21023         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
21024
21025         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
21026         This supports apps that need pointers to strtoimax and strtoumax,
21027         and ports to HP-UX 11.00 64.bit, which has macros that expand to
21028         nonexistent functions.  See
21029         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
21030         et seq.
21031         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
21032         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
21033         a macro.
21034         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
21035
21036 2011-04-25  Simon Josefsson  <simon@josefsson.org>
21037
21038         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
21039
21040 2011-04-25  Bruno Haible  <bruno@clisp.org>
21041
21042         strtol, strtoul: Mark modules as obsolete.
21043         * modules/strtol (Status, Notice): New sections.
21044         * modules/strtoul (Status, Notice): New sections.
21045
21046 2011-04-25  Bruno Haible  <bruno@clisp.org>
21047
21048         strtod: Remove check for strtod, unless supporting old platforms.
21049         * modules/strtod-obsolete: New file.
21050         * m4/strtod-obsolete.m4: New file.
21051         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
21052         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
21053         * modules/strtod (Depends-on): Add strtod-obsolete.
21054         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
21055
21056 2011-04-25  Bruno Haible  <bruno@clisp.org>
21057
21058         strcase: Make module obsolete.
21059         * modules/strcase (Status, Notice): New sections.
21060
21061 2011-04-25  Bruno Haible  <bruno@clisp.org>
21062
21063         dup2: Remove check for dup2, unless supporting old obsolete platforms.
21064         * modules/dup2-obsolete: New file.
21065         * m4/dup2-obsolete.m4: New file.
21066         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
21067         gl_FUNC_DUP2_OBSOLETE is not also defined.
21068         * modules/dup2 (Depends-on): Add dup2-obsolete.
21069         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
21070
21071 2011-04-25  Bruno Haible  <bruno@clisp.org>
21072
21073         strnlen: Avoid memchr related link error on old obsolete platforms.
21074         * modules/memchr-obsolete: New file.
21075         * m4/memchr-obsolete.m4: New file.
21076         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
21077         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
21078         * modules/memchr (Depends-on): Add memchr-obsolete.
21079         * modules/strnlen (Depends-on): Likewise.
21080         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
21081
21082 2011-04-25  Jim Meyering  <meyering@redhat.com>
21083
21084         maint.mk: makefile_at_at_check extend and clean up
21085         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
21086         in addition to */Makefile.am.
21087         Exempt legitimate uses of @VAR@ notation, e.g.,
21088         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
21089         Remove obsolete coreutils-specific comment.
21090         Prompted by discussion here:
21091         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
21092
21093 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
21094
21095         strtoul: remove dependency on strtol
21096         This is so that 'configure' need not check for strtol merely because
21097         the application needs strtoul.
21098         * modules/strtoul (Files): Add lib/strtol.c.
21099         (Depends-on): Remove strtol.
21100
21101         strtoull: remove dependency on strtoul
21102         This is like the strtoll change.
21103         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
21104         (Depends-on): Remove strtoul.
21105
21106         strtoll: remove dependency on strtol
21107         This is so that 'configure' need not check for strtol merely because
21108         the application needs strtoll.
21109         * modules/strtoll (Files): Add lib/strtol.c.
21110         (Depends-on): Remove strtol.
21111
21112 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
21113
21114         inttypes: Move some configure check to module 'imaxdiv'.
21115         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
21116         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
21117         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
21118
21119 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
21120
21121         inttypes: Move some configure check to module 'imaxabs'.
21122         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
21123         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
21124         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
21125
21126 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
21127
21128         inttypes: Remove configure tests that are not needed since 2009-12-31.
21129         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
21130         gl_cv_header_working_inttypes_h.
21131
21132 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
21133
21134         * modules/strnlen (Depends-on): Remove memchr.
21135         The strnlen implementation doesn't need the memchr module's fixes; see
21136         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
21137
21138         strtol: remove dependency on wchar
21139         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
21140         * modules/strtol (Depends-on): Remove wchar.
21141
21142 2011-04-21  Eric Blake  <eblake@redhat.com>
21143
21144         passfd: fix test regression on Linux
21145         * modules/passfd-tests (configure.ac): Correct socketpair check.
21146
21147         passfd: speed up configure and drop unused code
21148         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
21149         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
21150         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
21151         Instead of probing at configure for unix_scm_rights_bsd44_way,
21152         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
21153         check to a struct member probe.
21154         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
21155         (sendfd, recvfd): Update preprocessor checks.
21156         * modules/passfd (Files): Reflect rename, and drop unused file.
21157         (Depends-on): Drop unused dependency.
21158
21159         passfd: allow compilation on mingw
21160         * modules/sys_socket (Depends-on): Add sys_uio.
21161         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
21162         iovec and a minimal struct msghdr.
21163         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
21164         * tests/test-sys_socket.c (main): Enhance test.
21165         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
21166         guaranteed to provide what we need.
21167         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
21168         * modules/passfd-tests (Depends-on): Add sys_wait.
21169         * tests/test-passfd.c (main): Skip test on mingw, for now.
21170         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
21171         partial 'struct msghdr' implementation.
21172
21173         sys_uio: new module
21174         * modules/sys_uio: New module.
21175         * modules/sys_uio-tests: Likewise.
21176         * lib/sys_uio.in.h: New file.
21177         * m4/sys_uio_h.m4: Likewise.
21178         * tests/test-sys_uio.c: Likewise.
21179         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
21180         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
21181
21182 2011-04-20  Jim Meyering  <meyering@redhat.com>
21183
21184         useless-if-before-free: avoid false-positive
21185         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
21186         disjunct so that it too requires a terminating ";".  Without that,
21187         this script would identify as useless one statement from gcc that
21188         was not:
21189           if (aligned_ptr)
21190             free (((void **) aligned_ptr) [-1]);
21191
21192 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
21193
21194         doc: update users.txt.
21195         * users.txt: Add barcode.
21196
21197 2011-04-19  Bruno Haible  <bruno@clisp.org>
21198
21199         ioctl: Remove link dependency on native Windows.
21200         * lib/fd-hook.h: Renamed from lib/close-hook.h.
21201         (gl_close_fn, gl_ioctl_fn): New types.
21202         (struct fd_hook): Renamed from struct close_hook. Change type of
21203         private_close_fn field. Add private_ioctl_fn field.
21204         (close_hook_fn): Add parameter for primary close method.
21205         (execute_close_hooks, execute_all_close_hooks): Likewise.
21206         (ioctl_hook_fn): New type.
21207         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
21208         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
21209         argument.
21210         (unregister_fd_hook): Renamed from unregister_close_hook.
21211         * lib/fd-hook.c: Renamed from lib/close-hook.c.
21212         Don't include <unistd.h>.
21213         (close): Remove undef.
21214         (anchor): Update.
21215         (execute_close_hooks): Add argument for primary close method.
21216         (execute_all_close_hooks): Likewise.
21217         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
21218         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
21219         argument. Allow each argument to be NULL.
21220         (unregister_fd_hook): Renamed from unregister_close_hook.
21221         * lib/close.c (rpl_close): Pass 'close' function pointer to
21222         execute_all_close_hooks.
21223         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
21224         (primary_ioctl): New function.
21225         (ioctl): Don't call ioctlsocket here. Instead, call
21226         execute_all_ioctl_hooks.
21227         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
21228         close method.
21229         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
21230         (fd_sockets_hook): Renamed from close_sockets_hook.
21231         (gl_sockets_startup, gl_sockets_cleanup): Update.
21232         * modules/fd-hook: Renamed from modules/close-hook. Update.
21233         * modules/close (Depends-on): Add fd-hook, remove close-hook.
21234         * modules/sockets (Depends-on): Likewise.
21235         * modules/ioctl (Depends-on): Add fd-hook.
21236         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
21237         GNULIB_SOCKET.
21238
21239 2011-04-19  Bruno Haible  <bruno@clisp.org>
21240
21241         Move the support of O_NONBLOCK in open() to the 'open' module.
21242         * modules/nonblocking (Depends-on): Remove 'open'.
21243         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
21244         gl_cv_have_open_O_NONBLOCK.
21245         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
21246         O_NONBLOCK support.
21247         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
21248
21249 2011-04-17  Bruno Haible  <bruno@clisp.org>
21250
21251         pipe2: Simplify code.
21252         * lib/pipe2.c (pipe2): Reduce code duplication.
21253
21254 2011-04-17  Bruno Haible  <bruno@clisp.org>
21255
21256         nonblocking: Add comment.
21257         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
21258
21259 2011-04-17  Bruno Haible  <bruno@clisp.org>
21260
21261         nonblocking: Add tests for sockets.
21262         * tests/test-nonblocking-socket.sh: New file.
21263         * tests/test-nonblocking-socket-main.c: New file.
21264         * tests/test-nonblocking-socket-child.c: New file.
21265         * tests/test-nonblocking-socket.h: New file.
21266         * tests/socket-server.h: New file.
21267         * tests/socket-client.h: New file.
21268         * modules/nonblocking-socket-tests: New file.
21269         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
21270
21271 2011-04-17  Bruno Haible  <bruno@clisp.org>
21272
21273         nonblocking: Add tests for pipes.
21274         * tests/test-nonblocking-pipe.sh: New file.
21275         * tests/test-nonblocking-pipe-main.c: New file.
21276         * tests/test-nonblocking-pipe-child.c: New file.
21277         * tests/test-nonblocking-pipe.h: New file.
21278         * tests/test-nonblocking-writer.h: New file.
21279         * tests/test-nonblocking-reader.h: New file.
21280         * tests/test-nonblocking-misc.h: New file.
21281         * modules/nonblocking-pipe-tests: New file.
21282         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
21283
21284 2011-04-16  Bruno Haible  <bruno@clisp.org>
21285
21286         gettext: Clarify the needed programmer actions.
21287         * modules/gettext (Notice): New field.
21288         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
21289
21290 2011-04-16  Bruno Haible  <bruno@clisp.org>
21291
21292         strchrnul: Tweak last commit.
21293         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
21294         bug.
21295         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
21296         as in _GL_FUNCDECL_SYS.
21297         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
21298         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
21299
21300 2011-04-15  Eric Blake  <eblake@redhat.com>
21301
21302         strchrnul: work around cygwin bug
21303         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
21304         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
21305         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
21306         * modules/string (Makefile.am): Substitute it.
21307         * lib/string.in.h (strchrnul): Use it.
21308
21309 2011-04-15  Bruno Haible  <bruno@clisp.org>
21310
21311         Don't require lib/stdio-write.c when only module 'stdio' is used.
21312         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
21313         invocation.
21314         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
21315
21316 2011-04-14  Bruno Haible  <bruno@clisp.org>
21317
21318         Support non-blocking pipe I/O in read() on native Windows.
21319         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
21320         (read): New declaration.
21321         * lib/read.c: New file.
21322         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
21323         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
21324         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
21325         vscanf): New declarations.
21326         * lib/stdio-read.c: New file.
21327         * m4/read.m4: New file.
21328         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
21329         REPLACE_READ.
21330         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
21331         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
21332         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
21333         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
21334         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
21335         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
21336         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
21337         * modules/read: New file.
21338         * modules/nonblocking (Files): Add lib/stdio-read.c.
21339         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
21340         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
21341         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
21342         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
21343         * modules/pread (Depends-on): Add read.
21344         * modules/safe-read (Depends-on): Likewise.
21345         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
21346         gets, scanf, vfscanf, vscanf): Verify signatures.
21347         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
21348         problem with non-blocking pipes.
21349         * doc/posix-functions/fgetc.texi: Likewise.
21350         * doc/posix-functions/fgets.texi: Likewise.
21351         * doc/posix-functions/fread.texi: Likewise.
21352         * doc/posix-functions/fscanf.texi: Likewise.
21353         * doc/posix-functions/getc.texi: Likewise.
21354         * doc/posix-functions/getchar.texi: Likewise.
21355         * doc/posix-functions/gets.texi: Likewise.
21356         * doc/posix-functions/scanf.texi: Likewise.
21357         * doc/posix-functions/vfscanf.texi: Likewise.
21358         * doc/posix-functions/vscanf.texi: Likewise.
21359
21360 2011-04-14  Bruno Haible  <bruno@clisp.org>
21361
21362         Support non-blocking pipe I/O in write() on native Windows.
21363         * lib/write.c (rpl_write): Split a write request that failed merely
21364         because the byte count was larger than the pipe buffer's size.
21365         * doc/posix-functions/write.texi: Mention the problem with large byte
21366         counts.
21367
21368 2011-04-14  Bruno Haible  <bruno@clisp.org>
21369
21370         wchar: Ensure that wchar_t gets defined on uClibc.
21371         * lib/wchar.in.h: On uClibc, include <stddef.h>.
21372         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
21373
21374 2011-04-13  Bruno Haible  <bruno@clisp.org>
21375
21376         safe-write, full-read: Avoid unnecessary compilation units.
21377         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
21378         (Depends-on): Remove safe-read. Add ssize_t.
21379         * modules/full-read (Files): Add lib/full-write.c.
21380         (Depends-on): Add full-write.
21381
21382 2011-04-13  Bruno Haible  <bruno@clisp.org>
21383
21384         Support non-blocking pipe I/O and SIGPIPE in pwrite().
21385         * modules/pwrite (Depends-on): Add 'write'.
21386
21387 2011-04-13  Bruno Haible  <bruno@clisp.org>
21388
21389         Support non-blocking pipe I/O in write() on native Windows.
21390         * lib/unistd.in.h (write): Enable replacement also if
21391         GNULIB_UNISTD_H_NONBLOCKING is 1.
21392         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
21393         (rpl_write): When failing to write on a non-blocking pipe, change
21394         errno from ENOSPC to EAGAIN.
21395         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
21396         putchar, puts, vfprintf, vprintf): Enable replacement also if
21397         GNULIB_STDIO_H_NONBLOCKING is 1.
21398         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
21399         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
21400         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
21401         CALL_WITH_SIGPIPE_EMULATION.
21402         (CALL_WITH_SIGPIPE_EMULATION): Use them.
21403         * m4/nonblocking.m4: New file.
21404         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
21405         for non-blocking I/O support.
21406         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21407         GNULIB_UNISTD_H_NONBLOCKING.
21408         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
21409         required for non-blocking I/O support.
21410         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
21411         * modules/nonblocking (Files): Add m4/nonblocking.m4,
21412         lib/stdio-write.c, m4/asm-underscore.m4.
21413         (Depends-on): Add stdio, unistd.
21414         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
21415         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
21416         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
21417         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
21418         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
21419         problem with non-blocking pipes.
21420         * doc/posix-functions/fputc.texi: Likewise.
21421         * doc/posix-functions/fputs.texi: Likewise.
21422         * doc/posix-functions/fwrite.texi: Likewise.
21423         * doc/posix-functions/printf.texi: Likewise.
21424         * doc/posix-functions/putc.texi: Likewise.
21425         * doc/posix-functions/putchar.texi: Likewise.
21426         * doc/posix-functions/puts.texi: Likewise.
21427         * doc/posix-functions/vfprintf.texi: Likewise.
21428         * doc/posix-functions/vprintf.texi: Likewise.
21429         * doc/posix-functions/write.texi: Likewise.
21430
21431 2011-04-10  Jim Meyering  <meyering@redhat.com>
21432
21433         maint.mk: prohibit doubled words
21434         Detect them also when they're separated by a newline.
21435         There are 3 ways to customize it:
21436           - disable the test on a per file basis, as usual with rules using
21437             $(VC_LIST_EXCEPT)
21438           - replace the default doubled-word-selecting regexp (affects all files)
21439           - ignore a particular file-vs-doubled-word match
21440         I nearly used that last one to ignore the "is is" match in
21441         coreutils' NEWS file, since the text was "ls -is is ..."
21442         To do that, I would have added this line to cfg.mk:
21443           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
21444         but it would have ignored any "is is" match in NEWS.
21445         Low probability, but still...
21446         Instead, I changed the text, slightly:
21447           -  ls -is is now consistent with ls -lis in ignoring values returned
21448           +  "ls -is" is now consistent with ls -lis in ignoring values returned
21449         * top/maint.mk (prohibit_double_word_RE_): Provide default.
21450         (prohibit_doubled_word_): Define.
21451         (sc_prohibit_doubled_word): New rule.
21452         (sc_prohibit_the_the): Remove.  Subsumed by the above.
21453
21454 2011-04-10  Jim Meyering  <meyering@redhat.com>
21455
21456         maint: fix doubled-word typo in comment
21457         * m4/gethostname.m4: s/is is/it is/
21458         * m4/getdomainname.m4: Likewise.
21459
21460 2011-04-10  Jim Meyering  <meyering@redhat.com>
21461
21462         maint: remove doubled word: s/it it/it/
21463         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
21464
21465 2011-04-10  Jim Meyering  <meyering@redhat.com>
21466
21467         maint.mk: remove useless semicolon and backslash
21468         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
21469         semicolon and backslash.
21470
21471 2011-04-10  Bruno Haible  <bruno@clisp.org>
21472
21473         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
21474         * modules/stdint-tests (Depends-on): Add wchar.
21475
21476 2011-04-10  Jim Meyering  <meyering@redhat.com>
21477
21478         maint: remove doubled words in comments, e.g., s/a a/a/
21479         * lib/strptime.c (day_of_the_week): s/the the/the/
21480         * tests/test-chown.h (test_chown): s/a a/a/
21481
21482         test-chown.h: correct a cast
21483         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
21484         when the destination is a stat.st_gid.
21485
21486 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
21487
21488         getaddrinfo: Fix test for sa_len member.
21489         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
21490         include <sys/types.h> before <sys/socket.h>.
21491
21492 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
21493
21494         maint: change "can not" to "cannot"
21495         * doc/posix-functions/iconv.texi (iconv): This one crossed line
21496         boundaries.
21497
21498 2011-04-09  Jim Meyering  <meyering@redhat.com>
21499
21500         maint: change "a a" to "a"
21501         * tests/test-lchown.h (test_lchown): s/a a/a/
21502
21503         maint.mk: prohibit \<the the\>
21504         * top/maint.mk (sc_prohibit_the_the): New rule.
21505
21506         maint: fix "the the" in comment
21507         * lib/count-one-bits.h: s/the the/the/
21508
21509         maint: change "can not" to "cannot"
21510         But do not change the occurrences in maintain.texi or in
21511         build-aux/po/Makefile.in.in, which I presume comes from gettext.
21512         * doc/gnulib-tool.texi: s/can not/cannot/
21513         * doc/posix-functions/accept.texi (accept): Likewise.
21514         * doc/posix-functions/socket.texi (socket): Likewise.
21515         * lib/mbrtowc.c: Likewise.
21516
21517         maint.mk: prohibit use of "can not"
21518         * top/maint.mk (sc_prohibit_can_not): New rule.
21519         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
21520
21521 2011-04-09  Bruno Haible  <bruno@clisp.org>
21522
21523         careadlinkat: Guard against misuse of careadlinkatcwd.
21524         * lib/careadlinkat.c: Include <stdlib.h>.
21525         (careadlinkatcwd): Check that the fd argument is as expected.
21526
21527 2011-04-09  Bruno Haible  <bruno@clisp.org>
21528
21529         careadlinkat: Use common coding style.
21530         * lib/careadlinkat.c: Move gnulib includes after system includes.
21531
21532 2011-04-09  Bruno Haible  <bruno@clisp.org>
21533
21534         careadlinkat: Clarify specification.
21535         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
21536         (careadlinkatcwd): Add comment.
21537         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
21538
21539 2011-04-09  Bruno Haible  <bruno@clisp.org>
21540
21541         areadlinkat: Avoid link error on many platforms.
21542         * modules/areadlinkat (Depends-on): Add areadlink.
21543
21544 2011-04-09  Bruno Haible  <bruno@clisp.org>
21545
21546         allocator, careadlinkat: Fix double-inclusion guard.
21547         * lib/allocator.h: Fix double-inclusion guard.
21548         * lib/careadlinkat.h: Likewise.
21549
21550 2011-04-09  Bruno Haible  <bruno@clisp.org>
21551
21552         relocatable-prog-wrapper: Update after module 'areadlink' changed.
21553         * lib/relocwrapper.c: Update dependencies hierarchy.
21554         * build-aux/install-reloc: Update list of files to be compiled.
21555         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
21556         lib/allocator.[hc].
21557
21558 2011-04-08  Eric Blake  <eblake@redhat.com>
21559
21560         strftime: silence gnulib-tool warning
21561         * modules/strftime-tests (Depends-on): Drop automatic dependency.
21562
21563 2011-04-08  Bruno Haible  <bruno@clisp.org>
21564
21565         verify: Fix syntax error with GCC 4.6 in C++ mode.
21566         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
21567         (HAVE_STATIC_ASSERT): New macro.
21568         (verify_true, verify): Use 'static_assert' if it is supported and
21569         '_Static_assert' is not supported.
21570
21571 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
21572
21573         allocator: New module.
21574         * modules/allocator, lib/allocator.c: New files.
21575         * lib/allocator.h (stdlib_allocator): New decl.
21576         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
21577         Remove.  Do not include <stdlib.h>.
21578         (careadlinkat): Use stdlib_allocator instead of rolling our own.
21579         * modules/careadlinkat (Files): Remove lib/allocator.h.
21580         (Depends-on): Add allocator.
21581
21582         stdlib: let modules use system malloc, realloc
21583         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
21584         if !_GL_USE_STDLIB_ALLOC.
21585         (malloc, realloc): Limit this change to a smaller scope.
21586
21587         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
21588         (malloc, realloc): Don't #undef; no longer needed.
21589         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21590         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21591         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
21592         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21593         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21594         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21595         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21596         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
21597
21598         careadlinkat: rename members to avoid problem
21599         * lib/allocator.h (struct allocator): Rename members from
21600         malloc/realloc to allocate/reallocate, to avoid problems if malloc
21601         and realloc are #define'd.  Reported by Eric Blake in
21602         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
21603         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
21604
21605 2011-04-08  Eric Blake  <eblake@redhat.com>
21606
21607         nonblocking: reduce dependency
21608         * tests/test-nonblocking.c: Only test sockets when in use.
21609         * modules/nonblocking-tests (Depends-on): Drop socket.
21610         (Makefile.am): Link even if sockets are not present.
21611         * modules/pipe2-tests (Makefile.am): Likewise.
21612         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
21613
21614         pipe2: fix O_NONBLOCK support on mingw
21615         * modules/pipe2 (Depends-on): Add nonblocking.
21616         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
21617         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
21618         * tests/test-nonblocking.c (main): Likewise.
21619         * modules/pipe2-tests (Makefile.am): Avoid link failure.
21620
21621         fcntl-h: fix O_ACCMODE on cygwin
21622         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
21623         * lib/fcntl.in.h (O_ACCMODE): Fix it.
21624
21625         pipe-filter: drop O_NONBLOCK workarounds
21626         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
21627         * modules/pipe-filter-ii (Depends-on): Likewise.
21628         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
21629
21630         nonblocking: provide O_NONBLOCK for mingw
21631         * modules/nonblocking (Depends-on): Add open.
21632         (configure.ac): Set new witness macro.
21633         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
21634         * modules/fcntl-h (Makefile.am): Substitute it.
21635         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
21636         nonblocking module is in use.
21637         * lib/nonblocking.c: Adjust portability test.
21638         * lib/open.c (open): Don't let native open see gnulib flag.
21639         * tests/test-fcntl-h.c (main): Enhance test.
21640         * tests/test-open.h (test_open): Likewise.
21641         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
21642
21643         careadlinkat: fix compilation error on mingw
21644         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
21645         within struct allocator.
21646
21647 2011-04-06  Eric Blake  <eblake@redhat.com>
21648
21649         binary-io: relicense under LGPLv2+
21650         * modules/binary-io (License): Relax to LGPLv2+.
21651         Requested for libvirt, and required by pipe2.
21652
21653 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
21654
21655         verify: use _Static_assert if available
21656         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
21657         (verify_true, verify): Use it if available.  This generates better
21658         diagnostics with GCC 4.6.0 and later.
21659
21660 2011-04-05  Bruno Haible  <bruno@clisp.org>
21661
21662         Remove leftover generated .h files after config.status changed.
21663
21664         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
21665         GL_GENERATE_ALLOCA_H.
21666         * modules/alloca-opt (Makefile.am): Remove alloca.h if
21667         GL_GENERATE_ALLOCA_H evaluates to false.
21668
21669         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
21670         GL_GENERATE_ARGZ_H.
21671         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
21672         evaluates to false.
21673
21674         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
21675         GL_GENERATE_BYTESWAP_H.
21676         * modules/byteswap (Makefile.am): Remove byteswap.h if
21677         GL_GENERATE_BYTESWAP_H evaluates to false.
21678
21679         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
21680         GL_GENERATE_ERRNO_H.
21681         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
21682         evaluates to false.
21683
21684         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
21685         GL_GENERATE_FLOAT_H.
21686         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
21687         evaluates to false.
21688
21689         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
21690         GL_GENERATE_FNMATCH_H.
21691         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
21692         GL_GENERATE_FNMATCH_H evaluates to false.
21693
21694         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
21695         GL_GENERATE_GLOB_H.
21696         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
21697         evaluates to false.
21698
21699         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
21700         automake conditional GL_GENERATE_ICONV_H.
21701         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
21702         evaluates to false.
21703
21704         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
21705         GL_GENERATE_NETINET_IN_H.
21706         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
21707         GL_GENERATE_NETINET_IN_H evaluates to false.
21708
21709         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
21710         conditional GL_GENERATE_PTHREAD_H.
21711         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
21712         * modules/pthread (Makefile.am): Remove pthread.h if
21713         GL_GENERATE_PTHREAD_H evaluates to false.
21714
21715         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
21716         GL_GENERATE_SCHED_H.
21717         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
21718         evaluates to false.
21719
21720         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
21721         conditional GL_GENERATE_SELINUX_CONTEXT_H.
21722         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
21723         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
21724
21725         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
21726         GL_GENERATE_STDARG_H.
21727         * modules/stdarg (Makefile.am): Remove stdarg.h if
21728         GL_GENERATE_STDARG_H evaluates to false.
21729
21730         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
21731         GL_GENERATE_STDBOOL_H.
21732         * modules/stdbool (Makefile.am): Remove stdbool.h if
21733         GL_GENERATE_STDBOOL_H evaluates to false.
21734
21735         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
21736         conditional GL_GENERATE_STDDEF_H.
21737         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
21738         * modules/stddef (Makefile.am): Remove stddef.h if
21739         GL_GENERATE_STDDEF_H evaluates to false.
21740
21741         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
21742         GL_GENERATE_STDINT_H.
21743         * modules/stdint (Makefile.am): Remove stdint.h if
21744         GL_GENERATE_STDINT_H evaluates to false.
21745
21746         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
21747         GL_GENERATE_SYSEXITS_H.
21748         * modules/sysexits (Makefile.am): Remove sysexits.h if
21749         GL_GENERATE_SYSEXITS_H evaluates to false.
21750
21751         Reported by Karl Berry and Ralf Wildenhues.
21752
21753 2011-04-05  Bruno Haible  <bruno@clisp.org>
21754
21755         Ensure to rebuild generated .h files when config.status has changed.
21756         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
21757         config.status.
21758         * modules/ctype (Makefile.am): Likewise.
21759         * modules/dirent (Makefile.am): Likewise.
21760         * modules/errno (Makefile.am): Likewise.
21761         * modules/fcntl-h (Makefile.am): Likewise.
21762         * modules/float (Makefile.am): Likewise.
21763         * modules/getopt-posix (Makefile.am): Likewise.
21764         * modules/glob (Makefile.am): Likewise.
21765         * modules/iconv-h (Makefile.am): Likewise.
21766         * modules/inttypes (Makefile.am): Likewise.
21767         * modules/langinfo (Makefile.am): Likewise.
21768         * modules/locale (Makefile.am): Likewise.
21769         * modules/math (Makefile.am): Likewise.
21770         * modules/netdb (Makefile.am): Likewise.
21771         * modules/netinet_in (Makefile.am): Likewise.
21772         * modules/poll-h (Makefile.am): Likewise.
21773         * modules/pthread (Makefile.am): Likewise.
21774         * modules/pty (Makefile.am): Likewise.
21775         * modules/sched (Makefile.am): Likewise.
21776         * modules/search (Makefile.am): Likewise.
21777         * modules/selinux-h (Makefile.am): Likewise.
21778         * modules/signal (Makefile.am): Likewise.
21779         * modules/spawn (Makefile.am): Likewise.
21780         * modules/stdarg (Makefile.am): Likewise.
21781         * modules/stdbool (Makefile.am): Likewise.
21782         * modules/stddef (Makefile.am): Likewise.
21783         * modules/stdint (Makefile.am): Likewise.
21784         * modules/stdio (Makefile.am): Likewise.
21785         * modules/stdlib (Makefile.am): Likewise.
21786         * modules/string (Makefile.am): Likewise.
21787         * modules/strings (Makefile.am): Likewise.
21788         * modules/sys_file (Makefile.am): Likewise.
21789         * modules/sys_ioctl (Makefile.am): Likewise.
21790         * modules/sys_select (Makefile.am): Likewise.
21791         * modules/sys_socket (Makefile.am): Likewise.
21792         * modules/sys_stat (Makefile.am): Likewise.
21793         * modules/sys_time (Makefile.am): Likewise.
21794         * modules/sys_times (Makefile.am): Likewise.
21795         * modules/sys_utsname (Makefile.am): Likewise.
21796         * modules/sys_wait (Makefile.am): Likewise.
21797         * modules/sysexits (Makefile.am): Likewise.
21798         * modules/termios (Makefile.am): Likewise.
21799         * modules/time (Makefile.am): Likewise.
21800         * modules/unistd (Makefile.am): Likewise.
21801         * modules/wchar (Makefile.am): Likewise.
21802         * modules/wctype-h (Makefile.am): Likewise.
21803         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
21804
21805 2011-04-05  Bruno Haible  <bruno@clisp.org>
21806
21807         pipe2: Relicense under LGPLv2+.
21808         * modules/pipe2 (License): Change to LGPLv2+.
21809         Requested by Eric Blake, for libvirt.
21810
21811 2011-04-05  Bruce Korb  <bkorb@gnu.org>
21812
21813         bootstrap: compute gnulib_extra_files after updating build_aux
21814         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
21815         change build_aux or also supply gnulib_extra_files.  Handle correctly.
21816
21817 2011-04-05  Eric Blake  <eblake@redhat.com>
21818
21819         bootstrap: preserve git whitelist item sorting
21820         * build-aux/bootstrap (sort_patterns): New function.
21821         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
21822
21823 2011-04-05  Simon Josefsson  <simon@josefsson.org>
21824
21825         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
21826         sc_space_tab check.
21827
21828 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
21829
21830         areadlink, areadlinkat: rewrite in terms of careadlinkat
21831         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
21832         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
21833         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
21834         (malloc, realloc): Remove #undefs.
21835         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
21836         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
21837         readlink, ssize_t, stdint, unistd.
21838         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
21839         areadlink, stdint.
21840
21841         careadlinkat: new module
21842         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
21843         * modules/careadlinkat: New files, written by me with
21844         a review and feedback from Ben Pfaff in
21845         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
21846
21847 2011-04-01  Bruno Haible  <bruno@clisp.org>
21848
21849         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
21850         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
21851         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
21852         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
21853         Reported by Bruce Korb <bruce.korb@gmail.com>.
21854
21855 2011-04-01  Bruno Haible  <bruno@clisp.org>
21856
21857         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
21858         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
21859         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
21860         * modules/wcpcpy (Depends-on): Add extensions.
21861         * modules/wcpncpy (Depends-on): Likewise.
21862         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
21863         systems.
21864         * doc/posix-functions/wcpncpy.texi: Likewise.
21865         * doc/posix-functions/wcwidth.texi: Likewise.
21866
21867 2011-03-31  Eric Blake  <eblake@redhat.com>
21868
21869         nonblocking: fix mingw test failures
21870         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
21871         non-blocking flag on regular file.
21872         (get_nonblocking_flag): Set errno on invalid fd.
21873         * tests/test-nonblocking.c (main): Avoid test failure on
21874         directories if fchdir is not active.
21875         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
21876
21877 2011-03-31  Bruno Haible  <bruno@clisp.org>
21878
21879         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
21880         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
21881         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
21882         Reported by Simon Josefsson <simon@josefsson.org>.
21883
21884 2011-03-31  Bruno Haible  <bruno@clisp.org>
21885         and Eric Blake  <eblake@redhat.com>
21886
21887         nonblocking: new module
21888         * modules/nonblocking: New module.
21889         * modules/nonblocking-tests: Likewise.
21890         * lib/nonblocking.h: New file.
21891         * lib/nonblocking.c: Likewise.
21892         * tests/test-nonblocking.c: New test.
21893         * lib/ioctl.c (ioctl) [mingw]: Update comment.
21894
21895 2011-03-30  Bruno Haible  <bruno@clisp.org>
21896
21897         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
21898         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
21899         instead of 'printf' format for GCC >= 4.4.
21900         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
21901         (fprintf, printf, vfprintf, vprintf): Declare with
21902         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
21903         the system's vfprintf() function.
21904         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
21905
21906 2011-03-30  Eric Blake  <eblake@redhat.com>
21907
21908         passfd: fix scoping bug
21909         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
21910         before sendmsg/recvmsg.
21911
21912         passfd: standardize coding conventions
21913         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
21914         can be learned at compile time.
21915         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
21916         ifdefs.
21917         (sendfd, recvfd): Follow gnulib code conventions.
21918
21919         passfd: fix incorrect sendmsg arguments
21920         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
21921         incorrect msg_controllen value.
21922         * modules/passfd-tests (Depends-on): Check for alarm.
21923         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
21924         Reported by Bastien ROUCARIES.
21925
21926 2011-03-30  Bruno Haible  <bruno@clisp.org>
21927
21928         c-strcasestr: Relicense under LGPLv2+.
21929         * modules/c-strcasestr (License): Change to LGPLv2+.
21930         Requested by Eric Blake, for libvirt.
21931
21932 2011-03-30  Simon Josefsson  <simon@josefsson.org>
21933
21934         * users.txt: Add libidn2.  Fix libtasn1 link.
21935
21936 2011-03-30  Jim Meyering  <meyering@redhat.com>
21937
21938         tests: readlink* ("",... fails with EINVAL on newer kernels
21939         readlink and readlinkat have typically failed with ENOENT for
21940         the invalid, empty file name,  "".  However, with the advent
21941         of linux-2.6.39, they fail with EINVAL.
21942         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
21943         when operating on the empty file name.
21944         * tests/test-readlink.h (test_readlink): Likewise.
21945
21946 2011-03-29  Bruno Haible  <bruno@clisp.org>
21947
21948         Relicense some modules under LGPLv2+, for libidn2.
21949         * modules/array-mergesort (License): Change to LGPLv2+.
21950         * modules/c-strcaseeq (License): Likewise.
21951         * modules/striconveh (License): Likewise.
21952         * modules/striconveha (License): Likewise.
21953         * modules/uniconv/base (License): Likewise.
21954         * modules/uniconv/u8-conv-from-enc (License): Likewise.
21955         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
21956         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
21957         * modules/unictype/base (License): Likewise.
21958         * modules/unictype/bidiclass-of (License): Likewise.
21959         * modules/unictype/category-M (License): Likewise.
21960         * modules/unictype/category-none (License): Likewise.
21961         * modules/unictype/category-of (License): Likewise.
21962         * modules/unictype/category-test (License): Likewise.
21963         * modules/unictype/category-test-withtable (License): Likewise.
21964         * modules/unictype/combining-class (License): Likewise.
21965         * modules/unictype/joiningtype-of (License): Likewise.
21966         * modules/unictype/scripts (License): Likewise.
21967         * modules/uninorm/base (License): Likewise.
21968         * modules/uninorm/canonical-decomposition (License): Likewise.
21969         * modules/uninorm/composition (License): Likewise.
21970         * modules/uninorm/decompose-internal (License): Likewise.
21971         * modules/uninorm/decomposition-table (License): Likewise.
21972         * modules/uninorm/nfc (License): Likewise.
21973         * modules/uninorm/nfd (License): Likewise.
21974         * modules/uninorm/u32-normalize (License): Likewise.
21975         * modules/unistr/base (License): Likewise.
21976         * modules/unistr/u32-cpy (License): Likewise.
21977         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
21978         * modules/unistr/u32-to-u8 (License): Likewise.
21979         * modules/unistr/u32-uctomb (License): Likewise.
21980         * modules/unistr/u8-check (License): Likewise.
21981         * modules/unistr/u8-mblen (License): Likewise.
21982         * modules/unistr/u8-mbtouc (License): Likewise.
21983         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
21984         * modules/unistr/u8-mbtoucr (License): Likewise.
21985         * modules/unistr/u8-prev (License): Likewise.
21986         * modules/unistr/u8-strlen (License): Likewise.
21987         * modules/unistr/u8-to-u32 (License): Likewise.
21988         * modules/unistr/u8-uctomb (License): Likewise.
21989         * modules/unitypes (License): Likewise.
21990         Requested by Simon Josefsson.
21991
21992 2011-03-29  Simon Josefsson  <simon@josefsson.org>
21993
21994         lib-symbol-visibility: Add a notice.
21995         * modules/lib-symbol-visibility (Notice): New field.
21996
21997 2011-03-29  Bruno Haible  <bruno@clisp.org>
21998
21999         getaddrinfo: Doc fix.
22000         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
22001         section "fixed in Gnulib".
22002
22003 2011-03-28  Simon Josefsson  <simon@josefsson.org>
22004
22005         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
22006         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
22007
22008 2011-03-26  Bruno Haible  <bruno@clisp.org>
22009
22010         unictype/property-byname: Reduce the number of load-time relocations.
22011         * lib/unictype/pr_byname.c: Include <stdlib.h>.
22012         (UC_PROPERTY_INDEX_*): New enumeration values.
22013         (uc_property_byname): Convert an index from the lookup table to an
22014         uc_property_t.
22015         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
22016         values.
22017
22018 2011-03-26  Bruno Haible  <bruno@clisp.org>
22019
22020         unictype/property-byname: Allow omitted word separators and aliases.
22021         * lib/unictype/pr_byname.gperf: Add property names without word
22022         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
22023         for 'space'.
22024
22025 2011-03-26  Bruno Haible  <bruno@clisp.org>
22026
22027         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
22028         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
22029         also hyphens to space.
22030         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
22031         without spaces.
22032         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
22033
22034 2011-03-26  Bruno Haible  <bruno@clisp.org>
22035
22036         unictype/joiningtype-byname: Recognize long names as well.
22037         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
22038         a long name.
22039         * lib/unictype/joiningtype_byname.c: Include <string.h>,
22040         unictype/joiningtype_byname.h.
22041         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
22042         * lib/unictype/joiningtype_byname.gperf: New file.
22043         * modules/unictype/joiningtype-byname (Files): Add
22044         lib/unictype/joiningtype_byname.gperf.
22045         (Depends-on): Add gperf.
22046         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
22047         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
22048         long names.
22049
22050         Tests for module 'unictype/joiningtype-longname'.
22051         * modules/unictype/joiningtype-longname-tests: New file.
22052         * tests/unictype/test-joiningtype_longname.c: New file.
22053
22054         New module 'unictype/joiningtype-longname'.
22055         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
22056         * lib/unictype/joiningtype_longname.c: New file.
22057         * modules/unictype/joiningtype-longname: New file.
22058         * modules/unictype/joiningtype-all (Depends-on): Add
22059         unictype/joiningtype-longname.
22060
22061 2011-03-26  Bruno Haible  <bruno@clisp.org>
22062
22063         unictype/bidiclass-byname: Recognize long names as well.
22064         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
22065         name.
22066         * lib/unictype/bidi_byname.c: Include <string.h>,
22067         unictype/bidi_byname.h.
22068         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
22069         * lib/unictype/bidi_byname.gperf: New file.
22070         * modules/unictype/bidiclass-byname (Files): Add
22071         lib/unictype/bidi_byname.gperf.
22072         (Depends-on): Add gperf.
22073         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
22074         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
22075         long names.
22076
22077         Tests for module 'unictype/bidiclass-longname'.
22078         * modules/unictype/bidiclass-longname-tests: New file.
22079         * tests/unictype/test-bidi_longname.c: New file.
22080
22081         New module 'unictype/bidiclass-longname'.
22082         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
22083         * lib/unictype/bidi_longname.c: New file.
22084         * modules/unictype/bidiclass-longname: New file.
22085         * modules/unictype/bidiclass-all (Depends-on): Add
22086         unictype/bidiclass-longname.
22087
22088 2011-03-26  Bruno Haible  <bruno@clisp.org>
22089
22090         unictype/bidi*: Rename modules.
22091         * modules/unictype/bidiclass-all: Renamed from
22092         modules/unictype/bidicategory-all.
22093         * modules/unictype/bidiclass-name: Renamed from
22094         modules/unictype/bidiclass-name.
22095         (Description): Update.
22096         * modules/unictype/bidiclass-name-tests: Renamed from
22097         modules/unictype/bidicategory-name-tests.
22098         * modules/unictype/bidiclass-byname: Renamed from
22099         modules/unictype/bidicategory-byname.
22100         (Description): Update.
22101         * modules/unictype/bidiclass-byname-tests: Renamed from
22102         modules/unictype/bidicategory-byname-tests.
22103         * modules/unictype/bidiclass-of: Renamed from
22104         modules/unictype/bidicategory-of.
22105         (Description): Update.
22106         * modules/unictype/bidiclass-of-tests: Renamed from
22107         modules/unictype/bidicategory-of-tests.
22108         * modules/unictype/bidiclass-test: Renamed from
22109         modules/unictype/bidicategory-test.
22110         (Description): Update.
22111         * modules/unictype/bidiclass-test-tests: Renamed from
22112         modules/unictype/bidicategory-test-tests.
22113         * modules/unictype/bidicategory-all: New file, a simple redirection.
22114         * modules/unictype/bidicategory-name: Likewise.
22115         * modules/unictype/bidicategory-byname: Likewise.
22116         * modules/unictype/bidicategory-of: Likewise.
22117         * modules/unictype/bidicategory-test: Likewise.
22118         * modules/unictype/property-bidi-* (Dependencies): Update.
22119         * lib/unictype/bidi_*.c: Update comment.
22120
22121 2011-03-26  Bruno Haible  <bruno@clisp.org>
22122
22123         unictype/bidi*: Rename functions, part 2.
22124         * modules/unictype/bidicategory-name (configure.ac): Update required
22125         libunistring version.
22126         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
22127
22128 2011-03-25  Bruno Haible  <bruno@clisp.org>
22129
22130         New module 'unictype/combining-class-all'.
22131         * modules/unictype/combining-class-all: New file.
22132
22133         Tests for module 'unictype/combining-class-byname'.
22134         * modules/unictype/combining-class-byname-tests: New file.
22135         * tests/unictype/test-combiningclass_byname.c: New file.
22136
22137         New module 'unictype/combining-class-byname'.
22138         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
22139         * lib/unictype/combiningclass_byname.c: New file.
22140         * lib/unictype/combiningclass_byname.gperf: New file.
22141         * modules/unictype/combining-class-byname: New file.
22142
22143         Tests for module 'unictype/combining-class-longname'.
22144         * modules/unictype/combining-class-longname-tests: New file.
22145         * tests/unictype/test-combiningclass_longname.c: New file.
22146
22147         New module 'unictype/combining-class-longname'.
22148         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
22149         * lib/unictype/combiningclass_longname.c: New file.
22150         * modules/unictype/combining-class-longname: New file.
22151
22152         Tests for module 'unictype/combining-class-name'.
22153         * modules/unictype/combining-class-name-tests: New file.
22154         * tests/unictype/test-combiningclass_name.c: New file.
22155
22156         New module 'unictype/combining-class-name'.
22157         * lib/unictype.in.h (uc_combining_class_name): New declaration.
22158         * lib/unictype/combiningclass_name.c: New file.
22159         * modules/unictype/combining-class-name: New file.
22160
22161 2011-03-25  Bruno Haible  <bruno@clisp.org>
22162
22163         unictype/combining-class: Rename source files.
22164         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
22165         of unictype/combining.h.
22166         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
22167         Update.
22168         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
22169         * modules/unictype/combining-class (Description): Fix.
22170         (Files, Makefile.am): Update.
22171         * tests/unictype/test-combiningclass.c: Renamed from
22172         tests/unictype/test-combining.c.
22173         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
22174
22175 2011-03-25  Bruno Haible  <bruno@clisp.org>
22176
22177         unictype: Update list of canonical combining classes.
22178         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
22179
22180 2011-03-25  Bruno Haible  <bruno@clisp.org>
22181
22182         unictype/category-byname: Recognize long names as well.
22183         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
22184         a long name.
22185         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
22186         unictype/categ_byname.h.
22187         (UC_CATEGORY_INDEX_*): New enumeration values.
22188         (uc_general_category_byname): Use uc_general_category_lookup and
22189         convert from index to value.
22190         * lib/unictype/categ_byname.gperf: New file.
22191         * modules/unictype/category-byname (Files): Add
22192         lib/unictype/categ_byname.gperf.
22193         (Depends-on): Add gperf.
22194         (Makefile.am): Add rule for generating unictype/categ_byname.h.
22195         * tests/unictype/test-categ_byname.c (main): Test the recognition of
22196         long names.
22197
22198         Tests for module 'unictype/category-longname'.
22199         * modules/unictype/category-longname-tests: New file.
22200         * tests/unictype/test-categ_longname.c: New file.
22201
22202         New module 'unictype/category-longname'.
22203         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
22204         * lib/unictype/categ_longname.c: New file.
22205         * modules/unictype/category-longname: New file.
22206         * modules/unictype/category-all (Depends-on): Add it.
22207
22208 2011-03-25  Bruno Haible  <bruno@clisp.org>
22209
22210         Tests for module 'unictype/category-LC'.
22211         * modules/unictype/category-LC-tests: New file.
22212         * tests/unictype/test-categ_LC.c: New file, automatically generated.
22213
22214         New module 'unictype/category-LC'.
22215         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
22216         (UC_CATEGORY_LC): New declaration.
22217         (UC_CASED_LETTER): New macro.
22218         * lib/gen-uni-tables.c (is_category_LC): New function.
22219         (output_categories): Also handle category LC.
22220         (UC_CATEGORY_MASK_LC): New enumeration value.
22221         (general_category_byname): Also handle category LC.
22222         * lib/unictype/categ_LC.c: New file.
22223         * lib/unictype/categ_LC.h: New file, automatically generated.
22224         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
22225         category LC.
22226         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
22227         * modules/unictype/category-LC: New file.
22228         * modules/unictype/category-byname (Depends-on): Add
22229         unictype/category-LC.
22230         * modules/unictype/category-all (Depends-on): Likewise.
22231
22232 2011-03-25  Eric Blake  <eblake@redhat.com>
22233
22234         xmalloc: revert yesterday's regression
22235         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
22236         realloc's underlying behavior (allowing allocation of zero-size
22237         objects, especially if malloc-gnu is also in use).
22238
22239 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
22240
22241         maint.mk: add missing version to VC-tag
22242         * top/maint.mk: git tag was missing actual tag name; add it.
22243
22244         valgrind: do leak checking, and exit with code 1 on error (not 0)
22245         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
22246         to VALGRIND.
22247
22248 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
22249
22250         posix-modules: say what it does.
22251         * posix-modules: Add a line to the --help output saying what it does.
22252
22253 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
22254
22255         xmalloc: Do not leak if underlying realloc is C99 compatible.
22256         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
22257         This avoids a leak on C99-based systems.  See
22258         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
22259
22260 2011-03-24  Eric Blake  <eblake@redhat.com>
22261
22262         realloc: document portability problem
22263         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
22264         passing 0 size to realloc.
22265
22266 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
22267
22268         doc: update users.txt
22269         * users.txt: Add cvsps, tmpwatch
22270
22271 2011-03-23  Matt Rice  <ratmice@gmail.com>
22272
22273         doc: update users.txt
22274         * users.txt: Add gdb.
22275
22276 2011-03-23  Jim Meyering  <meyering@redhat.com>
22277
22278         doc: update users.txt
22279         Looking through matches up to the following URL (there are still
22280         several more pages), I found several projects that use gnulib:
22281         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
22282         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
22283         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
22284
22285 2011-03-22  Bruno Haible  <bruno@clisp.org>
22286
22287         unictype/bidi*: Rename functions.
22288         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
22289         uc_bidi_class, uc_is_bidi_class): New declarations.
22290         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
22291         uc_bidi_category_byname.
22292         (uc_bidi_category_byname): New function.
22293         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
22294         u_bidi_category_name.
22295         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
22296         (uc_bidi_category_name): New function.
22297         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
22298         uc_bidi_category.
22299         (uc_bidi_category): New function.
22300         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
22301         uc_is_bidi_category. Invoke uc_bidi_class.
22302         (uc_is_bidi_category): New function.
22303         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
22304         instead of uc_bidi_category_byname.
22305         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
22306         instead of uc_bidi_category_name.
22307         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
22308         uc_bidi_category.
22309         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
22310         instead of uc_is_bidi_category.
22311
22312 2011-03-21  Bruno Haible  <bruno@clisp.org>
22313
22314         New module 'unictype/joininggroup-all'.
22315         * modules/unictype/joininggroup-all: New file.
22316
22317         Tests for module 'unictype/joininggroup-of'.
22318         * modules/unictype/joininggroup-of-tests: New file.
22319         * tests/unictype/test-joininggroup_of.c: New file.
22320         * tests/unictype/test-joininggroup_of.h: New file, automatically
22321         generated by gen-uni-tables.
22322
22323         New module 'unictype/joininggroup-of'.
22324         * modules/unictype/joininggroup-of: New file.
22325         * lib/unictype/joininggroup_of.c: New file.
22326         * lib/unictype/joininggroup_of.h: New file, automatically generated by
22327         gen-uni-tables.
22328
22329         Tests for module 'unictype/joininggroup-byname'.
22330         * modules/unictype/joininggroup-byname-tests: New file.
22331         * tests/unictype/test-joininggroup_byname.c: New file.
22332
22333         New module 'unictype/joininggroup-byname'.
22334         * modules/unictype/joininggroup-byname: New file.
22335         * lib/unictype/joininggroup_byname.c: New file.
22336         * lib/unictype/joininggroup_byname.gperf: New file.
22337
22338         Tests for module 'unictype/joininggroup-name'.
22339         * modules/unictype/joininggroup-name-tests: New file.
22340         * tests/unictype/test-joininggroup_name.c: New file.
22341
22342         New module 'unictype/joininggroup-name'.
22343         * modules/unictype/joininggroup-name: New file.
22344         * lib/unictype/joininggroup_name.c: New file.
22345         * lib/unictype/joininggroup_name.h: New file.
22346
22347         New module 'unictype/joiningtype-all'.
22348         * modules/unictype/joiningtype-all: New file.
22349
22350         Tests for module 'unictype/joiningtype-of'.
22351         * modules/unictype/joiningtype-of-tests: New file.
22352         * tests/unictype/test-joiningtype_of.c: New file.
22353         * tests/unictype/test-joiningtype_of.h: New file, automatically
22354         generated by gen-uni-tables.
22355
22356         New module 'unictype/joiningtype-of'.
22357         * modules/unictype/joiningtype-of: New file.
22358         * lib/unictype/joiningtype_of.c: New file.
22359         * lib/unictype/joiningtype_of.h: New file, automatically generated by
22360         gen-uni-tables.
22361
22362         Tests for module 'unictype/joiningtype-byname'.
22363         * modules/unictype/joiningtype-byname-tests: New file.
22364         * tests/unictype/test-joiningtype_byname.c: New file.
22365
22366         New module 'unictype/joiningtype-byname'.
22367         * modules/unictype/joiningtype-byname: New file.
22368         * lib/unictype/joiningtype_byname.c: New file.
22369
22370         Tests for module 'unictype/joiningtype-name'.
22371         * modules/unictype/joiningtype-name-tests: New file.
22372         * tests/unictype/test-joiningtype_name.c: New file.
22373
22374         New module 'unictype/joiningtype-name'.
22375         * modules/unictype/joiningtype-name: New file.
22376         * lib/unictype/joiningtype_name.c: New file.
22377
22378         unictype: Add support for Arabic shaping properties.
22379         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
22380         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
22381         declarations.
22382         (UC_JOINING_GROUP_*): New enumeration values.
22383         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
22384         declarations.
22385         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
22386         (unicode_joining_type): New variable.
22387         (UC_JOINING_GROUP_*): New enumeration values.
22388         (unicode_joining_group): New variable.
22389         (fill_arabicshaping, joining_type_as_c_identifier,
22390         output_joining_type_test, output_joining_type,
22391         joining_group_as_c_identifier, output_joining_group_test,
22392         output_joining_group): New functions.
22393         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
22394         fill_arabicshaping and output_joining_type_test, output_joining_type,
22395         output_joining_group_test, output_joining_group.
22396         Reported by Simon Josefsson.
22397
22398 2011-03-21  Jim Meyering  <meyering@redhat.com>
22399
22400         strftime: fix a bug in yesterday's change
22401         * lib/strftime.c (add): Accommodate width's initial value of -1.
22402         Otherwise, nstrftime would copy uninitialized data into
22403         the result buffer.
22404
22405 2011-03-21  Jim Meyering  <meyering@redhat.com>
22406
22407         tests: add strftime-tests module
22408         * tests/test-strftime.c: New file.
22409         * modules/strftime-tests: New module.
22410
22411 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
22412
22413         strftime: don't assume a byte count fits in 'int'
22414         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
22415         found this problem by static analysis, using gcc -Wstrict-overflow
22416         (GCC 4.5.2, x86-64).  This reported an optimization that depended
22417         on an integer overflow having undefined behavior, but it turns out
22418         that the argument is a size, which might not fit in 'int' anyway,
22419
22420 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
22421
22422         stdio: don't require ignore_value around fwrite
22423
22424         This patch works around libc bug 11959
22425         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
22426         Without this patch, applications must often write
22427         ignore_value (fwrite (...)) even though the ignore_value is
22428         not helpful here.  It's common to write many objects, using
22429         fwrite/printf/etc., and then use ferror to detect output error.
22430
22431         I considered making this patch optional, but decided against it,
22432         because libc is obviously being inconsistent here: there is no
22433         reason libc should insist that user code must inspect fwrite
22434         return's value without also insisting that it inspect printf's,
22435         putchar's, etc.  If user code wants to have a strict style where
22436         all these functions' values are checked (so that ferror need not
22437         be checked), we could add support for that style in a new gnulib
22438         module, but in the meantime it's better to be consistent and to
22439         support common usage.
22440
22441         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
22442         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
22443         that we are compiling in checking mode, and if not C++, and
22444         if not already wrapping fwrite for some other reason.
22445         (fwrite): #define to rpl_fwrite if the latter is defined.
22446
22447 2011-03-20  Bruno Haible  <bruno@clisp.org>
22448
22449         verror: Fix compilation error introduced on 2011-02-13.
22450         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
22451         instead of __attribute__.
22452         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22453
22454 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
22455             Bruno Haible  <bruno@clisp.org>
22456
22457         socklen: do not depend on sys_socket
22458         While trying to modify Emacs to use gnulib's socklen module,
22459         I discovered a circular dependency: socklen depends on sys_socket
22460         and vice versa.  Emacs can use socklen, but it does not need
22461         sys_socket because it has its own substitute for sys/socket.h.
22462         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
22463         gl_TYPE_SOCKLEN_T.
22464         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
22465         gl_PREREQ_SYS_H_SOCKET.
22466         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
22467         gl_PREREQ_SYS_H_SOCKET.
22468         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
22469         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
22470         * modules/socklen (Depends-on): Do not depend on sys_socket.
22471         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
22472
22473 2011-03-20  Jim Meyering  <meyering@redhat.com>
22474
22475         maint.mk: sort file names *after* new transformation
22476         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
22477         prefix would have led to an unwarranted failure in GNU parted.
22478         Sort after that transformation.
22479
22480 2011-03-19  Jim Meyering  <meyering@redhat.com>
22481
22482         maint.mk: fix po-file syntax-check rule
22483         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
22484         Patch by Bruno Haible.
22485
22486 2011-03-19  Bruno Haible  <bruno@clisp.org>
22487
22488         socklen: Update comment.
22489         * m4/socklen.m4: Update comment about platforms.
22490
22491 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
22492             Bruno Haible  <bruno@clisp.org>
22493
22494         inet_ntop, inet_pton: Simplify.
22495         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
22496         documented to provide socklen_t and we already depend on sys_socket.
22497         * modules/inet_pton (Depends-on): Likewise.
22498         * lib/arpa_inet.in.h: Adjust comment.
22499
22500 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
22501             Bruno Haible  <bruno@clisp.org>
22502
22503         netdb: Simplify.
22504         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
22505         documented to provide socklen_t and we already depend on sys_socket.
22506         * lib/netdb.in.h: Adjust comment.
22507
22508 2011-03-19  Bruno Haible  <bruno@clisp.org>
22509
22510         sys_socket, netdb: Document problem with socklen_t.
22511         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
22512         platforms.
22513         * doc/posix-headers/netdb.texi: Likewise.
22514
22515 2011-03-18  Eric Blake  <eblake@redhat.com>
22516
22517         maint.mk: let po check work in VPATH build
22518         * top/maint.mk (po_file): Allow cfg.mk override.
22519         (sc_po_check): Allow VPATH use.
22520         Reported by Jiri Denemark.
22521
22522 2011-03-16  Jim Meyering  <meyering@redhat.com>
22523
22524         maint.mk: allow fine-grained syntax-check exclusion via Make variables
22525         Before, you would have had to create one .x-sc_ file per rule in order
22526         to exempt offending files.  Now, you may instead use a Make variable --
22527         usually defined in cfg.mk -- whose name identifies the affected rule.
22528         * top/maint.mk (_sc_excl): Define.
22529         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
22530         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
22531
22532 2011-03-13  Bruno Haible  <bruno@clisp.org>
22533
22534         ignore-value tests: Avoid warnings.
22535         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
22536         empty for gcc < 3.4.
22537
22538 2011-03-13  Bruno Haible  <bruno@clisp.org>
22539
22540         passfd: Fix link error on Solaris.
22541         * modules/passfd (Description): Correct.
22542         (Depends-on): Add socketlib.
22543         (Link): New section.
22544         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
22545
22546 2011-03-13  Bruno Haible  <bruno@clisp.org>
22547
22548         passfd: Fix link error on AIX 5.2.
22549         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
22550
22551 2011-03-13  Bruno Haible  <bruno@clisp.org>
22552
22553         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
22554         * lib/sys_socket.in.h: Include <stddef.h>.
22555         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
22556         CMSG_FIRSTHDR. Remove unused variable.
22557
22558 2011-03-13  Bruno Haible  <bruno@clisp.org>
22559
22560         passfd: Fix compilation error on OpenBSD.
22561         * lib/passfd.c: Include <sys/uio.h>.
22562
22563 2011-03-13  Bruno Haible  <bruno@clisp.org>
22564
22565         passfd test: Fix warnings.
22566         * tests/test-passfd.c: Include <sys/wait.h>.
22567         (main): Fix typo.
22568
22569 2011-03-13  Bruno Haible  <bruno@clisp.org>
22570
22571         passfd module, part 4, tweaks.
22572         * tests/test-passfd.c: Reorder includes.
22573         (main): Fix perror and printf calls.
22574
22575 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
22576
22577         passfd module, part 4.
22578         * modules/passfd-tests: New file.
22579         * tests/test-passfd.c: New file.
22580
22581 2011-03-13  Jim Meyering  <meyering@redhat.com>
22582
22583         Makefile: rely on GNU make; derive syntax-check rule names
22584         Rather than requiring that each sc_ rule be listed as a dependent
22585         of "check", use features of GNU make to derive the list.
22586         * Makefile (syntax-check-rules): Define.
22587         (check): Depend on the new variable, not the hard-coded list.
22588
22589 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
22590             Bruno Haible  <bruno@clisp.org>
22591
22592         passfd module, part 3.
22593         * lib/passfd.h (recvfd): Add a flags argument.
22594         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
22595         (recvfd): Add a flags argument.
22596         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
22597         exists.
22598         * modules/passfd (Depends-on): Add cloexec.
22599         Suggested by Eric Blake.
22600
22601 2011-03-13  Bruno Haible  <bruno@clisp.org>
22602
22603         passfd module, part 2, tweaks.
22604         * modules/passfd (Files): Reorder.
22605         (Depends-on): Remove errno.
22606         (Include): Remove <sys/socket.h>, <sys/un.h>.
22607         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
22608         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
22609         specification header. Include <sys/socket.h> always. Don't include
22610         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
22611         (sendfd): Clarify that it sets errno when it fails.
22612         (recvfd): Fix specification.
22613
22614 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
22615
22616         passfd module, part 2.
22617         * modules/passfd: New file.
22618         * lib/passfd.h: New file.
22619         * lib/passfd.c: New file.
22620
22621 2011-03-12  Bruno Haible  <bruno@clisp.org>
22622
22623         wcswidth, mbswidth: Avoid integer overflow.
22624         * lib/wcswidth.c: Include <limits.h>.
22625         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
22626         * lib/mbswidth.c: Include <limits.h>.
22627         (mbsnwidth): Avoid 'int' overflow.
22628         Reported by Jim Meyering.
22629
22630 2011-03-12  Bruno Haible  <bruno@clisp.org>
22631
22632         futimens, utimensat: Avoid endless recursion on Solaris 10.
22633         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
22634         Solaris.
22635         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
22636         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
22637
22638 2011-03-11  Jim Meyering  <meyering@redhat.com>
22639
22640         maint.mk: relax a regexp to accommodate other formatting styles
22641         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
22642         between "ngettext" and the following "(".
22643
22644 2011-03-11  Pádraig Brady <P@draigBrady.com>
22645
22646         maint.mk: suppress a false positive warning
22647         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
22648         diagnostics are marked with ngettext.
22649
22650 2011-03-10  Eric Blake  <eblake@redhat.com>
22651
22652         wchar: add explicit dependencies, for Tru64
22653         * modules/mbmemcasecoll (Depends-on): Add wchar.
22654         * modules/mbtowc (Depends-on): Likewise.
22655         * modules/vasnprintf (Depends-on): Likewise.
22656         * modules/unistdio/u-printf-args (Depends-on): Likewise.
22657         * modules/wctomb (Depends-on): Likewise.
22658         Reported by Peter O'Gorman.
22659
22660 2011-03-08  Bruno Haible  <bruno@clisp.org>
22661
22662         passfd module, part 1, tweaks.
22663         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
22664         Improve indentation. Improve AC_MSG_CHECKING messages.
22665         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
22666         gl_SOCKET_FAMILIES.
22667
22668 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
22669
22670         passfd module, part 1.
22671         * m4/afunix.m4: New file.
22672         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
22673         sockets.
22674
22675 2011-03-08  Bruno Haible  <bruno@clisp.org>
22676
22677         regex-quote: New API.
22678         * lib/regex-quote.h: Include <stdbool.h>.
22679         (struct regex_quote_spec): New type.
22680         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
22681         New declarations.
22682         (regex_quote_length, regex_quote_copy, regex_quote): Take a
22683         'const struct regex_quote_spec *' argument.
22684         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
22685         (pcre_special): New constant.
22686         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
22687         New functions.
22688         (regex_quote_length, regex_quote_copy, regex_quote): Take a
22689         'const struct regex_quote_spec *' argument.
22690         * modules/regex-quote (Depends-on): Add stdbool.
22691         * tests/test-regex-quote.c (check): Update for new API. Add test for
22692         anchored results.
22693         * NEWS: Mention the API change.
22694         Reported by Reuben Thomas and Eric Blake.
22695
22696 2011-03-06  Bruno Haible  <bruno@clisp.org>
22697
22698         regex-quote: Fix creation of POSIX extended regular expressions.
22699         * lib/regex-quote.c (ere_special): Add grouping and alternation
22700         operators.
22701
22702 2011-03-05  Bruno Haible  <bruno@clisp.org>
22703
22704         doc: Improve doc regarding autopoint vs. gnulib.
22705         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
22706         disable autopoint while running autoreconf.
22707         Suggested by Ralf Wildenhues.
22708
22709 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22710
22711         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
22712         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
22713
22714 2011-03-03  Bruce Korb  <bkorb@gnu.org>
22715
22716         parse-duration: remove xalloc.h dependency
22717         * lib/parse-duration.c (parse_period): handle NULL return from
22718         strdup instead of calling xstrdup().
22719         * modules/parse-duration: remove "xalloc" dependency
22720
22721 2011-03-03  Matthew Booth  <mbooth@redhat.com>
22722
22723         bootstrap: honor m4_base when running aclocal
22724         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
22725
22726 2011-03-02  Jim Meyering  <meyering@redhat.com>
22727
22728         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
22729         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
22730         on request from Matt Booth.
22731
22732 2011-03-01  Eric Blake  <eblake@redhat.com>
22733
22734         test-link: work on Hurd
22735         * tests/test-link.h (test_link): Hurd rejects linking directories
22736         with EISDIR instead of the POSIX-mandated EPERM.
22737
22738 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
22739
22740         stdio: simplify by moving files to printf-posix, sigpipe
22741         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
22742         since this symbol is needed only if printf is replaced.
22743         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
22744         Require gl_ASM_SYMBOL_PREFIX.
22745         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
22746         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
22747         (Depends-on): Add 'raise'.
22748         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
22749         * modules/stdio (Files): Remove lib/stdio-write.c,
22750         m4/asm-underscore.m4.
22751         (Depends-on): Remove 'raise'.
22752
22753         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
22754         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
22755         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
22756         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
22757
22758 2011-02-28  Bruno Haible  <bruno@clisp.org>
22759
22760         localcharset: Assume ANSI C behaviour of free().
22761         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
22762         calling free().
22763         Suggested by Simon Josefsson <simon@josefsson.org>.
22764
22765 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
22766             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
22767             Bruno Haible  <bruno@clisp.org>  (tiny change)
22768
22769         On Cygwin, use /proc file system instead of win32 API.
22770         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
22771         Win32 file names.
22772         (DllMain): Simplify by removing Cygwin specific code.
22773         (find_shared_library_fullname): Use Linux specific implementation also
22774         for Cygwin.
22775         (get_shared_library_fullname): Update accordingly.
22776         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
22777         Win32 file names.
22778         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
22779         Cygwin specific code.
22780
22781 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
22782             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
22783
22784         Fix OpenMP flag detection for various Fortran compilers.
22785         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
22786         OpenMP-conditional compilation construct, to force compile
22787         failure with missing OpenMP flag.
22788         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
22789
22790 2011-02-25  Eric Blake  <eblake@redhat.com>
22791
22792         strstr: expand test coverage
22793         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
22794         compilation.
22795         * tests/test-memmem.c (main): Duplicate tests.
22796         * tests/test-strcasestr.c (main): Likewise.
22797         * tests/test-c-strcasestr.c (main): Likewise.
22798
22799 2011-02-25  Jim Meyering  <meyering@redhat.com>
22800
22801         maint.mk: detect missing-NL-at-EOF, too
22802         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
22803         it also detects when a file lacks a newline at EOF.
22804         (require_exactly_one_NL_at_EOF_): Renamed from
22805         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
22806         since people may well have .x-sc_... file names tied to the
22807         existing name.  Suggested by Eric Blake.
22808
22809 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
22810
22811         dirname: move m4/dos.m4 functionality into lib/dosname.h
22812
22813         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
22814         extracts symbols from it, puts them into config.h; but it's much
22815         easier to use the symbols directly.  filename.h already does this,
22816         but it disagrees with dos.m4 in some respects.  This patch
22817         introduces a different include file dosname.h that packages up
22818         dos.m4, and then later we can work on merging filename.h and
22819         dosname.h.  Applications that need only the easy-to-configure
22820         symbols should consider including dosname.h rather than dirname.h.
22821         * NEWS: Mention incompatible changes.
22822         * m4/dos.m4: Remove.
22823         * lib/dosname.h, modules/dosname: New files.
22824         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
22825         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
22826         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
22827         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
22828         Include dosname.h, not dirname.h.
22829         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
22830         Include dosname.h, for definitions of symbols like ISSLASH
22831         that used to be in config.h.
22832         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
22833         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
22834         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
22835         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
22836         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
22837         * modules/rmdir (Files): Likewise.
22838         * modules/stat (Files): Likewise.
22839         * modules/unlink (Files): Likewise.
22840         * modules/dirname-lgpl (Depends-on): Add dosname.
22841         * modules/lstat (Depends-on): Likewise.
22842         * modules/openat (Depends-on): Likewise.
22843         * modules/rmdir (Depends-on): Likewise.
22844         * modules/savewd (Depends-on): Likewise.
22845         * modules/stat (Depends-on): Likewise.
22846         * modules/unlink (Depends-on): Likewise.
22847         * modules/openat (Depends-on): Remove dirname-lgpl.
22848         * modules/savewd (Depends-on): Likewise.
22849         * tests/test-dirname.c: Do not use removed symbols like
22850         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
22851         the remaining symbols, e.g., ISSLASH ('\\').
22852
22853 2011-02-25  Eric Blake  <eblake@redhat.com>
22854
22855         strstr: revert patches that introduced bug and pessimization
22856         * lib/str-two-way.h: Add another reference.
22857         (two_way_short_needle, two_way_long_needle): Revert changes from
22858         2011-02-24; they pessimize search speed.
22859         (critical_factorization): Partially revert changes from
22860         2010-06-22; they violate the requirement that the left half of the
22861         needle be smaller than the period of the needle.
22862
22863 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
22864
22865         filenamecat: remove unnecessary dependency on dirname-lgpl
22866         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
22867         is no direct dependency, just an indirect one via filenamecat-lgpl.
22868
22869         remove: remove unnecessary use of m4/dos.m4
22870         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
22871         * modules/remove (FILES): Remove m4/dos.m4.
22872
22873         * lib/openat-proc.c: Don't include dirname.h; not needed.
22874
22875         backupfile: remove unnecessary use of m4/dos.m4
22876         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
22877         of its symbols are used by the backupfile code.  backupfile.c does
22878         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
22879         for the rare case of programs that want all their backup file
22880         names to live within 8+3 limits, and dos.m4 doesn't address that.
22881         * modules/backupfile (Files): Remove m4/dos.m4.
22882
22883 2011-02-24  Jim Meyering  <meyering@redhat.com>
22884
22885         strstr: fix a bug whereby strstr would mistakenly return NULL
22886         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
22887         in period calculation.
22888         (two_way_long_needle): Likewise.
22889         The original problem was reported by Mike Stump in
22890         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
22891         Ralf Wildenhues provided the short needle and haystack.
22892         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
22893         Add a more involved test to trigger the bug in two_way_long_needle.
22894
22895 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
22896
22897         gnulib-tool: remove use of bold display in help screen
22898         * gnulib-tool (func_usage): Do not use bold display anymore in the
22899         help screen.  That was just meant to be a temporary emphasis for a
22900         backward-incompatible change.
22901
22902 2011-02-23  Bruno Haible  <bruno@clisp.org>
22903
22904         Fix misindentation of preprocessor directives.
22905         * lib/argp-namefrob.h: Reindent preprocessor directives.
22906         * lib/getopt_int.h (struct _getopt_data): Likewise.
22907         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
22908         * lib/vasnprintf.c (decode_long_double): Likewise.
22909         * tests/test-argmatch.c: Insert blank lines, for clarity.
22910         * tests/test-exclude.c: Likewise.
22911
22912 2011-02-22  Bruno Haible  <bruno@clisp.org>
22913
22914         ioctl: Fix for MacOS X in 64-bit mode.
22915         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
22916         value.
22917         Suggested by Eric Blake.
22918         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
22919
22920 2011-02-22  Jim Meyering  <meyering@redhat.com>
22921
22922         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
22923         * Makefile (sc_cpp_indent_check): Don't limit the check to files
22924         in lib/.
22925
22926 2011-02-22  Eric Blake  <eblake@redhat.com>
22927
22928         maint: avoid any CDPATH issue
22929         * Makefile (sc_cpp_indent_check): Anchor cd argument.
22930
22931         maint: adjust cpp indentation for my modules, as well
22932         * Makefile (sc_cpp_indent_check): Add my name.
22933         * lib/fbufmode.c: Filter through cppi.
22934         * lib/fpurge.c: Likewise.
22935         * lib/freadable.c: Likewise.
22936         * lib/freading.c: Likewise.
22937         * lib/fwritable.c: Likewise.
22938         * lib/fwriting.c: Likewise.
22939         * lib/sigaction.c: Likewise.
22940
22941 2011-02-22  Jim Meyering  <meyering@redhat.com>
22942
22943         maint: adjust cpp indentation to reflect nesting depth
22944         I.e., in a block of code that begins with an unnested "#if",
22945         put one space between the "#" in column 1 and following token.
22946         For example,
22947         -#include <sys/vfs.h>
22948         +# include <sys/vfs.h>
22949         Do this only in .c files that are part of a module I maintain.
22950         * lib/linkat.c: Filter through cppi.
22951         * lib/nanosleep.c: Likewise.
22952         * lib/openat.c: Likewise.
22953         * lib/openat-die.c: Likewise.
22954         * lib/dup3.c: Likewise.
22955         * lib/fchownat.c: Likewise.
22956         * lib/flock.c: Likewise.
22957         * lib/fsync.c: Likewise.
22958         * lib/fts.c: Likewise.
22959         * lib/getpass.c: Likewise.
22960         * lib/gettimeofday.c: Likewise.
22961         * lib/userspec.c: Likewise.
22962         * Makefile (sc_cpp_indent_check): New rule, to check this.
22963
22964 2011-02-22  Bruno Haible  <bruno@clisp.org>
22965
22966         New module 'wctomb'.
22967         * lib/stdlib.in.h (wctomb): New declaration.
22968         * lib/wctomb.c: New file.
22969         * lib/wctomb-impl.h: New file.
22970         * m4/wctomb.m4: New file.
22971         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
22972         REPLACE_WCTOMB.
22973         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
22974         REPLACE_WCTOMB.
22975         * modules/wctomb: New file.
22976         * tests/test-stdlib-c++.cc: Test signature of wctomb.
22977         * doc/posix-functions/wctomb.texi: Mention the new module.
22978         * modules/wctob (Depends-on): Add wctomb.
22979
22980 2011-02-22  Bruno Haible  <bruno@clisp.org>
22981
22982         New module 'mbtowc'.
22983         * lib/stdlib.in.h (mbtowc): New declaration.
22984         * lib/mbtowc.c: New file.
22985         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
22986         * m4/mbtowc.m4: New file.
22987         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
22988         REPLACE_MBTOWC.
22989         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
22990         REPLACE_MBTOWC.
22991         * modules/mbtowc: New file.
22992         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
22993         * doc/posix-functions/mbtowc.texi: Mention the new module.
22994         * modules/btowc (Depends-on): Add mbtowc.
22995
22996 2011-02-22  Bruno Haible  <bruno@clisp.org>
22997
22998         wcrtomb: Add more tests for native Windows platforms.
22999         * tests/test-wcrtomb-w32-1.sh: New file.
23000         * tests/test-wcrtomb-w32-2.sh: New file.
23001         * tests/test-wcrtomb-w32-3.sh: New file.
23002         * tests/test-wcrtomb-w32-4.sh: New file.
23003         * tests/test-wcrtomb-w32-5.sh: New file.
23004         * tests/test-wcrtomb-w32.c: New file.
23005         * modules/wcrtomb-tests (Files): Add them.
23006         (Makefile.am): Arrange to run these tests.
23007         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
23008         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
23009
23010 2011-02-20  Bruno Haible  <bruno@clisp.org>
23011
23012         wcrtomb: Enhance test.
23013         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
23014
23015 2011-02-20  Bruno Haible  <bruno@clisp.org>
23016
23017         mbrtowc: Tiny optimization.
23018         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
23019
23020 2011-02-20  Jim Meyering  <meyering@redhat.com>
23021
23022         test-exclude.c: remove unmatched #endif
23023         * tests/test-exclude.c: Remove stray #endif, left over from
23024         the change of a week ago.
23025
23026 2011-02-19  Jim Meyering  <meyering@redhat.com>
23027
23028         git-version-gen: skip "-dirty" check when appropriate
23029         * build-aux/git-version-gen: Don't run any git commands when the
23030         version string comes from .tarball-version.  Prior to this, we
23031         would run git update-index --refresh even from a just-unpacked
23032         tarball directory, and that could affect a .git/ directory in a
23033         parent of the build directory.  Reported by Mike Frysinger.
23034
23035 2011-02-19  Bruno Haible  <bruno@clisp.org>
23036
23037         unictype/property-byname: Reduce the size of the 'data' segment.
23038         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
23039
23040 2011-02-19  Bruno Haible  <bruno@clisp.org>
23041
23042         unictype/scripts: Reduce the size of the 'data' segment.
23043         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
23044         '%pic'.
23045         * lib/unictype/scripts_byname.gperf: Regenerated.
23046
23047 2011-02-19  Bruno Haible  <bruno@clisp.org>
23048
23049         stdint: Update documentation.
23050         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
23051
23052 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
23053
23054         stdint: omit redundant check for wchar.h
23055         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
23056         always tests whether wchar.h exists, so remove the now-redundant test.
23057
23058 2011-02-18  Bruno Haible  <bruno@clisp.org>
23059
23060         stdint: Cut dependency to module 'wchar'.
23061         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
23062         include the necessary prerequisites.
23063         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
23064         * modules/stdint (Depends-on): Remove wchar.
23065         (Makefile.am): Substitute HAVE_WCHAR_H.
23066         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
23067
23068 2011-02-18  Eric Blake  <eblake@redhat.com>
23069
23070         longlong: skip, rather than fail, on cross-compilation
23071         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
23072         when cross-compiling; regression from 2011-02-16.
23073
23074 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
23075
23076         * NEWS: Mention 2011-02-08 change to stdlib.
23077
23078 2011-02-17  Bruno Haible  <bruno@clisp.org>
23079
23080         getloadavg: Add comments about platforms.
23081         * m4/getloadavg.m4: Add comment.
23082         * lib/getloadavg.c: Likewise.
23083
23084 2011-02-17  Bruno Haible  <bruno@clisp.org>
23085
23086         getloadavg: Fix link error on Solaris 2.6.
23087         * modules/getloadavg (Link): New section.
23088         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
23089         linking test-getloadavg.
23090         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
23091         getloadavg.
23092
23093 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
23094
23095         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
23096         It was 'int', but this doesn't match the IRIX 6.5 manual.
23097         Suggested by Bruno Haible in
23098         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
23099
23100 2011-02-17  Bruno Haible  <bruno@clisp.org>
23101
23102         havelib: Fix comments.
23103         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
23104         change.
23105
23106 2011-02-17  Bruno Haible  <bruno@clisp.org>
23107
23108         havelib: Update config.rpath.
23109         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
23110
23111 2011-02-17  Bruno Haible  <bruno@clisp.org>
23112
23113         getloadavg test: Add some plausibility checks.
23114         * tests/test-getloadavg.c (check_avg): Print a warning when the value
23115         is improbable.
23116
23117 2011-02-16  Eric Blake  <eblake@redhat.com>
23118
23119         maintainer-makefile: make syntax-check a no-op from tarballs
23120         * top/maint.mk (no-vc-detected): New rule.
23121         (local-checks-available): Use it to avoid hanging if someone tries
23122         'make syntax-check' from a tarball.  Also append to any non-syntax
23123         checks already defined in cfg.mk.
23124
23125 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
23126
23127         longlong: tune, particularly for common case of c99
23128
23129         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
23130         or running anything if c99, or if unsigned long long int does not
23131         work.  In either case, we know the answer without further tests.
23132         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
23133         it at most once, and use its results for both long long int and
23134         unsigned long long int.  This is more likely to be efficient in
23135         the common case where the program wants to check for both long
23136         long int and unsigned long long int.
23137         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
23138         since the answer is already known.
23139
23140 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
23141
23142         getloadavg: set errno
23143         * lib/getloadavg.c: Set errno when returning -1.  If no other
23144         error number looks appropriate, set it to ENOSYS if the getloadavg
23145         looks like it can't possibly ever work, ENOTSUP otherwise.
23146         Suggested by Bruno Haible in
23147         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
23148
23149         getloadavg: trim unused parts and speed up 'configure'
23150         * NEWS: Document this.
23151         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
23152         always compiled if getloadavg is absent.
23153         Move test code to ...
23154         * tests/test-getloadavg.c: New file, containing previous
23155         contents of test from lib/getloadavg.c.  It also contains
23156         suggestions by Bruno Haible in
23157         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
23158         * modules/getloadavg-tests: New file.
23159         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
23160         Do tests in the same order as they're needed for getloadavg.c.
23161         Omit setgid-related tests that generate symbols KMEM_GROUP,
23162         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
23163         Do only the tests that are needed to see whether the system has
23164         getloadavg, moving the other tests into ...
23165         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
23166         NLIST_NAME_UNION; nobody should be using it.  Do not define
23167         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
23168         relevant, as the user of this module shouldn't care how getloadavg
23169         is implemented.
23170
23171         getloadavg: omit unused var
23172         * lib/getloadavg.c (getloadavg): Omit unused local variable.
23173
23174 2011-02-15  Jim Meyering  <meyering@redhat.com>
23175
23176         doc: update users.txt
23177         * users.txt: Update iwhd's URL.
23178
23179 2011-02-13  Bruno Haible  <bruno@clisp.org>
23180
23181         Consistent macro naming for macros that use GCC __attribute__.
23182         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
23183         _ATTRIBUTE_NONNULL_.
23184         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
23185         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
23186         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
23187         ATTRIBUTE_DEPRECATED.
23188         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
23189         ATTRIBUTE_NORETURN.
23190         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
23191         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
23192         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
23193         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
23194         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
23195         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
23196         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
23197         ATTRIBUTE_SENTINEL.
23198         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
23199         ATTRIBUTE_RETURN_CHECK.
23200         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
23201         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
23202         ATTRIBUTE_NORETURN.
23203         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
23204         Reported by Paul Eggert.
23205
23206 2011-02-13  Bruno Haible  <bruno@clisp.org>
23207
23208         Don't interfere with a program's definition of __attribute__.
23209         * lib/argp.h (__attribute__): Remove definition.
23210         (_GL_ATTRIBUTE_FORMAT): New macro.
23211         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
23212         * lib/argp-fmtstream.h (__attribute__): Remove definition.
23213         (_GL_ATTRIBUTE_FORMAT): New macro.
23214         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
23215         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
23216         GCC 3 or newer.
23217         * lib/error.h (__attribute__): Remove definition.
23218         (_GL_ATTRIBUTE_FORMAT): New macro.
23219         (error, error_at_line): Use it.
23220         * lib/hash.h (__attribute__): Remove definition.
23221         (ATTRIBUTE_WUR): Update definition. Define always.
23222         * lib/openat.h (__attribute__): Remove definition.
23223         (ATTRIBUTE_NORETURN): Update definition. Define always.
23224         * lib/sigpipe-die.h (__attribute__): Remove definition.
23225         (ATTRIBUTE_NORETURN): Update definition. Define always.
23226         * lib/vasnprintf.h (__attribute__): Remove definition.
23227         (_GL_ATTRIBUTE_FORMAT): New macro.
23228         (asnprintf, vasnprintf): Use it.
23229         * lib/xalloc.h (__attribute__): Remove definition.
23230         (ATTRIBUTE_NORETURN): Update definition. Define always.
23231         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
23232         * lib/xmemdup0.h (__attribute__): Remove definition.
23233         (ATTRIBUTE_NORETURN): Update definition. Define always.
23234         * lib/xprintf.h (__attribute__): Remove definition.
23235         (_GL_ATTRIBUTE_FORMAT): New macro.
23236         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
23237         * lib/xstrtol.h (__attribute__): Remove definition.
23238         (ATTRIBUTE_NORETURN): Update definition. Define always.
23239         * lib/xvasprintf.h (__attribute__): Remove definition.
23240         (_GL_ATTRIBUTE_FORMAT): New macro.
23241         (xasprintf, xvasprintf): Use it.
23242         * tests/test-argmatch.c (__attribute__): Remove definition.
23243         (ATTRIBUTE_NORETURN): Update definition. Define always.
23244         * tests/test-exclude.c (__attribute__): Remove definition.
23245         (ATTRIBUTE_NORETURN): Update definition. Define always.
23246         Reported by Paul Eggert.
23247
23248 2011-02-13  Bruno Haible  <bruno@clisp.org>
23249
23250         mbrtowc: Add more tests for native Windows platforms.
23251         * tests/test-mbrtowc-w32-1.sh: New file.
23252         * tests/test-mbrtowc-w32-2.sh: New file.
23253         * tests/test-mbrtowc-w32-3.sh: New file.
23254         * tests/test-mbrtowc-w32-4.sh: New file.
23255         * tests/test-mbrtowc-w32-5.sh: New file.
23256         * tests/test-mbrtowc-w32.c: New file.
23257         * modules/mbrtowc-tests (Files): Add them.
23258         (Makefile.am): Arrange to run these tests.
23259         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
23260         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
23261
23262 2011-02-13  Bruno Haible  <bruno@clisp.org>
23263
23264         mbrtowc: Work around native Windows bug.
23265         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
23266         guess when no suitable locale for testing was found.
23267         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
23268
23269 2011-02-13  Bruno Haible  <bruno@clisp.org>
23270
23271         mbsinit: Work around mingw bug.
23272         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
23273         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
23274         Windows.
23275         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
23276
23277 2011-02-13  Bruno Haible  <bruno@clisp.org>
23278
23279         mbsinit: Don't crash for a NULL argument.
23280         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
23281         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
23282
23283 2011-02-13  Bruno Haible  <bruno@clisp.org>
23284
23285         Don't interfere with a program's definition of __attribute__.
23286         * lib/stdio.in.h (__attribute__): Remove definition.
23287         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
23288         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
23289         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
23290         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
23291         * lib/string.in.h (__attribute__): Remove definition.
23292         Reported by Paul Eggert.
23293
23294 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
23295
23296         stdlib: don't get in the way of non-GCC __attribute__
23297         See thread starting at
23298         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
23299         Revert previous stdlib change, installing the following instead:
23300         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
23301         to get in the way of a non-GCC compiler that supports __attribute__.
23302         (_GL_ATTRIBUTE_RETURN): New macro.
23303         (_Exit): Use it instead of __attribute__.
23304
23305 2011-02-12  Bruno Haible  <bruno@clisp.org>
23306
23307         quotearg test: Avoid test failure on mingw.
23308         * tests/test-quotearg.sh: Convert the locale identifier from native
23309         Windows syntax to Unix syntax.
23310
23311 2011-02-12  Bruno Haible  <bruno@clisp.org>
23312
23313         setlocale: Prefer gnulib's override over libintl's override.
23314         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
23315         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
23316         GNULIB_defined_setlocale is set.
23317
23318 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
23319
23320         stdlib: support non-GCC __attribute__
23321
23322         Fix a serious and tricky problem encountered when attempting to
23323         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
23324         5.5, but it crashed due to memory corruption on Solaris 10 with
23325         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
23326         bits that are otherwise zero.  This tagging is optional inside
23327         Emacs but is preferred and is used when __attribute__ ((__aligned
23328         (8))) works, as it does with both recent-enough GCC and with Sun C
23329         5.11.  However, Sun C 5.11 is not GCC and does not #define
23330         __GNUC__ and __GNUC_MINOR__.
23331
23332         When I added the getloadavg module to Emacs, it brought in
23333         stdlib.in.h, which contained this fragment:
23334
23335            #ifndef __attribute__
23336            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
23337            #  define __attribute__(Spec)   /* empty */
23338            # endif
23339            #endif
23340
23341         When files that include <stdlib.h> were compiled with Sun C 5.11,
23342         the above code disabled __attribute__ ((__aligned (8))), which
23343         caused variables to not be properly aligned, which eventually led
23344         to the pointer corruption mentioned above.  (This was a bit hard
23345         to diagnose, unfortunately.)
23346
23347         Several "#define __attribute__(X) /* empty */" code snippets need
23348         to be eradicated from Gnulib to work with non-GCC compilers that
23349         support __attribute__.  The Autoconf way to do this is to test for
23350         each kind of attribute that we want support for, and selectively
23351         enable that in source code.
23352
23353         Fix this problem just for stdlib.h, by adding a test for the
23354         __noreturn__ attribute, and change stdlib.in.h to use that test
23355         when needed.  This technique can be easily generalized to the
23356         other *.in.h files and attributes, and a similar technique can be
23357         used for *.h and *.c files.  This patch is enough to solve the
23358         problem for Emacs + getloadavg, and I thought I'd publish it for
23359         feedback before undertaking further, similar fixes in other
23360         modules.
23361
23362         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
23363         because it's not needed for stdlib.h.  It merely substitutes the
23364         value directly into stdlib.h.  We may well need to #define it, or
23365         similar symbols, for other modules, but it's nice to also have an
23366         option to not #define it for applications like Emacs that do not
23367         need it.
23368
23369         * lib/stdlib.in.h (__attribute__): Do not #define.
23370         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
23371         be defined only if the _Exit module is also used.
23372         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
23373         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
23374         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
23375         platforms.
23376         * modules/_Exit (Files): Add m4/attribute.m4.
23377         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
23378         * m4/attribute.m4: New file.
23379
23380 2011-02-12  Bruno Haible  <bruno@clisp.org>
23381
23382         wcsrtombs: Work around bug on native Windows.
23383         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
23384         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
23385         instead of len.
23386         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
23387
23388 2011-02-12  Bruno Haible  <bruno@clisp.org>
23389
23390         mbsrtowcs: Work around bug on native Windows.
23391         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
23392         against mingw bug.
23393         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
23394
23395 2011-02-12  Bruno Haible  <bruno@clisp.org>
23396
23397         Avoid setlocale bugs in tests.
23398         * modules/btowc (Dependencies): Add setlocale.
23399         * modules/c-strcase (Dependencies): Likewise.
23400         * modules/mbmemcasecmp (Dependencies): Likewise.
23401         * modules/mbmemcasecoll (Dependencies): Likewise.
23402         * modules/mbrtowc (Dependencies): Likewise.
23403         * modules/mbscasecmp (Dependencies): Likewise.
23404         * modules/mbscasestr (Dependencies): Likewise.
23405         * modules/mbschr (Dependencies): Likewise.
23406         * modules/mbscspn (Dependencies): Likewise.
23407         * modules/mbsinit (Dependencies): Likewise.
23408         * modules/mbsncasecmp (Dependencies): Likewise.
23409         * modules/mbsnrtowcs (Dependencies): Likewise.
23410         * modules/mbspbrk (Dependencies): Likewise.
23411         * modules/mbspcasecmp (Dependencies): Likewise.
23412         * modules/mbsrchr (Dependencies): Likewise.
23413         * modules/mbsrtowcs (Dependencies): Likewise.
23414         * modules/mbsspn (Dependencies): Likewise.
23415         * modules/mbsstr (Dependencies): Likewise.
23416         * modules/nl_langinfo (Dependencies): Likewise.
23417         * modules/quotearg (Dependencies): Likewise.
23418         * modules/unicase/locale-language (Dependencies): Likewise.
23419         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
23420         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
23421         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
23422         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
23423         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
23424         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
23425         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
23426         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
23427         * modules/vasnprintf-posix (Dependencies): Likewise.
23428         * modules/wcrtomb (Dependencies): Likewise.
23429         * modules/wcsnrtombs (Dependencies): Likewise.
23430         * modules/wcsrtombs (Dependencies): Likewise.
23431
23432 2011-02-12  Bruno Haible  <bruno@clisp.org>
23433
23434         setlocale: Workaround native Windows bug.
23435         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
23436         succeeds but sets LC_CTYPE to "C", report a failure.
23437         * tests/test-setlocale2.sh: New file.
23438         * tests/test-setlocale2.c: New file.
23439         * modules/setlocale-tests (Files): Add the new files.
23440         (Makefile.am): Enable test-setlocale2.sh test.
23441         * doc/posix-functions/setlocale.texi: Mention workaround.
23442
23443 2011-02-11  Bruno Haible  <bruno@clisp.org>
23444
23445         Tests for module 'setlocale'.
23446         * modules/setlocale-tests: New file.
23447         * tests/test-setlocale1.sh: New file.
23448         * tests/test-setlocale1.c: New file.
23449
23450         New module 'setlocale'.
23451         * lib/locale.in.h (setlocale): New declaration.
23452         * lib/setlocale.c: New file, based on
23453         gettext/gettext-runtime/intl/setlocale.c.
23454         * m4/setlocale.m4: New file.
23455         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
23456         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
23457         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
23458         REPLACE_SETLOCALE.
23459         * modules/setlocale: New file.
23460         * tests/test-locale-c++.cc: Test the declaration of setlocale.
23461         * doc/posix-functions/setlocale.texi: Mention the new module.
23462
23463 2011-02-11  Bruno Haible  <bruno@clisp.org>
23464
23465         Prepare for locale dependent tests on mingw.
23466         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
23467         because it has the wrong locale encoding.
23468         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
23469         French_France.1252 instead of "fr".
23470         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
23471         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
23472         because it has the wrong locale encoding.
23473         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
23474         native Windows, try Turkish_Turkey.65001.
23475         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
23476         Chinese_China.54936.
23477
23478         Prepare for locale dependent tests on mingw.
23479         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
23480         differently.
23481         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
23482         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
23483         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
23484         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
23485
23486 2011-02-11  Eric Blake  <eblake@redhat.com>
23487
23488         strptime: avoid compiler warnings
23489         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
23490         compiler warnings about dead code.
23491         Reported by Daniel P. Berrange.
23492
23493 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
23494
23495         doc: update users.txt
23496         * users.txt: Add rcs.
23497
23498 2011-02-10  John W. Eaton  <jwe@gnu.org>
23499
23500         doc: update users.txt
23501         * users.txt: Add octave.
23502
23503 2011-02-10  Jim Meyering  <meyering@redhat.com>
23504
23505         doc: update users.txt
23506         * users.txt: Add iwhd.
23507
23508 2011-02-09  Bruno Haible  <bruno@clisp.org>
23509
23510         gnulib-tool: Make copyright notice adjustment more robust.
23511         * gnulib-tool (func_import): In sed_transform_main_lib_file,
23512         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
23513         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
23514         License".
23515         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
23516
23517 2011-02-06  Bruno Haible  <bruno@clisp.org>
23518
23519         New module 'towctrans'.
23520         * modules/towctrans: New file.
23521         * lib/wctype.in.h (towctrans): New declaration.
23522         * lib/towctrans.c: New file.
23523         * lib/towctrans-impl.h: New file.
23524         * m4/towctrans.m4: New file.
23525         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
23526         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
23527         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
23528         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
23529         * doc/posix-functions/towctrans.texi: Mention the new module.
23530
23531 2011-02-06  Bruno Haible  <bruno@clisp.org>
23532
23533         New module 'wctrans'.
23534         * modules/wctrans: New file.
23535         * lib/wctype.in.h (wctrans): New declaration.
23536         * lib/wctrans.c: New file.
23537         * lib/wctrans-impl.h: New file.
23538         * m4/wctrans.m4: New file.
23539         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
23540         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
23541         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
23542         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
23543         * doc/posix-functions/wctrans.texi: Mention the new module.
23544
23545 2011-02-06  Bruno Haible  <bruno@clisp.org>
23546
23547         New module 'iswctype'.
23548         * modules/iswctype: New file.
23549         * lib/wctype.in.h (iswctype): New declaration.
23550         * lib/iswctype.c: New file.
23551         * lib/iswctype-impl.h: New file.
23552         * m4/iswctype.m4: New file.
23553         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
23554         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
23555         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
23556         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
23557         * doc/posix-functions/iswctype.texi: Mention the new module and the
23558         HP-UX 11.00 problem.
23559
23560 2011-02-06  Bruno Haible  <bruno@clisp.org>
23561
23562         New module 'wctype'.
23563         * modules/wctype: Change to represent the wctype() substitute.
23564         * lib/wctype.in.h (wctype): New declaration.
23565         * lib/wctype.c: New file.
23566         * lib/wctype-impl.h: New file.
23567         * m4/wctype.m4: New file.
23568         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
23569         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
23570         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
23571         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
23572         * doc/posix-functions/wctype.texi: Mention the new module and the
23573         HP-UX 11.00 problem.
23574
23575 2011-02-06  Bruno Haible  <bruno@clisp.org>
23576
23577         wctype-h: Ensure wctype_t and wctrans_t are defined.
23578         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
23579         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
23580         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
23581         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
23582         HAVE_WCTRANS_T.
23583         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
23584
23585 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
23586
23587         flock: fix license typo
23588
23589         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
23590         omitted.
23591
23592 2011-02-08  Bruno Haible  <bruno@clisp.org>
23593
23594         Split large sed scripts, for HP-UX sed.
23595         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
23596         to avoid HP-UX limit of 99 commands, in the near future.
23597         * modules/stdlib (Makefile.am): Likewise.
23598         * modules/unistd (Makefile.am): Likewise.
23599         * modules/wchar (Makefile.am): Likewise.
23600         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23601         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
23602         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
23603
23604 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
23605             Bruno Haible  <bruno@clisp.org>
23606
23607         stdlib: improve random_r modularization
23608         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
23609         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
23610         you also need the random_r module to get this material right.
23611         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
23612         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
23613         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
23614
23615 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
23616
23617         stdlib: don't depend on stdint
23618         * lib/stdlib.in.h: Don't include <stdint.h> merely because
23619         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
23620         be independent of whether stdint.h is needed.
23621         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
23622         here, instead of ...
23623         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
23624         struct random_data should be using the random_r module, not just
23625         the stdlib module (which wouldn't make sense: what package needs
23626         just struct random_data without also needing random_r?).
23627         * modules/stdlib (Depends-on): Remove stdint.
23628
23629         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
23630         See the thread rooted at
23631         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
23632         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
23633         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
23634         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
23635         __VMS)); previously it was always included (via fcntl--.h).
23636         (getloadavg): Do not use c_strtod.  Instead, approximate it by
23637         hand; this is good enough for load averages.  Also, do not use
23638         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
23639         flags directly if available and don't bother otherwise.  (Packages
23640         that need the extra reliability should use the modules that define
23641         these flags on older platforms that lack them.)
23642         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
23643         fcntl-safer.
23644
23645 2011-02-08  Jim Meyering  <meyering@redhat.com>
23646
23647         di-set.h, ino-map.h: add multiple-inclusion guard
23648         Technically, the guard is required only for ino-map.h, due to its
23649         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
23650         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
23651         * lib/ino-map.h: Likewise.
23652
23653 2011-02-06  Bruno Haible  <bruno@clisp.org>
23654
23655         iswblank: Ensure declaration on glibc systems.
23656         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
23657         * modules/iswblank (Dependencies): Add 'extensions'.
23658         * doc/posix-functions/iswblank.texi: Document the glibc problem.
23659
23660 2011-02-06  Bruno Haible  <bruno@clisp.org>
23661
23662         New module 'iswblank'.
23663         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
23664         * modules/iswblank: New file.
23665         * modules/wctype-h (Files): Remove lib/iswblank.c.
23666         (Makefile.am): Substitute GNULIB_ISWBLANK.
23667         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
23668         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
23669         (gl_WCTYPE_H_DEFAULTS): New macro.
23670         (gl_WCTYPE_H): Require it. Remove iswblank related code.
23671         * modules/iswblank-tests: New file.
23672         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
23673         * tests/test-wctype-h.c (main): Remove iswblank tests.
23674         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
23675         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
23676         of 'wctype-h'.
23677         * NEWS: Mention the change.
23678         * modules/mbchar (Depends-on): Add iswblank.
23679
23680 2011-02-08  Bruno Haible  <bruno@clisp.org>
23681
23682         di-set tests: Refactor.
23683         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
23684         unnecessary includes.
23685         (ASSERT): Remove macro.
23686         (main): Make C90 compliant by avoiding variable declaration after
23687         statement.
23688         * modules/di-set-tests (Files): Add tests/macros.h.
23689
23690 2011-02-08  Bruno Haible  <bruno@clisp.org>
23691
23692         ino-map tests: Refactor.
23693         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
23694         unnecessary includes.
23695         (ASSERT): Remove macro.
23696         (main): Make C90 compliant by avoiding variable declaration after
23697         statement.
23698         * modules/ino-map-tests (Files): Add tests/macros.h.
23699
23700 2011-02-08  Jim Meyering  <meyering@redhat.com>
23701
23702         di-set: add "const" to a cast
23703         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
23704         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
23705
23706 2011-02-06  Bruno Haible  <bruno@clisp.org>
23707
23708         Rename module 'wctype' to 'wctype-h'.
23709         * modules/wctype-h: Renamed from modules/wctype.
23710         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
23711         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
23712         (Files, Depends-on, Makefile.am): Update.
23713         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
23714         (Files, Makefile.am): Update.
23715         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
23716         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
23717         * doc/posix-headers/wctype.texi: Update.
23718         * doc/posix-functions/iswalnum.texi: Update.
23719         * doc/posix-functions/iswalpha.texi: Update.
23720         * doc/posix-functions/iswblank.texi: Update.
23721         * doc/posix-functions/iswcntrl.texi: Update.
23722         * doc/posix-functions/iswdigit.texi: Update.
23723         * doc/posix-functions/iswgraph.texi: Update.
23724         * doc/posix-functions/iswlower.texi: Update.
23725         * doc/posix-functions/iswprint.texi: Update.
23726         * doc/posix-functions/iswpunct.texi: Update.
23727         * doc/posix-functions/iswspace.texi: Update.
23728         * doc/posix-functions/iswupper.texi: Update.
23729         * doc/posix-functions/iswxdigit.texi: Update.
23730         * doc/posix-functions/towlower.texi: Update.
23731         * doc/posix-functions/towupper.texi: Update.
23732         * NEWS: Mention the change.
23733         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
23734         * modules/mbchar (Dependencies): Likewise.
23735         * modules/mbswidth (Dependencies): Likewise.
23736         * modules/quotearg (Dependencies): Likewise.
23737         * modules/regex (Dependencies): Likewise.
23738         * modules/wcscasecmp (Dependencies): Likewise.
23739         * modules/wcsncasecmp (Dependencies): Likewise.
23740         * modules/wcwidth (Dependencies): Likewise.
23741
23742 2011-02-06  Bruno Haible  <bruno@clisp.org>
23743
23744         New module 'wcswidth'.
23745         * modules/wcswidth: New file.
23746         * lib/wchar.in.h (wcswidth): New declaration.
23747         * lib/wcswidth.c: New file.
23748         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
23749         * m4/wcswidth.m4: New file.
23750         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
23751         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
23752         REPLACE_WCSWIDTH.
23753         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
23754         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
23755         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
23756         * doc/posix-functions/wcswidth.texi: Mention the new module.
23757
23758 2011-02-06  Bruno Haible  <bruno@clisp.org>
23759
23760         New module 'wcstok'.
23761         * modules/wcstok: New file.
23762         * lib/wchar.in.h (wcstok): New declaration.
23763         * lib/wcstok.c: New file.
23764         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
23765         * m4/wcstok.m4: New file.
23766         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
23767         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
23768         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
23769         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
23770         * doc/posix-functions/wcstok.texi: Mention the new module.
23771
23772 2011-02-06  Bruno Haible  <bruno@clisp.org>
23773
23774         New module 'wcsstr'.
23775         * modules/wcsstr: New file.
23776         * lib/wchar.in.h (wcsstr): New declaration.
23777         * lib/wcsstr.c: New file.
23778         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
23779         * m4/wcsstr.m4: New file.
23780         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
23781         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
23782         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
23783         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
23784         * doc/posix-functions/wcsstr.texi: Mention the new module.
23785
23786 2011-02-06  Bruno Haible  <bruno@clisp.org>
23787
23788         New module 'wcspbrk'.
23789         * modules/wcspbrk: New file.
23790         * lib/wchar.in.h (wcspbrk): New declaration.
23791         * lib/wcspbrk.c: New file.
23792         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
23793         * m4/wcspbrk.m4: New file.
23794         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
23795         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
23796         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
23797         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
23798         * doc/posix-functions/wcspbrk.texi: Mention the new module.
23799
23800 2011-02-06  Bruno Haible  <bruno@clisp.org>
23801
23802         New module 'wcsspn'.
23803         * modules/wcsspn: New file.
23804         * lib/wchar.in.h (wcsspn): New declaration.
23805         * lib/wcsspn.c: New file.
23806         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
23807         * m4/wcsspn.m4: New file.
23808         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
23809         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
23810         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
23811         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
23812         * doc/posix-functions/wcsspn.texi: Mention the new module.
23813
23814 2011-02-06  Bruno Haible  <bruno@clisp.org>
23815
23816         New module 'wcscspn'.
23817         * modules/wcscspn: New file.
23818         * lib/wchar.in.h (wcscspn): New declaration.
23819         * lib/wcscspn.c: New file.
23820         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
23821         * m4/wcscspn.m4: New file.
23822         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
23823         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
23824         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
23825         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
23826         * doc/posix-functions/wcscspn.texi: Mention the new module.
23827
23828 2011-02-06  Bruno Haible  <bruno@clisp.org>
23829
23830         New module 'wcsrchr'.
23831         * modules/wcsrchr: New file.
23832         * lib/wchar.in.h (wcsrchr): New declaration.
23833         * lib/wcsrchr.c: New file.
23834         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
23835         * m4/wcsrchr.m4: New file.
23836         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
23837         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
23838         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
23839         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
23840         * doc/posix-functions/wcsrchr.texi: Mention the new module.
23841
23842 2011-02-06  Bruno Haible  <bruno@clisp.org>
23843
23844         New module 'wcschr'.
23845         * modules/wcschr: New file.
23846         * lib/wchar.in.h (wcschr): New declaration.
23847         * lib/wcschr.c: New file.
23848         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
23849         * m4/wcschr.m4: New file.
23850         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
23851         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
23852         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
23853         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
23854         * doc/posix-functions/wcschr.texi: Mention the new module.
23855
23856 2011-02-06  Bruno Haible  <bruno@clisp.org>
23857
23858         New module 'wcsdup'.
23859         * modules/wcsdup: New file.
23860         * lib/wchar.in.h (wcsdup): New declaration.
23861         * lib/wcsdup.c: New file.
23862         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
23863         * m4/wcsdup.m4: New file.
23864         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
23865         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
23866         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
23867         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
23868         * doc/posix-functions/wcsdup.texi: Mention the new module.
23869
23870 2011-02-06  Bruno Haible  <bruno@clisp.org>
23871
23872         New module 'wcsxfrm'.
23873         * modules/wcsxfrm: New file.
23874         * lib/wchar.in.h (wcsxfrm): New declaration.
23875         * lib/wcsxfrm.c: New file.
23876         * lib/wcsxfrm-impl.h: New file.
23877         * m4/wcsxfrm.m4: New file.
23878         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
23879         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
23880         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
23881         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
23882         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
23883
23884 2011-02-06  Bruno Haible  <bruno@clisp.org>
23885
23886         New module 'wcscoll'.
23887         * modules/wcscoll: New file.
23888         * lib/wchar.in.h (wcscoll): New declaration.
23889         * lib/wcscoll.c: New file.
23890         * lib/wcscoll-impl.h: New file.
23891         * m4/wcscoll.m4: New file.
23892         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
23893         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
23894         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
23895         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
23896         * doc/posix-functions/wcscoll.texi: Mention the new module.
23897
23898 2011-02-06  Bruno Haible  <bruno@clisp.org>
23899
23900         New module 'wcsncasecmp'.
23901         * modules/wcsncasecmp: New file.
23902         * lib/wchar.in.h (wcsncasecmp): New declaration.
23903         * lib/wcsncasecmp.c: New file.
23904         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
23905         * m4/wcsncasecmp.m4: New file.
23906         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
23907         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
23908         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
23909         HAVE_WCSNCASECMP.
23910         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
23911         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
23912
23913 2011-02-06  Bruno Haible  <bruno@clisp.org>
23914
23915         New module 'wcscasecmp'.
23916         * modules/wcscasecmp: New file.
23917         * lib/wchar.in.h (wcscasecmp): New declaration.
23918         * lib/wcscasecmp.c: New file.
23919         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
23920         * m4/wcscasecmp.m4: New file.
23921         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
23922         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
23923         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
23924         HAVE_WCSCASECMP.
23925         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
23926         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
23927
23928 2011-02-05  Bruno Haible  <bruno@clisp.org>
23929
23930         New module 'wcsncmp'.
23931         * modules/wcsncmp: New file.
23932         * lib/wchar.in.h (wcsncmp): New declaration.
23933         * lib/wcsncmp.c: New file.
23934         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
23935         * m4/wcsncmp.m4: New file.
23936         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
23937         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
23938         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
23939         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
23940         * doc/posix-functions/wcsncmp.texi: Mention the new module.
23941
23942 2011-02-05  Bruno Haible  <bruno@clisp.org>
23943
23944         New module 'wcscmp'.
23945         * modules/wcscmp: New file.
23946         * lib/wchar.in.h (wcscmp): New declaration.
23947         * lib/wcscmp.c: New file.
23948         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
23949         * m4/wcscmp.m4: New file.
23950         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
23951         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
23952         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
23953         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
23954         * doc/posix-functions/wcscmp.texi: Mention the new module.
23955
23956 2011-02-05  Bruno Haible  <bruno@clisp.org>
23957
23958         New module 'wcsncat'.
23959         * modules/wcsncat: New file.
23960         * lib/wchar.in.h (wcsncat): New declaration.
23961         * lib/wcsncat.c: New file.
23962         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
23963         * m4/wcsncat.m4: New file.
23964         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
23965         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
23966         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
23967         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
23968         * doc/posix-functions/wcsncat.texi: Mention the new module.
23969
23970 2011-02-05  Bruno Haible  <bruno@clisp.org>
23971
23972         New module 'wcscat'.
23973         * modules/wcscat: New file.
23974         * lib/wchar.in.h (wcscat): New declaration.
23975         * lib/wcscat.c: New file.
23976         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
23977         * m4/wcscat.m4: New file.
23978         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
23979         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
23980         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
23981         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
23982         * doc/posix-functions/wcscat.texi: Mention the new module.
23983
23984 2011-02-05  Bruno Haible  <bruno@clisp.org>
23985
23986         New module 'wcpncpy'.
23987         * modules/wcpncpy: New file.
23988         * lib/wchar.in.h (wcpncpy): New declaration.
23989         * lib/wcpncpy.c: New file.
23990         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
23991         * m4/wcpncpy.m4: New file.
23992         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
23993         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
23994         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
23995         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
23996         * doc/posix-functions/wcpncpy.texi: Mention the new module.
23997
23998 2011-02-05  Bruno Haible  <bruno@clisp.org>
23999
24000         New module 'wcsncpy'.
24001         * modules/wcsncpy: New file.
24002         * lib/wchar.in.h (wcsncpy): New declaration.
24003         * lib/wcsncpy.c: New file.
24004         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
24005         * m4/wcsncpy.m4: New file.
24006         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
24007         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
24008         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
24009         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
24010         * doc/posix-functions/wcsncpy.texi: Mention the new module.
24011
24012 2011-02-05  Bruno Haible  <bruno@clisp.org>
24013
24014         New module 'wcpcpy'.
24015         * modules/wcpcpy: New file.
24016         * lib/wchar.in.h (wcpcpy): New declaration.
24017         * lib/wcpcpy.c: New file.
24018         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
24019         * m4/wcpcpy.m4: New file.
24020         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
24021         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
24022         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
24023         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
24024         * doc/posix-functions/wcpcpy.texi: Mention the new module.
24025
24026 2011-02-05  Bruno Haible  <bruno@clisp.org>
24027
24028         New module 'wcscpy'.
24029         * modules/wcscpy: New file.
24030         * lib/wchar.in.h (wcscpy): New declaration.
24031         * lib/wcscpy.c: New file.
24032         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
24033         * m4/wcscpy.m4: New file.
24034         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
24035         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
24036         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
24037         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
24038         * doc/posix-functions/wcscpy.texi: Mention the new module.
24039
24040 2011-02-05  Bruno Haible  <bruno@clisp.org>
24041
24042         New module 'wcsnlen'.
24043         * modules/wcsnlen: New file.
24044         * lib/wchar.in.h (wcsnlen): New declaration.
24045         * lib/wcsnlen.c: New file.
24046         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
24047         * m4/wcsnlen.m4: New file.
24048         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
24049         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
24050         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
24051         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
24052         * doc/posix-functions/wcsnlen.texi: Mention the new module.
24053
24054 2011-02-05  Bruno Haible  <bruno@clisp.org>
24055
24056         New module 'wcslen'.
24057         * modules/wcslen: New file.
24058         * lib/wchar.in.h (wcslen): New declaration.
24059         * lib/wcslen.c: New file.
24060         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
24061         * m4/wcslen.m4: New file.
24062         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
24063         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
24064         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
24065         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
24066         * doc/posix-functions/wcslen.texi: Mention the new module.
24067
24068 2011-02-05  Bruno Haible  <bruno@clisp.org>
24069
24070         New module 'wmemset'.
24071         * modules/wmemset: New file.
24072         * lib/wchar.in.h (wmemset): New declaration.
24073         * lib/wmemset.c: New file.
24074         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
24075         * m4/wmemset.m4: New file.
24076         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
24077         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
24078         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
24079         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
24080         * doc/posix-functions/wmemset.texi: Mention the new module.
24081
24082 2011-02-05  Bruno Haible  <bruno@clisp.org>
24083
24084         New module 'wmemmove'.
24085         * modules/wmemmove: New file.
24086         * lib/wchar.in.h (wmemmove): New declaration.
24087         * lib/wmemmove.c: New file.
24088         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
24089         * m4/wmemmove.m4: New file.
24090         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
24091         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
24092         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
24093         HAVE_WMEMMOVE.
24094         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
24095         * doc/posix-functions/wmemmove.texi: Mention the new module.
24096
24097 2011-02-05  Bruno Haible  <bruno@clisp.org>
24098
24099         New module 'wmemcpy'.
24100         * modules/wmemcpy: New file.
24101         * lib/wchar.in.h (wmemcpy): New declaration.
24102         * lib/wmemcpy.c: New file.
24103         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
24104         * m4/wmemcpy.m4: New file.
24105         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
24106         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
24107         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
24108         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
24109         * doc/posix-functions/wmemcpy.texi: Mention the new module.
24110
24111 2011-02-05  Bruno Haible  <bruno@clisp.org>
24112
24113         New module 'wmemcmp'.
24114         * modules/wmemcmp: New file.
24115         * lib/wchar.in.h (wmemcmp): New declaration.
24116         * lib/wmemcmp.c: New file.
24117         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
24118         * m4/wmemcmp.m4: New file.
24119         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
24120         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
24121         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
24122         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
24123         * doc/posix-functions/wmemcmp.texi: Mention the new module.
24124
24125 2011-02-07  Jim Meyering  <meyering@redhat.com>
24126
24127         di-set, ino-map: new modules, from coreutils
24128         * lib/di-set.c: New file.
24129         * lib/di-set.h: Likewise.
24130         * lib/ino-map.c: Likewise.
24131         * lib/ino-map.h: Likewise.
24132         * modules/di-set: Likewise.
24133         * modules/di-set-tests: Likewise.
24134         * modules/ino-map: Likewise.
24135         * modules/ino-map-tests: Likewise.
24136         * tests/test-di-set.c: Likewise.
24137         * tests/test-ino-map.c: Likewise.
24138
24139 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
24140
24141         getloadavg: merge minor changes from Emacs
24142
24143         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
24144         (getloadavg): Use memset, not bzero.
24145
24146         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
24147         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
24148         clash (bug#86).
24149
24150 2010-11-14  Bruno Haible  <bruno@clisp.org>
24151
24152         Allow multiple gnulib generated replacements to coexist.
24153         * lib/getopt.in.h (struct option): Avoid identical redefinition.
24154         * lib/inttypes.in.h (imaxdiv_t): Likewise.
24155         * lib/langinfo.in.h (nl_item): Likewise.
24156         * lib/math.in.h (_NaN, NAN): Likewise.
24157         * lib/netdb.in.h (struct addrinfo): Likewise.
24158         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
24159         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
24160         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
24161         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
24162         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
24163         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
24164         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
24165         pthread_mutexattr_init, pthread_mutexattr_settype,
24166         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
24167         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
24168         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
24169         pthread_spin_trylock, pthread_spin_unlock): Likewise.
24170         * lib/sched.in.h (struct sched_param): Likewise.
24171         * lib/se-selinux.in.h (security_class_t, security_context_t,
24172         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
24173         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
24174         lsetfilecon, fsetfilecon, security_check_context,
24175         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
24176         Likewise.
24177         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
24178         Likewise.
24179         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
24180         _gl_function_taking_int_returning_void_t, union sigval,
24181         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
24182         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
24183         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
24184         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
24185         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
24186         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
24187         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
24188         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
24189         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
24190         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
24191         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
24192         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
24193         socklen_t, rpl_fd_isset): Likewise.
24194         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
24195         * lib/sys_time.in.h (struct timeval): Likewise.
24196         * lib/sys_times.in.h (struct tms): Likewise.
24197         * lib/sys_utsname.in.h (struct utsname):
24198         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
24199         * lib/unistd.in.h (getpagesize): Likewise.
24200         * lib/wchar.in.h (mbstate_t): Likewise.
24201         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
24202         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
24203         towlower, towupper): Likewise.
24204         Reported by Sam Steingold <sds@gnu.org>.
24205
24206 2011-02-05  Eric Blake  <eblake@redhat.com>
24207
24208         unsetenv: work around Haiku issues
24209         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
24210         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
24211
24212 2010-12-30  Bruce Korb  <bkorb@gnu.org>
24213
24214         libposix: avoid calling error() within libposix
24215         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
24216         is defined.
24217
24218 2011-02-05  Eric Blake  <eblake@redhat.com>
24219
24220         strerror_r-posix: port to cygwin
24221         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
24222         implementation.
24223         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
24224         * tests/test-strerror_r.c (main): Fix test.
24225         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
24226         issue.
24227
24228 2011-02-05  Bruno Haible  <bruno@clisp.org>
24229
24230         New module 'wmemchr'.
24231         * modules/wmemchr: New file.
24232         * lib/wchar.in.h (wmemchr): New declaration.
24233         * lib/wmemchr.c: New file.
24234         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
24235         * m4/wmemchr.m4: New file.
24236         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
24237         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
24238         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
24239         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
24240         * doc/posix-functions/wmemchr.texi: Mention the new module.
24241
24242 2011-02-04  Eric Blake  <eblake@redhat.com>
24243
24244         fdopendir: detect FreeBSD bug
24245         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
24246         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
24247
24248 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
24249
24250         stdbool: do not define HAVE_STDBOOL_H
24251         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
24252         AC_HEADER_STDBOOL.  All uses changed.  Do not define
24253         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
24254         imported from the latest Autoconf git.  It was motivated by Emacs,
24255         which uses gnulib but does not need HAVE_STDBOOL_H.
24256
24257 2011-02-04  Bruno Haible  <bruno@clisp.org>
24258
24259         wcsnrtombs: Prepare for new module wwcsnrtombs.
24260         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
24261         * lib/wcsnrtombs.c: Include it.
24262         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
24263
24264         wcsrtombs: Prepare for new module wwcsrtombs.
24265         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
24266         * lib/wcsrtombs.c: Include it.
24267         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
24268
24269         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
24270         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
24271         * lib/mbsnrtowcs.c: Include it.
24272         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
24273
24274         mbsrtowcs: Prepare for new module mbsrtowwcs.
24275         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
24276         * lib/mbsrtowcs.c: Include it.
24277         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
24278
24279 2011-02-04  Bruno Haible  <bruno@clisp.org>
24280
24281         vasnprintf: Reduce use of malloc for small format strings.
24282         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
24283         (arguments): Add room for the first 7 arguments.
24284         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
24285         (char_directives, u8_directives, u16_directives, u32_directives): Add
24286         room for the first 7 directives.
24287         * lib/printf-parse.c: Include <string.h>.
24288         (PRINTF_PARSE): Change memory handling code so that it uses the first
24289         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
24290         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
24291         Reported by Pádraig Brady <P@draigbrady.com>.
24292
24293 2011-01-31  Eric Blake  <eblake@redhat.com>
24294
24295         dup2: work around Haiku bug
24296         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
24297         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
24298         * doc/posix-functions/dup2.texi (dup2): Document the bug.
24299         * tests/test-dup2.c (main): Enhance test.
24300
24301 2011-01-31  Simon Josefsson  <simon@josefsson.org>
24302
24303         doc: off_t is not available in eglibc 2.11.2 stdio.h.
24304         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
24305         declared by eglibc 2.11.2.
24306         * lib/stdio.in.h: Likewise.
24307
24308 2011-01-31  Eric Blake  <eblake@redhat.com>
24309
24310         ignore-value: add missing test dependency
24311         * tests/test-ignore-value.c: Revert previous change; stdio.h
24312         provides off_t.
24313         * modules/ignore-value-tests (Depends-on): Add missing dependency.
24314
24315 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
24316
24317         mktime: clarify long_int width checking
24318         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
24319         the top level, to make it clearer that the assumption about
24320         long_int width is being checked.  See
24321         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
24322
24323 2011-01-30  Simon Josefsson  <simon@josefsson.org>
24324
24325         ignore-value: Fix self-test.
24326         * tests/test-ignore-value.c: Include sys/types.h for off_t.
24327
24328 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
24329
24330         TYPE_MAXIMUM: avoid theoretically undefined behavior
24331         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
24332         negative number, which the C Standard says has undefined behavior.
24333         In practice this is not a problem, but might as well do it by the book.
24334         Reported by Rich Felker and Eric Blake; see
24335         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
24336         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
24337         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
24338         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
24339         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
24340         * m4/stdint.m4 (gl_STDINT_H): Likewise.
24341         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
24342
24343         mktime: #undef mktime before #defining it
24344         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
24345
24346         mktime: systematically normalize tm_isdst comparisons
24347         * lib/mktime.c (isdst_differ): New function.
24348         (__mktime_internal): Use it systematically for all isdst comparisons.
24349         This completes the fix for libc BZ #6723, and removes the need for
24350         normalizing tm_isdst.  See
24351         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
24352         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
24353
24354         mktime: fix some integer overflow issues and sidestep the rest
24355
24356         This was prompted by a bug report by Benjamin Lindner for MinGW
24357         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
24358         His bug is due to signed integer overflow (0 - INT_MIN), and I
24359         I scanned through mktime.c looking for other integer overflow
24360         problems, fixing all the bugs I found.
24361
24362         Although the C Standard says the resulting code is still not safe
24363         in the presence of integer overflow, in practice it should be good
24364         enough for all real-world two's-complement implementations, except
24365         for debugging environments that deliberately trap on integer
24366         overflow (e.g., gcc -ftrapv).
24367
24368         * lib/mktime.c (WRAPV): New macro.
24369         (SHR): Also check that long_int and time_t shift right in the
24370         usual way, before using the fast-but-unportable method.
24371         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
24372         used.  The code already assumed two's complement, so there's
24373         no need to test for alternatives.  All uses removed.
24374         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
24375         the C standard.  Problem reported by Rich Felker in
24376         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
24377         (twos_complement_arithmetic): Also check long_int and time_t.
24378         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
24379         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
24380         (__mktime_internal): Avoid integer overflow with unary subtraction
24381         in two instances where -1 - X is an adequate replacement for -X,
24382         since the calculations are approximate.
24383
24384 2011-01-29  Eric Blake  <eblake@redhat.com>
24385
24386         mktime: avoid infinite loop
24387         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
24388         type; behavior is still undefined but portable to all known targets.
24389         Reported by Rich Felker.
24390
24391 2011-01-29  Simon Josefsson  <simon@josefsson.org>
24392
24393         rename, unlink, same-inode: Relicense.
24394         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
24395         * modules/unlink (License): Likewise.
24396         * modules/same-inode (License): Likewise.
24397
24398 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
24399
24400         mktime: avoid problems on NetBSD 5 / i386
24401         * lib/mktime.c (long_int): New type.  This works around a problem
24402         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
24403         but time_t is 64 bits, and where I expect the existing code is
24404         wrong in some cases.
24405         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
24406         (ydhms_diff): Bring back the compile-time check for wide-enough
24407         year and yday.
24408
24409         mktime: fix misspelling in comment
24410         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
24411         This merges all recent glibc changes of importance.
24412
24413 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24414
24415         move-if-change: cope with concurrent mv of identical file.
24416         * build-aux/move-if-change (CMPPROG): Accept environment
24417         variable as an override for `cmp'.
24418         (usage): Document CMPPROG.
24419         Adjust comparison to drop stdout.  Cope with failure of mv if
24420         the target file exists and is identical to the source, for
24421         parallel builds.
24422         Report from H.J. Lu against binutils in PR binutils/12283.
24423
24424 2011-01-28  Bruce Korb  <bkorb@gnu.org>
24425
24426         * users.txt: Mention sharutils.
24427
24428 2011-01-28  Simon Josefsson  <simon@josefsson.org>
24429
24430         * users.txt: Mention OATH Toolkit.
24431
24432 2011-01-27  Bruno Haible  <bruno@clisp.org>
24433
24434         Prepare for supporting FreeBSD 10.
24435         * build-aux/config.libpath: Remove handling of freebsd1*.
24436
24437 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
24438
24439         Prepare for supporting FreeBSD 10.
24440         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
24441         match FreeBSD 10.0.
24442
24443 2011-01-27  Bruno Haible  <bruno@clisp.org>
24444
24445         vma-iter, get-rusage-as: Add OpenBSD support.
24446         * modules/vma-iter (configure.ac): Test for mquery.
24447         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
24448         * lib/vma-iter.c: Include <sys/mman.h>.
24449         (vma_iterate): Add an implementation based on mquery().
24450         * lib/resource-ext.h (get_rusage_as): Update comments.
24451         * lib/get-rusage-as.c: Likewise.
24452         * lib/get-rusage-data.c: Likewise.
24453
24454 2011-01-26  Karl Berry  <karl@gnu.org>
24455
24456         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
24457         variables to make it easier to override the makeinfo program used.
24458
24459 2011-01-26  Eric Blake  <eblake@redhat.com>
24460
24461         fcntl: work around Haiku F_DUPFD bugs
24462         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
24463         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
24464         cloexec bit on duplication.
24465         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
24466
24467 2011-01-26  Bruno Haible  <bruno@clisp.org>
24468
24469         Enable memory leak tests on AIX.
24470         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
24471         * tests/test-fprintf-posix3.c (main): Likewise.
24472
24473 2011-01-26  Bruno Haible  <bruno@clisp.org>
24474
24475         Tests for module 'get-rusage-data'.
24476         * modules/get-rusage-data-tests: New file.
24477         * tests/test-get-rusage-data.c: New file.
24478
24479         New module 'get-rusage-data'.
24480         * lib/resource-ext.h (get_rusage_data): New declaration.
24481         * lib/get-rusage-data.c: New file.
24482         * modules/get-rusage-data: New file.
24483
24484 2011-01-25  Bruno Haible  <bruno@clisp.org>
24485
24486         get-rusage-as: Allow for easier testing.
24487         * lib/resource-ext.h (get_rusage_as): Add comment.
24488         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
24489         (main): New function for interactive testing.
24490
24491 2011-01-25  Bruno Haible  <bruno@clisp.org>
24492
24493         vma-iter: Treat Haiku like BeOS.
24494         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
24495         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
24496
24497 2011-01-25  Eric Blake  <eblake@redhat.com>
24498
24499         c-stack: fix regression on cygwin when libsigsegv is present
24500         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
24501
24502 2011-01-24  Bruno Haible  <bruno@clisp.org>
24503
24504         vma-iter: Avoid empty intervals.
24505         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
24506         on an empty interval.
24507
24508 2011-01-24  Jim Meyering  <meyering@redhat.com>
24509
24510         u64: remove unnecessary #include
24511         * lib/u64.h: Don't include <stddef.h>.  It was not used.
24512
24513 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
24514
24515         Allow the user to avoid the HAVE_RAW_DECL_* macros.
24516         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
24517
24518 2011-01-23  Bruno Haible  <bruno@clisp.org>
24519
24520         New module 'vma-iter'.
24521         * lib/vma-iter.h: New file.
24522         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
24523         * modules/vma-iter: New file.
24524         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
24525         for get_rusage_as_via_iterator.
24526         (vma_iterate_callback): New function.
24527         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
24528         * modules/get-rusage-as (Depends-on): Add vma-iter.
24529
24530 2011-01-23  Bruno Haible  <bruno@clisp.org>
24531
24532         uninorm: Tweak includes.
24533         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
24534         Reported by Jim Meyering.
24535
24536 2011-01-23  Bruno Haible  <bruno@clisp.org>
24537
24538         get-rusage-as: Improve on NetBSD.
24539         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
24540         /proc, like on FreeBSD.
24541
24542 2011-01-23  Jim Meyering  <meyering@redhat.com>
24543
24544         xreadlink.h: remove unnecessary #include
24545         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
24546
24547         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
24548         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
24549
24550 2011-01-23  Bruno Haible  <bruno@clisp.org>
24551
24552         get-rusage-as: Fix bug.
24553         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
24554         original limit when aborting the first loop.
24555
24556 2011-01-23  Bruno Haible  <bruno@clisp.org>
24557
24558         wctype: Ensure valid C syntax.
24559         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
24560         unconditionally, instead of gl_NEXT_HEADERS conditionally.
24561
24562 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
24563
24564         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
24565         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
24566         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
24567         as they are needed only for configure's test case.
24568         This removes two unnecessary symbols from config.h.
24569
24570         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
24571         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
24572         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
24573         AC_CHECK_HEADERS_ONCE on a header that we also invoke
24574         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
24575         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
24576         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
24577         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
24578         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
24579         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
24580         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
24581         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24582         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24583         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
24584         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
24585         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
24586         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
24587         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
24588
24589 2011-01-21  Eric Blake  <eblake@redhat.com>
24590
24591         maintainer-makefile: work with older git for submodule check
24592         * top/maint.mk (public-submodule-commit): Rewrite to avoid
24593         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
24594         Reported by Matthias Bolte.
24595
24596         bootstrap: minor portability fixes
24597         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
24598         (usage): Omit leading capital and trailing . on help phrases, per
24599         GNU Coding Standards.
24600         (check_versions, top level): Prefix messages with script name.
24601
24602 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
24603
24604         bootstrap: support --no-git option
24605         * build-aux/bootstrap: Add --no-git option, to be used when
24606         --gnulib-srcdir points to the exact desired checkout.
24607
24608 2011-01-21  Eric Blake  <eblake@redhat.com>
24609
24610         strerror_r-posix: work with glibc 2.13
24611         * lib/strerror_r.c (strerror_r): Fix return type.
24612
24613 2011-01-21  Pádraig Brady  <P@draigBrady.com>
24614             Bruno Haible  <bruno@clisp.org>
24615
24616         uN_strstr: New unit tests.
24617         * modules/unistr/u8-strstr-tests: New file.
24618         * modules/unistr/u16-strstr-tests: New file.
24619         * modules/unistr/u32-strstr-tests: New file.
24620         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
24621         * tests/unistr/test-u8-strstr.c: New file.
24622         * tests/unistr/test-u16-strstr.c: New file.
24623         * tests/unistr/test-u32-strstr.c: New file.
24624
24625 2011-01-21  Pádraig Brady  <P@draigBrady.com>
24626             Bruno Haible  <bruno@clisp.org>
24627
24628         Make uN_strstr functions O(n) worst-case.
24629         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
24630         16-bit and 32-bit unit cases, use the unibyte algorithm from
24631         lib/mbsstr.c.
24632         * lib/unistr/u8-strstr.c: Include <string.h>.
24633         (UNIT_IS_UINT8_T): New macro.
24634         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
24635         (U_STRLEN, U_STRNLEN): New macros.
24636         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
24637         (U_STRLEN, U_STRNLEN): New macros.
24638         * modules/unistr/u8-strstr (Depends-on): Add strstr.
24639         (configure.ac): Update required libunistring version.
24640         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
24641         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
24642         malloca.
24643         (configure.ac): Update required libunistring version.
24644         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
24645         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
24646         malloca.
24647         (configure.ac): Update required libunistring version.
24648
24649 2011-01-21  Pádraig Brady  <P@draigBrady.com>
24650             Bruno Haible  <bruno@clisp.org>
24651
24652         Prepare for faster uN_strstr functions.
24653         * lib/str-kmp.h: Support definable UNITs.
24654         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
24655         needle_len argument.
24656         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
24657         * lib/mbscasestr.c (mbscasestr): Likewise.
24658
24659 2011-01-21  Pádraig Brady <P@draigBrady.com>
24660
24661         malloca-tests: make faster by unsetting MALLOC_PERTURB_
24662         * tests/test-malloca.c (main): Unset the environment variable
24663         to greatly speed up the test.
24664         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
24665         * modules/malloca-tests: Depend on unsetenv.
24666
24667 2011-01-21  Pádraig Brady <P@draigBrady.com>
24668
24669         ignore-value: remove stdint dependency
24670         * lib/ignore-value.h: Remove <stdint.h>
24671         * modules/ignore-value: Remove stdint dependency.
24672
24673 2011-01-21  Jim Meyering  <meyering@redhat.com>
24674
24675         maint.mk: adjust variable name to be consistent with other gl_ vars
24676         * top/maint.mk (gl_public_submodule_commit): Rename the variable
24677         to be lower case.
24678
24679 2011-01-20  Jim Meyering  <meyering@redhat.com>
24680
24681         maint.mk: make "check" depend on public-submodule-commit by default
24682         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
24683
24684 2011-01-20  Bruno Haible  <bruno@clisp.org>
24685
24686         mbfile, mbiter: Complete change from 2008-12-21.
24687         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
24688         * m4/mbiter.m4 (gl_MBITER): Likewise.
24689
24690 2011-01-20  Jim Meyering  <meyering@redhat.com>
24691
24692         init.sh: insert space between each function name and "()"
24693         * tests/init.sh: Make it a little easier to see that a function's
24694         name is "warn_", and not "warn" when looking at the first part of
24695         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
24696
24697 2011-01-20  Jim Meyering  <meyering@redhat.com>
24698
24699         mountlist: clean up code formatting
24700         * lib/mountlist.c (read_file_system_list): Split a long line,
24701         correct bracing style, use NULL in place of "(struct statfs *)0",
24702         don't parenthesize return value, add spaces around "=" and after
24703         ";-in-for-stmt".
24704
24705 2011-01-14  Markus Duft <mduft@gentoo.org>
24706
24707         mountlist: add support for Interix
24708         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
24709         Apply statvfs to all entries of /dev/fs.
24710         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
24711         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
24712
24713 2011-01-20  Jim Meyering  <meyering@redhat.com>
24714
24715         maint.mk: improve the public-submodule-commit rule
24716         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
24717         to suppress printing of its commands... unless V=1.
24718         Add git submodule's --quiet option to suppress printing of e.g.,
24719         "Entering gnulib" output.
24720         "cd" into $(srcdir) before running git submodule.
24721
24722 2011-01-20  Bruno Haible  <bruno@clisp.org>
24723
24724         include_next: Fix bug introduced on 2011-01-18.
24725         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
24726         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
24727         ac_cv_header_... variable if the second argument is not 'check'.
24728         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
24729         gl_NEXT_HEADERS_INTERNAL.
24730
24731 2011-01-20  Bruno Haible  <bruno@clisp.org>
24732
24733         Allow the user to avoid the GNULIB_TEST_* macros.
24734         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
24735         Suggested by Paul Eggert.
24736
24737 2011-01-14  Jim Meyering  <meyering@redhat.com>
24738
24739         bootstrap: avoid failure when there is no .gitmodules file
24740         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
24741         has been assigned to, even when its value is the empty string.
24742         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
24743         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
24744         Reported by John W. Eaton <jwe@gnu.org>.
24745
24746 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
24747
24748         assume <ctype.h>, ..., <time.h> exist
24749         For years gnulib has been assuming the existence of the headers
24750         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
24751         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
24752         them, since they don't appear to be needed.
24753         * README (Portability guidelines): Document this.
24754         * lib/flock.c: Assume <fcntl.h> exists.
24755         * lib/regex_internal.h: Assume <locale.h> exists.
24756         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
24757         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
24758         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
24759         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
24760         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
24761         * m4/regex.m4 (gl_REGEX): Likewise.
24762         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
24763         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
24764         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
24765         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
24766         * tests/test-argp.c: Likewise.
24767         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
24768
24769         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
24770         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
24771         AA_APPLE_UNIVERSAL_BUILD.  See
24772         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
24773         * NEWS: Document this.
24774
24775 2011-01-19  Eric Blake  <eblake@redhat.com>
24776
24777         c-stack: assume stack overflow if SA_SIGINFO unsupported
24778         * lib/c-stack.c (SIGACTION_WORKS): Rename...
24779         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
24780         sigaction will work.
24781         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
24782         behavior match Linux.
24783         * tests/test-c-stack.c (main): Prefer NULL for pointers.
24784
24785         stdbool-tests: accommodate Haiku
24786         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
24787
24788         binary-io: fix O_TEXT on Haiku
24789         * modules/binary-io (Depends-on): Add fcntl-h.
24790         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
24791         than blindly undefining O_TEXT.
24792         Reported by Scott McCreary.
24793
24794 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
24795
24796         include_next: do not check for standard headers like stddef.h
24797
24798         I found this problem when modifying Emacs to use gnulib.
24799         I noticed that it added HAVE_STDDEF_H to config.h, even though
24800         gnulib always assumes <stddef.h> exists as per README and this
24801         symbol is unnecessary.
24802         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
24803         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
24804         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
24805         faster for headers like stddef.h that are known to exist.
24806         (gl_CHECK_NEXT_HEADERS): Use it.
24807         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
24808         rather than gl_CHECK_NEXT_HEADERS.
24809         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
24810         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
24811
24812 2011-01-18  Eric Blake  <eblake@redhat.com>
24813
24814         ansi-c++-opt: skip C++ dependency style if C++ is unused
24815         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
24816         tests when we know C++ compilation is not desired.
24817         Reported by Scott McCreary.
24818
24819 2011-01-18  Bruno Haible  <bruno@clisp.org>
24820
24821         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
24822         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
24823         (main): Perform test also when getrlimit and setrlimit don't exist or
24824         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
24825         limiting the address space size using setrlimit, compare the address
24826         space size before and after the the test.
24827         * tests/test-dprintf-posix2.c: Likewise.
24828         * tests/test-fprintf-posix3.sh: Update skip messages.
24829         * tests/test-dprintf-posix2.sh: Likewise.
24830         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
24831         * modules/dprintf-posix-tests (Depends-on): Likewise.
24832         Reported by Bruce Korb <bkorb@gnu.org> and
24833         Gary V. Vaughan <gary@gnu.org>.
24834
24835 2011-01-18  Bruno Haible  <bruno@clisp.org>
24836
24837         get-rusage-as: Improvement for Cygwin.
24838         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
24839         areas that are merely reserved.
24840
24841 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
24842
24843         strftime: remove dependencies on multibyte modules
24844
24845         strftime depended on mbrlen, mbsinit, and wchar, but these modules
24846         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
24847         only if __osf__ is defined, and I suspect OSF doesn't need these
24848         other modules.  If my guess is wrong, we'll need to come up with a
24849         variant of strftime that doesn't need the multibyte modules.
24850
24851         I discovered this problem when attempting modify Emacs to use the
24852         strftime module.  With the previous gnulib, this caused Emacs to
24853         need 31 new files, ranging from lib/config.charset to
24854         m4/wint_t.m4.  This was overkill and I expect would be offputting
24855         to the Emacs maintainers.  After this change, only 6 new files are
24856         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
24857         stdbool.m4, and tm_gmtoff.m4.
24858
24859         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
24860         Suggested by Bruno Haible in
24861         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
24862         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
24863         and do not check for wchar.h.
24864         * modules/strftime (Files): Remove m4/mbstate_t.m4.
24865         (Depends-on): Remove mbrlen, mbsinit, wchar.
24866
24867 2011-01-18  Bruno Haible  <bruno@clisp.org>
24868
24869         Tests for module 'get-rusage-as'.
24870         * modules/get-rusage-as-tests: New file.
24871         * tests/test-get-rusage-as.c: New file.
24872
24873         New module 'get-rusage-as'.
24874         * modules/get-rusage-as: New file.
24875         * lib/resource-ext.h: New file.
24876         * lib/get-rusage-as.c: New file.
24877
24878 2011-01-17  Eric Blake  <eblake@redhat.com>
24879
24880         sigaction: relax license from LGPLv3+ to LGPLv2+
24881         * modules/sigaction (License): Relax to LGPLv2+.
24882
24883 2011-01-14  Bruno Haible  <bruno@clisp.org>
24884
24885         filemode: Make function declarations usable in C++ mode.
24886         * lib/filemode.h: Enclose function declarations in extern "C" block.
24887         Reported by John W. Eaton <jwe@gnu.org>.
24888
24889 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
24890
24891         save-cwd: no longer include "xgetcwd.h"
24892         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
24893         This avoids a compilation failure in projects that use save-cwd
24894         without also using the xgetcwd module.
24895
24896 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
24897
24898         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
24899         This is so that a program like Emacs, which needs only dtoastr,
24900         does not have to bother with distributing and compiling ftoastr
24901         and ldtoastr.
24902         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
24903         * modules/dtoastr, modules/ldtoastr: New files.
24904         * modules/ftoastr: Now works just for 'float'.
24905         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
24906         (Makefile.am): Remove ftoastr.h (not needed and no effect),
24907         dtoastr.c, ldtoastr.c.
24908
24909 2011-01-11  Jim Meyering  <meyering@redhat.com>
24910
24911         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
24912         There is no need to work around the lack of the fchdir function,
24913         since gnulib can now provide a replacement when required.
24914         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
24915         * modules/save-cwd (Depends-on): Add fchdir.
24916
24917 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
24918
24919         openat, save-cwd: avoid xmalloc
24920
24921         This removes a direct (but undocumented) dependency of openat on
24922         xalloc, along with an indirect dependency via save-cwd.  It also
24923         removes a dependency of save-cwd on xgetcwd, and thereby
24924         indirectly on xalloc.  This change causes the openat substitute
24925         to fall back on save_cwd when memory is tight, and for save_cwd to
24926         fail instead of dying when memory is tight, but that's good enough.
24927         Problem and initial idea for fix reported by Bastien Roucaries in
24928         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
24929
24930         * lib/openat-proc.c: Include stdlib.h (for malloc), not
24931         xalloc.h (for xmalloc).
24932         (openat_proc_name): Use malloc, not xmalloc.
24933         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
24934         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
24935
24936         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
24937         This avoids heap allocation for file names whose lengths are in
24938         the range 512..1023, with the upper bound increasing to at most
24939         4031 depending on the platform's PATH_MAX.  (We do not want
24940         pathmax.h here as it might supply a non-constant PATH_MAX.)
24941         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
24942         Perhaps they should be moved to malloca.h?
24943         (OPENAT_BUFFER_SIZE): Use them.
24944
24945 2011-01-10  Bruno Haible  <bruno@clisp.org>
24946
24947         doc: Update users.txt.
24948         * users.txt: Add recutils.
24949
24950 2011-01-09  Karl Berry  <karl@gnu.org>
24951
24952         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
24953
24954         * doc/configmake.texi: New file.
24955         * doc/gnulib.texi: Include it.
24956         * modules/configmake: Move documentation from here.
24957
24958 2011-01-09  Bruno Haible  <bruno@clisp.org>
24959
24960         Update to Unicode 6.0.0.
24961         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
24962         (get_lbp): Update for Unicode 6.0.0.
24963         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
24964         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
24965         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
24966         U+11001, U+11038..U+11046. Remove U+06DE.
24967         (uc_width): Fix bounds of planes.
24968         * tests/uniwidth/test-uc_width2.sh: Same updates as in
24969         lib/uniwidth/width.c.
24970         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
24971         trailing whitespace removed.
24972         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
24973         without comments, but with the original copyright notice.
24974         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
24975         * lib/unicase/ignorable.h: Likewise.
24976         * lib/unicase/tocasefold.h: Likewise.
24977         * lib/unicase/tolower.h: Likewise.
24978         * lib/unicase/totitle.h: Likewise.
24979         * lib/unicase/toupper.h: Likewise.
24980         * lib/unictype/bidi_of.h: Likewise.
24981         * lib/unictype/blocks.h: Likewise.
24982         * lib/unictype/categ_C.h: Likewise.
24983         * lib/unictype/categ_Cn.h: Likewise.
24984         * lib/unictype/categ_L.h: Likewise.
24985         * lib/unictype/categ_Ll.h: Likewise.
24986         * lib/unictype/categ_Lm.h: Likewise.
24987         * lib/unictype/categ_Lo.h: Likewise.
24988         * lib/unictype/categ_Lu.h: Likewise.
24989         * lib/unictype/categ_M.h: Likewise.
24990         * lib/unictype/categ_Mc.h: Likewise.
24991         * lib/unictype/categ_Me.h: Likewise.
24992         * lib/unictype/categ_Mn.h: Likewise.
24993         * lib/unictype/categ_N.h: Likewise.
24994         * lib/unictype/categ_Nd.h: Likewise.
24995         * lib/unictype/categ_No.h: Likewise.
24996         * lib/unictype/categ_P.h: Likewise.
24997         * lib/unictype/categ_Po.h: Likewise.
24998         * lib/unictype/categ_S.h: Likewise.
24999         * lib/unictype/categ_Sc.h: Likewise.
25000         * lib/unictype/categ_Sk.h: Likewise.
25001         * lib/unictype/categ_Sm.h: Likewise.
25002         * lib/unictype/categ_So.h: Likewise.
25003         * lib/unictype/categ_of.h: Likewise.
25004         * lib/unictype/combining.h: Likewise.
25005         * lib/unictype/ctype_alnum.h: Likewise.
25006         * lib/unictype/ctype_alpha.h: Likewise.
25007         * lib/unictype/ctype_graph.h: Likewise.
25008         * lib/unictype/ctype_lower.h: Likewise.
25009         * lib/unictype/ctype_print.h: Likewise.
25010         * lib/unictype/ctype_punct.h: Likewise.
25011         * lib/unictype/ctype_upper.h: Likewise.
25012         * lib/unictype/decdigit.h: Likewise.
25013         * lib/unictype/digit.h: Likewise.
25014         * lib/unictype/numeric.h: Likewise.
25015         * lib/unictype/pr_alphabetic.h: Likewise.
25016         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
25017         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
25018         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
25019         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
25020         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
25021         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
25022         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
25023         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
25024         * lib/unictype/pr_case_ignorable.h: Likewise.
25025         * lib/unictype/pr_cased.h: Likewise.
25026         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
25027         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
25028         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
25029         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
25030         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
25031         * lib/unictype/pr_combining.h: Likewise.
25032         * lib/unictype/pr_composite.h: Likewise.
25033         * lib/unictype/pr_currency_symbol.h: Likewise.
25034         * lib/unictype/pr_decimal_digit.h: Likewise.
25035         * lib/unictype/pr_deprecated.h: Likewise.
25036         * lib/unictype/pr_format_control.h: Likewise.
25037         * lib/unictype/pr_grapheme_base.h: Likewise.
25038         * lib/unictype/pr_grapheme_extend.h: Likewise.
25039         * lib/unictype/pr_grapheme_link.h: Likewise.
25040         * lib/unictype/pr_id_continue.h: Likewise.
25041         * lib/unictype/pr_id_start.h: Likewise.
25042         * lib/unictype/pr_ideographic.h: Likewise.
25043         * lib/unictype/pr_lowercase.h: Likewise.
25044         * lib/unictype/pr_math.h: Likewise.
25045         * lib/unictype/pr_numeric.h: Likewise.
25046         * lib/unictype/pr_other_alphabetic.h: Likewise.
25047         * lib/unictype/pr_other_id_continue.h: Likewise.
25048         * lib/unictype/pr_other_math.h: Likewise.
25049         * lib/unictype/pr_punctuation.h: Likewise.
25050         * lib/unictype/pr_sentence_terminal.h: Likewise.
25051         * lib/unictype/pr_terminal_punctuation.h: Likewise.
25052         * lib/unictype/pr_unassigned_code_value.h: Likewise.
25053         * lib/unictype/pr_unified_ideograph.h: Likewise.
25054         * lib/unictype/pr_uppercase.h: Likewise.
25055         * lib/unictype/pr_xid_continue.h: Likewise.
25056         * lib/unictype/pr_xid_start.h: Likewise.
25057         * lib/unictype/scripts.h: Likewise.
25058         * lib/unictype/scripts_byname.gperf: Likewise.
25059         * lib/unictype/sy_java_ident.h: Likewise.
25060         * lib/unigbrk/gbrkprop.h: Likewise.
25061         * lib/unilbrk/lbrkprop1.h: Likewise.
25062         * lib/unilbrk/lbrkprop2.h: Likewise.
25063         * lib/uninorm/decomposition-table2.h: Likewise.
25064         * lib/uniwbrk/wbrkprop.h: Likewise.
25065         * tests/unicase/test-cased.c: Likewise.
25066         * tests/unicase/test-ignorable.c: Likewise.
25067         * tests/unicase/test-uc_tolower.c: Likewise.
25068         * tests/unicase/test-uc_totitle.c: Likewise.
25069         * tests/unicase/test-uc_toupper.c: Likewise.
25070         * tests/unictype/test-categ_C.c: Likewise.
25071         * tests/unictype/test-categ_Cn.c: Likewise.
25072         * tests/unictype/test-categ_L.c: Likewise.
25073         * tests/unictype/test-categ_Ll.c: Likewise.
25074         * tests/unictype/test-categ_Lm.c: Likewise.
25075         * tests/unictype/test-categ_Lo.c: Likewise.
25076         * tests/unictype/test-categ_Lu.c: Likewise.
25077         * tests/unictype/test-categ_M.c: Likewise.
25078         * tests/unictype/test-categ_Mc.c: Likewise.
25079         * tests/unictype/test-categ_Me.c: Likewise.
25080         * tests/unictype/test-categ_Mn.c: Likewise.
25081         * tests/unictype/test-categ_N.c: Likewise.
25082         * tests/unictype/test-categ_Nd.c: Likewise.
25083         * tests/unictype/test-categ_No.c: Likewise.
25084         * tests/unictype/test-categ_P.c: Likewise.
25085         * tests/unictype/test-categ_Po.c: Likewise.
25086         * tests/unictype/test-categ_S.c: Likewise.
25087         * tests/unictype/test-categ_Sc.c: Likewise.
25088         * tests/unictype/test-categ_Sk.c: Likewise.
25089         * tests/unictype/test-categ_Sm.c: Likewise.
25090         * tests/unictype/test-categ_So.c: Likewise.
25091         * tests/unictype/test-ctype_alnum.c: Likewise.
25092         * tests/unictype/test-ctype_alpha.c: Likewise.
25093         * tests/unictype/test-ctype_graph.c: Likewise.
25094         * tests/unictype/test-ctype_lower.c: Likewise.
25095         * tests/unictype/test-ctype_print.c: Likewise.
25096         * tests/unictype/test-ctype_punct.c: Likewise.
25097         * tests/unictype/test-ctype_upper.c: Likewise.
25098         * tests/unictype/test-decdigit.h: Likewise.
25099         * tests/unictype/test-digit.h: Likewise.
25100         * tests/unictype/test-numeric.h: Likewise.
25101         * tests/unictype/test-pr_alphabetic.c: Likewise.
25102         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
25103         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
25104         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
25105         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
25106         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
25107         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
25108         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
25109         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
25110         * tests/unictype/test-pr_case_ignorable.c: Likewise.
25111         * tests/unictype/test-pr_cased.c: Likewise.
25112         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
25113         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
25114         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
25115         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
25116         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
25117         * tests/unictype/test-pr_combining.c: Likewise.
25118         * tests/unictype/test-pr_composite.c: Likewise.
25119         * tests/unictype/test-pr_currency_symbol.c: Likewise.
25120         * tests/unictype/test-pr_decimal_digit.c: Likewise.
25121         * tests/unictype/test-pr_deprecated.c: Likewise.
25122         * tests/unictype/test-pr_format_control.c: Likewise.
25123         * tests/unictype/test-pr_grapheme_base.c: Likewise.
25124         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
25125         * tests/unictype/test-pr_grapheme_link.c: Likewise.
25126         * tests/unictype/test-pr_id_continue.c: Likewise.
25127         * tests/unictype/test-pr_id_start.c: Likewise.
25128         * tests/unictype/test-pr_ideographic.c: Likewise.
25129         * tests/unictype/test-pr_lowercase.c: Likewise.
25130         * tests/unictype/test-pr_math.c: Likewise.
25131         * tests/unictype/test-pr_numeric.c: Likewise.
25132         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
25133         * tests/unictype/test-pr_other_id_continue.c: Likewise.
25134         * tests/unictype/test-pr_other_math.c: Likewise.
25135         * tests/unictype/test-pr_punctuation.c: Likewise.
25136         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
25137         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
25138         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
25139         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
25140         * tests/unictype/test-pr_uppercase.c: Likewise.
25141         * tests/unictype/test-pr_xid_continue.c: Likewise.
25142         * tests/unictype/test-pr_xid_start.c: Likewise.
25143         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
25144         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
25145         changes.
25146         * lib/unictype/categ_Cc.h: Likewise.
25147         * lib/unictype/categ_Cf.h: Likewise.
25148         * lib/unictype/categ_Co.h: Likewise.
25149         * lib/unictype/categ_Cs.h: Likewise.
25150         * lib/unictype/categ_Lt.h: Likewise.
25151         * lib/unictype/categ_Nl.h: Likewise.
25152         * lib/unictype/categ_Pc.h: Likewise.
25153         * lib/unictype/categ_Pd.h: Likewise.
25154         * lib/unictype/categ_Pe.h: Likewise.
25155         * lib/unictype/categ_Pf.h: Likewise.
25156         * lib/unictype/categ_Pi.h: Likewise.
25157         * lib/unictype/categ_Ps.h: Likewise.
25158         * lib/unictype/categ_Z.h: Likewise.
25159         * lib/unictype/categ_Zl.h: Likewise.
25160         * lib/unictype/categ_Zp.h: Likewise.
25161         * lib/unictype/categ_Zs.h: Likewise.
25162         * lib/unictype/ctype_blank.h: Likewise.
25163         * lib/unictype/ctype_cntrl.h: Likewise.
25164         * lib/unictype/ctype_digit.h: Likewise.
25165         * lib/unictype/ctype_space.h: Likewise.
25166         * lib/unictype/ctype_xdigit.h: Likewise.
25167         * lib/unictype/mirror.h: Likewise.
25168         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
25169         * lib/unictype/pr_bidi_block_separator.h: Likewise.
25170         * lib/unictype/pr_bidi_common_separator.h: Likewise.
25171         * lib/unictype/pr_bidi_control.h: Likewise.
25172         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
25173         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
25174         * lib/unictype/pr_bidi_european_digit.h: Likewise.
25175         * lib/unictype/pr_bidi_pdf.h: Likewise.
25176         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
25177         * lib/unictype/pr_bidi_whitespace.h: Likewise.
25178         * lib/unictype/pr_dash.h: Likewise.
25179         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
25180         * lib/unictype/pr_diacritic.h: Likewise.
25181         * lib/unictype/pr_extender.h: Likewise.
25182         * lib/unictype/pr_hex_digit.h: Likewise.
25183         * lib/unictype/pr_hyphen.h: Likewise.
25184         * lib/unictype/pr_ids_binary_operator.h: Likewise.
25185         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
25186         * lib/unictype/pr_ignorable_control.h: Likewise.
25187         * lib/unictype/pr_iso_control.h: Likewise.
25188         * lib/unictype/pr_join_control.h: Likewise.
25189         * lib/unictype/pr_left_of_pair.h: Likewise.
25190         * lib/unictype/pr_line_separator.h: Likewise.
25191         * lib/unictype/pr_logical_order_exception.h: Likewise.
25192         * lib/unictype/pr_non_break.h: Likewise.
25193         * lib/unictype/pr_not_a_character.h: Likewise.
25194         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
25195         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
25196         * lib/unictype/pr_other_id_start.h: Likewise.
25197         * lib/unictype/pr_other_lowercase.h: Likewise.
25198         * lib/unictype/pr_other_uppercase.h: Likewise.
25199         * lib/unictype/pr_paired_punctuation.h: Likewise.
25200         * lib/unictype/pr_paragraph_separator.h: Likewise.
25201         * lib/unictype/pr_pattern_syntax.h: Likewise.
25202         * lib/unictype/pr_pattern_white_space.h: Likewise.
25203         * lib/unictype/pr_private_use.h: Likewise.
25204         * lib/unictype/pr_quotation_mark.h: Likewise.
25205         * lib/unictype/pr_radical.h: Likewise.
25206         * lib/unictype/pr_soft_dotted.h: Likewise.
25207         * lib/unictype/pr_space.h: Likewise.
25208         * lib/unictype/pr_titlecase.h: Likewise.
25209         * lib/unictype/pr_variation_selector.h: Likewise.
25210         * lib/unictype/pr_white_space.h: Likewise.
25211         * lib/unictype/pr_zero_width.h: Likewise.
25212         * lib/unictype/sy_c_ident.h: Likewise.
25213         * lib/unictype/sy_c_whitespace.h: Likewise.
25214         * lib/unictype/sy_java_whitespace.h: Likewise.
25215         * lib/uninorm/composition-table.gperf: Likewise.
25216         * lib/uninorm/decomposition-table1.h: Likewise.
25217         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
25218         LB8.
25219         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
25220         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
25221         * modules/unictype/*: Bump version number of expected libunistring
25222         version.
25223
25224 2011-01-09  Bruno Haible  <bruno@clisp.org>
25225
25226         Update to Unicode 5.2.0.
25227         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
25228         trailing whitespace removed.
25229
25230 2011-01-09  Bruno Haible  <bruno@clisp.org>
25231
25232         New Unicode character properties, from Unicode 5.2.0.
25233         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
25234         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
25235         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
25236         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
25237         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
25238         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
25239         uc_is_property_cased, uc_is_property_case_ignorable,
25240         uc_is_property_changes_when_lowercased,
25241         uc_is_property_changes_when_uppercased,
25242         uc_is_property_changes_when_titlecased,
25243         uc_is_property_changes_when_casefolded,
25244         uc_is_property_changes_when_casemapped): New declarations.
25245         * lib/unictype/pr_byname.gperf: Add the new properties.
25246         * modules/unictype/property-byname (Depends-on): Depend on the new
25247         properties modules.
25248         * modules/unictype/property-all (Depends-on): Likewise.
25249         * MODULES.html.sh (Unicode string functions): Add
25250         unictype/property-case-ignorable, unictype/property-cased,
25251         unictype/property-changes-when-casefolded,
25252         unictype/property-changes-when-casemapped,
25253         unictype/property-changes-when-lowercased,
25254         unictype/property-changes-when-titlecased,
25255         unictype/property-changes-when-uppercased.
25256
25257         New module 'unictype/property-changes-when-casemapped'.
25258         * modules/unictype/property-changes-when-casemapped: New file.
25259         * lib/unictype/pr_changes_when_casemapped.c: New file.
25260         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
25261         generated by gen-uni-tables.
25262         * modules/unictype/property-changes-when-casemapped-tests: New file.
25263         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
25264         automatically generated by gen-uni-tables.
25265
25266         New module 'unictype/property-changes-when-casefolded'.
25267         * modules/unictype/property-changes-when-casefolded: New file.
25268         * lib/unictype/pr_changes_when_casefolded.c: New file.
25269         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
25270         generated by gen-uni-tables.
25271         * modules/unictype/property-changes-when-casefolded-tests: New file.
25272         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
25273         automatically generated by gen-uni-tables.
25274
25275         New module 'unictype/property-changes-when-titlecased'.
25276         * modules/unictype/property-changes-when-titlecased: New file.
25277         * lib/unictype/pr_changes_when_titlecased.c: New file.
25278         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
25279         generated by gen-uni-tables.
25280         * modules/unictype/property-changes-when-titlecased-tests: New file.
25281         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
25282         automatically generated by gen-uni-tables.
25283
25284         New module 'unictype/property-changes-when-uppercased'.
25285         * modules/unictype/property-changes-when-uppercased: New file.
25286         * lib/unictype/pr_changes_when_uppercased.c: New file.
25287         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
25288         generated by gen-uni-tables.
25289         * modules/unictype/property-changes-when-uppercased-tests: New file.
25290         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
25291         automatically generated by gen-uni-tables.
25292
25293         New module 'unictype/property-changes-when-lowercased'.
25294         * modules/unictype/property-changes-when-lowercased: New file.
25295         * lib/unictype/pr_changes_when_lowercased.c: New file.
25296         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
25297         generated by gen-uni-tables.
25298         * modules/unictype/property-changes-when-lowercased-tests: New file.
25299         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
25300         automatically generated by gen-uni-tables.
25301
25302         New module 'unictype/property-case-ignorable'.
25303         * modules/unictype/property-case-ignorable: New file.
25304         * lib/unictype/pr_case_ignorable.c: New file.
25305         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
25306         by gen-uni-tables.
25307         * modules/unictype/property-case-ignorable-tests: New file.
25308         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
25309         generated by gen-uni-tables.
25310
25311         New module 'unictype/property-cased'.
25312         * modules/unictype/property-cased: New file.
25313         * lib/unictype/pr_cased.c: New file.
25314         * lib/unictype/pr_cased.h: New file, automatically generated by
25315         gen-uni-tables.
25316         * modules/unictype/property-cased-tests: New file.
25317         * tests/unictype/test-pr_cased.c: New file, automatically generated by
25318         gen-uni-tables.
25319
25320 2011-01-09  Bruno Haible  <bruno@clisp.org>
25321
25322         Update to Unicode 5.2.0.
25323         * lib/gen-uni-tables.c (output_predicate, output_category,
25324         output_combclass, output_bidi_category, output_decimal_digit_test,
25325         output_decimal_digit, output_digit_test, output_digit,
25326         output_numeric_test, output_numeric, output_mirror, output_scripts,
25327         output_scripts_byname, output_blocks, output_ident_category): Fix
25328         comment header.
25329         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
25330         get_wbp.
25331         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
25332         items.
25333         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
25334         Changes_When_Lowercased, Changes_When_Uppercased,
25335         Changes_When_Titlecased, Changes_When_Casefolded,
25336         Changes_When_Casemapped.
25337         (is_property_alphabetic, is_property_default_ignorable_code_point):
25338         Update for Unicode 5.2.0.
25339         (is_property_cased, is_property_case_ignorable,
25340         is_property_changes_when_lowercased,
25341         is_property_changes_when_uppercased,
25342         is_property_changes_when_titlecased,
25343         is_property_changes_when_casefolded,
25344         is_property_changes_when_casemapped): New functions.
25345         (output_properties): Output also the properties cased, case_ignorable,
25346         changes_when_lowercased, changes_when_uppercased,
25347         changes_when_titlecased, changes_when_casefolded,
25348         changes_when_casemapped.
25349         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
25350         Unicode TR#11 revision 17 -> 19.
25351         (LBP_CP): New enumeration value.
25352         (LBP_*): Adjust values accordingly.
25353         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
25354         TR#14 revision 22 -> 24.
25355         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
25356         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
25357         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
25358         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
25359         is_WBP_MIDLETTER.
25360         (output_composition_tables): Allow for 24 bits instead of 16 bits in
25361         the code1 and code2 of each composition rule.
25362         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
25363         * lib/unicase/ignorable.h: Likewise.
25364         * lib/unicase/tocasefold.h: Likewise.
25365         * lib/unicase/tolower.h: Likewise.
25366         * lib/unicase/totitle.h: Likewise.
25367         * lib/unicase/toupper.h: Likewise.
25368         * lib/unictype/bidi_of.h: Likewise.
25369         * lib/unictype/blocks.h: Likewise.
25370         * lib/unictype/categ_C.h: Likewise.
25371         * lib/unictype/categ_Cf.h: Likewise.
25372         * lib/unictype/categ_Cn.h: Likewise.
25373         * lib/unictype/categ_L.h: Likewise.
25374         * lib/unictype/categ_Ll.h: Likewise.
25375         * lib/unictype/categ_Lm.h: Likewise.
25376         * lib/unictype/categ_Lo.h: Likewise.
25377         * lib/unictype/categ_Lu.h: Likewise.
25378         * lib/unictype/categ_M.h: Likewise.
25379         * lib/unictype/categ_Mc.h: Likewise.
25380         * lib/unictype/categ_Mn.h: Likewise.
25381         * lib/unictype/categ_N.h: Likewise.
25382         * lib/unictype/categ_Nd.h: Likewise.
25383         * lib/unictype/categ_Nl.h: Likewise.
25384         * lib/unictype/categ_No.h: Likewise.
25385         * lib/unictype/categ_P.h: Likewise.
25386         * lib/unictype/categ_Pd.h: Likewise.
25387         * lib/unictype/categ_Po.h: Likewise.
25388         * lib/unictype/categ_S.h: Likewise.
25389         * lib/unictype/categ_Sc.h: Likewise.
25390         * lib/unictype/categ_So.h: Likewise.
25391         * lib/unictype/categ_of.h: Likewise.
25392         * lib/unictype/combining.h: Likewise.
25393         * lib/unictype/ctype_alnum.h: Likewise.
25394         * lib/unictype/ctype_alpha.h: Likewise.
25395         * lib/unictype/ctype_graph.h: Likewise.
25396         * lib/unictype/ctype_lower.h: Likewise.
25397         * lib/unictype/ctype_print.h: Likewise.
25398         * lib/unictype/ctype_punct.h: Likewise.
25399         * lib/unictype/ctype_upper.h: Likewise.
25400         * lib/unictype/decdigit.h: Likewise.
25401         * lib/unictype/digit.h: Likewise.
25402         * lib/unictype/numeric.h: Likewise.
25403         * lib/unictype/pr_alphabetic.h: Likewise.
25404         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
25405         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
25406         * lib/unictype/pr_bidi_european_digit.h: Likewise.
25407         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
25408         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
25409         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
25410         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
25411         * lib/unictype/pr_combining.h: Likewise.
25412         * lib/unictype/pr_composite.h: Likewise.
25413         * lib/unictype/pr_currency_symbol.h: Likewise.
25414         * lib/unictype/pr_dash.h: Likewise.
25415         * lib/unictype/pr_decimal_digit.h: Likewise.
25416         * lib/unictype/pr_deprecated.h: Likewise.
25417         * lib/unictype/pr_diacritic.h: Likewise.
25418         * lib/unictype/pr_extender.h: Likewise.
25419         * lib/unictype/pr_grapheme_base.h: Likewise.
25420         * lib/unictype/pr_grapheme_extend.h: Likewise.
25421         * lib/unictype/pr_grapheme_link.h: Likewise.
25422         * lib/unictype/pr_id_continue.h: Likewise.
25423         * lib/unictype/pr_id_start.h: Likewise.
25424         * lib/unictype/pr_ideographic.h: Likewise.
25425         * lib/unictype/pr_ignorable_control.h: Likewise.
25426         * lib/unictype/pr_logical_order_exception.h: Likewise.
25427         * lib/unictype/pr_lowercase.h: Likewise.
25428         * lib/unictype/pr_numeric.h: Likewise.
25429         * lib/unictype/pr_other_alphabetic.h: Likewise.
25430         * lib/unictype/pr_punctuation.h: Likewise.
25431         * lib/unictype/pr_sentence_terminal.h: Likewise.
25432         * lib/unictype/pr_terminal_punctuation.h: Likewise.
25433         * lib/unictype/pr_unassigned_code_value.h: Likewise.
25434         * lib/unictype/pr_unified_ideograph.h: Likewise.
25435         * lib/unictype/pr_uppercase.h: Likewise.
25436         * lib/unictype/pr_xid_continue.h: Likewise.
25437         * lib/unictype/pr_xid_start.h: Likewise.
25438         * lib/unictype/pr_zero_width.h: Likewise.
25439         * lib/unictype/scripts.h: Likewise.
25440         * lib/unictype/scripts_byname.gperf: Likewise.
25441         * lib/unictype/sy_java_ident.h: Likewise.
25442         * lib/unigbrk/gbrkprop.h: Likewise.
25443         * lib/unilbrk/lbrkprop1.h: Likewise.
25444         * lib/unilbrk/lbrkprop2.h: Likewise.
25445         * lib/unilbrk/lbrktables.h: Likewise.
25446         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
25447         LBP_CP. Implement rule LB30.
25448         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
25449         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
25450         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
25451         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
25452         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
25453         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
25454         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
25455         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
25456         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
25457         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
25458         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
25459         bits instead of 16 bits in the code1 and code2 of each composition
25460         rule.
25461         (uc_composition): Update for Unicode 5.2.0.
25462         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
25463         * lib/uninorm/decomposition-table2.h: Likewise.
25464         * lib/uniwbrk/wbrkprop.h: Likewise.
25465         * tests/unicase/test-cased.c: Likewise.
25466         * tests/unicase/test-ignorable.c: Likewise.
25467         * tests/unicase/test-uc_tolower.c: Likewise.
25468         * tests/unicase/test-uc_totitle.c: Likewise.
25469         * tests/unicase/test-uc_toupper.c: Likewise.
25470         * tests/unictype/test-categ_C.c: Likewise.
25471         * tests/unictype/test-categ_Cf.c: Likewise.
25472         * tests/unictype/test-categ_Cn.c: Likewise.
25473         * tests/unictype/test-categ_L.c: Likewise.
25474         * tests/unictype/test-categ_Ll.c: Likewise.
25475         * tests/unictype/test-categ_Lm.c: Likewise.
25476         * tests/unictype/test-categ_Lo.c: Likewise.
25477         * tests/unictype/test-categ_Lu.c: Likewise.
25478         * tests/unictype/test-categ_M.c: Likewise.
25479         * tests/unictype/test-categ_Mc.c: Likewise.
25480         * tests/unictype/test-categ_Mn.c: Likewise.
25481         * tests/unictype/test-categ_N.c: Likewise.
25482         * tests/unictype/test-categ_Nd.c: Likewise.
25483         * tests/unictype/test-categ_Nl.c: Likewise.
25484         * tests/unictype/test-categ_No.c: Likewise.
25485         * tests/unictype/test-categ_P.c: Likewise.
25486         * tests/unictype/test-categ_Pd.c: Likewise.
25487         * tests/unictype/test-categ_Po.c: Likewise.
25488         * tests/unictype/test-categ_S.c: Likewise.
25489         * tests/unictype/test-categ_Sc.c: Likewise.
25490         * tests/unictype/test-categ_So.c: Likewise.
25491         * tests/unictype/test-ctype_alnum.c: Likewise.
25492         * tests/unictype/test-ctype_alpha.c: Likewise.
25493         * tests/unictype/test-ctype_graph.c: Likewise.
25494         * tests/unictype/test-ctype_lower.c: Likewise.
25495         * tests/unictype/test-ctype_print.c: Likewise.
25496         * tests/unictype/test-ctype_punct.c: Likewise.
25497         * tests/unictype/test-ctype_upper.c: Likewise.
25498         * tests/unictype/test-decdigit.h: Likewise.
25499         * tests/unictype/test-digit.h: Likewise.
25500         * tests/unictype/test-numeric.h: Likewise.
25501         * tests/unictype/test-pr_alphabetic.c: Likewise.
25502         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
25503         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
25504         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
25505         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
25506         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
25507         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
25508         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
25509         * tests/unictype/test-pr_combining.c: Likewise.
25510         * tests/unictype/test-pr_composite.c: Likewise.
25511         * tests/unictype/test-pr_currency_symbol.c: Likewise.
25512         * tests/unictype/test-pr_dash.c: Likewise.
25513         * tests/unictype/test-pr_decimal_digit.c: Likewise.
25514         * tests/unictype/test-pr_deprecated.c: Likewise.
25515         * tests/unictype/test-pr_diacritic.c: Likewise.
25516         * tests/unictype/test-pr_extender.c: Likewise.
25517         * tests/unictype/test-pr_grapheme_base.c: Likewise.
25518         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
25519         * tests/unictype/test-pr_grapheme_link.c: Likewise.
25520         * tests/unictype/test-pr_id_continue.c: Likewise.
25521         * tests/unictype/test-pr_id_start.c: Likewise.
25522         * tests/unictype/test-pr_ideographic.c: Likewise.
25523         * tests/unictype/test-pr_ignorable_control.c: Likewise.
25524         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
25525         * tests/unictype/test-pr_lowercase.c: Likewise.
25526         * tests/unictype/test-pr_numeric.c: Likewise.
25527         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
25528         * tests/unictype/test-pr_punctuation.c: Likewise.
25529         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
25530         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
25531         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
25532         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
25533         * tests/unictype/test-pr_uppercase.c: Likewise.
25534         * tests/unictype/test-pr_xid_continue.c: Likewise.
25535         * tests/unictype/test-pr_xid_start.c: Likewise.
25536         * tests/unictype/test-pr_zero_width.c: Likewise.
25537         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
25538         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
25539         changed behaviour: line breaking is now disallowed between a letter
25540         or '=' and '('.
25541         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
25542         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
25543         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
25544         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
25545         * tests/uniwidth/test-uc_width2.sh: Same updates as in
25546         lib/uniwidth/width.c.
25547         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
25548         without comments, but with the original copyright notice.
25549         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
25550         changes.
25551         * lib/unictype/categ_Cc.h: Likewise.
25552         * lib/unictype/categ_Co.h: Likewise.
25553         * lib/unictype/categ_Cs.h: Likewise.
25554         * lib/unictype/categ_Lt.h: Likewise.
25555         * lib/unictype/categ_Me.h: Likewise.
25556         * lib/unictype/categ_Pc.h: Likewise.
25557         * lib/unictype/categ_Pe.h: Likewise.
25558         * lib/unictype/categ_Pf.h: Likewise.
25559         * lib/unictype/categ_Pi.h: Likewise.
25560         * lib/unictype/categ_Ps.h: Likewise.
25561         * lib/unictype/categ_Sk.h: Likewise.
25562         * lib/unictype/categ_Sm.h: Likewise.
25563         * lib/unictype/categ_Z.h: Likewise.
25564         * lib/unictype/categ_Zl.h: Likewise.
25565         * lib/unictype/categ_Zp.h: Likewise.
25566         * lib/unictype/categ_Zs.h: Likewise.
25567         * lib/unictype/ctype_blank.h: Likewise.
25568         * lib/unictype/ctype_cntrl.h: Likewise.
25569         * lib/unictype/ctype_digit.h: Likewise.
25570         * lib/unictype/ctype_space.h: Likewise.
25571         * lib/unictype/ctype_xdigit.h: Likewise.
25572         * lib/unictype/mirror.h: Likewise.
25573         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
25574         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
25575         * lib/unictype/pr_bidi_block_separator.h: Likewise.
25576         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
25577         * lib/unictype/pr_bidi_common_separator.h: Likewise.
25578         * lib/unictype/pr_bidi_control.h: Likewise.
25579         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
25580         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
25581         * lib/unictype/pr_bidi_pdf.h: Likewise.
25582         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
25583         * lib/unictype/pr_bidi_whitespace.h: Likewise.
25584         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
25585         * lib/unictype/pr_format_control.h: Likewise.
25586         * lib/unictype/pr_hex_digit.h: Likewise.
25587         * lib/unictype/pr_hyphen.h: Likewise.
25588         * lib/unictype/pr_ids_binary_operator.h: Likewise.
25589         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
25590         * lib/unictype/pr_iso_control.h: Likewise.
25591         * lib/unictype/pr_join_control.h: Likewise.
25592         * lib/unictype/pr_left_of_pair.h: Likewise.
25593         * lib/unictype/pr_line_separator.h: Likewise.
25594         * lib/unictype/pr_math.h: Likewise.
25595         * lib/unictype/pr_non_break.h: Likewise.
25596         * lib/unictype/pr_not_a_character.h: Likewise.
25597         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
25598         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
25599         * lib/unictype/pr_other_id_continue.h: Likewise.
25600         * lib/unictype/pr_other_id_start.h: Likewise.
25601         * lib/unictype/pr_other_lowercase.h: Likewise.
25602         * lib/unictype/pr_other_math.h: Likewise.
25603         * lib/unictype/pr_other_uppercase.h: Likewise.
25604         * lib/unictype/pr_paired_punctuation.h: Likewise.
25605         * lib/unictype/pr_paragraph_separator.h: Likewise.
25606         * lib/unictype/pr_pattern_syntax.h: Likewise.
25607         * lib/unictype/pr_pattern_white_space.h: Likewise.
25608         * lib/unictype/pr_private_use.h: Likewise.
25609         * lib/unictype/pr_quotation_mark.h: Likewise.
25610         * lib/unictype/pr_radical.h: Likewise.
25611         * lib/unictype/pr_soft_dotted.h: Likewise.
25612         * lib/unictype/pr_space.h: Likewise.
25613         * lib/unictype/pr_titlecase.h: Likewise.
25614         * lib/unictype/pr_variation_selector.h: Likewise.
25615         * lib/unictype/pr_white_space.h: Likewise.
25616         * lib/unictype/sy_c_ident.h: Likewise.
25617         * lib/unictype/sy_c_whitespace.h: Likewise.
25618         * lib/unictype/sy_java_whitespace.h: Likewise.
25619         * modules/uni*/*: Bump version number of expected libunistring version.
25620         Reported by Simon Josefsson.
25621
25622 2011-01-09  Karl Heuer  <kwzh@gnu.org>
25623
25624         useless-if-before-free: fix typo in --help and make the internal,
25625         automatic version date update process work once again.
25626         --help output contained a NUL character instead of the
25627         backslash-zero that was intended.  Also, the "must lie within
25628         the first 8 lines" line is on line 9, and hence not getting
25629         automatically updated.
25630         * build-aux/useless-if-before-free: Fix the former by adding a
25631         backslash, and the latter by condensing the three lines of what-it-does
25632         to a single line, leaving one line of slack for the future.
25633
25634 2011-01-09  Bruno Haible  <bruno@clisp.org>
25635
25636         uniwidth/width: Fix width of U+1D173..U+1D17A.
25637         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
25638         symbolic_width, output_width_property_test): New functions.
25639         (main): Invoke output_nonspacing_property, output_width_property_test.
25640         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
25641         U+1D173..U+1D17A.
25642         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
25643         1.
25644         * modules/uniwidth/*: Bump version number of expected libunistring
25645         version.
25646         * modules/unilbrk/*: Likewise.
25647
25648 2011-01-08  Bruno Haible  <bruno@clisp.org>
25649
25650         uninorm tests: Preserve copyright of Unicode data file.
25651         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
25652         Mention modifications.
25653
25654 2011-01-08  Bruno Haible  <bruno@clisp.org>
25655
25656         gen-uni-tables: Prepare for Unicode 5.2.0.
25657         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
25658         (debug_output_lbp, output_lbp): Update.
25659
25660 2011-01-08  Bruno Haible  <bruno@clisp.org>
25661
25662         unilbrk: Clarify gen-uni-tables.c code.
25663         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
25664         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
25665         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
25666
25667 2011-01-07  Bruno Haible  <bruno@clisp.org>
25668
25669         strtod: Restore errno when successfully parsing Infinity or NaN.
25670         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
25671         restore the original errno.
25672
25673 2011-01-07  Bruno Haible  <bruno@clisp.org>
25674
25675         remove test: Avoid failure on HP-UX 11.
25676         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
25677
25678 2011-01-07  Bruno Haible  <bruno@clisp.org>
25679
25680         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
25681         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
25682         error code.
25683
25684 2011-01-07  Pádraig Brady <P@draigBrady.com>
25685
25686         ignore-value: fixup comments, and add Eric Blake
25687         as an author since he rewrote the macros.
25688         * lib/ignore-value.h (ignore_value):  State that
25689         we now support aggregates.  Also specify exactly
25690         when the GCC warn_unused_result feature was added.
25691
25692 2011-01-06  Eric Blake  <eblake@redhat.com>
25693
25694         ignore-value: support aggregate types
25695         * lib/ignore-value.h (ignore_value): Provide separate gcc
25696         definition.
25697         * modules/ignore-value-tests: New test module.
25698         * tests/test-ignore-value.c: New test.
25699
25700         maint.mk: improve sc_prohibit_strcmp regex
25701         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
25702         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
25703         definition of STRNEQ.
25704
25705         signal: work around Haiku issue with SIGBUS
25706         * lib/siglist.h: Add comment.
25707         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
25708         strsignal's favoring of SIGSEGV.
25709         * tests/test-signal.c (main): Avoid test failure.
25710         * doc/posix-headers/signal.texi (signal.h): Document the issue.
25711         Reported by Scott McCreary.
25712
25713         maint.mk: add pre-release check to ensure submodule commits are public
25714         * top/maint.mk (public-submodule-commit): New rule.
25715         (submodule-checks): New variable.
25716         (alpha beta stable): Depend on the variable.
25717
25718 2011-01-05  Pádraig Brady <P@draigBrady.com>
25719         and Jim Meyering  <meyering@redhat.com>
25720
25721         ignore-value: make ignore_value more generic; deprecate ignore_ptr
25722         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
25723         (ATTRIBUTE_DEPRECATED): Define.
25724         (_ignore_case): New function.
25725         (ignore_value): New macro, to replace the old function.
25726         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
25727         * modules/ignore-value (Depends-on): Add stdint.
25728
25729 2011-01-04  Eric Blake  <eblake@redhat.com>
25730
25731         doc: regenerate INSTALL
25732         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
25733         @firstparagraphindent support, now that autoconf dropped it.
25734         (INSTALL_PRELUDE): Reinstate old macro.
25735         * doc/install.texi: Resync from autoconf.
25736         * doc/INSTALL: Reflect recent autoconf update.
25737         * doc/INSTALL.ISO: Likewise.
25738         * doc/INSTALL.UTF-8: Likewise.
25739         Reported by Karl Berry.
25740
25741 2011-01-04  Bruce Korb  <address@hidden>
25742
25743         git-version-gen: avoid a sub-shell
25744         * build-aux/git-version-gen: Redirect stderr in `...` via
25745         "exec 2>...", rather than via an added sub-shell.
25746
25747 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
25748
25749         git-version-gen: use (...) rather than sh -c '...'
25750         * build-aux/git-version-gen: Rather than hard-coding a shell's name
25751         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
25752
25753 2011-01-03  Jim Meyering  <meyering@redhat.com>
25754
25755         git-version-gen: convert leading TABs to spaces
25756         * build-aux/git-version-gen: Expand leading TABs.
25757
25758         git-version-gen: handle failed "git rev-list"
25759         * build-aux/git-version-gen: Rather than leaking a "fatal" error
25760         from git and proceeding as if it had succeeded but printed no SHA1
25761         checksums, suppress the diagnostic and handle the failure.
25762         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
25763
25764         git-version-gen: include command name in one more diagnostic
25765         * build-aux/git-version-gen: When the required .tarball-version file
25766         was missing or unreadable, you might see the diagnostic from "cat",
25767         but no trace of the name of the invoking script.  Now, you still see
25768         the diagnostic from cat, but also get one from "git-version-gen: ".
25769         Inspired by a patch from Bruce Korb.
25770
25771         update-copyright: adjust test to match changed code
25772         * tests/test-update-copyright.sh: Change test's expected output
25773         to match new actual output.
25774
25775 2011-01-02  Bruno Haible  <bruno@clisp.org>
25776
25777         getlogin_r: Avoid test failure on HP-UX 11.
25778         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
25779         ERANGE when the second argument is zero.
25780         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
25781         portability problem.
25782
25783 2011-01-02  Bruce Korb  <bkorb@gnu.org>
25784
25785         * build-aux/update-copyright: doc Simon's changes
25786
25787 2011-01-02  Simon Josefsson  <simon@josefsson.org>
25788
25789         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
25790         environment variable.
25791
25792 2011-01-02  Bruno Haible  <bruno@clisp.org>
25793
25794         unigbrk: Avoid gcc warnings.
25795         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
25796         unused variable.
25797         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
25798         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
25799         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
25800         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
25801         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
25802         Change type of first argument to 'const char *'.
25803         (main): Remove unused variable.
25804         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
25805         type of first argument to 'const char *'.
25806         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
25807         Likewise.
25808         (main): Change type of variable 's'.
25809         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
25810         to 'int'.
25811
25812 2011-01-02  Bruno Haible  <bruno@clisp.org>
25813
25814         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
25815         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
25816         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
25817         bug.
25818         * lib/pwrite.c: Undo 2010-12-31 patch.
25819         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
25820
25821 2011-01-02  Bruno Haible  <bruno@clisp.org>
25822
25823         pread: Fix test whether it works.
25824         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
25825
25826 2011-01-02  Bruno Haible  <bruno@clisp.org>
25827
25828         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
25829         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
25830         ends in "6". Don't require a specific month name. Try also the locale
25831         names found on HP-UX 11 and Solaris 7.
25832
25833 2011-01-02  Bruno Haible  <bruno@clisp.org>
25834
25835         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
25836         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
25837         C linkage.
25838         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
25839
25840 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
25841
25842         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
25843         for consistency, since the "cluster" term is not used elsewhere.
25844         * lib/unigbrk.in.h: Update name.
25845         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
25846         * lib/unigbrk/u16-grapheme-next.c: Update name.
25847         * lib/unigbrk/u16-grapheme-prev.c: Update name.
25848         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
25849         * lib/unigbrk/u32-grapheme-next.c: Update name.
25850         * lib/unigbrk/u32-grapheme-prev.c: Update name.
25851         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
25852         * lib/unigbrk/u8-grapheme-next.c: Update name.
25853         * lib/unigbrk/u8-grapheme-prev.c: Update name.
25854         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
25855         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
25856         Suggested by Bruno Haible.
25857
25858 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
25859
25860         Remove module 'u8-grapheme-len' as too redundant with
25861         'u8-grapheme-next'.
25862         * modules/unigbrk/u8-grapheme-len: Delete file.
25863         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
25864         * lib/unigbrk.in.h: Remove prototype for deleted function.
25865         * lib/unigbrk/u8-grapheme-len.c: Delete file.
25866         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
25867
25868         Remove module 'u16-grapheme-len' as too redundant with
25869         'u16-grapheme-next'.
25870         * modules/unigbrk/u16-grapheme-len: Delete file.
25871         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
25872         * lib/unigbrk.in.h: Remove prototype for deleted function.
25873         * lib/unigbrk/u16-grapheme-len.c: Delete file.
25874         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
25875
25876         Remove module 'u32-grapheme-len' as too redundant with
25877         'u32-grapheme-next'.
25878         * modules/unigbrk/u32-grapheme-len: Delete file.
25879         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
25880         * lib/unigbrk.in.h: Remove prototype for deleted function.
25881         * lib/unigbrk/u32-grapheme-len.c: Delete file.
25882         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
25883
25884         Suggested by Bruno Haible.
25885
25886 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
25887
25888         * unigbrk.in.h: Fix typo: "ben" => "been".
25889         Reported by Bruno Haible.
25890
25891 2011-01-01  Jim Meyering  <meyering@redhat.com>
25892
25893         maint: update almost all copyright ranges to include 2011
25894         Run the new "make update-copyright" rule.
25895
25896 2011-01-01  Jim Meyering  <meyering@redhat.com>
25897
25898         maint: update-copyright: exempt doc/INSTALL*
25899         * Makefile (update-copyright): Also exclude doc/INSTALL*,
25900         since they are generated.  Suggested by Bruno Haible.
25901
25902 2011-01-01  Jim Meyering  <meyering@redhat.com>
25903
25904         maint: refine the update-copyright rule
25905         * Makefile (update-copyright): Also exclude any file that includes
25906         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
25907         code that merely generates the comment.
25908
25909 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
25910
25911         New module 'u8-grapheme-len'.
25912         * modules/unigbrk/u8-grapheme-len: New file.
25913         * modules/unigbrk/u8-grapheme-len-tests: New file.
25914         * lib/unigbrk.in.h: Add prototype for new function.
25915         * lib/unigbrk/u8-grapheme-len.c: New file.
25916         * tests/unigbrk/test-u8-grapheme-len.c: New file.
25917
25918         New module 'u16-grapheme-len'.
25919         * modules/unigbrk/u16-grapheme-len: New file.
25920         * modules/unigbrk/u16-grapheme-len-tests: New file.
25921         * lib/unigbrk.in.h: Add prototype for new function.
25922         * lib/unigbrk/u16-grapheme-len.c: New file.
25923         * tests/unigbrk/test-u16-grapheme-len.c: New file.
25924
25925         New module 'u32-grapheme-len'.
25926         * modules/unigbrk/u32-grapheme-len: New file.
25927         * modules/unigbrk/u32-grapheme-len-tests: New file.
25928         * lib/unigbrk.in.h: Add prototype for new function.
25929         * lib/unigbrk/u32-grapheme-len.c: New file.
25930         * tests/unigbrk/test-u32-grapheme-len.c: New file.
25931
25932         New module 'u8-grapheme-next'.
25933         * modules/unigbrk/u8-grapheme-next: New file.
25934         * modules/unigbrk/u8-grapheme-next-tests: New file.
25935         * lib/unigbrk.in.h: Add prototype for new function.
25936         * lib/unigbrk/u8-grapheme-next.c: New file.
25937         * tests/unigbrk/test-u8-grapheme-next.c: New file.
25938
25939         New module 'u16-grapheme-next'.
25940         * modules/unigbrk/u16-grapheme-next: New file.
25941         * modules/unigbrk/u16-grapheme-next-tests: New file.
25942         * lib/unigbrk.in.h: Add prototype for new function.
25943         * lib/unigbrk/u16-grapheme-next.c: New file.
25944         * tests/unigbrk/test-u16-grapheme-next.c: New file.
25945
25946         New module 'u32-grapheme-next'.
25947         * modules/unigbrk/u32-grapheme-next: New file.
25948         * modules/unigbrk/u32-grapheme-next-tests: New file.
25949         * lib/unigbrk.in.h: Add prototype for new function.
25950         * lib/unigbrk/u32-grapheme-next.c: New file.
25951         * tests/unigbrk/test-u32-grapheme-next.c: New file.
25952
25953         New module 'u8-grapheme-prev'.
25954         * modules/unigbrk/u8-grapheme-prev: New file.
25955         * modules/unigbrk/u8-grapheme-prev-tests: New file.
25956         * lib/unigbrk.in.h: Add prototype for new function.
25957         * lib/unigbrk/u8-grapheme-prev.c: New file.
25958         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
25959
25960         New module 'u16-grapheme-prev'.
25961         * modules/unigbrk/u16-grapheme-prev: New file.
25962         * modules/unigbrk/u16-grapheme-prev-tests: New file.
25963         * lib/unigbrk.in.h: Add prototype for new function.
25964         * lib/unigbrk/u16-grapheme-prev.c: New file.
25965         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
25966
25967         New module 'u32-grapheme-prev'.
25968         * modules/unigbrk/u32-grapheme-prev: New file.
25969         * modules/unigbrk/u32-grapheme-prev-tests: New file.
25970         * lib/unigbrk.in.h: Add prototype for new function.
25971         * lib/unigbrk/u32-grapheme-prev.c: New file.
25972         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
25973
25974         New module 'u8-grapheme-breaks'.
25975         * modules/unigbrk/u8-grapheme-breaks: New file.
25976         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
25977         * lib/unigbrk.in.h: Add prototype for new function.
25978         * lib/unigbrk/u8-grapheme-breaks.c: New file.
25979         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
25980
25981         New module 'u16-grapheme-breaks'.
25982         * modules/unigbrk/u16-grapheme-breaks: New file.
25983         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
25984         * lib/unigbrk.in.h: Add prototype for new function.
25985         * lib/unigbrk/u16-grapheme-breaks.c: New file.
25986         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
25987
25988         New module 'u32-grapheme-breaks'.
25989         * modules/unigbrk/u32-grapheme-breaks: New file.
25990         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
25991         * lib/unigbrk.in.h: Add prototype for new function.
25992         * lib/unigbrk/u32-grapheme-breaks.c: New file.
25993         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
25994
25995         New module 'ulc-grapheme-breaks'.
25996         * modules/unigbrk/ulc-grapheme-breaks: New file.
25997         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
25998         * m4/locale-ar.m4: New file.
25999         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
26000         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
26001         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
26002
26003 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
26004
26005         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
26006         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
26007         modified how this file was generated before I initially submitted
26008         the module, but failed to regenerate it.  This meant that several
26009         of the level2 entries were wrong.
26010         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
26011         Remove the division-by-2 that is folded into the table now that
26012         gbrkprop.h has been regenerated properly.  Now -1 entries are
26013         handled correctly.
26014
26015         New module 'unigbrk/uc-gbrk-prop-tests'.
26016         * modules/unigbrk/uc-gbrk-prop-tests: New file.
26017         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
26018         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
26019         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
26020
26021 2011-01-01  Bruno Haible  <bruno@clisp.org>
26022
26023         Avoid use of hexadecimal escapes.
26024         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
26025         instead of hexadecimal escapes.
26026
26027 2011-01-01  Jim Meyering  <meyering@redhat.com>
26028
26029         maint: new rule to update copyright year ranges
26030         * Makefile (update-copyright): New rule.
26031
26032         maint: indent with TABs in Makefile
26033         * Makefile: Expand leading sequences of spaces to TABs
26034
26035         version-etc: update the copyright year it reports
26036         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
26037
26038 2010-12-31  Bruno Haible  <bruno@clisp.org>
26039
26040         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
26041         * lib/isfinite.c (zerof, zerod, zerol): New variables.
26042         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
26043         zero.
26044
26045 2010-12-31  Bruno Haible  <bruno@clisp.org>
26046
26047         pwrite: Work around HP-UX 11.11 bug.
26048         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
26049         works and set REPLACE_PWRITE if not.
26050         * lib/pwrite.c (pwrite): Add an implementation that uses the system
26051         function.
26052         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
26053
26054 2010-12-31  Bruno Haible  <bruno@clisp.org>
26055
26056         pread: Work around HP-UX 11 bugs.
26057         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
26058         and set REPLACE_PREAD if not.
26059         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
26060
26061 2010-12-31  Eric Blake  <eblake@redhat.com>
26062
26063         nl_langinfo: fix YESEXPR on Irix 6.5
26064         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
26065         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
26066         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
26067         it.
26068
26069 2010-12-31  Bruno Haible  <bruno@clisp.org>
26070
26071         iconv: Document HP-UX 11 bug.
26072         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
26073
26074 2010-12-31  Bruno Haible  <bruno@clisp.org>
26075
26076         ldexpl: Fix link error on HP-UX 11.
26077         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
26078         LDEXPL_LIBM, using $ISNANL_LIBM.
26079
26080 2010-12-31  Eric Blake  <eblake@redhat.com>
26081
26082         ftello: avoid compilation failure with SunStudio c89
26083         * lib/ftello.c (ftello): Use lseek, not llseek.
26084
26085         tests: avoid failing coreutils tests on cygwin
26086         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
26087         (create_exe_shims_): Return 0 when skipping.
26088
26089 2010-12-31  Bruno Haible  <bruno@clisp.org>
26090
26091         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
26092         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
26093
26094 2010-12-31  Bruno Haible  <bruno@clisp.org>
26095
26096         waitpid: Fix link error in C++ mode.
26097         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
26098
26099 2010-12-31  Bruno Haible  <bruno@clisp.org>
26100
26101         isnan: Use GCC built-ins when possible.
26102         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
26103         __builtin_isnan.
26104         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
26105         (isnan): Define using GCC built-ins for GCC >= 4.0.
26106
26107 2010-12-31  Bruno Haible  <bruno@clisp.org>
26108
26109         isnand: Fix mistake.
26110         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
26111         __builtin_isnand.
26112
26113 2010-12-31  Bruno Haible  <bruno@clisp.org>
26114
26115         open: Avoid C++ error on HP-UX 11.
26116         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
26117
26118 2010-12-31  Bruno Haible  <bruno@clisp.org>
26119
26120         time_r: Add missing declarations on HP-UX 11.
26121         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
26122         instead of HAVE_LOCALTIME_R.
26123         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
26124         HAVE_LOCALTIME_R always.
26125         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
26126         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
26127         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
26128         HAVE_LOCALTIME_R.
26129         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
26130         * doc/posix-functions/localtime_r.texi: Likewise.
26131
26132 2010-12-29  Eric Blake  <eblake@redhat.com>
26133
26134         mountlist: tweak previous commit
26135         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
26136         Reported by Paul Eggert.
26137
26138         mountlist: fix local drive detection on cygwin
26139         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
26140         that works for cygwin.
26141
26142 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
26143
26144         ftoastr, snprintf: ftoastr + snprintf module
26145         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
26146         since the snprintf module now should be good enough here.
26147         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
26148         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
26149         and gl_MODULE_INDICATOR([snprintf]), but the former enables
26150         GNULIB_SNPRINTF only for the test directory, and the latter
26151         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
26152         seems to suffice by itself.
26153
26154 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
26155
26156         alloca: one step towards thread-safety
26157         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
26158         need for a static variable.  All callers changed.  This does not
26159         make the alloca replacement thread-safe, but it's one step.
26160
26161         tests: minor indenting change
26162         * tests/init.sh: Sync from coreutils housekeeping patch
26163         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
26164         to keep lines within 80 columns.
26165
26166 2010-12-28  Jim Meyering  <meyering@redhat.com>
26167
26168         regex: don't infloop on persistent failing calloc
26169         * lib/regexec.c (build_trtable): Return failure indication upon
26170         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
26171         In glibc, this was fixed for version 2.13:
26172         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
26173
26174 2010-12-28  Bruno Haible  <bruno@clisp.org>
26175             Paul Eggert <eggert@cs.ucla.edu>
26176
26177         linkat: Make implementation robust against system behaviour variations.
26178         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
26179         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
26180         way, and to -2 if it needs a generic runtime test.
26181         * lib/linkat.c (solaris_optimized_link_immediate,
26182         solaris_optimized_link_follow): New functions.
26183         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
26184         (check_same_link): Use it.
26185
26186 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
26187
26188         New module 'unigbrk/base'.
26189         * modules/unigbrk/base: New file.
26190         * lib/unigbrk.in.h: New file.
26191
26192         New module 'unigbrk/uc-gbrk-prop'.
26193         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
26194         * modules/unigbrk/uc-gbrk-prop: New file.
26195         * lib/unigbrk/gbrkprop.h: New file.
26196         * lib/unigbrk/uc-gbrk-prop.c: New file.
26197
26198         New module 'unigbrk/uc-is-grapheme-break'.
26199         * modules/unigbrk/uc-is-grapheme-break: New file.
26200         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
26201         * lib/unigbrk/uc-is-grapheme-break.c: New file.
26202         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
26203         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
26204         * tests/unigbrk/GraphemeBreakTest.txt: New file.
26205
26206         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
26207
26208 2010-12-27  Bruno Haible  <bruno@clisp.org>
26209
26210         linkat test: Avoid failure on Solaris 11 2010-11.
26211         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
26212
26213 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
26214
26215         utimens: work around glibc rounding bug on more platforms
26216         * lib/utimens.c (fdutimens): Work around rounding bug even if
26217         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
26218         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
26219
26220 2010-12-27  Bruno Haible  <bruno@clisp.org>
26221
26222         select tests: Improve comments.
26223         * tests/test-select.c (do_select): Add comments.
26224
26225 2010-12-27  Bruno Haible  <bruno@clisp.org>
26226
26227         select tests: Safer way of handling timeout.
26228         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
26229         at every invocation.
26230
26231 2010-12-27  Bruno Haible  <bruno@clisp.org>
26232
26233         select tests: Use 'bool' where appropriate.
26234         * tests/test-select.c (connect_to_socket): Change argument type to
26235         'bool'.
26236
26237 2010-12-27  Bruno Haible  <bruno@clisp.org>
26238
26239         select tests: Use existing modules.
26240         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
26241         (configure.ac): Don't test for unistd.h.
26242         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
26243         declared in <unistd.h>.
26244
26245 2010-12-27  Bruno Haible  <bruno@clisp.org>
26246
26247         mbrtowc: Work around a Solaris 7 bug.
26248         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
26249         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
26250         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
26251         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
26252         MBRTOWC_NULL_ARG1_BUG.
26253         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
26254         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
26255         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
26256         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
26257
26258 2010-12-27  Jim Meyering  <meyering@redhat.com>
26259
26260         read-file.c: tweak syntax
26261         * lib/read-file.c (fread_file): Remove space after "*" in function
26262         definitions.
26263
26264 2010-12-27  Bruno Haible  <bruno@clisp.org>
26265
26266         times test: Avoid gcc warnings on OSF/1.
26267         * tests/test-times.c (main): Cast printf arguments from clock_t to
26268         'long int'.
26269
26270 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
26271
26272         utimens: work around glibc rounding bug on older Linux kernels
26273         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
26274         on Linux with a glibc whose utimes might not work, then work
26275         around a longstanding glibc bug involving rounding rather than
26276         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
26277         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
26278
26279 2010-12-26  Bruno Haible  <bruno@clisp.org>
26280
26281         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
26282         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
26283         _GL_CXXALIAS_SYS.
26284         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26285
26286 2010-12-26  Bruno Haible  <bruno@clisp.org>
26287
26288         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
26289         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
26290         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
26291         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
26292         looking for the declaration.
26293         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
26294         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
26295         problem.
26296         * doc/posix-functions/inet_pton.texi: Likewise.
26297
26298 2010-12-26  Bruno Haible  <bruno@clisp.org>
26299
26300         arpa_inet: Use the common idioms with C++ support.
26301         * lib/arpa_inet.in.h: Include c++defs.h.
26302         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
26303         support.
26304         * modules/arpa_inet (Depends-on): Add c++defs.
26305         (Makefile.am): Substitute the contents of c++defs.h.
26306         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
26307         * modules/arpa_inet-c++-tests: New file.
26308         * tests/test-arpa_inet-c++.cc: New file.
26309
26310 2010-12-25  Bruno Haible  <bruno@clisp.org>
26311
26312         Fix more C++ link errors on Solaris 8.
26313         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
26314         $(LIB_EACCESS).
26315         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
26316         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
26317         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
26318         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
26319         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
26320
26321 2010-12-25  Bruno Haible  <bruno@clisp.org>
26322
26323         printf-posix: Fix link error when a non-GCC compiler is used.
26324         * lib/stdio.in.h (printf): When not using GCC, override printf
26325         correctly.
26326         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26327
26328 2010-12-25  Bruno Haible  <bruno@clisp.org>
26329
26330         strerror_r-posix: Update doc.
26331         * doc/posix-functions/strerror_r.texi: Update doc about the return
26332         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
26333
26334 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
26335
26336         utimens: simplify the logic of the previous change
26337         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
26338         This should not affect whether the test succeeds or fails.
26339
26340         utimens: configure better on hosts with NFS clock skew
26341         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
26342         uses the clock of the local host.  It might use the clock of the
26343         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
26344         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
26345
26346 2010-12-25  Bruno Haible  <bruno@clisp.org>
26347
26348         ptsname test: Avoid failure on Solaris.
26349         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
26350         open a pseudo-terminal; don't use BSD-style ptys.
26351         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
26352
26353 2010-12-25  Bruno Haible  <bruno@clisp.org>
26354
26355         ptsname: Avoid ERANGE failure on some systems.
26356         * lib/ptsname.c (buffer): Increase size.
26357
26358 2010-12-25  Bruno Haible  <bruno@clisp.org>
26359
26360         rename, renameat: Avoid test failures at NFS mounted locations.
26361         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
26362         so that subsequent mkdir calls succeed.
26363
26364 2010-12-25  Bruno Haible  <bruno@clisp.org>
26365
26366         iswblank: Fix C++ link error on Solaris 8.
26367         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
26368         _GL_FUNCDECL_SYS.
26369
26370 2010-12-25  Bruno Haible  <bruno@clisp.org>
26371
26372         unistd: Fix C++ link error on Solaris 8.
26373         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
26374
26375 2010-12-25  Bruno Haible  <bruno@clisp.org>
26376
26377         readlink doc: Mention an old glibc bug.
26378         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
26379
26380 2010-12-25  Bruno Haible  <bruno@clisp.org>
26381
26382         fcntl-h: Fix for use of C++ on glibc systems.
26383         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
26384         also on glibc systems in C++ mode.
26385         Reported by Gary V. Vaughan <gary@gnu.org>.
26386
26387 2010-12-25  Bruno Haible  <bruno@clisp.org>
26388
26389         roundl-ieee: Make it work on OSF/1 5.1 with cc.
26390         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
26391
26392 2010-12-25  Bruno Haible  <bruno@clisp.org>
26393
26394         truncl-ieee: Make it work on OSF/1 5.1 with cc.
26395         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
26396         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
26397         test whether truncl works according to ISO C 99 with IEC 60559.
26398         * m4/truncl-ieee.m4: New file.
26399         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
26400         m4/signbit.m4.
26401         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
26402
26403 2010-12-25  Bruno Haible  <bruno@clisp.org>
26404
26405         ceill-ieee: Make it work on OSF/1 5.1 with cc.
26406         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
26407         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
26408         test whether ceill works according to ISO C 99 with IEC 60559.
26409         * m4/ceill-ieee.m4: New file.
26410         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
26411         m4/signbit.m4.
26412         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
26413
26414 2010-12-25  Bruno Haible  <bruno@clisp.org>
26415
26416         Ensure all prerequisites of <wchar.h> are included.
26417         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
26418         before <wchar.h>.
26419         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
26420         gl_MBRLEN_NUL_RETVAL): Likewise.
26421         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
26422         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
26423         AC_FUNC_MBRTOWC): Likewise.
26424         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
26425         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
26426         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
26427         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
26428         Likewise.
26429         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
26430         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
26431         (gl_WCHAR_H): Improve comments.
26432         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
26433
26434 2010-12-25  Bruno Haible  <bruno@clisp.org>
26435
26436         strtok_r: Fix C syntax error in autoconf macro.
26437         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
26438         characters in test program.
26439
26440 2010-12-24  Bruno Haible  <bruno@clisp.org>
26441
26442         ceil, trunc, round: Fix gcc warnings.
26443         * lib/ceil.c (MIN): Undefine before redefining.
26444         * lib/trunc.c (MIN): Likewise.
26445         * lib/round.c (MIN): Likewise.
26446         Include <math.h> first.
26447
26448 2010-12-24  Bruno Haible  <bruno@clisp.org>
26449
26450         select tests: Avoid failures on OSF/1 5.1.
26451         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
26452         failure of closing the last socket; it may fail with ECONNRESET.
26453
26454 2010-12-24  Eric Blake  <eblake@redhat.com>
26455
26456         stdint: avoid HP-UX 10.20 preprocessor bug
26457         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
26458         than #if.
26459         * tests/test-floor2.c (main): Likewise.
26460         Reported by Peter O'Gorman.
26461
26462         pipe: make obsoletion transition easier
26463         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
26464         * modules/pipe (Files): Include revived file.
26465         (Include): Drop reference, to mirror getdate's behavior.
26466
26467 2010-12-24  Bruno Haible  <bruno@clisp.org>
26468
26469         sys_socket: Hide mismatch of declarations on NonStop Kernel.
26470         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
26471         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
26472         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26473
26474 2010-12-24  Bruno Haible  <bruno@clisp.org>
26475
26476         gethostname: Ensure declaration on NonStop Kernel.
26477         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
26478         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26479
26480 2010-12-24  Bruno Haible  <bruno@clisp.org>
26481
26482         sys_select: Ensure all necessary types on NonStop Kernel.
26483         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
26484         include <sys/time.h>.
26485         * doc/posix-headers/sys_select.texi: Mention that it's missing on
26486         NonStop Kernel.
26487         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26488
26489 2010-12-24  Bruno Haible  <bruno@clisp.org>
26490
26491         sys_select: Remove unneeded include.
26492         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
26493         have <sys/select.h>.
26494
26495 2010-12-24  Bruno Haible  <bruno@clisp.org>
26496
26497         gethostname: Provide a fallback for HOST_NAME_MAX.
26498         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
26499         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
26500         instead.
26501         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26502
26503 2010-12-24  Bruno Haible  <bruno@clisp.org>
26504
26505         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
26506         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
26507         (SA_RESTART): Likewise.
26508         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26509
26510 2010-12-24  Bruno Haible  <bruno@clisp.org>
26511
26512         signal: Define NSIG.
26513         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
26514         * tests/test-signal.c (nsig): New variable.
26515         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26516
26517 2010-12-24  Bruno Haible  <bruno@clisp.org>
26518
26519         rename, renameat: Avoid test failures on OSF/1 5.1.
26520         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
26521         alternative error codes.
26522         * tests/test-renameat.c (main): Likewise.
26523
26524 2010-12-24  Bruno Haible  <bruno@clisp.org>
26525
26526         *printf: Detect large precisions bug on Solaris 10/SPARC.
26527         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
26528         by Paul Eggert.
26529         * tests/test-snprintf-posix.h (test_function): Add this test code here
26530         too.
26531         * tests/test-sprintf-posix.h (test_function): Likewise.
26532         * tests/test-vasnprintf-posix.c (test_function): Likewise.
26533         * tests/test-vasprintf-posix.c (test_function): Likewise.
26534         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
26535         around by gnulib.
26536         * doc/posix-functions/printf.texi: Likewise.
26537         * doc/posix-functions/snprintf.texi: Likewise.
26538         * doc/posix-functions/sprintf.texi: Likewise.
26539         * doc/posix-functions/vfprintf.texi: Likewise.
26540         * doc/posix-functions/vprintf.texi: Likewise.
26541         * doc/posix-functions/vsnprintf.texi: Likewise.
26542         * doc/posix-functions/vsprintf.texi: Likewise.
26543         * doc/posix-functions/dprintf.texi: Undo last commit.
26544         * doc/posix-functions/vdprintf.texi: Likewise.
26545
26546 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
26547
26548         tests: port test-fdutimensat.c to Solaris 8
26549         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
26550         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
26551         On Solaris 8, it fails with errno == ENOSYS, because there is no
26552         futimens (so it can't use the fd), and there is no lutimens (so it
26553         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
26554
26555         vsnprintf: make more consistent with snprintf; doc fixes
26556
26557         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
26558         the byte count return problem was promoted from the snprintf-posix
26559         to the snprintf module.
26560         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
26561         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
26562         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
26563         * tests/test-snprintf.c (main): Check the byte count returned.
26564         * tests/test-vsnprintf.c (main): Likewise.
26565
26566 2010-12-23  Eric Blake  <eblake@redhat.com>
26567
26568         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
26569         * modules/sigpipe (License): Relax license.
26570
26571 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
26572
26573         doc: document Solaris printf bug with large float precisions
26574         * doc/posix-functions/dprintf.texi (dprintf):
26575         * doc/posix-functions/fprintf.texi (fprintf):
26576         * doc/posix-functions/printf.texi (printf):
26577         * doc/posix-functions/snprintf.texi (snprintf):
26578         * doc/posix-functions/sprintf.texi (sprintf):
26579         * doc/posix-functions/vdprintf.texi (vdprintf):
26580         * doc/posix-functions/vfprintf.texi (vfprintf):
26581         * doc/posix-functions/vprintf.texi (vprintf):
26582         * doc/posix-functions/vsnprintf.texi (vsnprintf):
26583         * doc/posix-functions/vsprintf.texi (vsprintf):
26584         Mention that these functions mishandle large floating point
26585         precisions on Solaris 10.  The same bug is also present in Solaris
26586         8, and I assume earlier.  This causes "cd gnulib-tests; make
26587         check" to fail on Solaris 8 (and I assume, later) when building
26588         the latest coreutils, in test-vasprintf-posix's call to
26589         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
26590         the wide flavors (e.g., wprintf) so this patch just updates the
26591         documentation for the narrow ones.
26592
26593         test-posixtm.c: add two tests
26594         * tests/test-posixtm.c: Add two tests, to highlight the
26595         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
26596         around this bug; this is merely to document it.
26597
26598 2010-12-22  Bruno Haible  <bruno@clisp.org>
26599
26600         getlogin_r: Work around portability problem on OSF/1.
26601         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
26602         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
26603         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
26604         test for a truncated result.
26605         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
26606         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
26607         * modules/getlogin_r (Depends-on): Add memchr.
26608         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
26609
26610 2010-12-22  Bruno Haible  <bruno@clisp.org>
26611
26612         ptsname: Avoid test failure on OSF/1 5.1.
26613         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
26614         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
26615         (same_slave): New function.
26616         (main): Use it to compare ptsname's result with the expected file name.
26617
26618 2010-12-22  Bruno Haible  <bruno@clisp.org>
26619
26620         Port extended stdio modules to HP NonStop Kernel.
26621         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
26622         macros.
26623         * lib/fbufmode.c: Update comments.
26624         * lib/fflush.c: Likewise.
26625         * lib/fpurge.c: Likewise.
26626         * lib/freadable.c: Likewise.
26627         * lib/freadahead.c: Likewise.
26628         * lib/freading.c: Likewise.
26629         * lib/freadptr.c: Likewise.
26630         * lib/freadseek.c: Likewise.
26631         * lib/fseeko.c: Likewise.
26632         * lib/fseterr.c: Likewise.
26633         * lib/fwritable.c: Likewise.
26634         * lib/fwriting.c: Likewise.
26635         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26636
26637 2010-12-22  Bruno Haible  <bruno@clisp.org>
26638
26639         ttyname_r: Work around bug on OSF/1 5.1.
26640         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
26641         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
26642         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
26643         present.
26644         * lib/ttyname_r.c (ttyname_r): Update comments.
26645
26646 2010-12-22  Bruno Haible  <bruno@clisp.org>
26647
26648         round: Implement result sign according to IEEE 754.
26649         * lib/round.c (MIN, MINUS_ZERO): New macros.
26650         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
26651         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
26652         * tests/test-round-ieee.c (main): Likewise.
26653         * tests/test-roundl-ieee.c (main): Likewise.
26654
26655         trunc: Implement result sign according to IEEE 754.
26656         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
26657         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
26658         * tests/test-trunc2.c: Include minus-zero.h.
26659         (MINUS_ZERO): New macro.
26660         (trunc_reference): Keep in sync with lib/trunc.c.
26661         * tests/test-truncf2.c: Include minus-zero.h.
26662         (MINUS_ZERO): New macro.
26663         (truncf_reference): Keep in sync with lib/trunc.c.
26664         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
26665         * tests/test-trunc-ieee.c (main): Likewise.
26666         * tests/test-truncl-ieee.c (main): Likewise.
26667
26668         ceil: Implement result sign according to IEEE 754.
26669         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
26670         (FUNC): Return -0.0 for -1 < x < 0.
26671         * tests/test-ceil2.c: Include minus-zero.h.
26672         (MINUS_ZERO): New macro.
26673         (ceil_reference): Keep in sync with lib/ceil.c.
26674         * tests/test-ceilf2.c: Include minus-zero.h.
26675         (MINUS_ZERO): New macro.
26676         (ceilf_reference): Keep in sync with lib/ceil.c.
26677         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
26678         * tests/test-ceil-ieee.c (main): Likewise.
26679         * tests/test-ceill-ieee.c (main): Likewise.
26680
26681         floor: Implement result sign according to IEEE 754.
26682         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
26683         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
26684         * tests/test-floorf2.c (floorf_reference): Likewise.
26685         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
26686         * tests/test-floor-ieee.c (main): Likewise.
26687         * tests/test-floorl-ieee.c (main): Likewise.
26688
26689 2010-12-22  Bruno Haible  <bruno@clisp.org>
26690
26691         getaddrinfo: Update doc.
26692         * doc/posix-functions/gai_strerror.texi: Return type is also different
26693         on AIX and HP-UX.
26694
26695 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
26696
26697         getaddrinfo, inet_ntop: Update doc for Solaris.
26698         * doc/posix-functions/gai_strerror.texi: Return type is also an
26699         issue on Solaris 9 and earlier.
26700         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
26701         on Solaris 10 and earlier.
26702
26703 2010-12-21  Bruno Haible  <bruno@clisp.org>
26704
26705         New module 'roundl-ieee'.
26706         * modules/roundl-ieee: New file.
26707         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
26708         test whether roundl works according to ISO C 99 with IEC 60559.
26709         * m4/roundl-ieee.m4: New file.
26710         * modules/roundl-ieee-tests: New file.
26711         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
26712         * tests/test-roundl.c (main): Remove signbit tests.
26713         * modules/roundl-tests (Depends-on): Remove signbit.
26714         * doc/posix-functions/roundl.texi: Mention the new module.
26715
26716 2010-12-21  Bruno Haible  <bruno@clisp.org>
26717
26718         New module 'truncl-ieee'.
26719         * modules/truncl-ieee: New file.
26720         * modules/truncl-ieee-tests: New file.
26721         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
26722         * tests/test-truncl.c (main): Remove signbit tests.
26723         * modules/truncl-tests (Depends-on): Remove signbit.
26724         * doc/posix-functions/truncl.texi: Mention the new module.
26725
26726 2010-12-21  Bruno Haible  <bruno@clisp.org>
26727
26728         New module 'ceill-ieee'.
26729         * modules/ceill-ieee: New file.
26730         * modules/ceill-ieee-tests: New file.
26731         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
26732         * tests/test-ceill.c (main): Remove signbit tests.
26733         * modules/ceill-tests (Depends-on): Remove signbit.
26734         * doc/posix-functions/ceill.texi: Mention the new module.
26735
26736 2010-12-21  Bruno Haible  <bruno@clisp.org>
26737
26738         New module 'floorl-ieee'.
26739         * modules/floorl-ieee: New file.
26740         * modules/floorl-ieee-tests: New file.
26741         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
26742         * tests/test-floorl.c (main): Remove signbit tests.
26743         * modules/floorl-tests (Depends-on): Remove signbit.
26744         * doc/posix-functions/floorl.texi: Mention the new module.
26745
26746 2010-12-21  Bruno Haible  <bruno@clisp.org>
26747
26748         New module 'round-ieee'.
26749         * modules/round-ieee: New file.
26750         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
26751         whether round works according to ISO C 99 with IEC 60559.
26752         * m4/round-ieee.m4: New file.
26753         * modules/round-ieee-tests: New file.
26754         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
26755         * tests/test-round1.c (main): Remove signbit tests.
26756         * modules/round-tests (Depends-on): Remove 'signbit'.
26757         * doc/posix-functions/round.texi: Mention the new module.
26758
26759 2010-12-21  Bruno Haible  <bruno@clisp.org>
26760
26761         New module 'trunc-ieee'.
26762         * modules/trunc-ieee: New file.
26763         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
26764         whether trunc works according to ISO C 99 with IEC 60559.
26765         * m4/trunc-ieee.m4: New file.
26766         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
26767         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
26768         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
26769         * modules/trunc-ieee-tests: New file.
26770         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
26771         * tests/test-trunc1.c (main): Remove signbit tests.
26772         * modules/trunc-tests (Depends-on): Remove 'signbit'.
26773         * doc/posix-functions/trunc.texi: Mention the new module.
26774
26775 2010-12-21  Bruno Haible  <bruno@clisp.org>
26776
26777         New module 'ceil-ieee'.
26778         * modules/ceil-ieee: New file.
26779         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
26780         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
26781         ISO C 99 with IEC 60559.
26782         * m4/ceil-ieee.m4: New file.
26783         * modules/ceil (Files): Add lib/ceil.c.
26784         (Depends-on): Add 'float'.
26785         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
26786         * lib/math.in.h (ceil): New declaration.
26787         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
26788         REPLACE_CEIL.
26789         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
26790         * modules/ceil-ieee-tests: New file.
26791         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
26792         * tests/test-math-c++.cc: Check the signature of 'ceil'.
26793         * doc/posix-functions/ceil.texi: Mention the new module.
26794
26795 2010-12-21  Bruno Haible  <bruno@clisp.org>
26796
26797         New module 'floor-ieee'.
26798         * modules/floor-ieee: New file.
26799         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
26800         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
26801         ISO C 99 with IEC 60559.
26802         * m4/floor-ieee.m4: New file.
26803         * modules/floor (Files): Add lib/floor.c.
26804         (Depends-on): Add 'float'.
26805         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
26806         * lib/math.in.h (floor): New declaration.
26807         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
26808         REPLACE_FLOOR.
26809         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
26810         * modules/floor-ieee-tests: New file.
26811         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
26812         * tests/test-math-c++.cc: Check the signature of 'floor'.
26813         * doc/posix-functions/floor.texi: Mention the new module.
26814
26815 2010-12-21  Bruno Haible  <bruno@clisp.org>
26816
26817         New module 'roundf-ieee'.
26818         * modules/roundf-ieee: New file.
26819         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
26820         test whether roundf works according to ISO C 99 with IEC 60559.
26821         * m4/roundf-ieee.m4: New file.
26822         * modules/roundf-ieee-tests: New file.
26823         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
26824         * tests/test-roundf1.c (main): Remove signbit tests.
26825         * modules/roundf-tests (Depends-on): Remove 'signbit'.
26826         * doc/posix-functions/roundf.texi: Mention the new module.
26827
26828 2010-12-21  Bruno Haible  <bruno@clisp.org>
26829
26830         New module 'truncf-ieee'.
26831         * modules/truncf-ieee: New file.
26832         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
26833         test whether truncf works according to ISO C 99 with IEC 60559.
26834         * m4/truncf-ieee.m4: New file.
26835         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
26836         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
26837         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
26838         * modules/truncf-ieee-tests: New file.
26839         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
26840         * tests/test-truncf1.c (main): Remove signbit tests.
26841         * modules/truncf-tests (Depends-on): Remove 'signbit'.
26842         * doc/posix-functions/truncf.texi: Mention the new module.
26843
26844 2010-12-21  Bruno Haible  <bruno@clisp.org>
26845
26846         New module 'ceilf-ieee'.
26847         * modules/ceilf-ieee: New file.
26848         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
26849         test whether ceilf works according to ISO C 99 with IEC 60559.
26850         * m4/ceilf-ieee.m4: New file.
26851         * modules/ceilf-ieee-tests: New file.
26852         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
26853         * tests/test-ceilf1.c (main): Remove signbit tests.
26854         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
26855         * doc/posix-functions/ceilf.texi: Mention the new module.
26856
26857 2010-12-21  Bruno Haible  <bruno@clisp.org>
26858
26859         New module 'floorf-ieee'.
26860         * modules/floorf-ieee: New file.
26861         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
26862         test whether floorf works according to ISO C 99 with IEC 60559.
26863         * m4/floorf-ieee.m4: New file.
26864         * modules/floorf-ieee-tests: New file.
26865         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
26866         * tests/test-floorf1.c (main): Remove signbit tests.
26867         * modules/floorf-tests (Depends-on): Remove 'signbit'.
26868         * doc/posix-functions/floorf.texi: Mention the new module.
26869
26870 2010-12-21  Bruno Haible  <bruno@clisp.org>
26871
26872         Support for minus zero in autoconf macros.
26873         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
26874         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
26875         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
26876         * tests/minus-zero.h: Update comments.
26877
26878 2010-12-21  Bruno Haible  <bruno@clisp.org>
26879
26880         Tests for module 'ceil'.
26881         * modules/ceil-tests: New file.
26882         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
26883         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
26884
26885 2010-12-21  Bruno Haible  <bruno@clisp.org>
26886
26887         Tests for module 'floor'.
26888         * modules/floor-tests: New file.
26889         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
26890         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
26891
26892 2010-12-21  Bruno Haible  <bruno@clisp.org>
26893
26894         math: Fix indentation.
26895         * lib/math.in.h (floorf): Fix indentation.
26896
26897 2010-12-21  Bruno Haible  <bruno@clisp.org>
26898
26899         Fix cross-compilation guesses on Solaris.
26900         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
26901         not match "solaris2.10".
26902         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
26903         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
26904         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
26905
26906 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
26907
26908         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
26909         This fixes a problem observed with the latest coreutils snapshot
26910         that caused a test to fail on Solaris 8.  src/csplit.c's call
26911         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
26912         earlier, instead of returning the number of bytes that would have
26913         been generated; this causes csplit to incorrectly report memory
26914         exhaustion.
26915         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
26916         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
26917         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
26918         comments to match.
26919         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
26920         Fix typo in matching older versions of Solaris: "solaris2.10"
26921         is matched by the shell pattern "solaris2.[0-9]*".  This matters
26922         only for guessing while cross-compiling.
26923         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
26924
26925 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
26926
26927         ftoastr: fix comment again
26928         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
26929         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
26930         Also, simplify example a bit by using flags = 0.
26931
26932 2010-12-20  Bruno Haible  <bruno@clisp.org>
26933
26934         round*, trunc*: Update documentation regarding glibc.
26935         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
26936         * doc/posix-functions/round.texi: Likewise.
26937         * doc/posix-functions/roundl.texi: Likewise.
26938         * doc/posix-functions/truncf.texi: Likewise.
26939         * doc/posix-functions/trunc.texi: Likewise.
26940         * doc/posix-functions/truncl.texi: Likewise.
26941
26942 2010-12-20  Bruno Haible  <bruno@clisp.org>
26943
26944         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
26945         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
26946         * doc/posix-functions/round.texi: Likewise.
26947         * doc/posix-functions/roundl.texi: Likewise.
26948
26949 2010-12-20  Bruno Haible  <bruno@clisp.org>
26950
26951         ttyname_r: Add missing declaration on HP-UX 11.
26952         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
26953         HAVE_TTYNAME_R.
26954         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
26955         declared. Set HAVE_TTYNAME_R always.
26956         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26957         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
26958         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
26959         HAVE_TTYNAME_R.
26960         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
26961
26962 2010-12-20  Bruno Haible  <bruno@clisp.org>
26963
26964         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
26965         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
26966         * doc/posix-functions/getlogin_r.texi: Likewise.
26967         * tests/test-getlogin.c: Include <errno.h>.
26968         (main): Avoid test failure on HP-UX 11.11.
26969         * tests/test-getlogin_r.c (main): Likewise.
26970
26971 2010-12-20  Bruno Haible  <bruno@clisp.org>
26972
26973         getlogin_r: Add missing declaration on HP-UX 11.
26974         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
26975         declared also when it exists as a function.
26976         * doc/posix-functions/getlogin_r.texi: Document this workaround.
26977
26978 2010-12-20  Bruno Haible  <bruno@clisp.org>
26979
26980         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
26981         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
26982         through wcrtomb.
26983
26984 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
26985
26986         ftoastr: fix comment
26987         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
26988         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
26989
26990 2010-12-19  Bruno Haible  <bruno@clisp.org>
26991
26992         isnan: Ensure it is a macro.
26993         * lib/math.in.h (isnan): Define as a macro if not already a macro.
26994         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
26995         Solaris.
26996
26997 2010-12-19  Bruno Haible  <bruno@clisp.org>
26998
26999         ldexpl test: Fix link error on OSF/1 5.1.
27000         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
27001
27002 2010-12-19  Bruno Haible  <bruno@clisp.org>
27003
27004         wctype: Make it work in C++ mode on OSF/1 5.1.
27005         * lib/wctype.in.h (iswblank): Declare but not define here.
27006         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
27007         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
27008         * modules/wctype (Files): Add lib/iswblank.c.
27009
27010 2010-12-19  Bruno Haible  <bruno@clisp.org>
27011
27012         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
27013         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
27014         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
27015
27016 2010-12-19  Bruno Haible  <bruno@clisp.org>
27017
27018         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
27019         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
27020         _POSIX_PII_SOCKET.
27021         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
27022         * doc/posix-functions/recvfrom.texi: Likewise.
27023         * doc/posix-functions/send.texi: Likewise.
27024         * doc/posix-functions/sendto.texi: Likewise.
27025
27026 2010-12-19  Bruno Haible  <bruno@clisp.org>
27027
27028         tcgetsid: Add missing declaration on OSF/1 5.1.
27029         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
27030         HAVE_TCGETSID.
27031         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
27032         Don't set HAVE_TCGETSID.
27033         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
27034         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
27035         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
27036         HAVE_TCGETSID.
27037         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
27038
27039 2010-12-19  Bruno Haible  <bruno@clisp.org>
27040
27041         stdio: Fix problem with popen() declaration on OSF/1 5.1.
27042         * lib/stdio.in.h: During the include_next statement, let recursive
27043         includes of this file include only the system header file.
27044
27045 2010-12-19  Bruno Haible  <bruno@clisp.org>
27046
27047         iconv_open: Fix regression from 2010-12-04.
27048         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
27049         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
27050
27051 2010-12-19  Bruno Haible  <bruno@clisp.org>
27052
27053         stdbool test: Avoid a gcc warning.
27054         * tests/test-stdbool.c (main): Fail if e1 is false.
27055         Reported by Jim Meyering.
27056
27057 2010-12-19  Jim Meyering  <meyering@redhat.com>
27058
27059         setenv: restore to working order
27060         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
27061         mistakenly removed.
27062         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
27063         HAVE_SETENV.
27064         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
27065         HAVE_SETENV.
27066
27067 2010-12-19  Bruno Haible  <bruno@clisp.org>
27068
27069         Document some different function declarations on OSF/1 5.1.
27070         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
27071         * doc/posix-functions/inet_ntop.texi: Likewise.
27072         * doc/posix-functions/gethostname.texi: Likewise.
27073         * lib/unistd.in.h (gethostname): Update comment.
27074
27075 2010-12-19  Bruno Haible  <bruno@clisp.org>
27076
27077         doc: Mention vasprintf-posix module.
27078         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
27079         the 'vasprintf-posix' module.
27080         * doc/glibc-functions/vasprintf.texi: Likewise.
27081
27082 2010-12-19  Bruno Haible  <bruno@clisp.org>
27083
27084         unsetenv: Add missing declaration on OSF/1 5.1.
27085         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
27086         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
27087         Don't set HAVE_UNSETENV. In the test program, set _BSD.
27088         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
27089         not HAVE_UNSETENV.
27090         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
27091         HAVE_UNSETENV.
27092         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
27093
27094 2010-12-19  Bruno Haible  <bruno@clisp.org>
27095
27096         setenv: Add missing declaration on OSF/1 5.1.
27097         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
27098         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
27099         declared. Don't set HAVE_SETENV.
27100         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
27101         not HAVE_SETENV.
27102         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
27103         HAVE_SETENV.
27104         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
27105
27106 2010-12-19  Bruno Haible  <bruno@clisp.org>
27107
27108         nl_langinfo tests: Avoid gcc warning.
27109         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
27110
27111 2010-12-19  Bruno Haible  <bruno@clisp.org>
27112
27113         mknod: Avoid error in C++ mode on OSF/1 with GCC.
27114         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
27115         _GL_CXXALIAS_SYS.
27116
27117 2010-12-19  Bruno Haible  <bruno@clisp.org>
27118
27119         stdbool: Relax test.
27120         * tests/test-stdbool.c (e): Don't require that casts from a variable's
27121         address to 'bool' work in static initializer, for compilers other than
27122         GCC.
27123
27124 2010-12-19  Bruno Haible  <bruno@clisp.org>
27125
27126         ftello: Add missing declaration on OSF/1 5.1.
27127         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
27128         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
27129         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
27130         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
27131         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
27132
27133 2010-12-19  Bruno Haible  <bruno@clisp.org>
27134
27135         fseeko: Add missing declaration on OSF/1 5.1.
27136         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
27137         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
27138         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
27139         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
27140         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
27141
27142 2010-12-19  Bruno Haible  <bruno@clisp.org>
27143
27144         fchdir: Add missing declaration on OSF/1 5.1.
27145         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
27146         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
27147         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
27148         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
27149         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
27150
27151 2010-12-19  Bruno Haible  <bruno@clisp.org>
27152
27153         relocatable-prog-wrapper: Separate from relocatable-prog.
27154         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
27155         uninstall-relocwrapper rule here.
27156         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
27157         Reported by Ian Beckwith <ianb@erislabs.net>.
27158
27159 2010-12-19  Bruno Haible  <bruno@clisp.org>
27160
27161         unistr/u8-mbsnlen: Add missing dependency.
27162         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
27163         Reported by Ian Beckwith <ianb@erislabs.net>.
27164
27165 2010-12-19  Bruno Haible  <bruno@clisp.org>
27166
27167         iconv: Make it possible again to use this module without 'iconv-h'.
27168         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
27169         if it is not defined.
27170         Reported by Ian Beckwith <ianb@erislabs.net>.
27171
27172 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
27173
27174         acl: port to Solaris 8 when copying from tmpfs to ufs
27175         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
27176         error number.  Problem observed on Solaris 8 with latest
27177         coreutils, with "mv A B", where A is on a tmpfs file system and B
27178         is on a ufs file system.  This caused coreutils' mv/part-symlink
27179         test to fail.
27180
27181         tests: set fail=0 at start
27182         * tests/init.sh (setup_): Move fail=0 initialization here ...
27183         (mktempd_): ... from here, so that tests can rely on fail being
27184         set to 0 initially.  This fixes a problem in coreutils; see:
27185         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
27186
27187 2010-12-18  Bruno Haible  <bruno@clisp.org>
27188
27189         memmem-simple: Stylistic changes.
27190         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
27191         Fix preprocessor directive indentation.
27192
27193 2010-12-15  Pádraig Brady <P@draigBrady.com>
27194
27195         memmem, memmem-simple: reorganize and expand empty needle check
27196         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
27197         functional checks to memmem-simple so that one has a fully functional
27198         memmem by using just this module.
27199         Restrict the performance only check to the memmem module.
27200         Also expand the empty needle check to ensure the correct
27201         pointer is returned, not just a non NULL pointer.
27202         * doc/glibc-functions/memmem.texi: Rearrange the portability
27203         documentation to correlate with the rearranged checks.
27204         Clarify exactly how the memmem and memmem-simple modules
27205         relate to each other.
27206
27207 2010-12-15  Pádraig Brady <P@draigBrady.com>
27208             Bruno Haible  <bruno@clisp.org>
27209
27210         Improve cross-compilation guesses for uClibc.
27211         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
27212         that uClibc does not have the glibc bug.
27213         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
27214         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
27215
27216 2010-12-14  Eric Blake  <eblake@redhat.com>
27217
27218         configmake: provide fallbacks for oldest supported autotools
27219         * m4/configmake.m4: New file.
27220         * modules/configmake (Files): Ship it.
27221         (configure.ac): Use it to guarantee fallbacks.
27222
27223 2010-12-13  Pádraig Brady <P@draigBrady.com>
27224
27225         read-file: Improve handling of large files
27226         * lib/read-file.c (fread_file): Minimize realloc()s
27227         for regular files, and better manage sizes around SIZE_MAX.
27228
27229 2010-12-13  Eric Blake  <eblake@redhat.com>
27230
27231         cloexec, fcntl: relax license
27232         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
27233         consent from all contributors.
27234         * modules/fcntl (License): Likewise.
27235
27236 2010-12-10  Bruno Haible  <bruno@clisp.org>
27237
27238         Tests for module 'pipe-posix'.
27239         * modules/pipe-posix-tests: New file.
27240         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
27241
27242 2010-12-10  Bruno Haible  <bruno@clisp.org>
27243
27244         pipe-posix: Make it work in C++ mode.
27245         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
27246         (pipe): Use common idiom, not a macro definition.
27247         * lib/pipe.c: New file.
27248         * m4/pipe.m4: New file.
27249         * modules/pipe-posix (Description): Enhance.
27250         (Files): Add lib/pipe.c, m4/pipe.m4.
27251         (configure.ac): Invoke gl_FUNC_PIPE.
27252         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
27253         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
27254         * tests/test-unistd-c++.cc: Check the signature of pipe.
27255
27256 2010-12-10  Bruno Haible  <bruno@clisp.org>
27257
27258         Rename module 'pipe' to 'spawn-pipe'.
27259         * modules/spawn-pipe: New file, renamed from modules/pipe.
27260         (Files, configure.ac, Makefile.am): Update.
27261         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
27262         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
27263         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
27264         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
27265         "spawn-pipe.h" instead of "pipe.h".
27266         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
27267         to gl_SPAWN_PIPE.
27268         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
27269         (Files, Makefile.am): Update.
27270         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
27271         Update.
27272         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
27273         Include "spawn-pipe.h" instead of "pipe.h".
27274         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
27275         * lib/javacomp.c: Likewise.
27276         * lib/javaversion.c: Likewise.
27277         * lib/pipe-filter-gi.c: Likewise.
27278         * lib/pipe-filter-ii.c: Likewise.
27279         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
27280         * modules/javacomp (Depends-on): Likewise.
27281         * modules/javaversion (Depends-on): Likewise.
27282         * modules/pipe-filter-gi (Depends-on): Likewise.
27283         * modules/pipe-filter-ii (Depends-on): Likewise.
27284         * MODULES.html.sh (Executing programs): Update.
27285         * NEWS: Mention the change.
27286
27287 2010-12-10  Eric Blake  <eblake@redhat.com>
27288
27289         pipe-posix: new module
27290         * modules/pipe-posix: New file.
27291         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
27292         (gl_UNISTD_H): Check for declaration.
27293         * modules/unistd (Makefile.am): Substitute it.
27294         * lib/unistd.in.h (pipe): Provide it for mingw.
27295         * doc/posix-functions/pipe.texi (pipe): Update documentation.
27296         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
27297
27298 2010-12-07  Bruno Haible  <bruno@clisp.org>
27299
27300         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
27301         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
27302         u8_strcmp_gnu.
27303         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
27304
27305 2010-12-06  Bruno Haible  <bruno@clisp.org>
27306
27307         Update internal documentation.
27308         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
27309
27310 2010-12-04  Bruno Haible  <bruno@clisp.org>
27311
27312         Put more information about failed tests into the test return codes.
27313         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
27314         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
27315         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
27316         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
27317         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
27318         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
27319         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
27320         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
27321         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
27322         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
27323         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
27324         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
27325         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
27326         * m4/stdint.m4 (gl_STDINT_H): Likewise.
27327         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
27328         returns a bit mask.
27329         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
27330         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
27331         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
27332         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
27333         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
27334         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
27335         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
27336         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
27337         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
27338         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
27339         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
27340         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
27341         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
27342         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
27343         * m4/link.m4 (gl_FUNC_LINK): Likewise.
27344         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
27345         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
27346         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
27347         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
27348         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
27349         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
27350         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
27351         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
27352         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
27353         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
27354         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
27355         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
27356         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
27357         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
27358         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
27359         gl_PRINTF_PRECISION): Likewise.
27360         * m4/regex.m4 (gl_REGEX): Likewise.
27361         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
27362         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
27363         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
27364         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
27365         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
27366         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
27367         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
27368         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
27369         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
27370         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
27371         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
27372         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
27373         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
27374         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
27375         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
27376         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
27377         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
27378         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
27379         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
27380         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
27381         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
27382         enumerated value.
27383         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
27384
27385 2010-12-04  Bruno Haible  <bruno@clisp.org>
27386
27387         Update for Solaris 11 2010-11.
27388         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
27389         Express, released in November 2010.
27390
27391 2010-12-04  Bruno Haible  <bruno@clisp.org>
27392
27393         nproc: Relax license.
27394         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
27395         and Paul Eggert.
27396         Requested by Ludovic Courtès <ludo@gnu.org>.
27397
27398 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
27399
27400         utimecmp: fine-grained src to nearby coarse-grained dest
27401
27402         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
27403         and the source is on a file system with higher-resolution time
27404         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
27405         not work, and the time stamps are close together, the algorithm to
27406         determine the exact resolution from the read-back mtime was buggy:
27407         it had a "!=" where it should have had an "==".  This bug has been
27408         in the code ever since it was introduced to gnulib.
27409         Problem reported by Dan Jacobson in
27410         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
27411
27412 2010-11-30  Bruno Haible  <bruno@clisp.org>
27413
27414         strerror_r-posix: Fix autoconf test.
27415         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
27416
27417 2010-11-28  Bruno Haible  <bruno@clisp.org>
27418             Paul Eggert  <eggert@cs.ucla.edu>
27419
27420         Tests for module 'getdomainname'.
27421         * modules/getdomainname-tests: New file.
27422         * tests/test-getdomainname.c: New file, based on
27423         tests/test-gethostname.c.
27424
27425 2010-11-28  Bruno Haible  <bruno@clisp.org>
27426             Paul Eggert  <eggert@cs.ucla.edu>
27427
27428         getdomainname: Use the system function when possible.
27429         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
27430         (getdomainname): Replace if needed. Provide the declaration if it is
27431         missing. Don't use _GL_CXXALIAS_SYS_CAST.
27432         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
27433         (getdomainname): When the system has getdomainname, call the system
27434         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
27435         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
27436         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
27437         found in libnsl. Look for the declaration also in <netdb.h>. Replace
27438         the function if its second argument is of type 'int' or if it is found
27439         in libnsl.
27440         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
27441         <sys/systeminfo.h> and sysinfo().
27442         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
27443         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27444         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
27445         HAVE_GETDOMAINNAME.
27446         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
27447         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
27448         * doc/glibc-functions/getdomainname.texi: Document the problems with
27449         the getdomainname declaration.
27450
27451 2010-11-28  Bruno Haible  <bruno@clisp.org>
27452
27453         sys_socket: Ensure ss_family field on AIX.
27454         * lib/sys_socket.in.h (ss_family): New macro definition.
27455         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
27456         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
27457         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
27458         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
27459         * modules/sys_socket (Makefile.am): Substitute
27460         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
27461         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
27462
27463 2010-11-27  Bruno Haible  <bruno@clisp.org>
27464
27465         readline: Improve configure output.
27466         * m4/readline.m4 (gl_FUNC_READLINE): Make the
27467         "checking for readline..." result understandable.
27468
27469 2010-11-27  Bruno Haible  <bruno@clisp.org>
27470
27471         *printf-posix: Detect a bug on Solaris 10/x86.
27472         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
27473         for floating-point output.
27474         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
27475         directive.
27476         * tests/test-snprintf-posix.h (test_function): Likewise.
27477         * tests/test-sprintf-posix.h (test_function): Likewise.
27478         * tests/test-vasprintf-posix.c (test_function): Likewise.
27479         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
27480         * doc/posix-functions/printf.texi: Likewise.
27481         * doc/posix-functions/snprintf.texi: Likewise.
27482         * doc/posix-functions/sprintf.texi: Likewise.
27483         * doc/posix-functions/vfprintf.texi: Likewise.
27484         * doc/posix-functions/vprintf.texi: Likewise.
27485         * doc/posix-functions/vsnprintf.texi: Likewise.
27486         * doc/posix-functions/vsprintf.texi: Likewise.
27487         * doc/glibc-functions/obstack_printf.texi: Likewise.
27488         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
27489
27490 2010-11-27  Bruno Haible  <bruno@clisp.org>
27491
27492         Fix link error when module libunistring-optional is in use.
27493         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
27494         * modules/striconveha-tests (Makefile.am): Likewise.
27495
27496 2010-11-27  Bruno Haible  <bruno@clisp.org>
27497
27498         regex: Mention link dependencies.
27499         * modules/regex (Link): New section.
27500         * modules/rpmatch (Link): Likewise.
27501         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
27502
27503 2010-11-27  Bruno Haible  <bruno@clisp.org>
27504
27505         ftoastr: Fix compilation error on Solaris.
27506         * lib/ftoastr.c: Include <config.h>.
27507
27508 2010-11-27  Bruno Haible  <bruno@clisp.org>
27509
27510         getloadavg: Update documentation.
27511         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
27512
27513 2010-11-27  Bruno Haible  <bruno@clisp.org>
27514
27515         sys_socket: Fix test whether the functions are declared.
27516         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
27517         not <sys/select.h>.
27518
27519 2010-11-27  Bruno Haible  <bruno@clisp.org>
27520
27521         getpass: Make sure to get system declaration on some platforms.
27522         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
27523         gl_USE_SYSTEM_EXTENSIONS.
27524         * modules/getpass (Depends-on): Add extensions.
27525
27526 2010-11-26  Bruno Haible  <bruno@clisp.org>
27527
27528         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
27529         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
27530         'iconv' module is present.
27531         (ICONV_CONST): New macro.
27532         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
27533         ICONV_CONST.
27534         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
27535         set ICONV_CONST.
27536         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
27537         here.
27538         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
27539         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
27540         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
27541         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
27542         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
27543         present.
27544
27545 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
27546
27547         ftoastr: comment fix
27548         * lib/ftoastr.c: "little" -> "little or no" in comment
27549
27550 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
27551
27552         stdint: port to GCC 4.3 + OSX + Octave
27553         On this platform, stdint.h is buggy and defines int64_t to long
27554         long int.  The replacement defined it to long int, causing
27555         problems with C++ style name mangling.  Instead, trust the system
27556         definition if INT64_MAX is defined, and likewise for the unsigned
27557         variant.   Problem reported by Jarno Rajahalme in
27558         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
27559         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
27560         and don't mess with int64_t and INT64_MAX in this case.
27561         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
27562
27563 2010-11-24  Bruno Haible  <bruno@clisp.org>
27564
27565         doc: Corrections regarding MacOS X 10.4 and 10.5.
27566         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
27567         MacOS X.
27568         Reported by Simon Josefsson.
27569
27570 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
27571
27572         Uninstall ".bin" files installed by relocwrapper.
27573         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
27574         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
27575         unless it is already there.
27576
27577 2010-11-21  Bruno Haible  <bruno@clisp.org>
27578
27579         Update for NetBSD 5.0.
27580         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
27581         NetBSD; the test fails on NetBSD 5.0.
27582         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
27583         about NetBSD.
27584
27585 2010-11-21  Bruno Haible  <bruno@clisp.org>
27586
27587         Update for HP-UX 11.23 and HP-UX 11.31.
27588         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
27589         HP-UX.
27590
27591 2010-11-21  Bruno Haible  <bruno@clisp.org>
27592
27593         Update for MacOS X 10.5.
27594         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
27595         MacOS X; the test fails on MacOS X 10.5.8.
27596         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
27597         about MacOS X.
27598
27599 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
27600
27601         bootstrap: add bootstrap_sync option.
27602         See discussion at
27603         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
27604         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
27605         * build-aux/bootstrap: Accept --bootstrap-sync to update
27606         bootstrap if it is not identical to the local gnulib's
27607         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
27608         enable this by default.  Accept --no-bootstrap-sync to disable
27609         it.
27610
27611 2010-11-20  Bruno Haible  <bruno@clisp.org>
27612
27613         Ensure that <features.h> is included before __GLIBC__ is tested.
27614         * lib/printf-parse.h: Include <features.h>.
27615         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
27616         Reported by Mike Frysinger <vapier@gentoo.org>.
27617
27618         Ensure that <features.h> is included before __GLIBC__ is tested.
27619         * lib/wchar.in.h: Include <features.h>.
27620         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
27621         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
27622         Reported by Mike Frysinger <vapier@gentoo.org>.
27623
27624         Ensure that <features.h> is included before __GLIBC__ is tested.
27625         * lib/arpa_inet.in.h: Include <features.h>.
27626         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
27627         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
27628         Reported by Mike Frysinger <vapier@gentoo.org>.
27629
27630         Ensure that <features.h> is included before __GLIBC__ is tested.
27631         * build-aux/link-warning.h: Include <features.h>.
27632         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
27633         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
27634         Reported by Mike Frysinger <vapier@gentoo.org>.
27635
27636         Ensure that <features.h> is included before __GLIBC__ is tested.
27637         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
27638         Reported by Mike Frysinger <vapier@gentoo.org>.
27639
27640 2010-11-20  Bruno Haible  <bruno@clisp.org>
27641
27642         memmem: Fix autoconf test.
27643         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
27644
27645 2010-11-20  Bruno Haible  <bruno@clisp.org>
27646
27647         Port to uClibc.
27648         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
27649         * lib/fcntl.in.h: Likewise.
27650         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
27651         * lib/mbrtowc.c (mbrtowc): Likewise.
27652         * lib/relocatable.c (find_shared_library_fullname): Likewise.
27653         * lib/strerror_r.c: Likewise.
27654         * lib/unistr/u8-strnlen.c: Likewise.
27655         * lib/vasnprintf.c (decimal_point_char): Likewise.
27656         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
27657         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
27658         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
27659         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
27660         * tests/test-sigaction.c (handler, main): Likewise.
27661         * lib/freading.h: Treat uClibc like a non-glibc platform.
27662         * lib/freading.c: Likewise.
27663         * lib/gettext.h: Likewise.
27664         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
27665         Likewise.
27666         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
27667         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
27668         * lib/propername.c (proper_name_utf8): Likewise.
27669         * lib/spawn.in.h: Likewise.
27670         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
27671         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
27672         mem_cd_iconveh_internal): Likewise.
27673         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
27674         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
27675         strstr, strcasestr): Likewise.
27676         * lib/unicodeio.c (unicode_to_mb): Likewise.
27677         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
27678         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
27679         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
27680         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
27681         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
27682         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
27683         * lib/unistr/u8-stpncpy.c: Likewise.
27684         * lib/vasnprintf.c (VASNPRINTF): Likewise.
27685         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
27686         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
27687         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
27688         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
27689         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
27690         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
27691         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
27692         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
27693         Likewise.
27694         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
27695         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
27696         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
27697         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
27698         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
27699         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
27700         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
27701         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
27702         * tests/test-getopt.h (OPTIND_MIN): Likewise.
27703         * tests/test-striconveha.c (main): Likewise.
27704         * tests/test-vasnprintf-posix.c (test_function): Likewise.
27705         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
27706         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
27707         * doc/posix-functions/getline.texi: Likewise.
27708         Reported by Mike Frysinger <vapier@gentoo.org>.
27709
27710 2010-11-20  Bruno Haible  <bruno@clisp.org>
27711
27712         nproc: Fix condition.
27713         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
27714         HAVE_PTHREAD_AFFINITY_NP.
27715
27716 2010-11-20  Bruno Haible  <bruno@clisp.org>
27717
27718         Fix a comment.
27719         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
27720
27721 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
27722
27723         ftoastr: don't assume snprintf
27724         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
27725         Implement a subset of snprintf here, by using sprintf safely.
27726         * modules/ftoastr (Depends-on): Remove snprintf.
27727
27728 2010-11-19  Jim Meyering  <meyering@redhat.com>
27729
27730         test-rename.h: fix compilation failure
27731         * tests/test-rename.h (test_rename): Add omitted "}".
27732
27733 2010-11-17  Jim Meyering  <meyering@redhat.com>
27734
27735         maint.mk: add a URL discussing the no-@acronym policy
27736         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
27737
27738 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
27739
27740         ftoastr: depend on snprintf, improve comments
27741         * lib/ftoastr.c: Also mention Loitsch's draft.
27742         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
27743         needed in the current implementation, but it might simplify
27744         speeding up the code later.
27745         * modules/ftoastr: Depend on snprintf; this improves portability.
27746         Suggested by Bruno Haible in the same email.
27747
27748         ftoastr: port to hosts lacking strtof and strtold
27749         Problem reported by Bruno Haible in
27750         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
27751         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
27752         environment and strtold (and presumably strtof) are not available.
27753         * modules/ftoastr (Files): Add m4/c-strtod.m4.
27754         (configure.ac): Require gl_C99_STRTOLD.
27755
27756 2010-11-18  Bruno Haible  <bruno@clisp.org>
27757
27758         c-strtold: Avoid link error on AIX 7.
27759         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
27760         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
27761         (gl_C_STRTOLD): Test whether strtold_l exists.
27762         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27763
27764 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
27765
27766         intprops: new macro INT_BITS_STRLEN_BOUND
27767         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
27768         ftoastr.h.  This exposes an internal of intprops.h that was formerly
27769         not exposed.  Also, it uses a slightly tighter bound than before;
27770         though this makes no practical difference, we might as well be as
27771         tight as we easily can.
27772
27773         ftoastr: new module, for lossless conversion of floats to short strings
27774         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
27775         * modules/ftoastr: New files.
27776
27777 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
27778
27779         bootstrap: port to Solaris sed
27780         * build-aux/bootstrap (get_version): Port to Solaris sed.
27781         See Ralf Wildenhues's note in
27782         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
27783
27784 2010-11-14  Jim Meyering  <meyering@redhat.com>
27785
27786         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
27787         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
27788         and move definition closer to sole use.
27789
27790 2010-11-13  Jim Meyering  <meyering@redhat.com>
27791
27792         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
27793         Now we require at least autoconf-2.59, which means the work-around
27794         is no longer needed.
27795         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
27796         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
27797         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
27798         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
27799         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
27800
27801 2010-11-13  Bruno Haible  <bruno@clisp.org>
27802
27803         rename, renameat: Avoid test failures at NFS mounted locations.
27804         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
27805         functions.
27806         (test_rename): Use assert_nonexistent.
27807         * tests/test-rename.c: Include <dirent.h>.
27808         * tests/test-renameat.c: Likewise.
27809         Reported by Gary V. Vaughan <gary@gnu.org>.
27810
27811         rename, renameat: Document Linux bug with NFS
27812         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
27813         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
27814         * doc/posix-functions/renameat.texi: Likewise.
27815         Suggested by Eric Blake.
27816
27817 2010-11-13  Bruno Haible  <bruno@clisp.org>
27818
27819         rename test: Add comments.
27820         * tests/test-rename.h (test_rename): Add structure and comments.
27821
27822 2010-11-13  Eric Blake  <eblake@redhat.com>
27823
27824         maintainer-makefile: cover a few more files
27825         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
27826         scripts generated within C files, for libvirt.
27827
27828 2010-11-13  Bruno Haible  <bruno@clisp.org>
27829
27830         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
27831         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
27832         character, return the number of bytes that belong together, not always
27833         1.
27834         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
27835         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
27836         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
27837         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
27838         number of bytes of an invalid character.
27839         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
27840         (main): Invoke it.
27841         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
27842         results.
27843         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
27844         malformed byte sequences.
27845         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
27846         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
27847         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
27848         Reported by Ben Pfaff and Paolo Bonzini.
27849
27850 2010-11-13  Bruno Haible  <bruno@clisp.org>
27851
27852         openat: Work around glibc bug with fchownat() and empty file names.
27853         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
27854         (gl_FUNC_FCHOWNAT): Invoke it.
27855         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
27856         * doc/posix-functions/fchownat.texi: Document the glibc bug.
27857         Reported by Gary V. Vaughan <gary@gnu.org>.
27858
27859 2010-11-13  Bruno Haible  <bruno@clisp.org>
27860
27861         openat: Ensure autoconf macro ordering.
27862         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
27863         gl_USE_SYSTEM_EXTENSIONS.
27864         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
27865
27866 2010-11-13  Bruno Haible  <bruno@clisp.org>
27867
27868         Update comments.
27869         * lib/unistr/u8-check.c: Update file name in comments.
27870         * lib/unistr/u8-mblen.c: Likewise.
27871         * lib/unistr/u8-prev.c: Likewise.
27872         * lib/unistr/u8-strmblen.c: Likewise.
27873         * lib/unistr/u8-strmbtouc.c: Likewise.
27874
27875 2010-11-13  Jim Meyering  <meyering@redhat.com>
27876
27877         tests: avoid test failure on Solaris 10 due to lack of PATH export
27878         * tests/test-update-copyright.sh: Don't forget to export PATH.
27879
27880         init.sh: ensure that IFS is defined, just in case...
27881         * tests/init.sh (setup_): Ensure that IFS is defined,
27882         so that saving and restoring it works as expected.  This
27883         appears to be useful at least for an old version of dash
27884         from a long time ago (RH 6).  See here for details:
27885         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
27886
27887         maint.mk: tighten "test a == b" check
27888         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
27889         test to files that contain something like #!/bin/sh.
27890         Without this, coreutils would get two false positives in
27891         the comments of C source files.
27892
27893 2010-11-12  Eric Blake  <eblake@redhat.com>
27894
27895         bootstrap: fix typo in previous attempt
27896         * build-aux/bootstrap (buildreq): Correct the grouping.
27897         Reported by Paul Eggert.
27898
27899         maintainer-makefile: prohibit test x == x
27900         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
27901         Based on a report by Matthias Bolte.
27902
27903         bootstrap: allow FreeBSD gzip
27904         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
27905         which has no '.' and goes to stderr.
27906         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
27907         Reported by Matthias Bolte.
27908
27909         maintainer-makefile: check for i18n setup
27910         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
27911         will likely work.
27912
27913 2010-11-12  Bruno Haible  <bruno@clisp.org>
27914
27915         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
27916         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
27917         * lib/nanosleep.c (nanosleep): Likewise.
27918
27919 2010-11-11  Bruno Haible  <bruno@clisp.org>
27920
27921         fcntl-h: Fix for use of C++ on glibc systems.
27922         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
27923         also on glibc systems in C++ mode.
27924         Reported by Gary V. Vaughan <gary@gnu.org>.
27925
27926 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
27927
27928         mknod: avoid false failure with dash
27929         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
27930
27931 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
27932
27933         unlink: Fix "is it should" typo in diagnostic.
27934         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
27935         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
27936
27937 2010-11-11  Bruno Haible  <bruno@clisp.org>
27938
27939         Tests for module 'strerror_r-posix'.
27940         * modules/strerror_r-posix-tests: New file.
27941         * tests/test-strerror_r.c: New file.
27942         * tests/test-string-c++.cc: Check the signature of strerror_r.
27943
27944         New module 'strerror_r-posix'.
27945         * lib/string.in.h (strerror_r): New declaration.
27946         * lib/strerror_r.c: New file.
27947         * m4/strerror_r.m4: New file.
27948         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
27949         of strerror_r.
27950         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
27951         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
27952         * modules/strerror_r-posix: New file.
27953         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
27954         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
27955         * doc/posix-functions/strerror_r.texi: Mention the new module and the
27956         portability problems.
27957
27958 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
27959
27960         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
27961         line is also considered for output. Quoted function name in shell
27962         command, so temporary files for functions like MyClass::operator()
27963         are removed correctly without errors.
27964
27965 2010-11-09  Bruno Haible  <bruno@clisp.org>
27966
27967         * doc/posix-functions/strerror.texi: List more failing platforms.
27968
27969         * doc/posix-functions/strerror.texi: Add a comment.
27970
27971 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
27972
27973         fdopendir: fix bug on MacOS X when low on file descriptors
27974
27975         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
27976         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
27977         All callers changed.
27978         (fdopendir): Invoke save_cwd at the top level, not after using
27979         multiple dup() calls to use up file descriptors.  Then retry
27980         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
27981         less than the maximum number of open file descriptors, because
27982         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
27983         on Mac OS X 10.6.4 for tar 1.24
27984         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
27985         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
27986         and for tar 1.25
27987         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
27988
27989 2010-11-07  Bruno Haible  <bruno@clisp.org>
27990
27991         vasnprintf: Support I flag on glibc systems.
27992         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
27993         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
27994         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
27995         snprintf function.
27996         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
27997         glibc systems.
27998         * tests/test-vasnprintf-posix3.c: New file.
27999         * modules/vasnprintf-posix-tests (Files): Add it.
28000         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
28001
28002 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
28003
28004         [html] Fix copy/paste bug: Use unique name for compiler warnings.
28005         * MODULES.html.sh: For compiler warnings, use name
28006         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
28007
28008 2010-11-05  Eric Blake  <eblake@redhat.com>
28009
28010         ceil, floor: avoid spurious failure with icc
28011         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
28012         [denormals-as-zero] when optimizing without -mieee-fp option.
28013         * tests/test-floorf2.c (floorf_reference): Likewise.
28014         * tests/test-ceilf1.c (dummy): New function.
28015         (main): Use it to outsmart icc's optimization.
28016         * tests/test-floorf1.c (dummy, main): Likewise.
28017
28018         tests: require working signbit
28019         * modules/ceilf-tests (Depends-on): Add signbit.
28020         * modules/ceill-tests (Depends-on): Likewise.
28021         * modules/floorf-tests (Depends-on): Likewise.
28022         * modules/floorl-tests (Depends-on): Likewise.
28023         * modules/round-tests (Depends-on): Likewise.
28024         * modules/roundf-tests (Depends-on): Likewise.
28025         * modules/roundl-tests (Depends-on): Likewise.
28026         * modules/trunc-tests (Depends-on): Likewise.
28027         * modules/truncf-tests (Depends-on): Likewise.
28028         * modules/truncl-tests (Depends-on): Likewise.
28029
28030         strtod: work around icc bug
28031         * lib/strtod.c (minus_zero): Define to working value.
28032         (strtod): Use it to avoid icc bug.
28033
28034         copysign: enhance tests
28035         * modules/copysign-tests (Files): Add minus-zero.h.
28036         * tests/test-copysign.c (main): Also test zeros.
28037
28038 2010-11-04  Eric Blake  <eblake@redhat.com>
28039
28040         ceil, floor, round, trunc: enhance tests of -0
28041         * tests/test-ceilf1.c (main): Ensure correct sign of result.
28042         * tests/test-ceill.c (main): Likewise.
28043         * tests/test-floorf1.c (main): Likewise.
28044         * tests/test-floorl.c (main): Likewise.
28045         * tests/test-round1.c (main): Likewise.
28046         * tests/test-roundf1.c (main): Likewise.
28047         * tests/test-roundl.c (main): Likewise.
28048         * tests/test-trunc1.c (main): Likewise.
28049         * tests/test-truncf1.c (main): Likewise.
28050         * tests/test-truncl.c (main): Likewise.
28051
28052 2010-11-04  Eric Blake  <eblake@redhat.com>
28053
28054         frexp, tests: work around ICC bug with -zero
28055         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
28056         works with more compilers.
28057         * tests/minus-zero.h: New file.
28058         * modules/ceilf-tests (Files): Include it.
28059         * modules/ceill-tests (Files): Likewise.
28060         * modules/floorf-tests (Files): Likewise.
28061         * modules/floorl-tests (Files): Likewise.
28062         * modules/frexp-nolibm-tests (Files): Likewise.
28063         * modules/frexp-tests (Files): Likewise.
28064         * modules/frexpl-nolibm-tests (Files): Likewise.
28065         * modules/frexpl-tests (Files): Likewise.
28066         * modules/isnan-tests (Files): Likewise.
28067         * modules/isnand-nolibm-tests (Files): Likewise.
28068         * modules/isnand-tests (Files): Likewise.
28069         * modules/isnanf-nolibm-tests (Files): Likewise.
28070         * modules/isnanf-tests (Files): Likewise.
28071         * modules/isnanl-nolibm-tests (Files): Likewise.
28072         * modules/isnanl-tests (Files): Likewise.
28073         * modules/round-tests (Files): Likewise.
28074         * modules/roundf-tests (Files): Likewise.
28075         * modules/roundl-tests (Files): Likewise.
28076         * modules/ldexpl-tests (Files): Likewise.
28077         * modules/signbit-tests (Files): Likewise.
28078         * modules/snprintf-posix-tests (Files): Likewise.
28079         * modules/sprintf-posix-tests (Files): Likewise.
28080         * modules/strtod-tests (Files): Likewise.
28081         * modules/trunc-tests (Files): Likewise.
28082         * modules/truncf-tests (Files): Likewise.
28083         * modules/truncl-tests (Files): Likewise.
28084         * modules/vsnprintf-posix-tests (Files): Likewise.
28085         * modules/vsprintf-posix-tests (Files): Likewise.
28086         * modules/vasnprintf-posix-tests (Files): Likewise.
28087         * modules/vasprintf-posix-tests (Files): Likewise.
28088         * tests/test-ceilf1.c (main): Use it.
28089         * tests/test-ceill.c (main): Likewise.
28090         * tests/test-floorf1.c (main): Likewise.
28091         * tests/test-floorl.c (main): Likewise.
28092         * tests/test-frexp.c (main): Likewise.
28093         * tests/test-frexpl.c (main): Likewise.
28094         * tests/test-isnan.c (main): Likewise.
28095         * tests/test-isnand.h (main): Likewise.
28096         * tests/test-isnanf.h (main): Likewise.
28097         * tests/test-isnanl.h (main): Likewise.
28098         * tests/test-ldexpl.c (main): Likewise.
28099         * tests/test-round.c (main): Likewise.
28100         * tests/test-roundf.c (main): Likewise.
28101         * tests/test-roundl.c (main): Likewise.
28102         * tests/test-signbit.c (test_signbitf, test_signbitd)
28103         (test_signbitl): Likewise.
28104         * tests/test-snprintf-posix.h (test_function): Likewise.
28105         * tests/test-sprintf-posix.h (test_function): Likewise.
28106         * tests/test-strtod.c (main): Likewise.
28107         * tests/test-trunc1.c (main): Likewise.
28108         * tests/test-truncf1.c (main): Likewise.
28109         * tests/test-truncl.c (main): Likewise.
28110
28111         isnanl: work around icc bug
28112         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
28113
28114 2010-11-03  Eric Blake  <eblake@redhat.com>
28115
28116         tests: fix compiler warnings
28117         * tests/test-getopt.h (test_getopt): Fix condition.
28118         * tests/test-getopt_long.h (test_getopt_long): Likewise.
28119         * tests/test-pipe2.c (main): Likewise.
28120         * tests/test-quotearg-simple.c (main): Avoid icc warning.
28121
28122         utimens: fix broken m4 test
28123         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
28124
28125 2010-10-28  Bruno Haible  <bruno@clisp.org>
28126
28127         posix_spawn*, getdtablesize: Relax license.
28128         * modules/posix_spawn (License): Change to LGPLv2+.
28129         * modules/posix_spawnp (License): Likewise.
28130         * modules/posix_spawn-internal (License): Likewise.
28131         * modules/posix_spawnattr_init (License): Likewise.
28132         * modules/posix_spawnattr_getflags (License): Likewise.
28133         * modules/posix_spawnattr_setflags (License): Likewise.
28134         * modules/posix_spawnattr_getpgroup (License): Likewise.
28135         * modules/posix_spawnattr_setpgroup (License): Likewise.
28136         * modules/posix_spawnattr_getschedparam (License): Likewise.
28137         * modules/posix_spawnattr_setschedparam (License): Likewise.
28138         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
28139         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
28140         * modules/posix_spawnattr_getsigdefault (License): Likewise.
28141         * modules/posix_spawnattr_setsigdefault (License): Likewise.
28142         * modules/posix_spawnattr_getsigmask (License): Likewise.
28143         * modules/posix_spawnattr_setsigmask (License): Likewise.
28144         * modules/posix_spawnattr_destroy (License): Likewise.
28145         * modules/posix_spawn_file_actions_init (License): Likewise.
28146         * modules/posix_spawn_file_actions_addclose (License): Likewise.
28147         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
28148         * modules/posix_spawn_file_actions_addopen (License): Likewise.
28149         * modules/posix_spawn_file_actions_destroy (License): Likewise.
28150         * modules/getdtablesize (License): Likewise.
28151         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
28152
28153 2010-10-26  Bruno Haible  <bruno@clisp.org>
28154
28155         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
28156         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
28157         Cygwin and mingw.
28158         Suggested by Eric Blake.
28159
28160 2010-10-26  Bruno Haible  <bruno@clisp.org>
28161
28162         stdio: Work around compilation error due to renameat() on Solaris 10.
28163         * lib/stdio.in.h: Include <unistd.h> on Solaris.
28164         * lib/renameat.c: Don't include <unistd.h> here.
28165         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
28166         Reported by Paul Eggert and Eric Blake.
28167
28168 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
28169
28170         renameat: port to Solaris 10, which declares renameat in unistd.h
28171
28172         * lib/renameat.c: Include unistd.h before stdio.h, because
28173         Solaris 10 declares renameat in unistd.h.  Problem encountered
28174         when building GNU tar 1.24 on Solaris 10.
28175
28176 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
28177
28178         fdopendir: fix C89 compilation
28179         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
28180         compilers.
28181
28182 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
28183
28184         inttostr: simplify by removing unnecessary redundancy
28185         * lib/anytostr.c: Don't include verify.h.
28186         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
28187         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
28188         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
28189         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
28190         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
28191         Likewise.
28192         * modules/inttostr (Depends-on): Remove 'verify'.
28193
28194 2010-10-23  Bruno Haible  <bruno@clisp.org>
28195
28196         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
28197         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
28198         Reported by Eric Blake.
28199
28200 2010-10-23  Bruno Haible  <bruno@clisp.org>
28201
28202         Tests: Fix LOCALE_JA on MirBSD 10.
28203         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
28204         to an UTF-8 locale.
28205         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
28206         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
28207         Reported by Eric Blake.
28208
28209 2010-10-21  Bruno Haible  <bruno@clisp.org>
28210
28211         nl_langinfo test: Avoid test failure on NetBSD 5.
28212         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
28213         Reported by Eric Blake.
28214
28215 2010-10-21  Eric Blake  <eblake@redhat.com>
28216
28217         c-stack: work around libsigsegv 2.8 bug
28218         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
28219         overflow on at least PowerPC64.
28220
28221 2010-10-17  Bruno Haible  <bruno@clisp.org>
28222
28223         userspec: Drop redundant file.
28224         * modules/userspec (Files): Remove lib/inttostr.h.
28225
28226 2010-10-17  Bruno Haible  <bruno@clisp.org>
28227
28228         nl_langinfo tests: Silence some warnings.
28229         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
28230         Reported by Jim Meyering.
28231
28232 2010-10-17  Bruno Haible  <bruno@clisp.org>
28233
28234         Make use of GCC's attribute __alloc_size__.
28235         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
28236         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
28237         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
28238         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
28239         __alloc_size__.
28240         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
28241         Suggested by Jim Meyering.
28242
28243 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
28244
28245         bootstrap: anchor .gitignore entries.
28246         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
28247         with...
28248         (insert_vc_ignore): ... this new function, which prepends `/' to
28249         all .gitignore entries before passing them to
28250         insert_sorted_if_absent.
28251
28252 2010-10-16  Bruno Haible  <bruno@clisp.org>
28253
28254         nextafter: Fix configure check.
28255         * modules/nextafter (configure.ac): Correct expected prototype.
28256
28257 2010-10-16  Bruno Haible  <bruno@clisp.org>
28258
28259         termios: Update documentation.
28260         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
28261
28262 2010-10-16  Bruno Haible  <bruno@clisp.org>
28263
28264         tests: Make them compile with TinyCC.
28265         * tests/test-strstr.c (main): Remove parentheses around array
28266         initializer.
28267
28268 2010-10-15  Eric Blake  <eblake@redhat.com>
28269
28270         ignore-value: make header idempotent
28271         * lib/ignore-value.h: Add double-inclusion guards.
28272         Reported by Stefan Berger.
28273
28274 2010-10-15  Jim Meyering  <meyering@redhat.com>
28275
28276         GNUmakefile: handle "stable" target, not "major"
28277         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
28278         lists in maint.mk and announce-gen.  Without this, "make stable"
28279         would fail to ensure that $(VERSION) is up to date.
28280
28281 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
28282
28283         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
28284         & co.
28285
28286 2010-10-14  Bruno Haible  <bruno@clisp.org>
28287
28288         vasnprintf: Don't set errno to 0.
28289         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
28290         block that sets it to 0.
28291         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
28292
28293 2010-10-14  Bruno Haible  <bruno@clisp.org>
28294
28295         socketlib: Fix.
28296         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
28297         gl_PREREQ_SYS_H_WINSOCK2.
28298         Reported by Ian Beckwith <ianb@erislabs.net>.
28299
28300 2010-10-13  Jim Meyering  <meyering@redhat.com>
28301
28302         test-select-stdin.c: avoid warn_unused_result warnings
28303         * tests/test-select-stdin.c: Include "macros.h".
28304         ASSERT that read and fflush succeed.
28305
28306 2010-10-13  Jim Meyering  <meyering@redhat.com>
28307
28308         git-version-gen: do require git-VC'd files in cwd
28309         * build-aux/git-version-gen: Reject a git version string
28310         if there are no commits associated with the current directory.
28311         This avoids an unlikely false-positive (unrelated dir whose parent
28312         repository also contains a tag matching v*), as pointed out
28313         by Giuseppe Scrivano in
28314         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
28315
28316 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
28317
28318         argv-iter: omit nonconforming declaration
28319         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
28320         enum arg_iter_err declaration, which doesn't conform to C99.
28321         Solaris 10 cc warns about this.
28322
28323 2010-10-13  Eric Blake  <eblake@redhat.com>
28324
28325         termios: fix compilation on mingw
28326         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
28327         (gl_TERMIOS_H): Adjust it on mingw.
28328         * modules/termios (Makefile.am): Substitute new key.
28329         * lib/termios.in.h (includes): Make include_next conditional.
28330         * doc/posix-headers/termios.texi (termios.h): Update
28331         documentation.
28332         Reported by Daniel P. Berrange.
28333
28334 2010-10-13  Jim Meyering  <meyering@redhat.com>
28335
28336         git-version-gen: don't require that .git/ be in the current dir
28337         * build-aux/git-version-gen: Adjust this script so that it works
28338         when run from any working directory beneath the top-level .git/-
28339         containing directory.  Inspired by a patch from Giuseppe Scrivano,
28340         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
28341
28342         test-select: avoid warn_unused_result warnings
28343         * tests/test-select.c: Include "macros.h".
28344         ASSERT that each call to read, write, and pipe succeeds.
28345         While not technically required, also check each "close".
28346         * modules/select-tests (Files): Add tests/macros.h.
28347
28348         test-symlinkat: remove declaration of unused local
28349         * tests/test-symlinkat.c (main): Remove unused local, "buf".
28350
28351         test-inttostr: avoid shadowing warnings
28352         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
28353         and use malloc rather than the stack for the same reason as
28354         mentioned in the comment justifying the other allocation.
28355
28356 2010-10-11  Bruno Haible  <bruno@clisp.org>
28357
28358         stdlib: Allow multiple gnulib generated replacements to coexist.
28359         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
28360         Reported by Sam Steingold <sds@gnu.org>.
28361
28362 2010-10-11  Jim Meyering  <meyering@redhat.com>
28363
28364         fix a documentation typo
28365         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
28366
28367 2010-10-11  Eric Blake  <eblake@redhat.com>
28368
28369         futimens: work around Solaris 11 bug
28370         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
28371         * tests/test-futimens.h (test_futimens): Enhance, rather than
28372         weaken test.
28373         * doc/posix-functions/futimens.texi (futimens): Document the bug.
28374
28375 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
28376
28377         Indentation.
28378         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
28379         higher-level operators more to the left.
28380
28381 2010-10-11  Jim Meyering  <meyering@redhat.com>
28382
28383         test-futimens: avoid unwarranted test failure on Solaris 5.11
28384         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
28385         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
28386         because it tries to dereference the NULL name argument.
28387
28388 2010-10-11  Bruno Haible  <bruno@clisp.org>
28389
28390         Indentation.
28391         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
28392         indentation.
28393
28394 2010-10-11  Jim Meyering  <meyering@redhat.com>
28395
28396         spawn.in.h: make indentation consistent with parentheses
28397         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
28398         Make indentation consistent with parentheses.
28399
28400 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
28401
28402         Fix mismatched parens in previous commit
28403         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
28404         parens.
28405
28406 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
28407
28408         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
28409
28410         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
28411         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
28412         * lib/malloca.c: Include "verify.h".
28413         (verify1): Remove, replacing with a verify call.
28414         * lib/relocwrapper.c (verify1): Likewise.
28415         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
28416         Likewise.
28417         * modules/malloca (Depends-on): Add 'verify'.
28418         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
28419         * modules/vasnprintf (Depends-on): Add 'verify'.
28420         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
28421         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28422         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28423         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28424         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28425         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28426         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28427
28428         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
28429
28430         Formerly the style was sometimes 2*X - 1, because the C standard
28431         was wrongly thought to disallow ?: in integral constant expressions.
28432         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
28433         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
28434         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
28435         * lib/stdint.in.h (_verify_intmax_size): Likewise.
28436         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
28437         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
28438         verify that time_t cannot be floating.
28439
28440 2010-10-08  Eric Blake  <eblake@redhat.com>
28441
28442         time: enforce recent POSIX ruling that time_t is integral
28443         * lib/time.in.h (__time_t_must_be_integral): Detect any
28444         problematic systems, allowing the rest of gnulib to assume POSIX.
28445
28446 2010-10-08  Jim Meyering  <meyering@redhat.com>
28447
28448         fdopendir: fix a bug on systems lacking openat and /proc support
28449         OpenBSD 4.7 is one such system.  The most noticeable effect was
28450         failure of any application making nontrivial use of fts: rm, du,
28451         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
28452           ./rm: traversal failed: `a': Bad file descriptor
28453         Debugging that, you see that even though FD 6 was closed just
28454         prior to the opendir call in fd_clone_opendir, its resulting
28455         dir->dd_fd was 8, rather than the expected value of 6:
28456
28457         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
28458         93                close (fd);
28459         (gdb) n
28460         94                dir = fd_clone_opendir (dupfd);
28461         (gdb) n
28462         95                saved_errno = errno;
28463         (gdb) p dir->dd_fd
28464         $11 = 8
28465
28466         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
28467         The problem is that on OpenBSD, fd_clone_opendir has to resort
28468         to using the old-style save/restore CWD mechanism, due to its
28469         lack of openat/proc support, and *that* would steal the FD (6)
28470         that opendir was supposed to use.
28471
28472         The fix is to squirrel away the desired FD so that save_cwd uses a
28473         different one, and then free the dest FD right before calling opendir.
28474         That guarantees opendir will use the required file descriptor.
28475
28476         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
28477
28478 2010-10-08  Bruno Haible  <bruno@clisp.org>
28479
28480         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
28481         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
28482
28483 2010-10-08  Bruno Haible  <bruno@clisp.org>
28484
28485         nanosleep: Make replacement POSIX compliant.
28486         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
28487         is out of range.
28488         Reported by Jim Meyering.
28489
28490 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
28491
28492         bootstrap: add hook for altering gnulib.mk, for Bison
28493         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
28494         the Bison bootstrapping process can rewrite file names and variables
28495         in this file before later parts of 'bootstrap' use the file.
28496         Bison wants to include lib/gnulib.mk from the top-level makefile,
28497         so it needs the file names in this file to be relative to the top
28498         level, not relative to lib; plus it needs variable names to be
28499         rewritten.
28500         (slurp): Use the new function.
28501
28502         bootstrap: reformat for readability
28503         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
28504
28505 2010-10-08  Eric Blake  <eblake@redhat.com>
28506
28507         docs: update cygwin progress
28508         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
28509         1.7.7.
28510         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
28511         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
28512         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
28513         * doc/posix-functions/carg.texi (carg): Likewise.
28514         * doc/posix-functions/cargf.texi (cargf): Likewise.
28515         * doc/posix-functions/casin.texi (casin): Likewise.
28516         * doc/posix-functions/casinf.texi (casinf): Likewise.
28517         * doc/posix-functions/casinh.texi (casinh): Likewise.
28518         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
28519         * doc/posix-functions/catan.texi (catan): Likewise.
28520         * doc/posix-functions/catanf.texi (catanf): Likewise.
28521         * doc/posix-functions/catanh.texi (catanh): Likewise.
28522         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
28523         * doc/posix-functions/ccos.texi (ccos): Likewise.
28524         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
28525         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
28526         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
28527         * doc/posix-functions/cexp.texi (cexp): Likewise.
28528         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
28529         * doc/posix-functions/cimag.texi (cimag): Likewise.
28530         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
28531         * doc/posix-functions/clog.texi (clog): Likewise.
28532         * doc/posix-functions/clogf.texi (clogf): Likewise.
28533         * doc/posix-functions/conj.texi (conj): Likewise.
28534         * doc/posix-functions/conjf.texi (conjf): Likewise.
28535         * doc/posix-functions/cpow.texi (cpow): Likewise.
28536         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
28537         * doc/posix-functions/cproj.texi (cproj): Likewise.
28538         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
28539         * doc/posix-functions/creal.texi (creal): Likewise.
28540         * doc/posix-functions/crealf.texi (crealf): Likewise.
28541         * doc/posix-functions/csin.texi (csin): Likewise.
28542         * doc/posix-functions/csinf.texi (csinf): Likewise.
28543         * doc/posix-functions/csinh.texi (csinh): Likewise.
28544         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
28545         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
28546         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
28547         * doc/posix-functions/ctan.texi (ctan): Likewise.
28548         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
28549         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
28550         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
28551         * doc/posix-headers/complex.texi (complex.h): Likewise.
28552
28553 2010-10-07  Jim Meyering  <meyering@redhat.com>
28554
28555         parse-datetime: avoid compilation failure on OpenBSD 4.7
28556         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
28557         This works around a compilation failure on OpenBSD 4.7:
28558         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
28559
28560 2010-10-07  Eric Blake  <eblake@redhat.com>
28561
28562         docs: update cygwin progress
28563         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
28564         1.7.6.
28565         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
28566         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
28567         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
28568         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
28569         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
28570         Likewise.
28571         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
28572         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
28573         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
28574         Likewise.
28575         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
28576         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
28577         Likewise.
28578         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
28579         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
28580         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
28581         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
28582         Likewise.
28583         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
28584         Likewise.
28585         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
28586
28587         docs: update parse-datetime history
28588         * doc/parse-datetime.texi (Authors of parse_datetime): Better
28589         documentation of this function's history and alternatives.
28590
28591         cygwin: use more robust version check
28592         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
28593         exclude an eventual cygwin 1.9.1.
28594         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
28595         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
28596         (gl_FUNC_STRCASESTR): Likewise.
28597         Reported by Bruno Haible.
28598
28599 2010-10-06  Bruno Haible  <bruno@clisp.org>
28600
28601         string, sys_select: Avoid #including large headers unless necessary.
28602         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
28603         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
28604         OSF/1, BeOS, Haiku.
28605         Reported by Jim Meyering.
28606
28607 2010-10-05  Eric Blake  <eblake@redhat.com>
28608
28609         memmem, strstr, strcasestr: fix bug with long periodic needle
28610         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
28611         periodic needle having false positive.
28612         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
28613         and cygwin 1.7.7.
28614         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
28615         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
28616         (gl_FUNC_STRCASESTR): Likewise.
28617         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
28618         * tests/test-memmem.c (main): Expose the bug.
28619         * tests/test-strcasestr.c (main): Likewise.
28620         * tests/test-strstr.c (main): Likewise.
28621         * tests/test-c-strcasestr.c (main): Likewise.
28622         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
28623         * doc/posix-functions/strstr.texi (strstr): Likewise.
28624         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
28625         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
28626
28627 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
28628
28629         parse-datetime: do some more renaming
28630         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
28631         parse_datetime, not get_date.  Mention the renaming.
28632         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
28633         in comments.
28634         * m4/bison.m4: Likewise.
28635
28636 2010-10-05  Eric Blake  <eblake@redhat.com>
28637
28638         parse-datetime: better name than get_date
28639         * NEWS: Reword the deprecation notice.
28640         * modules/get_date: Rename to modules/parse-datetime.
28641         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
28642         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
28643         * lib/get_date.y: Rename to lib/parse-datetime.y.
28644         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
28645         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
28646         * doc/getdate.texi: Provide fallback wrapper.
28647         * lib/getdate.h: Move guts, and wrap...
28648         * lib/parse-datetime.h: ...new file.
28649         * lib/parse-datetime.y (get_date): Rename...
28650         (parse_datetime): ...to this.
28651         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
28652         (gl_PARSE_DATETIME): ...to this.
28653         * doc/posix-functions/getdate.texi (get_date): Provide fallback
28654         documentation.
28655         * modules/getdate (Files): Provide fallback docs and header.
28656         (Notice, Depends-on): Update references.
28657         * tests/test-parse-datetime.c: Likewise.
28658         * DEPENDENCIES: Likewise.
28659         * MODULES.html.sh (Date and time <time.h>): Likewise.
28660         * doc/parse-datetime.texi (Date input formats)
28661         (Authors of parse_datetime): Likewise.
28662         * modules/parse-datetime (Files, configure.ac, Makefile.am)
28663         (Include): Likewise.
28664         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
28665         * gnulib-tool: Likewise.
28666         * m4/bison.m4 (gl_BISON): Likewise.
28667         Suggested by Bruno Haible.
28668
28669 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
28670
28671         more ports to Solaris tr, which needs [] around ranges
28672         * gnulib-tool: Solaris tr needs [] around ranges.
28673         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
28674         * tests/test-pipe-filter-gi1.c (main): Likewise.
28675         * tests/test-pipe-filter-ii1.c (main): Likewise.
28676
28677 2010-10-05  Eric Blake  <eblake@redhat.com>
28678
28679         bootstrap: fix Solaris regression
28680         * build-aux/bootstrap (check_versions): Solaris tr still needs []
28681         around ranges.
28682         Reported by Pádraig Brady.
28683
28684         bootstrap: work with pkg-config
28685         * build-aux/bootstrap (check_versions): Also transliterate - in
28686         prerequisite name.
28687         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
28688         prerequisites that were already found, to avoid confusion.
28689         Reported by Justin Clift.
28690
28691         faccessat: remove unused wrappers
28692         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
28693         presence of these wrappers dragged in -lgen on Solaris.
28694         Reported by Clemens Brogi; fix suggested by Paul Eggert.
28695
28696 2010-10-05  Jim Meyering  <meyering@redhat.com>
28697
28698         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
28699         * Makefile (sc_pragma_columns): New syntax-check rule.
28700
28701 2010-10-04  Bruno Haible  <bruno@clisp.org>
28702
28703         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
28704         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
28705         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
28706         Reported by Bruce Korb and Eric Blake.
28707
28708 2010-10-04  Bruno Haible  <bruno@clisp.org>
28709
28710         threadlib: Make option --with-libpth-prefix work.
28711         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
28712         use $LIBPTH, not just -lpth.
28713
28714 2010-10-04  Bruno Haible  <bruno@clisp.org>
28715
28716         Avoid line length limitation from HP NonStop system header files.
28717         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
28718         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
28719         * lib/ctype.in.h: Likewise.
28720         * lib/dirent.in.h: Likewise.
28721         * lib/errno.in.h: Likewise.
28722         * lib/fcntl.in.h: Likewise.
28723         * lib/float.in.h: Likewise.
28724         * lib/getopt.in.h: Likewise.
28725         * lib/iconv.in.h: Likewise.
28726         * lib/inttypes.in.h: Likewise.
28727         * lib/langinfo.in.h: Likewise.
28728         * lib/locale.in.h: Likewise.
28729         * lib/math.in.h: Likewise.
28730         * lib/netdb.in.h: Likewise.
28731         * lib/netinet_in.in.h: Likewise.
28732         * lib/poll.in.h: Likewise.
28733         * lib/pthread.in.h: Likewise.
28734         * lib/pty.in.h: Likewise.
28735         * lib/sched.in.h: Likewise.
28736         * lib/se-selinux.in.h: Likewise.
28737         * lib/search.in.h: Likewise.
28738         * lib/signal.in.h: Likewise.
28739         * lib/spawn.in.h: Likewise.
28740         * lib/stdarg.in.h: Likewise.
28741         * lib/stddef.in.h: Likewise.
28742         * lib/stdint.in.h: Likewise.
28743         * lib/stdio.in.h: Likewise.
28744         * lib/stdlib.in.h: Likewise.
28745         * lib/string.in.h: Likewise.
28746         * lib/strings.in.h: Likewise.
28747         * lib/sys_file.in.h: Likewise.
28748         * lib/sys_ioctl.in.h: Likewise.
28749         * lib/sys_select.in.h: Likewise.
28750         * lib/sys_socket.in.h: Likewise.
28751         * lib/sys_stat.in.h: Likewise.
28752         * lib/sys_time.in.h: Likewise.
28753         * lib/sys_times.in.h: Likewise.
28754         * lib/sys_utsname.in.h: Likewise.
28755         * lib/sys_wait.in.h: Likewise.
28756         * lib/sysexits.in.h: Likewise.
28757         * lib/termios.in.h: Likewise.
28758         * lib/time.in.h: Likewise.
28759         * lib/unistd.in.h: Likewise.
28760         * lib/wchar.in.h: Likewise.
28761         * lib/wctype.in.h: Likewise.
28762         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
28763         * modules/ctype (Makefile.am): Likewise.
28764         * modules/dirent (Makefile.am): Likewise.
28765         * modules/errno (Makefile.am): Likewise.
28766         * modules/fcntl-h (Makefile.am): Likewise.
28767         * modules/float (Makefile.am): Likewise.
28768         * modules/getopt-posix (Makefile.am): Likewise.
28769         * modules/iconv-h (Makefile.am): Likewise.
28770         * modules/inttypes (Makefile.am): Likewise.
28771         * modules/langinfo (Makefile.am): Likewise.
28772         * modules/locale (Makefile.am): Likewise.
28773         * modules/math (Makefile.am): Likewise.
28774         * modules/netdb (Makefile.am): Likewise.
28775         * modules/netinet_in (Makefile.am): Likewise.
28776         * modules/poll-h (Makefile.am): Likewise.
28777         * modules/pthread (Makefile.am): Likewise.
28778         * modules/pty (Makefile.am): Likewise.
28779         * modules/sched (Makefile.am): Likewise.
28780         * modules/search (Makefile.am): Likewise.
28781         * modules/selinux-h (Makefile.am): Likewise.
28782         * modules/signal (Makefile.am): Likewise.
28783         * modules/spawn (Makefile.am): Likewise.
28784         * modules/stdarg (Makefile.am): Likewise.
28785         * modules/stddef (Makefile.am): Likewise.
28786         * modules/stdint (Makefile.am): Likewise.
28787         * modules/stdio (Makefile.am): Likewise.
28788         * modules/stdlib (Makefile.am): Likewise.
28789         * modules/string (Makefile.am): Likewise.
28790         * modules/strings (Makefile.am): Likewise.
28791         * modules/sys_file (Makefile.am): Likewise.
28792         * modules/sys_ioctl (Makefile.am): Likewise.
28793         * modules/sys_select (Makefile.am): Likewise.
28794         * modules/sys_socket (Makefile.am): Likewise.
28795         * modules/sys_stat (Makefile.am): Likewise.
28796         * modules/sys_time (Makefile.am): Likewise.
28797         * modules/sys_times (Makefile.am): Likewise.
28798         * modules/sys_utsname (Makefile.am): Likewise.
28799         * modules/sys_wait (Makefile.am): Likewise.
28800         * modules/sysexits (Makefile.am): Likewise.
28801         * modules/termios (Makefile.am): Likewise.
28802         * modules/time (Makefile.am): Likewise.
28803         * modules/unistd (Makefile.am): Likewise.
28804         * modules/wchar (Makefile.am): Likewise.
28805         * modules/wctype (Makefile.am): Likewise.
28806
28807 2010-10-04  Bruno Haible  <bruno@clisp.org>
28808
28809         read-file tests: Avoid a test failure on NonStop Kernel.
28810         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
28811         a regular file.
28812         Reported by Joachim Schmitz <schmitz@hp.com>.
28813
28814 2010-10-03  Bruno Haible  <bruno@clisp.org>
28815
28816         gnulib-tool: Fixes for --create-testdir with --libtool.
28817         * gnulib-tool (func_get_automake_snippet): Don't augment
28818         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
28819         an executable.
28820         (func_create_testdir): Handle module 'alloca' like func_import.
28821         Reported by Bruce Korb <bruce.korb@gmail.com>.
28822
28823 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
28824
28825         Avoid some lines longer than 80 characters.
28826         * lib/stdint.in.h: Break long comment lines.
28827         * lib/math.in.h: Likewise.
28828         (_GL_NUM_UINT_WORDS): New macro, for readability.
28829         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
28830         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
28831         * lib/stdlib.in.h: Likewise.
28832         * lib/spawn.in.h: Likewise.
28833         * lib/sys_socket.in.h: Update an URL.
28834         * lib/sys_stat.in.h: Break long line.
28835
28836 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
28837
28838         Improve pmccabe2html.
28839         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
28840         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
28841         when the sources change. Remove the line in the HTML about "Used
28842         ranges" (which implied that there might be other unused ranges),
28843         rename "Resume" to "Summary" (easier to understand for more users).
28844         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
28845         styles, and some unnecessary blank lines.
28846
28847 2010-10-03  Bruno Haible  <bruno@clisp.org>
28848             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
28849
28850         acl: Add support for ACLs on NonStop Kernel.
28851         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
28852         Check whether the function aclsort() exists.
28853         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
28854         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
28855         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
28856         (acl_nontrivial [HAVE_ACLSORT]: New function.
28857         (file_has_acl): Implement for NonStop Kernel.
28858         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
28859         (qset_acl): Implement for NonStop Kernel.
28860         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
28861         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
28862         (main): Implement for NonStop Kernel.
28863         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
28864         Kernel. Handle this flavor.
28865         * tests/test-set-mode-acl.sh: Likewise.
28866         * tests/test-copy-acl.sh: Likewise.
28867         * tests/test-copy-file.sh: Likewise.
28868
28869 2010-10-03  Bruno Haible  <bruno@clisp.org>
28870
28871         Info about ACLs on NonStop Kernel.
28872         * doc/acl-resources.txt: Add info about NonStop Kernel.
28873         References by Joachim Schmitz <schmitz@hp.com>.
28874
28875 2010-10-02  Bruno Haible  <bruno@clisp.org>
28876
28877         Define missing EDQUOT on NonStop Kernel.
28878         * lib/errno.in.h (EDQUOT): Assign a value if missing.
28879         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
28880         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
28881         missing.
28882         * doc/posix-headers/errno.texi: Mention the NSK bug.
28883         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
28884         Reported by Joachim Schmitz <schmitz@hp.com>.
28885
28886 2010-10-02  Bruno Haible  <bruno@clisp.org>
28887
28888         Update doc for POSIX:2008.
28889         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
28890         Update URL of POSIX specification.
28891
28892 2010-10-02  Bruno Haible  <bruno@clisp.org>
28893
28894         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
28895         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
28896         from gnulib, not from Automake.
28897
28898 2010-10-02  Bruno Haible  <bruno@clisp.org>
28899
28900         New module 'system-posix'.
28901         * modules/system-posix: New file.
28902         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
28903         module is present.
28904         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
28905         GNULIB_SYSTEM_POSIX.
28906         * modules/stdlib (Depends-on): Remove sys_wait.
28907         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
28908         * doc/posix-functions/system.texi: Mention the new module.
28909         * doc/posix-headers/stdlib.texi: Likewise.
28910         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
28911         define test_sys_wait_macros to a no-op.
28912         Reported by Sam Steingold <sds@gnu.org>.
28913
28914 2010-09-30  Bruno Haible  <bruno@clisp.org>
28915
28916         More renaming from 'getdate' to 'get_date'.
28917         * doc/get_date.texi: Renamed from doc/getdate.texi.
28918         * modules/get_date (Files): Update.
28919         * MODULES.html.sh (Date and time <time.h>): Update.
28920         * DEPENDENCIES: Update.
28921         * gnulib-tool: Update comment.
28922         * m4/bison.m4 (gl_BISON): Likewise.
28923         * m4/get_date.m4 (gl_GET_DATE): Likewise.
28924
28925 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
28926
28927         bootstrap: support ACLOCAL_FLAGS during aclocal
28928         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
28929         can add additional -I dir for third-party .m4 files.
28930
28931 2010-09-30  Eric Blake  <eblake@redhat.com>
28932
28933         bootstrap: use glibtoolize on MacOS
28934         * build-aux/bootstrap (check_versions): Convert libtool into
28935         libtoolize.
28936         (tool search): Move libtool check earlier, and look for
28937         glibtoolize for MacOS.
28938         (gnulib_tool_options): Auto-add --libtool when appropriate.
28939         Reported by Justin Clift.
28940
28941         poll: fix typo that broke test on MacOS
28942         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
28943         Reported by Justin Clift.
28944
28945         getdate: rename to get_date
28946         Note: getdate.h is not renamed, to minimize client impact.
28947         * modules/getdate: Mark obsolete.  Move old contents...
28948         * modules/get_date: ...to new module name.
28949         * modules/getdate-tests: Move...
28950         * modules/get_date-tests: ...here.
28951         * m4/getdate.m4: Move...
28952         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
28953         * lib/getdate.y: Move...
28954         * lib/get_date.y: ...here.
28955         * tests/test-getdate.c: Move...
28956         * tests/test-get_date.c: ...here.
28957         * doc/posix-functions/getdate.texi (getdate): Update name.
28958         * NEWS: Mention the change.
28959
28960 2010-09-29  Bruno Haible  <bruno@clisp.org>
28961
28962         Separate the module 'waitpid' from the module 'sys_wait'.
28963         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
28964         present.
28965         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
28966         gl_MODULE_INDICATOR_FOR_TESTS.
28967         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
28968         * modules/sys_wait (Depends-on): Remove waitpid.
28969         (Makefile.am): Substitute GNULIB_WAITPID.
28970         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
28971         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
28972         signature only if the 'waitpid' module is present.
28973         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
28974         * NEWS: Mention the change.
28975         * modules/grantpt (Depends-on): Add waitpid.
28976         * modules/wait-process (Depends-on): Likewise.
28977
28978 2010-09-29  Bruno Haible  <bruno@clisp.org>
28979
28980         More tests for module 'sys_wait'.
28981         * modules/sys_wait-c++-tests: New file.
28982         * tests/test-sys_wait-c++.cc: New file.
28983         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
28984         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
28985
28986 2010-09-29  Bruno Haible  <bruno@clisp.org>
28987
28988         New module 'waitpid'.
28989         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
28990         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
28991         Don't include <process.h>.
28992         (waitpid): Declare only, using modern idiom.
28993         * m4/waitpid.m4: New file.
28994         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
28995         * modules/waitpid: New file.
28996         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
28997         (Makefile.am): Update.
28998         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
28999
29000 2010-09-28  Bruno Haible  <bruno@clisp.org>
29001
29002         poll: Assume ANSI C.
29003         * lib/poll.c (poll): Use an ANSI C declaration.
29004
29005 2010-09-28  Bruno Haible  <bruno@clisp.org>
29006
29007         poll-h: Create poll.h on all platforms.
29008         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
29009         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
29010         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
29011         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
29012         (gl_REPLACE_POLL_H): Don't set POLL_H.
29013         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
29014         * modules/poll-h (Depends-on): Add include_next.
29015         (Makefile.am): Create poll.h unconditionally. Substitute also
29016         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
29017
29018 2010-09-28  Bruno Haible  <bruno@clisp.org>
29019
29020         Tests for module 'poll-h'.
29021         * modules/poll-h-c++-tests: New file.
29022         * tests/test-poll-h-c++.cc: New file.
29023
29024         Tests for module 'poll-h'.
29025         * modules/poll-h-tests: New file.
29026         * tests/test-poll-h.c: New file.
29027
29028 2010-09-28  Bruno Haible  <bruno@clisp.org>
29029
29030         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
29031         * modules/poll-h (Depends-on): Add 'extensions'.
29032
29033 2010-09-28  Bruno Haible  <bruno@clisp.org>
29034
29035         New module 'poll-h'.
29036         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
29037         (poll): Use modern idiom.
29038         * modules/poll-h: New file.
29039         * modules/poll (Files): Remove lib/poll.in.h.
29040         (Depends-on): Add poll-h.
29041         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
29042         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
29043         * m4/poll_h.m4: New file.
29044         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
29045         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
29046         and invoke gl_REPLACE_POLL_H.
29047         * lib/poll.c: Use common idiom.
29048         * tests/test-poll.c: Likewise.
29049         * doc/posix-headers/poll.texi: Mention the poll-h module.
29050         Suggested by Eric Blake.
29051
29052 2010-09-26  Bruno Haible  <bruno@clisp.org>
29053
29054         sys_wait: Implement WSTOPSIG.
29055         * lib/sys_wait.in.h (WSTOPSIG): New macro.
29056         Reported by Simon Josefsson.
29057
29058 2010-09-26  Simon Josefsson  <simon@josefsson.org>
29059
29060         stdlib, sys_wait: Avoid compilation error on mingw.
29061         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
29062
29063 2010-09-26  Bruno Haible  <bruno@clisp.org>
29064
29065         stdlib tests: Avoid code duplication.
29066         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
29067         * modules/sys_wait-tests (Files): Likewise.
29068         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
29069         * tests/test-stdlib.c: Include test-sys_wait.h.
29070         (main): Invoke test_sys_wait_macros.
29071         * tests/test-sys_wait.c: Include test-sys_wait.h.
29072         (main): Invoke test_sys_wait_macros.
29073
29074 2010-09-25  Simon Josefsson  <simon@josefsson.org>
29075
29076         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
29077         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
29078         sure Windows sockets are working before calling getaddrinfo.
29079         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
29080         * doc/gnulib.texi (Windows sockets): Fix typo.
29081
29082 2010-09-25  Bruno Haible  <bruno@clisp.org>
29083
29084         Tests for module 'regex-quote'.
29085         * modules/regex-quote-tests: New file.
29086         * tests/test-regex-quote.c: New file.
29087
29088         New module 'regex-quote'.
29089         * lib/regex-quote.h: New file.
29090         * lib/regex-quote.c: New file.
29091         * modules/regex-quote: New file.
29092         Suggested by Reuben Thomas <rrt@sc3d.org>.
29093
29094 2010-09-24  Bruno Haible  <bruno@clisp.org>
29095
29096         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
29097         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
29098
29099 2010-09-23  Bruno Haible  <bruno@clisp.org>
29100
29101         setenv: Relax license.
29102         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
29103         Blake.
29104         Requested by Eric Blake.
29105
29106 2010-09-22  Bruno Haible  <bruno@clisp.org>
29107
29108         termios: Relax license.
29109         * modules/termios (License): Change to LGPLv2+.
29110         Requested by Eric Blake.
29111
29112 2010-09-22  Bruno Haible  <bruno@clisp.org>
29113
29114         threadlib: Allow the package to change the default to 'no'.
29115         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
29116         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
29117         Reported by Paul Eggert.
29118
29119 2010-09-22  Pádraig Brady  <P@draigbrady.com>
29120             Bruno Haible  <bruno@clisp.org>
29121
29122         Fix endless loop in mbmemcasecoll.
29123         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
29124         byte.
29125         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
29126
29127 2010-09-22  Bruno Haible  <bruno@clisp.org>
29128
29129         Tests for module 'memcoll'.
29130         * modules/memcoll-tests: New file.
29131         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
29132
29133         memcoll, xmemcoll: Clarify size vs. length.
29134         * modules/memcoll.c (memcoll0): Clarify specification.
29135         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
29136         passed to collate_error.
29137
29138 2010-09-22  Bruno Haible  <bruno@clisp.org>
29139
29140         Tests for module 'memcasecmp'.
29141         * modules/memcasecmp-tests: New file.
29142         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
29143
29144 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
29145
29146         * lib/pthread.in.h: Add split double-inclusion guard, and include
29147         system <pthread.h> if there is one.  Use @@-style as in other
29148         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
29149         pthread.h doesn't.
29150         (pthread_mutexattr_destroy, pthread_mutexattr_init):
29151         (pthread_mutexattr_settype, pthread_mutex_trylock):
29152         New static inline functions, if there's no system <pthread.h>.
29153         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
29154         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
29155         Approximate with mutexes if the system lacks spinlocks, as in
29156         MacOS.
29157         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
29158         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
29159         @@-style.  Check for spinlocks separately.
29160         (gl_PTHREAD_DEFAULTS): New macro.
29161         * modules/pthread: Redo to use a more typical style for in.h files.
29162
29163 2010-09-21  Eric Blake  <eblake@redhat.com>
29164
29165         net_if: enhance tests
29166         * tests/test-net_if.c (main): Move signature checks earlier.
29167         Print failures to stderr.
29168         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
29169         Document the bug that we do not yet fix.
29170
29171 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
29172
29173         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
29174         about gnulib, not GSS.
29175
29176 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
29177
29178         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
29179         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
29180         for Emacs.
29181         * build-aux/pmccabe2html: Make Makefile.am example code more
29182         cut-and-paste friendly.
29183
29184 2010-09-21  Simon Josefsson  <simon@josefsson.org>
29185
29186         * tests/test-net_if.c: New file.
29187         * modules/net_if-tests: New file.
29188
29189 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
29190
29191         pthread: add pthread_spin_destroy
29192         * lib/pthread.in.h (pthread_spin_destroy): New function.
29193
29194 2010-09-19  Bruno Haible  <bruno@clisp.org>
29195
29196         gnulib-tool: Fix --help output.
29197         * gnulib-tool (func_usage): Fix help message.
29198         Reported by Reuben Thomas <rrt@sc3d.org>.
29199
29200 2010-09-18  Jim Meyering  <meyering@redhat.com>
29201
29202         maint.mk: avoid unexpanded \n in two diagnostics
29203         * top/maint.mk (sc_prohibit_always_true_header_tests):
29204         Don't use a literal \n in a halt=... assignment.  It would not be
29205         expanded, and the two \n bytes would appear in the diagnostic output
29206         rather than the desired newline.  Use halt=$$(printf ... instead.
29207         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
29208
29209 2010-09-18  Bruno Haible  <bruno@clisp.org>
29210
29211         netinet_in: Doc tweak.
29212         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
29213         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29214
29215 2010-09-18  Jim Meyering  <meyering@redhat.com>
29216
29217         init.sh: correct an outdated comment
29218         * tests/init.sh (create_exe_shims_):  s/function/alias/
29219
29220         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
29221         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
29222         a file named "*.exe" is removed between the glob expansion and the
29223         processing of that oddly named file.
29224
29225 2010-09-17  Eric Blake  <eblake@redhat.com>
29226
29227         mirbsd: add some more support
29228         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
29229         in BSD family.
29230         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
29231         devices as OpenBSD.
29232         * m4/host-os.m4 (mirbsd): Add MirBSD.
29233
29234         tests: fix unportable assumption on sys/wait.h
29235         * tests/test-sys_wait.c (main): Relax test.
29236         * tests/test-stdlib.c (main): Likewise.
29237
29238         init.sh: accommodate directory with no .exes
29239         * tests/init.sh: Accomodate directory containing only scripts.
29240
29241         tests: avoid compiler warning
29242         * tests/test-stdlib.c (main): Use the variable.
29243
29244         fdutimens, fdutimensat: update signature, again
29245         * lib/utimens.h (gl_futimens): Delete, and move signature...
29246         (fdutimens): ...here.
29247         (fdutimensat): Rearrange signature.
29248         (lutimensat): Rename variable for clarity.
29249         * lib/fdutimensat.c (fdutimensat): Update signature.
29250         * lib/utimens.c (fdutimens): Likewise.
29251         (gl_futimens): Delete.
29252         (utimens, lutimens): Update callers.
29253         * lib/futimens.c (futimens): Likewise.
29254         * tests/test-fdutimensat.c: Likewise.
29255         * tests/test-utimens.c: Likewise.
29256         * tests/test-futimens.h: Update comment.
29257         * NEWS: Mention this.
29258         Suggested by Paul Eggert.
29259
29260 2010-09-17  Bruno Haible  <bruno@clisp.org>
29261
29262         Take over the maintenance of some older macros from Autoconf.
29263         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
29264         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
29265         GNU Autoconf.
29266         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
29267         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
29268
29269 2010-09-17  Eric Blake  <eblake@redhat.com>
29270
29271         fdutimensat: drop atflag validation
29272         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
29273         with valid fd, to close a race scenario where futimens is
29274         unsupported and FILE was replaced by a symlink.
29275         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
29276         accordingly.
29277         Suggested by Paul Eggert.
29278
29279 2010-09-16  Bruno Haible  <bruno@clisp.org>
29280
29281         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
29282         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
29283
29284 2010-09-16  Bruno Haible  <bruno@clisp.org>
29285
29286         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
29287         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
29288         login_tty exists.
29289         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29290
29291 2010-09-16  Bruno Haible  <bruno@clisp.org>
29292
29293         login_tty: Make the replacement code work on BSD systems.
29294         * lib/login_tty.c: Include <sys/ioctl.h>.
29295         (login_tty): Use ioctl TIOCSCTTY when available.
29296         * modules/login_tty (Depends-on): Add sys_ioctl.
29297         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29298
29299 2010-09-16  Bruno Haible  <bruno@clisp.org>
29300
29301         login_tty: Stricter unit test.
29302         * modules/login_tty-tests (Depends-on): Add tcgetsid.
29303         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
29304         and tcgetsid() after login_tty.
29305         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29306
29307 2010-09-16  Bruno Haible  <bruno@clisp.org>
29308
29309         New module 'tcgetsid'.
29310         * lib/tcgetsid.c: New file.
29311         * m4/tcgetsid.m4: New file.
29312         * modules/tcgetsid: New file.
29313         * modules/termios (Depends-on): Add c++defs, warn-on-use.
29314         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
29315         GNULIB_TCGETSID, HAVE_TCGETSID.
29316         * lib/termios.in.h: Include <sys/types.h>.
29317         (tcgetsid): New declaration.
29318         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
29319         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
29320         * doc/posix-functions/tcgetsid.texi: Mention the new module.
29321         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
29322
29323 2010-09-16  Bruno Haible  <bruno@clisp.org>
29324
29325         Tests for module 'termios'.
29326         * modules/termios-c++-tests: New file.
29327         * modules/termios-tests: New file.
29328         * tests/test-termios-c++.cc: New file.
29329         * tests/test-termios.c: New file.
29330
29331         New module 'termios'.
29332         * modules/termios: New file.
29333         * lib/termios.in.h: New file.
29334         * m4/termios_h.m4: New file.
29335         * doc/posix-headers/termios.texi: Mention the new module.
29336
29337 2010-09-16  Eric Blake  <eblake@redhat.com>
29338
29339         fdutimensat: add an atflag parameter
29340         * lib/fdutimensat.c (fdutimensat): Add new parameter.
29341         * lib/utimens.h (fdutimensat): Update prototype.
29342         * tests/test-fdutimensat.c: Adjust test to match.
29343         * NEWS: Document the change.
29344         Suggested by Paul Eggert.
29345
29346 2010-09-16  Bruno Haible  <bruno@clisp.org>
29347
29348         Fix typos in comments.
29349         * lib/striconveh.h: Fix typo in comment.
29350         * lib/login_tty.c (login_tty): Likewise.
29351
29352 2010-09-15  Bruno Haible  <bruno@clisp.org>
29353
29354         stdlib: clarify MirBSD WEXITSTATUS bug
29355         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
29356         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
29357
29358 2010-09-15  Eric Blake  <eblake@redhat.com>
29359
29360         stdlib: work around MirBSD WEXITSTATUS bug
29361         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
29362         * modules/stdlib (Depends-on): Add sys_wait.
29363         * tests/test-sys_wait.c (main): Enhance test.
29364         * tests/test-stdlib.c (main): Likewise.
29365         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
29366
29367         docs: mention MacOS issue with WEXITSTATUS(constant)
29368         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
29369         issue.
29370         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
29371
29372         strnlen: add tests
29373         * modules/strnlen-tests: New file.
29374         * tests/test-strnlen.c: Likewise.
29375
29376 2010-09-14  Bruno Haible  <bruno@clisp.org>
29377
29378         unistr/base: Avoid link errors when module 'libunistring' is also used.
29379         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
29380         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
29381         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
29382         Declare also when HAVE_LIBUNISTRING is set.
29383         Reported by Pádraig Brady <P@draigbrady.com>.
29384
29385 2010-09-14  Eric Blake  <eblake@redhat.com>
29386
29387         test-rawmemchr: make more robust
29388         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
29389         (Depends-on, configure.ac): Add needed prerequisites to use it.
29390         * modules/memchr-tests (Files, Depends-on, configure.ac):
29391         Likewise, to avoid implicit reliance on memchr module prereqs.
29392         * tests/test-memchr.c (main): Ensure proper masking.
29393         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
29394         reads.
29395
29396         memchr: detect glibc Alpha bug
29397         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
29398         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
29399         Alpha.
29400         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
29401         * tests/test-memchr.c (main): Enhance test.
29402         Reported by Nelson H. F. Beebe.
29403
29404 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
29405
29406         fts, getcwd, glob: audit for dirfd returning -1
29407         * lib/fts.c (opendir): Remove #define; no longer used.
29408         (opendirat): New arg PDIR_FD.  All callers changed.
29409         (fts_build, _opendir2): Use new opendirat to avoid the need for
29410         dirfd, or for checking whether dirfd returns a negative value.
29411         Don't use opendir; always use openat followed by fdopendir.
29412         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
29413         it.
29414         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
29415         returns -1 here.
29416         * modules/fts (Depends-on): Remove dirfd.
29417         * modules/getcwd (Depends-on): Likewise.
29418
29419 2010-09-13  Eric Blake  <eblake@redhat.com>
29420
29421         float: fix broken MirBSD header
29422         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
29423         * doc/posix-headers/float.texi (float.h): Document it.
29424
29425 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
29426
29427         fts: use O_NOFOLLOW to avoid race condition when opening a directory
29428         * lib/fts.c (opendirat): New arg extra_flags.
29429         (__opendir2): Use it to avoid following symlinks when opening
29430         a directory, if symlinks are not supposed to be followed.  See
29431         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
29432
29433         fdopendir: preserve argument fd before returning
29434         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
29435         (fdopendir_with_dup, fd_clone_opendir): New static functions.
29436         (fdopendir): Use them, arranging for FD to be open to the same
29437         directory that it was when it started.  (It might be temporarily
29438         closed while fdopendir is running, so this not thread- or
29439         signal-safe.)  Be careful to do the right thing even when file
29440         descriptors are scarce and dup fails with errno == EMFILE.  See
29441         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
29442
29443 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
29444
29445         regex: Pass the system regex if its only problem is 32-bit regoff_t.
29446         * NEWS: Document change.
29447         * m4/regex.m4: Disable test for regoff_t size.
29448
29449 2010-09-13  Jim Meyering  <meyering@redhat.com>
29450
29451         fts: don't operate on an invalid file descriptor after failed dup
29452         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
29453         negative file descriptor.
29454
29455 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
29456
29457         savedir: add streamsavedir, deprecate fdsavedir
29458         * NEWS: Mention deprecation of fdsavedir.
29459         * lib/savedir.c (streamsavedir): New extern function, whose name
29460         ends in "savedir" to be consistent with the others.  This differs
29461         from savedirstream in that it doesn't close its argument.  The
29462         next version of GNU tar will use this instead of fdsavedir, to
29463         avoid some race conditions and conserve file descriptors.
29464         (savedirstream): Reimplement as a wrapper around streamsavedir.
29465         (fdsavedir): Add a comment deprecating this function.  As far as
29466         I know, only GNU tar used it, and GNU tar doesn't need it any more.
29467         * lib/savedir.h (streamsavedir): New decl.
29468         (fdsavedir): Add a comment deprecating this.
29469
29470 2010-09-10  Bruno Haible  <bruno@clisp.org>
29471
29472         langinfo: Fix last commit.
29473         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
29474         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
29475         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29476
29477 2010-09-10  Bruno Haible  <bruno@clisp.org>
29478
29479         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
29480         * lib/progreloc.c (O_EXEC): Define fallback.
29481
29482 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
29483
29484         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
29485         * NEWS: Document recent changes to fcntl-h.
29486         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
29487         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
29488         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
29489         Similarly for O_SEARCH; this last was already true, but not documented.
29490         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
29491         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
29492         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
29493         Likewise.
29494         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
29495         is zero, not whether it is defined.
29496         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
29497         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
29498         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
29499
29500 2010-09-10  Bruno Haible  <bruno@clisp.org>
29501
29502         langinfo, nl_langinfo: Fix for IRIX 5.3.
29503         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
29504         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
29505         HAVE_LANGINFO_YESEXPR.
29506         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
29507         HAVE_LANGINFO_YESEXPR.
29508         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
29509         HAVE_LANGINFO_T_FMT_AMPM is 0.
29510         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
29511         HAVE_LANGINFO_YESEXPR is 0.
29512         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
29513         NOEXPR.
29514         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
29515         * doc/posix-functions/nl_langinfo.texi: Likewise.
29516         Reported by Eric Blake.
29517
29518 2010-09-10  Bruno Haible  <bruno@clisp.org>
29519
29520         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
29521         * doc/glibc-functions/login_tty.texi: Mention the include file problem
29522         on FreeBSD 8.0 and OpenBSD 4.6.
29523         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
29524         * m4/pty_h.m4 (gl_PTY_H): Likewise.
29525         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
29526         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
29527         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
29528         ac_includes_default.
29529         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29530
29531 2010-09-09  Eric Blake  <eblake@redhat.com>
29532
29533         strsignal: work around NetBSD bug
29534         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
29535         * lib/string.in.h (includes): Likewise.
29536         * doc/posix-functions/strsignal.texi (strsignal): Document the
29537         bug.
29538         Reported by Nelson H. F. Beebe.
29539
29540         gnulib-tool: work with NetBSD /bin/sh
29541         * gnulib-tool (func_cache_var, func_cache_lookup_module)
29542         (func_get_description, func_get_comment, func_get_status)
29543         (func_get_notice, func_get_applicability, func_get_filelist)
29544         (func_get_dependencies, func_get_autoconf_early_snippet)
29545         (func_get_autoconf_snippet, func_get_automake_snippet)
29546         (func_get_include_directive, func_get_link_directive)
29547         (func_get_license, func_get_maintainer, func_import): Avoid
29548         shell syntax errors from parsing syntax extensions.
29549
29550 2010-09-09  Bruno Haible  <bruno@clisp.org>
29551
29552         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
29553         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
29554         a reliable way to determine whether the 'alias' command works.
29555
29556 2010-09-08  Jim Meyering  <meyering@redhat.com>
29557
29558         init.sh: penalize a set-x-impaired shell; don't disqualify it
29559         * tests/init.sh: Too many shells corrupt application stderr when
29560         you set -x, so we can't afford to disqualify them, since at least
29561         on Irix-6.5, that would disqualify all bourne shells.
29562         Instead, use a two-pass approach.
29563         On the first pass, try to find a shell that meets the stricter
29564         condition that set -x does not corrupt stderr.
29565         If no shell meets the stricter condition, retest each candidate
29566         shell, but without that extra condition.  Finally, when
29567         VERBOSE=yes is requested and set -x might cause trouble, simply
29568         issue a warning and refrain from enabling debug output.
29569
29570 2010-09-08  Eric Blake  <eblake@redhat.com>
29571
29572         unsetenv: fix OpenBSD bug
29573         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
29574         * doc/posix-functions/unsetenv.texi (unsetenv): Update
29575         documentation.
29576         Reported by Jim Meyering.
29577
29578         strtod: work around IRIX 6.5 bug
29579         * lib/strtod.c (strtod): Reparse number on shorter string if
29580         exponent parse was invalid.
29581         * tests/test-strtod.c (main): Add check for "0x1p 2".
29582         Reported by Tom G. Christensen.
29583
29584         getopt: optimize previous patch
29585         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
29586         empty variable.  Speed up awk script.
29587         Reported by Paolo Bonzini.
29588
29589 2010-09-08  Jim Meyering  <meyering@redhat.com>
29590
29591         test.sh: disqualify shells for which set -x corrupts stderr
29592         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
29593         and OpenBSD 4.7.  They make it so with "set -x", environment settings
29594         appear in stderr output.  For example, this command:
29595             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
29596         prints "P=1" on those two systems:
29597
29598 2010-09-08  Bruno Haible  <bruno@clisp.org>
29599
29600         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
29601         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
29602         commands, because some shells ignore redirections when there is an
29603         error in the command lookup.
29604         Reported by Eric Blake.
29605
29606 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
29607
29608         * lib/regex.h: Fix a mention of `regex_compile' (should be
29609         `re_compile_pattern').
29610         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
29611         (re_set_registers): Correct name of parameter in comment.
29612
29613         * doc/regex.texi: Add documentation for missing syntax flags.
29614         Remove commented-out documentation of defunct syntax option
29615         RE_NO_EMPTY_ALTS.
29616         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
29617         Add documentation of re_set_registers.
29618         Document trick to re-use a pattern buffer by setting fastmap manually.
29619         Update documentation of struct re_pattern_buffer per public members.
29620         Uncomment documentation of equivalence class operators and
29621         collating symbol operators, since they are now implemented,
29622         Explain leftmost-longest matching in relation to alternatives.
29623         Tidy documentation of substring matching.
29624         Remove POSIX documentation, which is done better in
29625         glibc, and refer the reader there. Keep BSD API documentation, as
29626         that is not readily available elsewhere.
29627
29628 2010-09-07  Eric Blake  <eblake@redhat.com>
29629
29630         getopt: handle POSIXLY_CORRECT set but not exported
29631         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
29632         export state of POSIXLY_CORRECT, due to bash set -o posix.
29633         Reported by Dustin J. Mitchell.
29634
29635 2010-09-05  Bruno Haible  <bruno@clisp.org>
29636
29637         gnulib-tool: Highlight the changed options.
29638         * gnulib-tool (func_usage): Display the --import, --add-import,
29639         --remove-import explanations in bold font.
29640
29641 2010-09-06  Karl Berry  <karl@gnu.org>
29642
29643         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
29644
29645 2010-09-05  Bruno Haible  <bruno@clisp.org>
29646
29647         uniwidth/width: Update comment.
29648         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
29649         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
29650
29651 2010-09-05  Bruno Haible  <bruno@clisp.org>
29652
29653         isinf, isnan: Relax license.
29654         * modules/isinf (License): Change from GPL to LGPL, with consent from
29655         Ben Pfaff.
29656         * modules/isnan (License): Likewise.
29657         Requested by Ludovic Courtès.
29658
29659 2010-09-04  Bruno Haible  <bruno@clisp.org>
29660
29661         gnulib-tool: Help migration from --import to --add-import or --update.
29662         * gnulib-tool: Emit a verbose error message when --import is used
29663         without any module name.
29664
29665 2010-09-04  Bruno Haible  <bruno@clisp.org>
29666
29667         Update doc about gnulib-tool.
29668         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
29669         'gnulib-tool --update' in more detail.
29670         Reported by Eric Blake.
29671
29672 2010-09-04  Bruno Haible  <bruno@clisp.org>
29673
29674         gnulib-tool: Change --import. New options --add/remove-import.
29675         * gnulib-tool: New options --add-import, --remove-import.
29676         (func_usage): Document them.
29677         (have_associative): Define always.
29678         (func_import): In import mode, don't merge the specified settings with
29679         the cached settings. Implement remove-import mode.
29680         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
29681         Explain when to use them versus --import.
29682         (Simple update): Use --add-import instead of --import.
29683         * NEWS: Mention the change.
29684
29685 2010-09-04  Bruno Haible  <bruno@clisp.org>
29686
29687         * doc/gnulib-tool.texi (Initial import): Update paragraph about
29688         separate gnulib.mk.
29689
29690 2010-09-04  Bruno Haible  <bruno@clisp.org>
29691
29692         gnulib-tool: Don't talk about CVS any more.
29693         * gnulib-tool (func_usage, func_import): Write "version control"
29694         instead of CVS.
29695
29696 2010-09-04  Jim Meyering  <meyering@redhat.com>
29697
29698         maint.mk: avoid obscure sc_copyright_check failure in coreutils
29699         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
29700         false positives (whose names may be ill-chosen) when searching
29701         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
29702         would cause a false-positive.
29703
29704         avoid coreutils "make distcheck" failure
29705         Coreutils tests with an absolute build directory name that contains
29706         a space.  Not quoting this directory name caused a failure.
29707         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
29708         * tests/test-vc-list-files-cvs.sh: Likewise.
29709
29710 2010-09-04  Bruno Haible  <bruno@clisp.org>
29711
29712         gnulib-tool: Avoid error when run in a package without Makefile.am.
29713         * gnulib-tool: When collecting the m4dirs in a package that does not
29714         have a Makefile.am, eliminate those directories that contain no
29715         gnulib-cache.m4. Fix expression that counts these directories.
29716
29717 2010-09-04  Bruno Haible  <bruno@clisp.org>
29718
29719         update-copyright test: Improve output when perl is missing or too old.
29720         * tests/test-update-copyright.sh: Move test of Perl version down after
29721         the test whether Perl exists. Provide an explanation relating Perl's
29722         error message to Automake's SKIP: message.
29723
29724 2010-09-04  Bruno Haible  <bruno@clisp.org>
29725
29726         Don't augment PATH in TESTS_ENVIRONMENT.
29727         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
29728         set abs_aux_dir instead of augmenting PATH.
29729         * modules/vc-list-files-tests (Makefile.am): Likewise.
29730         * tests/test-update-copyright.sh: Augment PATH here.
29731         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
29732         path_prepend_.
29733         * tests/test-vc-list-files-git.sh: Likewise.
29734
29735 2010-09-04  Jim Meyering  <meyering@redhat.com>
29736
29737         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
29738         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
29739
29740 2010-09-04  Bruno Haible  <bruno@clisp.org>
29741
29742         strdup: Fix compilation error in C++ mode.
29743         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
29744         the macro.
29745
29746 2010-09-04  Bruno Haible  <bruno@clisp.org>
29747
29748         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
29749         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
29750         macro into a function.
29751         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29752
29753 2010-09-04  Bruno Haible  <bruno@clisp.org>
29754
29755         Set PATH_SEPARATOR the same way autoconf does.
29756         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
29757         the value of PATH_SEPARATOR the same way autoconf-generated configure
29758         scripts do.
29759         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
29760         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
29761
29762 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
29763
29764         Set PATH_SEPARATOR the same way autoconf does.
29765         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
29766         the same way autoconf-generated configure scripts do.
29767         * posix-modules: Likewise.
29768
29769 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
29770
29771         hash: fix safe_hasher const typo
29772         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
29773         const; otherwise, there is a type error later.
29774
29775 2010-09-02  Jim Meyering  <meyering@redhat.com>
29776
29777         test-update-copyright.sh: require perl 5.8.0
29778         * tests/test-update-copyright.sh: Require 5.8.0,
29779         which Tom G. Christensen has confirmed is adequate,
29780         while 5.6.1 is not.
29781
29782 2010-09-02  Eric Blake  <eblake@redhat.com>
29783
29784         tests: init.sh improvements for re-exec'ing with zsh
29785         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
29786         -vx through shell re-exec.
29787         Reported by Tom G. Christensen.
29788
29789         wctype: fix typo in previous commit
29790         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
29791         Reported by Ludovic Courtès.
29792
29793 2010-09-02  Jim Meyering  <meyering@redhat.com>
29794
29795         test-update-copyright.sh: skip test if Perl is too old
29796         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
29797         Reported by Tom G. Christensen.
29798
29799 2010-09-02  Bruno Haible  <bruno@clisp.org>
29800
29801         wctype: Avoid compilation error on IRIX 6.5.30.
29802         * lib/wctype.in.h (iswblank): Declare with a replacement if
29803         REPLACE_ISWBLANK is set.
29804         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
29805         declared. Set REPLACE_ISWBLANK.
29806         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
29807         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
29808         * doc/posix-headers/wctype.texi: Likewise.
29809         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29810
29811 2010-09-01  Bruno Haible  <bruno@clisp.org>
29812
29813         New module 'socketlib'.
29814         * modules/socketlib: New file.
29815         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
29816         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
29817         * modules/sockets (Depends-on): Add socketlib.
29818         Suggested by Sam Steingold <sds@gnu.org>.
29819
29820 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
29821
29822         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
29823
29824         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
29825         when one needs search access to a directory but not read access.
29826         On systems where it is available, it works in some cases where
29827         O_RDONLY does not, namely on directories that are searchable but
29828         not readable, and which need only to be searchable.  If O_SEARCH
29829         is not available, fall back to the traditional method of using
29830         O_RDONLY.
29831
29832         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
29833         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
29834         when opening a directory that needs only to be searchable.
29835         * lib/chdir-safer.c (chdir_no_follow): Likewise.
29836         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
29837         * lib/openat-proc.c (openat_proc_name): Likewise.
29838         * lib/openat.c (openat_needs_fchdir): Likewise.
29839         * lib/save-cwd.c (save_cwd): Likewise.
29840         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
29841
29842 2010-08-28  Bruno Haible  <bruno@clisp.org>
29843
29844         New module 'host-cpu-c-abi'.
29845         * modules/host-cpu-c-abi: New file.
29846         * m4/host-cpu-c-abi.m4: New file, based on part of
29847         clisp/src/m4/general.m4.
29848         Requested by Sam Steingold <sds@gnu.org>.
29849
29850 2010-08-31  Eric Blake  <eblake@redhat.com>
29851         and Jim Meyering  <meyering@redhat.com>
29852
29853         hash: factor, and guard against misbehaving hasher function
29854         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
29855         of table->hasher's return value.  Also protect against a hash value
29856         so large that adding it to table->bucket results in a NULL pointer.
29857         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
29858         Use it in place of open-coded check-and-abort.
29859
29860 2010-08-30  Bruno Haible  <bruno@clisp.org>
29861
29862         hash: silence spurious clang warning
29863         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
29864         Reported by Eric Blake.
29865
29866 2010-08-30  Eric Blake  <eblake@redhat.com>
29867
29868         strstr, memmem, strcasestr: avoid leaked shell message
29869         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
29870         FreeBSD.
29871         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
29872         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
29873
29874         tests: silence clang warning
29875         * tests/test-malloca.c (do_allocation): Avoid dead store.
29876
29877 2010-08-29  Bruno Haible  <bruno@clisp.org>
29878
29879         gettext: Fix recent mistake.
29880         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
29881
29882 2010-08-29  Bruno Haible  <bruno@clisp.org>
29883
29884         selinux-h: Offer a --without-selinux option.
29885         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
29886         --without-selinux was specified, skip all tests and define
29887         HAVE_SELINUX_SELINUX_H to 0.
29888         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
29889         set LIB_SELINUX to empty.
29890         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
29891         gl_LIBSELINUX. If --without-selinux was specified, replace
29892         selinux/context.h.
29893         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
29894
29895 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29896             Bruno Haible  <bruno@clisp.org>
29897
29898         Make the module 'realloc-gnu' work again on AIX and OSF/1.
29899         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
29900         of HAVE_REALLOC.
29901         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
29902         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
29903         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
29904         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
29905
29906 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29907             Bruno Haible  <bruno@clisp.org>
29908
29909         Make the module 'calloc-gnu' work again on AIX and OSF/1.
29910         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
29911         HAVE_CALLOC.
29912         * lib/xmalloc.c: Update accordingly.
29913         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
29914         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
29915         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
29916
29917 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29918             Bruno Haible  <bruno@clisp.org>
29919
29920         Make the module 'malloc-gnu' work again on AIX and OSF/1.
29921         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
29922         HAVE_MALLOC.
29923         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
29924         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
29925         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
29926
29927 2010-08-29  Bruno Haible  <bruno@clisp.org>
29928
29929         Update modules list.
29930         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
29931         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
29932         (String handling <string.h>): Add astrxfrm.
29933         (File system functions): Add readlinkat.
29934
29935 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29936
29937         Tests for module 'realloc-gnu'.
29938         * modules/realloc-gnu-tests: New file.
29939         * tests/test-realloc-gnu.c: New file.
29940
29941         Tests for module 'calloc-gnu'.
29942         * modules/calloc-gnu-tests: New file.
29943         * tests/test-calloc-gnu.c: New file.
29944
29945         Tests for module 'malloc-gnu'.
29946         * modules/malloc-gnu-tests: New file.
29947         * tests/test-malloc-gnu.c: New file.
29948
29949 2010-08-28  Bruno Haible  <bruno@clisp.org>
29950
29951         Rename module 'realloc' -> 'realloc-gnu'.
29952         * modules/realloc-gnu: New file, copied from modules/realloc.
29953         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
29954         obsolete.
29955         * modules/mgetgroups (Depends-on): Update.
29956         * doc/posix-functions/realloc.texi: Update.
29957         * NEWS: Mention the change.
29958
29959         Rename module 'calloc' -> 'calloc-gnu'.
29960         * modules/calloc-gnu: New file, copied from modules/calloc.
29961         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
29962         obsolete.
29963         * doc/posix-functions/calloc.texi: Update.
29964         * NEWS: Mention the change.
29965
29966         Rename module 'malloc' -> 'malloc-gnu'.
29967         * modules/malloc-gnu: New file, copied from modules/malloc.
29968         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
29969         obsolete.
29970         * modules/argp (Depends-on): Update.
29971         * modules/regex (Depends-on): Update.
29972         * doc/posix-functions/malloc.texi: Update.
29973         * NEWS: Mention the change.
29974
29975 2010-08-28  Eric Blake  <eblake@redhat.com>
29976
29977         pread, pwrite: add missing dependency
29978         * modules/pread (Depends-on): Add extensions.
29979         * modules/pwrite (Depends-on): Likewise.
29980
29981 2010-08-28  Bruno Haible  <bruno@clisp.org>
29982
29983         unistr/u*-strchr: Fix tests dependencies.
29984         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
29985         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
29986         Reported by Ian Beckwith <ianb@erislabs.net>.
29987
29988 2010-08-28  Bruno Haible  <bruno@clisp.org>
29989
29990         read-file: Don't occupy too much unused memory.
29991         * lib/read-file.c (fread_file): Shrink the buffer at the end.
29992
29993 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
29994             Eric Blake  <eblake@redhat.com>
29995             Bruno Haible  <bruno@clisp.org>
29996
29997         read-file: Avoid memory reallocations with regular files.
29998         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
29999         (fread_file): With regular files, use the remaining length as the
30000         initial buffer size.  Check against overflow.
30001         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
30002         sys_stat.
30003
30004 2010-08-28  Bruno Haible  <bruno@clisp.org>
30005
30006         ftello: Relax license.
30007         * modules/ftello (License): Relax to LGPLv2+.
30008         Reported by Eric Blake.
30009
30010 2010-08-28  Bruno Haible  <bruno@clisp.org>
30011
30012         Avoid relocwrapper link errors due to gnulib replacement functions.
30013         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
30014         function.
30015         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30016
30017 2010-08-28  Bruno Haible  <bruno@clisp.org>
30018
30019         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
30020         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
30021         defined.
30022         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
30023         Suggested by Eric Blake.
30024
30025 2010-08-28  Bruno Haible  <bruno@clisp.org>
30026
30027         sys_socket, netdb: Ensure socklen_t gets defined.
30028         * modules/sys_socket (Depends-on): Add socklen.
30029         * modules/netdb (Depends-on): Likewise.
30030         * modules/getaddrinfo (Depends-on): Remove socklen.
30031         * modules/getsockopt (Depends-on): Likewise.
30032         * modules/setsockopt (Depends-on): Likewise.
30033         * tests/test-sys_socket.c: Check that socklen_t is defined.
30034         * tests/test-netdb.c: Likewise.
30035         * m4/socklen.m4: Update comments.
30036         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30037
30038 2010-08-27  Eric Blake  <eblake@redhat.com>
30039
30040         login_tty: add missing dependency
30041         * modules/login_tty (Depends-on): Add pty.
30042
30043 2010-08-26  Eric Blake  <eblake@redhat.com>
30044
30045         lib-symbol-versions: fix m4 quoting
30046         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
30047         format for AC_LINK_IFELSE.
30048
30049         glob: fix compile test
30050         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
30051
30052         btowc: fix missing file
30053         * modules/btowc (Files): Also ship locale-fr.m4.
30054
30055         lseek: fix link test
30056         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
30057         AC_LINK_IFELSE.
30058
30059         include_next: silence autoconf 2.68 warning
30060         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
30061         AC_COMPILE_IFELSE as special.
30062         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
30063         autoconf < 2.68.
30064
30065         acl: fix compilation test
30066         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
30067         AC_COMPILE_IFELSE.
30068
30069 2010-08-26  Bruno Haible  <bruno@clisp.org>
30070
30071         Modernize AC_TRY_RUN invocations.
30072         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
30073         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
30074         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
30075         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
30076         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
30077         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
30078         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
30079         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
30080         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
30081         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
30082         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
30083         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
30084         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
30085         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
30086         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
30087         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
30088         gl_MBRLEN_NUL_RETVAL): Likewise.
30089         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
30090         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
30091         Likewise.
30092         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
30093         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
30094         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
30095         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
30096         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
30097         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
30098         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
30099         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
30100         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
30101         Likewise.
30102         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
30103         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
30104         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
30105         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
30106         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
30107         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
30108         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
30109         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
30110         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
30111         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
30112
30113 2010-08-26  Bruno Haible  <bruno@clisp.org>
30114
30115         Modernize AC_TRY_LINK invocations.
30116         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
30117         AC_TRY_LINK.
30118         * m4/argp.m4 (gl_ARGP): Likewise.
30119         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
30120         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
30121         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
30122         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
30123         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
30124         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
30125         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
30126         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
30127         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
30128         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
30129         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
30130         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
30131         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
30132         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
30133         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
30134         * m4/hostent.m4 (gl_HOSTENT): Likewise.
30135         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
30136         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
30137         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
30138         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
30139         Likewise.
30140         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
30141         Likewise.
30142         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
30143         Likewise.
30144         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
30145         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
30146         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
30147         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
30148         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
30149         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
30150         * m4/servent.m4 (gl_SERVENT): Likewise.
30151         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
30152         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
30153         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
30154         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
30155         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
30156         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
30157         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
30158         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
30159         * modules/tsearch-tests (configure.ac): Likewise.
30160
30161 2010-08-26  Bruno Haible  <bruno@clisp.org>
30162
30163         Modernize AC_TRY_COMPILE invocations.
30164         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
30165         AC_TRY_COMPILE.
30166         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
30167         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
30168         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
30169         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
30170         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
30171         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
30172         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
30173         * m4/lock.m4 (gl_LOCK): Likewise.
30174         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
30175         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
30176         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
30177         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
30178         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
30179         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
30180         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
30181         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
30182         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
30183         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
30184         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
30185         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
30186         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
30187         extraneous semicolon.
30188
30189 2010-08-26  Jim Meyering  <meyering@redhat.com>
30190
30191         stat-time: relax license LGPL
30192         * modules/stat-time (License): Change from GPL to LGPL,
30193         with consent from all contributors, for use in libguile.
30194         Requested by Ludovic Courtès.
30195
30196 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
30197
30198         poll: return immediately on POLLHUP.
30199         * lib/poll.c (poll): Always set timeout before wait_timeout is
30200         computed.
30201
30202 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30203
30204         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
30205         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
30206         rmdir ("dir/.//"), unlinkat.
30207
30208 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
30209
30210         stdbool: avoid spurious failure with modern xlc
30211         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
30212
30213 2010-08-24  Bruno Haible  <bruno@clisp.org>
30214
30215         getloadavg: simplify code
30216         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
30217         gl_have_func. Update comments.
30218
30219 2010-08-24  Eric Blake  <eblake@redhat.com>
30220
30221         getloadavg: don't define SVR4 on cygwin
30222         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
30223         only define SVR4 when -lkvm is required.
30224         Reported by Yaakov Selkowitz.
30225
30226 2010-08-24  Bruno Haible  <bruno@clisp.org>
30227
30228         priv-set: fix comment
30229         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
30230
30231 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
30232
30233         priv-set: fix comments
30234         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
30235         to match code, as suggested by David Bartley in:
30236         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
30237
30238 2010-08-23  Eric Blake  <eblake@redhat.com>
30239
30240         stdbool: avoid rejecting clang
30241         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
30242         * tests/test-stdbool.c: Enable more tests if using the system
30243         <stdbool.h> instead of the gnulib replacement.
30244         (main): Move xlc bug test to a runtime test for all compilers.
30245         Reported by Anders Kaseorg.
30246
30247         argz: fix shell quoting issue
30248         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
30249         Reported by Charles Wilson.
30250
30251 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
30252             Erik Faye-Lund <kusmabite@gmail.com>
30253
30254         poll, select: handle ERROR_BROKEN_PIPE.
30255         * lib/poll.c (win32_compute_revents): Return POLLHUP when
30256         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
30257         * lib/select.c (win32_compute_revents): Do not mark a pipe
30258         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
30259
30260 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
30261
30262         fts: allow compilation with C++
30263         * lib/fts_.h: Specify extern "C" linkage with C++.
30264
30265 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30266
30267         Fix gnulib-tool sed script de-commentation for AIX sed.
30268         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
30269         sed.
30270
30271 2010-08-17  Eric Blake  <eblake@redhat.com>
30272
30273         test-stddef: test for (some) offsetof bugs
30274         * tests/test-stddef.c: Enhance test to ensure correct type of
30275         offsetof.
30276         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
30277         that we are not fixing at this time.
30278
30279 2010-08-15  Bruno Haible  <bruno@clisp.org>
30280
30281         stpncpy: Allow stpncpy to be defined as a macro.
30282         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
30283         if it's already correctly declared.
30284         * lib/string.in.h (stpncpy): Undefine before redefining.
30285         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
30286
30287 2010-08-14  Bruno Haible  <bruno@clisp.org>
30288
30289         Rename module 'memxfrm' to 'amemxfrm'.
30290         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
30291         (amemxfrm): Renamed from memxfrm.
30292         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
30293         (amemxfrm): Renamed from memxfrm.
30294         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
30295         * NEWS: Mention the change.
30296         * MODULES.html.sh (String handling <string.h>): Update.
30297         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
30298         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
30299         * lib/unicase/u16-casexfrm.c: Likewise.
30300         * lib/unicase/u32-casexfrm.c: Likewise.
30301         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
30302         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
30303         * lib/uninorm/u16-normxfrm.c: Likewise.
30304         * lib/uninorm/u32-normxfrm.c: Likewise.
30305         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
30306         memxfrm.
30307         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
30308         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
30309         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
30310         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
30311         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
30312         Suggested by Paul Eggert.
30313
30314 2010-08-14  Bruno Haible  <bruno@clisp.org>
30315
30316         Tests for module 'astrxfrm'.
30317         * modules/astrxfrm-tests: New file.
30318         * tests/test-astrxfrm.c: New file.
30319
30320         New module 'astrxfrm'.
30321         * lib/astrxfrm.h: New file.
30322         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
30323         * modules/astrxfrm: New file.
30324
30325 2010-08-14  Reuben Thomas <rrt@sc3d.org>
30326
30327         regex: Tweak doc.
30328         * doc/regex.texi (Overview): Don't mention regex.c.
30329         (GNU Regular Expression Compiling): Likewise.
30330         (Match-end-of-line Operator): Mention 'not_eol'.
30331
30332 2010-08-14  Brian Gough  <bjg@gnu.org>
30333             Bruno Haible  <bruno@clisp.org>
30334
30335         git-merge-changelog: add doc relating to use with bzr and hg.
30336         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
30337
30338 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
30339
30340         pthread: fix pthread.h creation for srcdir != builddir
30341         * modules/pthread (Makefile.am): Fix the rule to work also in a
30342         non-srcdir build.
30343
30344 2010-08-13  Karl Berry  <karl@gnu.org>
30345
30346         * doc/regex.texi (Predefined Syntaxes): @smallexample.
30347         * doc/posix-*/*: force line break before @url of POSIX
30348         specifications.
30349         Suggested by Werner Lemberg.
30350
30351 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
30352
30353         strtod: fix const diagnostic
30354         * lib/strtod.c (strtod): Don't assign const char * to char *,
30355         as this elicits a warning from GCC when warnings are enabled.
30356
30357 2010-08-10  Pádraig Brady <P@draigbrady.com>
30358         and Eric Blake  <eblake@redhat.com>
30359
30360         copy-acl: ignore ENOTSUP on HP-UX
30361         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
30362         so that it is available for HP-UX.
30363         * lib/copy-acl.c (qcopy_acl): Use it.
30364         Reported by Patrick M. Callahan.
30365
30366 2010-08-10  Eric Blake  <eblake@redhat.com>
30367
30368         open, chown: relax license
30369         * modules/open (License): Change to LGPLv2+, with consent by all
30370         authors, for use in augeas.
30371         * modules/chown (License): Likewise.
30372         * modules/lchown (Likewise): Likewise.
30373         Requested by Adam Stokes.
30374
30375 2010-08-09  Karl Berry  <karl@gnu.org>
30376
30377         * build-aux/ar-lib: new file, import from Automake.
30378         * config/srclist.txt: autocheck for updates.
30379
30380 2010-08-09  Eric Blake  <eblake@redhat.com>
30381
30382         readlinkat: adjust client modules
30383         * modules/areadlinkat (Depends-on): Use readlinkat, not
30384         symlinkat.
30385         * modules/areadlinkat-with-size (Depends-on): Likewise.
30386
30387         mknod: be more vocal about danger of running tests as root
30388         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
30389         root, since that is just asking for problems.
30390         Suggested by Bruno Haible, based on a report by Rainer Tammer.
30391
30392         readlinkat: split into its own module
30393         * modules/symlinkat: Split readlinkat...
30394         * modules/readlinkat: ...into separate module.
30395         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
30396         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
30397         * lib/symlinkat.c (readlinkat): Move...
30398         * lib/readlinkat.c: ...into new file.
30399         * modules/symlinkat-tests: Split readlinkat test...
30400         * modules/readlinkat-tests: ...into separate module.
30401         * tests/test-symlinkat.c: Split...
30402         * tests/test-readlinkat.c: ...into new file.
30403         * NEWS: Document the split.
30404         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
30405         * lib/unistd.in.h (readlinkat): Likewise.
30406         Suggested by Bruno Haible.
30407
30408 2010-08-08  Bruno Haible  <bruno@clisp.org>
30409
30410         memxfrm: Speed up.
30411         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
30412         that usually only one call to strxfrm is necessary for each string
30413         part.
30414         Reported by Paul Eggert <eggert@cs.ucla.edu>.
30415
30416 2010-08-07  Karl Berry  <karl@gnu.org>
30417
30418         * doc/posix-headers/limits.texi,
30419         * doc/posix-functions/malloc.texi,
30420         * doc/posix-functions/strsignal.texi: missing @item.
30421         * doc/ld-version-script.texi: spurious leading i.
30422         * doc/regex.texi (Interval Operators): no commas inside @var.
30423
30424 2010-08-01  Bruno Haible  <bruno@clisp.org>
30425
30426         Integrate the regex documentation.
30427         * doc/gnulib.texi: Define 'cn' index.
30428         (Regular expressions): New a chapter that includes regex.texi and
30429         regexprops-generic.texi.
30430         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
30431         syntax.
30432
30433         Whitespace cleanup.
30434         * doc/regex.texi: Remove trailing spaces.
30435
30436         Add regex documentation.
30437         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
30438         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
30439         Written by Kathy A. Hargreaves and Karl Berry.
30440
30441 2010-08-01  Bruno Haible  <bruno@clisp.org>
30442
30443         link: Update documentation.
30444         * doc/posix-functions/link.texi: Update regarding Solaris.
30445
30446 2010-07-31  Bruno Haible  <bruno@clisp.org>
30447
30448         Update modules list.
30449         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
30450         (String handling <string.h>): Add memcmp2, memxfrm.
30451         (Container data structures): Add xlist, xsublist, xoset.
30452         (Core language properties): Add alignof, unused-parameter.
30453         (Process control, Numeric conversion functions <stdlib.h>): Renamed
30454         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
30455         (Unibyte characters <ctype.h>): New section.
30456         (String handling <string.h>): New section.
30457         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
30458         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
30459         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
30460         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
30461         tan, tanh, tanl, y0, y1, yn.
30462         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
30463         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
30464         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
30465         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
30466         unlockpt, vdprintf, vdprintf-posix.
30467         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
30468         (File system functions): Add concat-filename, sys_file, sys_ioctl,
30469         xconcat-filename.
30470         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
30471         getdtablesize, pipe2, pipe2-safer.
30472         (Security): New section.
30473         (Networking functions): Add accept4.
30474         (Signal handling): Add sigpipe.
30475         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
30476         mbmemcasecoll.
30477         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
30478         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
30479         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
30480         pipe-filter-ii.
30481         (Misc): Add argp-version-etc, login_tty, parse-duration.
30482
30483 2010-07-31  Bruno Haible  <bruno@clisp.org>
30484
30485         Improve doc in MODULES.html.
30486         * modules/linkat (Description): Add the word "function".
30487         * modules/mkfifo (Description): Likewise.
30488         * modules/mknod (Description): Likewise.
30489         * modules/remove (Description): Likewise.
30490         * modules/renameat (Description): Likewise.
30491         * modules/stat (Description): Likewise.
30492         * modules/symlink (Description): Likewise.
30493         * modules/unlink (Description): Likewise.
30494
30495 2010-07-31  Bruno Haible  <bruno@clisp.org>
30496
30497         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
30498         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
30499         option --enable/disable-c++ instead of --enable/disable-cxx.
30500         * NEWS: Mention the change.
30501
30502 2010-07-31  Bruno Haible  <bruno@clisp.org>
30503
30504         readlink, areadlink: Relax test a bit.
30505         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
30506         alternative to ENOTDIR.
30507         * tests/test-areadlink.h (test_areadlink): Likewise.
30508         Reported by Rainer Tammer.
30509
30510 2010-07-31  Bruno Haible  <bruno@clisp.org>
30511
30512         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
30513         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
30514         character, perform the search using U_STRCHR.
30515         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
30516         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
30517         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
30518         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
30519         Suggested by Paolo Bonzini.
30520
30521 2010-07-31  Bruno Haible  <bruno@clisp.org>
30522
30523         unistr/u*-strstr: Fix dependencies.
30524         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
30525         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
30526         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
30527
30528 2010-07-31  Bruno Haible  <bruno@clisp.org>
30529
30530         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
30531         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
30532         the beginning of the loop.
30533         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
30534         cases in 'switch' statement.
30535
30536         unistr/u8-strchr: Fix several bugs.
30537         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
30538         the string. When not found, return NULL, not a pointer near the end.
30539
30540         More tests for unistr/u8-strchr.
30541         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
30542         that the function does not read past the first occurrence of the byte
30543         being searched.
30544         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
30545         * tests/unistr/test-u16-strchr.c (main): New function.
30546         * tests/unistr/test-u32-strchr.c (main): New function.
30547
30548 2010-07-31  Bruno Haible  <bruno@clisp.org>
30549
30550         posix-modules: Ignore backup files of documentation files.
30551         * posix-modules: grep only through files named *.texi.
30552
30553 2010-07-31  Bruno Haible  <bruno@clisp.org>
30554
30555         symlinkat: Fix documentation.
30556         * doc/posix-functions/readlinkat.texi: Fix module name.
30557
30558 2010-07-31  Bruno Haible  <bruno@clisp.org>
30559
30560         fchownat: Replace also when chown has the trailing slash bug.
30561         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
30562         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
30563         introduced on 2010-04-10.
30564         Reported by Rainer Tammer.
30565
30566 2010-07-31  Bruno Haible  <bruno@clisp.org>
30567
30568         linkat: Work around AIX 7.1 bug.
30569         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
30570         whether linkat handles trailing slash correctly. If not, replace linkat
30571         and define LINKAT_TRAILING_SLASH_BUG.
30572         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
30573         check whether (fd1,file1) points to a directory if file1 or file2 ends
30574         in a slash. Code taken from lib/link.c.
30575         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
30576         Reported by Rainer Tammer.
30577
30578 2010-07-31  Bruno Haible  <bruno@clisp.org>
30579
30580         Correctly determine whether pow is available in libc on AIX 7 with xlc.
30581         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
30582         This disables an xlc optimization that was causing wrong test results.
30583         Reported by Rainer Tammer.
30584
30585 2010-07-31  Bruno Haible  <bruno@clisp.org>
30586
30587         iconv: Work around AIX 6.1..7.1 bug.
30588         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
30589         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
30590         cross-compiling, guess no on all versions of AIX.
30591         Reported by Rainer Tammer.
30592
30593 2010-07-31  Bruno Haible  <bruno@clisp.org>
30594
30595         readlink: Relax test a bit.
30596         * tests/test-readlink.h (test_readlink): Allow different errno value
30597         when readlink is called with a file name that ends in / and refers to
30598         a file.
30599         Suggested by Eric Blake.
30600         Reported by Rainer Tammer.
30601
30602 2010-07-31  Bruno Haible  <bruno@clisp.org>
30603
30604         copysign: Does not require -lm on glibc systems.
30605         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
30606         gl_COMMON_DOUBLE_MATHFUNC.
30607         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
30608
30609 2010-07-31  Bruno Haible  <bruno@clisp.org>
30610
30611         duplocale: Work around AIX 7.1 bug.
30612         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
30613         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
30614         * lib/duplocale.c (rpl_duplocale): Update comment.
30615         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
30616         Reported by Rainer Tammer.
30617
30618 2010-07-30  Bruno Haible  <bruno@clisp.org>
30619
30620         dirfd: Avoid link error on AIX 7.1.
30621         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
30622         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
30623         exist, set REPLACE_DIRFD.
30624         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
30625         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
30626         * doc/posix-functions/dirfd.texi: Update.
30627         Reported by Rainer Tammer.
30628
30629 2010-07-30  Eric Blake  <eblake@redhat.com>
30630
30631         strtod: next round of AIX fixes
30632         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
30633         exponent.
30634         * tests/test-strtod.c (main): Enhance tests.
30635         * doc/posix-functions/strtod.texi (strtod): Document next bug.
30636         Reported by Rainer Tammer.
30637
30638         futimens: fix configure check
30639         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
30640         Reported by Bruno Haible.
30641
30642 2010-07-30  Bruno Haible  <bruno@clisp.org>
30643
30644         getline: Update regarding AIX.
30645         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
30646         Reported by Rainer Tammer.
30647
30648 2010-07-30  Bruno Haible  <bruno@clisp.org>
30649
30650         wcwidth: Drop replacement on AIX 7.
30651         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
30652         AIX 7.
30653         Reported by Rainer Tammer.
30654
30655 2010-07-30  Bruno Haible  <bruno@clisp.org>
30656
30657         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
30658         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
30659         a 'char *'.
30660         Reported by Rainer Tammer.
30661
30662 2010-07-30  Bruno Haible  <bruno@clisp.org>
30663
30664         unlink: Update regarding AIX.
30665         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
30666         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
30667         Reported by Rainer Tammer.
30668
30669 2010-07-30  Bruno Haible  <bruno@clisp.org>
30670
30671         symlink: Update regarding AIX.
30672         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
30673         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
30674         Reported by Rainer Tammer.
30675
30676 2010-07-30  Bruno Haible  <bruno@clisp.org>
30677
30678         strndup: Update regarding AIX.
30679         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
30680         AIX 7.
30681         Reported by Rainer Tammer.
30682
30683 2010-07-30  Bruno Haible  <bruno@clisp.org>
30684
30685         stat: Update regarding AIX.
30686         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
30687         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
30688         Reported by Rainer Tammer.
30689
30690 2010-07-30  Bruno Haible  <bruno@clisp.org>
30691
30692         truncl: Fix autoconf test.
30693         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
30694         whether truncl works.
30695         Reported by Rainer Tammer.
30696
30697 2010-07-30  Bruno Haible  <bruno@clisp.org>
30698
30699         round: Update regarding AIX.
30700         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
30701         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
30702         Reported by Rainer Tammer.
30703
30704 2010-07-30  Bruno Haible  <bruno@clisp.org>
30705
30706         rename: Update regarding AIX.
30707         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
30708         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
30709         Reported by Rainer Tammer.
30710
30711 2010-07-30  Bruno Haible  <bruno@clisp.org>
30712
30713         printf.m4: Update regarding AIX.
30714         * m4/printf.m4: Update comments regarding AIX.
30715         Reported by Rainer Tammer.
30716
30717 2010-07-30  Bruno Haible  <bruno@clisp.org>
30718
30719         iconv: Update regarding AIX.
30720         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
30721         AIX 7.
30722         Reported by Rainer Tammer.
30723
30724 2010-07-30  Bruno Haible  <bruno@clisp.org>
30725
30726         getopt: Update regarding AIX.
30727         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
30728         no on AIX.
30729         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
30730         Reported by Rainer Tammer.
30731
30732 2010-07-30  Bruno Haible  <bruno@clisp.org>
30733
30734         ldexpl; Update regarding AIX.
30735         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
30736         on AIX 7.
30737         Reported by Rainer Tammer.
30738
30739 2010-07-30  Bruno Haible  <bruno@clisp.org>
30740
30741         frexpl: Update regarding AIX.
30742         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
30743         on AIX 7.
30744         Reported by Rainer Tammer.
30745
30746 2010-07-30  Bruno Haible  <bruno@clisp.org>
30747
30748         open, fopen: Update regarding AIX.
30749         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
30750         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
30751         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
30752         * doc/posix-functions/fopen.texi: Likewise.
30753         Reported by Rainer Tammer.
30754
30755 2010-07-30  Bruno Haible  <bruno@clisp.org>
30756
30757         chown: Update doc regarding AIX.
30758         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
30759         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
30760         Reported by Rainer Tammer.
30761
30762 2010-07-30  Eric Blake  <eblake@redhat.com>
30763
30764         strtod: fix bug in replacement function on AIX
30765         * lib/strtod.c (strtod): Special case broken "0x" parse in
30766         underlying strtod.
30767         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
30768         * doc/posix-functions/strtod.texi (strtod): Likewise.
30769         Reported by Rainer Tammer.
30770
30771 2010-07-30  Bruno Haible  <bruno@clisp.org>
30772
30773         mbrlen: Fix cross-compilation guess for AIX.
30774         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
30775         guess. Leftover from 2008-12-22.
30776
30777 2010-07-30  Bruno Haible  <bruno@clisp.org>
30778
30779         mbrtowc: Fix cross-compilation guess for AIX.
30780         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
30781         guess. Leftover from 2008-12-21.
30782
30783 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
30784
30785         init.sh: work around trap limitation of some shells
30786         * tests/init.sh (setup_): Move exit trap outside of shell function.
30787
30788 2010-07-29  Eric Blake  <eblake@redhat.com>
30789
30790         strtod: aid debugging
30791         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
30792         understanding why strtod is rejected.
30793
30794 2010-07-28  Bruno Haible  <bruno@clisp.org>
30795
30796         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
30797         * lib/unistr/u8-chr.c: Include <string.h>.
30798         * tests/unistr/test-u8-chr.c: Likewise.
30799         * tests/unistr/test-u16-chr.c: Likewise.
30800         * tests/unistr/test-u32-chr.c: Likewise.
30801         * tests/unistr/test-u8-strchr.c: Likewise.
30802         * tests/unistr/test-u16-strchr.c: Likewise.
30803         * tests/unistr/test-u32-strchr.c: Likewise.
30804         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
30805         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
30806         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
30807         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
30808
30809 2010-07-28  Bruno Haible  <bruno@clisp.org>
30810
30811         Use spaces for indentation, not tabs.
30812         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
30813
30814 2010-07-27  Bruno Haible  <bruno@clisp.org>
30815
30816         mbspcasecmp: Fix function specification.
30817         * lib/string.in.h (mbspcasecmp): Fix specification comment.
30818         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
30819         Reported by Eric Blake <eblake@redhat.com>.
30820
30821 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
30822
30823         timespec: use cast and not conditional, as truncation isn't possible
30824         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
30825         instead of a conditional.  Comment about the situation in more detail.
30826         This undoes most of the 2009-10-29 patch.
30827
30828 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
30829
30830         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
30831         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
30832         * lib/unistr/u8-strchr.c: Likewise.
30833         * modules/unistr/u8-chr: Depend on memchr.
30834
30835         unistr/u*-strchr: add tests
30836         * modules/unistr/u8-strchr-tests: New file.
30837         * modules/unistr/u16-strchr-tests: New file.
30838         * modules/unistr/u32-strchr-tests: New file.
30839         * tests/unistr/test-strchr.h: New file.
30840         * tests/unistr/test-u8-strchr.c: New file.
30841         * tests/unistr/test-u16-strchr.c: New file.
30842         * tests/unistr/test-u32-strchr.c: New file.
30843
30844         unistr/u*-chr: test multibyte sequences more
30845         * tests/unistr/test-chr.h: Do complete testing of the characters in the
30846         test vector.
30847         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
30848         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
30849         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
30850
30851         unistr/u*-chr: test multibyte sequences
30852         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
30853
30854         unistr/u*-chr: prepare for multibyte tests
30855         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
30856         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
30857         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
30858         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
30859         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
30860         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
30861
30862 2010-07-18  Bruno Haible  <bruno@clisp.org>
30863
30864         unistr/u8-strchr: Optimize non-ASCII argument case.
30865         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
30866         because the first byte often matches anyway.
30867         Reported by Pádraig Brady <P@draigbrady.com>.
30868
30869 2010-07-15  Karl Berry  <karl@gnu.org>
30870
30871         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
30872
30873 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
30874
30875         getcwd: on Solaris, work better if ancestors are inaccessible
30876         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
30877         buffer and size, try again with a large buffer.  This works better
30878         on Solaris, since its getcwd succeeds even if the path to the root
30879         is inaccessible, and this is helpful in common cases such as .zfs
30880         hidden directories.  Problem reported by J Chapman Flack in
30881         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
30882         Use system getcwd if it's declared, not merely if it's partly
30883         working; use the partly-working test only to avoid needless effort
30884         if the system getcwd fails.
30885         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
30886         comment that was already obsolete and is now even more obsolete.
30887         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
30888         now might call strdup.
30889
30890 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
30891
30892         pthread: Add enough so that coreutils/src/sort.c compiles.
30893         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
30894         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
30895         gnulib. Include <sched.h> and <time.h>, as per POSIX.
30896         Include <sys/types.h>, in case it defines pthread_t.
30897         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
30898         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
30899         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
30900         (pthread_rwlockattr_t, pthread_spinlock_t):
30901         New typedefs, if HAVE_PTHREAD_T is not defined.
30902         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
30903         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
30904         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
30905         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
30906         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
30907         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
30908         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
30909         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
30910         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
30911         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
30912         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
30913         New macros.
30914         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
30915         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
30916         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
30917         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
30918         (pthread_spin_unlock): New dummy functions.
30919         (pthread_create): Return EAGAIN; don't set errno.
30920         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
30921         require AC_C_INLINE.
30922         * modules/pthread (Depends-on): Add sched, time.
30923         (pthread.h): Use AM_V_GEN.
30924
30925 2010-07-13  Bruno Haible  <bruno@clisp.org>
30926
30927         striconveh: Don't malloc memory if the result buffer is sufficient.
30928         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
30929         buffer if its size is sufficient.
30930         Reported by Ludovic Courtès <ludo@gnu.org>.
30931
30932 2010-07-13  Bruno Haible  <bruno@clisp.org>
30933
30934         strtod: Add safety check.
30935         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
30936
30937 2010-07-12  Bruno Haible  <bruno@clisp.org>
30938
30939         Unify tests that set gl_cv_func_ldexpl_no_libm.
30940         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
30941         gl_FUNC_LDEXPL.
30942         (gl_FUNC_LDEXPL): Invoke it.
30943         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
30944
30945 2010-07-12  Bruno Haible  <bruno@clisp.org>
30946
30947         Unify tests that set gl_cv_func_ldexp_no_libm.
30948         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
30949         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
30950         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
30951         (configure.ac): Simply invoke gl_FUNC_LDEXP.
30952         * modules/strtod (Files): Add m4/ldexp.m4.
30953
30954 2010-07-12  Bruno Haible  <bruno@clisp.org>
30955
30956         Unify tests that set gl_cv_func_frexpl_no_libm.
30957         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
30958         gl_FUNC_FREXPL_NO_LIBM.
30959         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
30960         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
30961
30962 2010-07-12  Bruno Haible  <bruno@clisp.org>
30963
30964         Unify tests that set gl_cv_func_frexp_no_libm.
30965         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
30966         gl_FUNC_FREXP_NO_LIBM.
30967         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
30968         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
30969
30970 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
30971
30972         memcoll: clarify sizes versus lengths, document better, and tweak perf
30973         * lib/memcoll.c (strcoll_loop, memcoll0):
30974         Improve quality of descriptive comments.  Name variables
30975         consistently as to whether they are lengths (which do not include
30976         terminating null) versus sizes (which do).
30977         * lib/xmemcoll.c (xmemcoll0): Likewise.
30978         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
30979         returned when s1size == 0; this is easier to compile and saves
30980         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
30981
30982 2010-07-12  Bruno Haible  <bruno@clisp.org>
30983
30984         Tests for module '_Exit'.
30985         * modules/_Exit-tests: New file.
30986         * tests/test-_Exit.sh: New file.
30987         * tests/test-_Exit.c: New file.
30988
30989         New module '_Exit'.
30990         * lib/stdlib.in.h (__attribute__): New macro.
30991         (_Exit): New declaration.
30992         * lib/_Exit.c: New file.
30993         * m4/_Exit.m4: New file.
30994         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
30995         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
30996         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
30997         * modules/_Exit: New file.
30998         * tests/test-stdlib-c++.cc (_Exit): Check signature.
30999         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
31000
31001 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
31002
31003         strtod: make it more-accurate typically, and don't require libm
31004         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
31005         Include limits.h.  Don't include string.h.
31006         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
31007         (locale_isspace): New function, so that no casts are needed to
31008         check whether *s is a space.
31009         (ldexp): Provide an unused dummy if not available.
31010         (scale_radix_exp, parse_number, underlying_strtod): New functions.
31011         (strtod): Use them.  This implementation prefers to use the
31012         underlying strtod if available, falling back on our own code
31013         only to fix known bugs.  This is more likely to produce an
31014         accurate result.  Also, it avoids the use of libm functions.
31015         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
31016         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
31017         was absent, but it caused a test failure with coreutils.
31018         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
31019         with libm.
31020         * modules/strtod (Makefile.am, Link): libm is no longer needed.
31021         * modules/strtod-tests (Makefile.am): Likewise.
31022
31023 2010-07-11  Pádraig Brady  <P@draigBrady.com>
31024             Bruno Haible  <bruno@clisp.org>
31025
31026         unistr/u8-strchr: Optimize ASCII argument case.
31027         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
31028
31029 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
31030
31031         (x)memcoll: minor tweaks
31032         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
31033         is after the type that it qualifies.
31034         (memcoll0): Likewise.
31035         * lib/memcoll.h (memcoll0): Likewise.
31036         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
31037         * lib/xmemcoll.h (xmemcoll0): Likewise.
31038         * lib/memcoll.c (memcoll0): Correct the comment.  This function
31039         differs from memcoll in that the NUL byte is part of the argument.
31040         Omit the abort-checks, as performance is a real issue here.  Plus,
31041         the checks were wrong anyway (an off-by-one error).  Omit local
31042         variable 'diff', as it's a bit clearer that way.
31043         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
31044         no longer needed.
31045
31046 2010-07-08  Chen Guo <chenguo4@yahoo.com>
31047
31048         (x)memcoll: speedup when input is known to be NUL delimited
31049         * lib/memcoll.c: Include stdlib.
31050         (memcoll0): New function.
31051         (strcoll_loop): New function, refactored for use in both memcoll
31052         and memcoll0.
31053         * lib/memcoll.h (memcoll0): Add prototype.
31054         * lib/xmemcoll.c (xmemcoll0): New function.
31055         (collate_error): New function, refactored for use in both xmemcoll
31056         and xmemcoll0.
31057         * lib/xmemcoll.h (xmemcoll0): Add prototype.
31058         * m4/memcoll.m4: add inline invocation.
31059
31060 2010-07-06  Pádraig Brady  <P@draigBrady.com>
31061
31062         * build-aux/bootstrap: Remove any local translations
31063         from the translation project synchronization directory,
31064         so that local only translations are not distributed.
31065
31066 2010-07-04  Bruno Haible  <bruno@clisp.org>
31067
31068         fsusage: Clarify which code applies to which platforms.
31069         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
31070         platform.
31071         * lib/fsusage.c (get_fs_usage): Likewise.
31072
31073 2010-07-04  Bruno Haible  <bruno@clisp.org>
31074
31075         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
31076         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
31077         Reported by Martin Lambers <marlam@marlam.de>.
31078
31079 2010-07-04  Jim Meyering  <meyering@redhat.com>
31080
31081         hash: once again explicitly disallow insertion of NULL
31082         * lib/hash.c (hash_insert0): Reinstate just-removed test:
31083         inserting a NULL pointer cannot work with these functions.
31084         Add a comment with details.
31085         This reverts part of the 2010-07-01 commit, 5bef1a35
31086         "hash: extend module to deal with non-pointer keys".
31087
31088 2010-07-01  Bruno Haible  <bruno@clisp.org>
31089
31090         stdbool: Update doc.
31091         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
31092         Info from Christian Weisgerber <naddy@mips.inka.de>.
31093
31094 2010-07-01  Jim Meyering  <meyering@redhat.com>
31095
31096         hash: extend module to deal with non-pointer keys
31097         * lib/hash.c (hash_insert0): New interface, much like hash_insert
31098         but that allows insertion of non-pointer entries.
31099         Do not disallow an ENTRY value of NULL.
31100         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
31101         * lib/hash.h (hash_insert0): Declare.
31102
31103 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
31104
31105         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
31106         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
31107         not present (i.e. with autoconf 2.59 and when using gettextize, not
31108         gnulib), require AC_GNU_SOURCE instead.
31109
31110 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
31111
31112         idpriv-drop: Fix tests.
31113         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
31114         not to the test-idpriv-droptemp program.
31115
31116 2010-06-29  Bruno Haible  <bruno@clisp.org>
31117
31118         string: Fix syntax error with g++ 2.96.
31119         * lib/string.in.h (__pure__): Remove definition.
31120         (_GL_ATTRIBUTE_PURE): New macro.
31121         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
31122         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
31123         Reported by Christian Weisgerber <naddy@mips.inka.de>.
31124
31125 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
31126
31127         unitypes: Fix bug introduced on 2010-05-18.
31128         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
31129
31130 2010-06-22  Eric Blake  <eblake@redhat.com>
31131
31132         memmem: slight optimization
31133         * lib/str-two-way.h (critical_factorization): Update comments.
31134         Reduce work during factorization phase.
31135         Reported by Carlos Bueno <carlos@bueno.org>.
31136
31137 2010-06-21  Bruno Haible  <bruno@clisp.org>
31138
31139         Fix HAVE_CALLOC_POSIX misnomer.
31140         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
31141         !HAVE_CALLOC_POSIX.
31142         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
31143         HAVE_CALLOC_POSIX.
31144         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
31145         instead of HAVE_CALLOC_POSIX.
31146         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
31147         HAVE_CALLOC_POSIX.
31148
31149         Use modern idiom for calloc() replacement.
31150         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
31151         AC_FUNC_CALLOC.
31152         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
31153         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
31154         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
31155         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
31156         (gl_REPLACE_CALLOC): New macro.
31157
31158 2010-06-21  Bruno Haible  <bruno@clisp.org>
31159
31160         Fix HAVE_REALLOC_POSIX misnomer.
31161         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
31162         !HAVE_REALLOC_POSIX.
31163         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
31164         HAVE_REALLOC_POSIX.
31165         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
31166         instead of HAVE_REALLOC_POSIX.
31167         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
31168         HAVE_REALLOC_POSIX.
31169
31170         Use modern idiom for realloc() replacement.
31171         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
31172         AC_FUNC_REALLOC.
31173         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
31174         Autoconf's AC_FUNC_REALLOC.
31175         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
31176         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
31177         (gl_REPLACE_REALLOC): New macro.
31178         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
31179
31180 2010-06-21  Bruno Haible  <bruno@clisp.org>
31181
31182         Fix HAVE_MALLOC_POSIX misnomer.
31183         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
31184         !HAVE_MALLOC_POSIX.
31185         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
31186         HAVE_MALLOC_POSIX.
31187         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
31188         instead of HAVE_MALLOC_POSIX.
31189         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
31190         HAVE_MALLOC_POSIX.
31191
31192         Use modern idiom for malloc() replacement.
31193         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
31194         AC_FUNC_MALLOC.
31195         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
31196         Autoconf's AC_FUNC_MALLOC.
31197         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
31198         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
31199         (gl_REPLACE_MALLOC): New macro.
31200         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
31201
31202 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
31203
31204         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
31205         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
31206         This macro takes 3 arguments, not 4.
31207
31208 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
31209
31210         ipv6: fix detection under mingw
31211         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
31212         in6_addr.
31213
31214 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
31215
31216         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
31217         that strtod() works when cross-compiling to a glibc version known
31218         to work.
31219
31220 2010-06-15  Bruno Haible  <bruno@clisp.org>
31221
31222         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
31223
31224 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
31225
31226         select: Correct timeout.
31227         * lib/select.c (rpl_select): Compute wait_timeout correctly.
31228
31229 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
31230
31231         git-version-gen: init shell var to avoid env var influence
31232         * build-aux/git-version-gen (v): Init shell var to empty.
31233
31234 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
31235
31236         priv-set: Don't assume that priv.h exists merely because getppriv does.
31237         See Jan Andersen's bug report about AIX 5L in
31238         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
31239         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
31240         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
31241         * lib/priv-set.h: Likewise.
31242         * tests/test-priv-set.c: Likewise.
31243
31244 2010-06-13  Bruno Haible  <bruno@clisp.org>
31245
31246         relocatable: Make it easier to test whether to install wrappers.
31247         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
31248         RELOCATABLE_VIA_WRAPPER.
31249
31250 2010-06-13  Bruno Haible  <bruno@clisp.org>
31251
31252         gnulib-tool: Display specified modules and dependencies differently.
31253         * gnulib-tool (func_show_module_list): New function.
31254         (func_import, func_create_testdir): Invoke it.
31255         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
31256
31257 2010-06-13  Bruno Haible  <bruno@clisp.org>
31258
31259         gnulib-tool: Align code of func_import and func_create_testdir.
31260         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
31261         specified_modules.
31262
31263 2010-06-12  Jim Meyering  <meyering@redhat.com>
31264
31265         test-inttostr: avoid spurious failure on Solaris 9
31266         * tests/test-inttostr.c (main): Skip the test when snprintf fails
31267         to accept "%ju".  Reported by Bruno Haible.
31268
31269 2010-06-11  Jim Meyering  <meyering@redhat.com>
31270
31271         test-sys_socket: mark variables as used more readably
31272         * tests/test-sys_socket.c (main): Mark otherwise unused variables
31273         as "used" explicitly via (void) statement casts.  This is more
31274         readable than using them in an artificial return expression.
31275         Suggestion from Bruno Haible.
31276
31277 2010-06-11  Bruno Haible  <bruno@clisp.org>
31278
31279         Avoid some more warnings from "gcc -Wwrite-strings".
31280         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
31281         to 'const char *'.
31282         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
31283         * tests/test-c-strcasestr.c (main): Likewise.
31284         * tests/test-mbscasestr1.c (main): Likewise.
31285         * tests/test-mbscasestr2.c (main): Likewise.
31286         * tests/test-memmem.c (main): Likewise.
31287         * tests/test-strstr.c (main): Likewise.
31288         * tests/test-strcasestr.c (main): Likewise.
31289
31290 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31291
31292         init.sh: change framework_failure_ to fail with status 99, not 1
31293         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
31294         automake's parallel-tests rule that this is an unexpected failure,
31295         even if the test is listed in XFAIL_TESTS.
31296
31297 2010-06-11  Jim Meyering  <meyering@redhat.com>
31298
31299         test-inttostr: avoid warnings about 4-6KB literal strings
31300         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
31301         Include "macros.h", for its definition of ASSERT.
31302         (CK): s/assert/ASSERT/
31303         * modules/inttostr-tests (Files): Add macros.h.
31304
31305         init.sh: don't use $ME_ or skip_ before they are defined
31306         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
31307         their first uses.  Also hoist their companions: warn_, fail_,
31308         framework_failure_, $stderr_fileno.  Prompted by a patch from
31309         Stefano Lattarini.
31310
31311         test-sys_socket: avoid set-but-not-used warnings from gcc
31312         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
31313         avoid warning about set-but-not-used variables.
31314
31315         test-xvasprintf: avoid 'const' discard warnings
31316         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
31317         "const" when assigning from literal strings.
31318         (test_xasprintf): Add "void" in function argument list to placate
31319         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
31320
31321         tests: avoid compilation warnings in argmatch and exclude tests...
31322         in packages that define ARGMATCH_DIE_DECL, like coreutils.
31323         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
31324         Since it always exits, declare with the "noreturn" attribute.
31325         * tests/test-argmatch.c: Likewise.
31326
31327         tests: avoid 'const' discard warnings in mbsstr tests
31328         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
31329         * tests/test-mbsstr2.c (main): Likewise.
31330
31331         test-verify: avoid warning from gcc's -Wmissing-declarations
31332         * tests/test-verify.c (function): Declare to be static.
31333
31334         test-inttostr.c: include <string.h> for use of strcmp
31335         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
31336
31337         test-linkat: avoid failed assertion on "other" architectures
31338         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
31339         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
31340         sparc: https://bugs.launchpad.net/bugs/591968
31341
31342 2010-06-11  Jim Meyering  <meyering@redhat.com>
31343
31344         printf.m4: avoid autoconf's "Expanded Before Required" warning
31345         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
31346         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
31347         autoconf warning.
31348
31349 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
31350
31351         Replacement header templates are now named with ".in", not "_".
31352         * doc/gnulib-intro.texi: Correct.
31353
31354 2010-06-10  Jim Meyering  <meyering@redhat.com>
31355
31356         inttostr-tests: depend on snprintf, not snprintf-posix
31357         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
31358         snprintf-posix, to avoid this aclocal failure:
31359           missing file gnulib-tests/vasnprintf.c
31360           configure.ac:45: error: expected source file, required through \
31361           AC_LIBSOURCES, not found
31362
31363 2010-06-10  Jim Meyering  <meyering@redhat.com>
31364
31365         inttostr: add a new function, inttostr, and tests
31366         The namesake function was not available.  The existence of the
31367         template file, inttostr.c makes its addition nontrivial.
31368         * lib/anytostr.c: Rename from inttostr.c.
31369         (anytostr): Rename from inttostr.
31370         * lib/inttostr.c: New file.
31371         * modules/inttostr (Files): Add anytostr.c.
31372         (Makefile.am): Set lib_SOURCES instead of ...
31373         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
31374         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
31375         * lib/offtostr.c: Likewise.
31376         * lib/uinttostr.c: Likewise.
31377         * lib/umaxtostr.c: Likewise.
31378         * modules/inttostr-tests: New file.
31379         * tests/test-inttostr.c: New file.  Test these functions.
31380
31381 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
31382             Bruno Haible  <bruno@clisp.org>
31383
31384         Add "Extending Gnulib" chapter to manual.
31385         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
31386         chapter.
31387         (Extending Gnulib): New chapter.
31388         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
31389         chapter.
31390
31391 2010-06-09  Bruno Haible  <bruno@clisp.org>
31392
31393         Avoid relocwrapper link errors due to gnulib replacement functions.
31394         * lib/areadlink.c: Use the system's malloc, realloc functions.
31395         (areadlink): Set errno to ENOMEM explicitly.
31396         * modules/areadlink (Depends-on): Remove malloc-posix.
31397         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31398
31399 2010-06-09  Bruno Haible  <bruno@clisp.org>
31400
31401         Avoid relocwrapper link errors due to gnulib replacement functions.
31402         * lib/canonicalize-lgpl.c: Use the system's malloc function.
31403         * lib/malloca.c: Likewise.
31404         * lib/relocatable.c: Likewise.
31405         * lib/progreloc.c: Use the system's malloc, sprintf functions.
31406         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
31407         * lib/setenv.c: Use the system's malloc, realloc functions.
31408         * lib/strerror.c: Use the system's sprintf function.
31409         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31410
31411 2010-06-04  Bruno Haible  <bruno@clisp.org>
31412
31413         Prefer documented low-level autoconf macro names.
31414         * m4/lib-link.m4: Use m4_translit instead of translit.
31415         * m4/environ.m4: Likewise.
31416         * m4/mathfunc.m4: Likewise.
31417         * m4/onceonly.m4: Likewise.
31418         * m4/stdint.m4: Likewise.
31419         Suggested by Eric Blake.
31420
31421 2010-06-04  Martin Lambers  <marlam@marlam.de>
31422             Bruno Haible  <bruno@clisp.org>
31423
31424         havelib: Allow library names with '+' characters.
31425         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
31426         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
31427
31428 2010-06-09  Bruno Haible  <bruno@clisp.org>
31429
31430         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
31431         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
31432         realloc failed.
31433
31434 2010-06-08  Peter Simons  <simons@cryp.to>
31435
31436         maint.mk: make the news-check rule more configurable
31437         * top/maint.mk (news-check-lines-spec): New variable.
31438         (news-check): Use "sed -n 1,10p" in place of "head".
31439
31440 2010-06-07  Jim Meyering  <meyering@redhat.com>
31441
31442         do-release-commit-and-tag: fix typo in --help
31443         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
31444
31445         regex: avoid new dead-code warning with gcc-4.6.0
31446         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
31447         if-block containing a while-loop.  It's been unused for at least
31448         5 years.
31449
31450 2010-06-05  Bruno Haible  <bruno@clisp.org>
31451
31452         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
31453         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
31454
31455 2010-06-04  Bruno Haible  <bruno@clisp.org>
31456
31457         Update to GNU gettext 0.18.1.
31458         * modules/gettext (configure.ac): Require gettext infrastructure from
31459         version 0.18.1.
31460
31461 2010-06-03  Bruno Haible  <bruno@clisp.org>
31462
31463         Don't use AC_LIBOBJ with file names in subdirectories.
31464         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
31465         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
31466         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
31467         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
31468         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
31469         gl_LIBUNISTRING_LIBSOURCE.
31470         (Makefile.am): Augment lib_SOURCES here, conditionally.
31471         * NEWS: Drop requirement for Automake option 'subdir-objects'.
31472
31473 2010-06-03  Bruno Haible  <bruno@clisp.org>
31474
31475         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
31476         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
31477         expansion does not end with a newline.
31478         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
31479         unnecessary newline.
31480
31481 2010-06-03  Bruno Haible  <bruno@clisp.org>
31482
31483         Reduce dependencies.
31484         * tests/test-quotearg.h: New file, extracted from
31485         tests/test-quotearg.c.
31486         * tests/test-quotearg-simple.c: New file, extracted from
31487         tests/test-quotearg.c.
31488         * tests/test-quotearg.c: Don't include <ctype.h>.
31489         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
31490         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
31491         use_quote_double_quotes, use_quotearg_colon): Moved to
31492         tests/test-quotearg.h.
31493         (results_g, flag_results, custom_quotes, custom_results): Moved
31494         to tests/test-quotearg-simple.c.
31495         (main): Moved the part that does not depend on gettext to
31496         tests/test-quotearg-simple.c. Return 77 if the test cannot be
31497         performed.
31498         * modules/quotearg-simple: New file.
31499         * modules/quotearg-simple-tests: New file.
31500         * modules/quotearg (Depends-on): Add quotearg-simple.
31501         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
31502         (Files): Add tests/test-quotearg.h.
31503         Reported by Paolo Bonzini.
31504
31505 2010-06-03  Bruno Haible  <bruno@clisp.org>
31506
31507         Reduce dependencies.
31508         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
31509
31510 2010-06-03  Bruno Haible  <bruno@clisp.org>
31511
31512         time: Undefine more broken macros.
31513         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
31514         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
31515         Reported by Eric Blake.
31516
31517 2010-06-03  Bruno Haible  <bruno@clisp.org>
31518
31519         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
31520         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
31521         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
31522         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
31523         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
31524         Reported by Ludovic Courtès <ludo@gnu.org>.
31525
31526 2010-06-02  Eric Blake  <eblake@redhat.com>
31527
31528         time: work with mingw + pthreads-win32 library
31529         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
31530         if timespec is defined only in pthread.h.
31531         * modules/time (Makefile.am): Substitute it.
31532         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
31533         <pthread.h>, when needed.
31534         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
31535         from the library.
31536
31537 2010-05-31  Bruno Haible  <bruno@clisp.org>
31538
31539         Avoid expanding two macros in the wrong order.
31540         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
31541         gl_LIBUNISTRING if it is defined.
31542         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
31543         autoconf >= 2.64.
31544         Reported by Ludovic Courtès <ludo@gnu.org>.
31545
31546 2010-05-27  Jim Meyering  <meyering@redhat.com>
31547
31548         maint.mk: also prohibit "#undef" of always-defined symbols
31549         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
31550         Allow more than one space before the symbol name.
31551         (sc_prohibit_always-defined_macros): Use grep's -E, now that
31552         the regexp uses alternation.
31553
31554 2010-05-26  Eric Blake  <eblake@redhat.com>
31555
31556         maint.mk: avoid echo -e
31557         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
31558         Convert all uses of echo -* to printf.
31559         Reported by Matthias Bolte.
31560
31561 2010-05-25  Bruno Haible  <bruno@clisp.org>
31562
31563         Update to GNU gettext 0.18, part 2.
31564         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
31565         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
31566
31567 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31568
31569         Add missing include in test-pwrite.c.
31570         * tests/test-pwrite.c: Include string.h, for strcmp.
31571
31572 2010-05-24  Bruno Haible  <bruno@clisp.org>
31573
31574         * NEWS: Mention requirement for Automake option 'subdir-objects'.
31575
31576 2010-05-24  Bruno Haible  <bruno@clisp.org>
31577
31578         Don't use conversion with transliteration in u{8,16,32}_strcoll.
31579         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
31580         iconveh_error argument.
31581         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
31582         U_STRCONV_TO_LOCALE.
31583         * lib/unistr/u16-strcoll.c: Likewise.
31584         * lib/unistr/u32-strcoll.c: Likewise.
31585         * modules/unistr/u8-strcoll (Depends-on): Add
31586         uniconv/u8-strconv-to-enc, localcharset. Remove
31587         uniconv/u8-strconv-to-locale.
31588         (configure.ac): Bump version number.
31589         * modules/unistr/u16-strcoll (Depends-on): Add
31590         uniconv/u16-strconv-to-enc, localcharset. Remove
31591         uniconv/u16-strconv-to-locale.
31592         (configure.ac): Bump version number.
31593         * modules/unistr/u32-strcoll (Depends-on): Add
31594         uniconv/u32-strconv-to-enc, localcharset. Remove
31595         uniconv/u32-strconv-to-locale.
31596         (configure.ac): Bump version number.
31597
31598 2010-05-24  Bruno Haible  <bruno@clisp.org>
31599
31600         Avoid a test failure on NetBSD 5.0.
31601         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
31602         an iconv() bug.
31603
31604 2010-05-24  Bruno Haible  <bruno@clisp.org>
31605
31606         Adjust #include directive style.
31607         * modules/regex (Includes): Recommend to write <regex.h>.
31608
31609 2010-05-24  Bruno Haible  <bruno@clisp.org>
31610
31611         regex: Don't require alloca.
31612         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
31613         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
31614         only inside if (0).
31615
31616 2010-05-23  Jim Meyering  <meyering@redhat.com>
31617
31618         test-renameat.c: include <sys/stat.h>
31619         * tests/test-renameat.c: Include <sys/stat.h>; required for
31620         definition of S_IS* macros.
31621
31622 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
31623
31624         Update maintainer documentation for 'relocatable-prog' module.
31625         * doc/relocatable-maint.texi: Update.
31626         Comments by Bruno Haible.
31627
31628 2010-05-23  Bruno Haible  <bruno@clisp.org>
31629
31630         git-merge-changelog: Enable --split-merged-entry by default.
31631         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
31632         (usage): Don't mention this option any more.
31633         Reported by Ralf Wildenhues.
31634
31635 2010-05-23  Jim Meyering  <meyering@redhat.com>
31636
31637         test-pwrite: do not leave behind a test file named "out"
31638         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
31639         The trivial-looking use of init.sh is really necessary.
31640         It ensures that the temporary file, "out", is created in
31641         a temporary directory, and removed upon termination.
31642         * tests/test-pwrite.sh: Re-add file.
31643         * modules/pwrite-tests: Reference it.
31644
31645 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31646
31647         Fix output redirection buglet in init.sh.
31648         * tests/init.sh: Fix redirection of stderr.
31649
31650 2010-05-20  Simon Josefsson  <simon@josefsson.org>
31651
31652         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
31653
31654 2010-05-17  Simon Josefsson  <simon@josefsson.org>
31655
31656         * modules/valgrind-tests: New file.
31657         * m4/valgrind-tests.m4: New file.
31658         * doc/valgrind-tests.texi: New file.
31659         * doc/gnulib.texi (Running self-tests under valgrind): New
31660         section.
31661
31662 2010-05-19  Bruno Haible  <bruno@clisp.org>
31663
31664         Clean up dead code in recent commit.
31665         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
31666         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
31667         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
31668         Suggested by Paolo Bonzini.
31669
31670 2010-05-19  Bruno Haible  <bruno@clisp.org>
31671
31672         Avoid valgrind error reports from libunistring.
31673         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
31674         * modules/libunistring (Files): Add it.
31675         * modules/libunistring-optional (Files): Likewise.
31676
31677 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
31678             Bruno Haible  <bruno@clisp.org>
31679
31680         New module 'libunistring-optional'.
31681         * modules/libunistring-optional: New file.
31682         * m4/libunistring-base.m4: New file.
31683         * m4/libunistring-optional.m4: New file.
31684         * lib/unicase.in.h: Renamed from lib/unicase.h.
31685         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
31686         * lib/unictype.in.h: Renamed from lib/unictype.h.
31687         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
31688         * lib/uniname.in.h: Renamed from lib/uniname.h.
31689         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
31690         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
31691         * lib/unistr.in.h: Renamed from lib/unistr.h.
31692         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
31693         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
31694         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
31695         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
31696         gl_LIBUNISTRING. If the library was found, determine the installed
31697         version and set LIBUNISTRING_VERSION.
31698         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
31699         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
31700         handle a configuration option --with-included-libunistring.
31701         * modules/libunistring (Files): Add m4/absolute-header.m4.
31702         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
31703         Add m4/libunistring-base.m4.
31704         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31705         (Makefile.am): Build unicase.h from unicase.in.h.
31706         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
31707         Add m4/libunistring-base.m4.
31708         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31709         (Makefile.am): Build uniconv.h from uniconv.in.h.
31710         * modules/unictype/base (Files): Use unictype.in.h instead of
31711         unictype.h. Add m4/libunistring-base.m4.
31712         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31713         (Makefile.am): Build unictype.h from unictype.in.h.
31714         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
31715         Add m4/libunistring-base.m4.
31716         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31717         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
31718         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
31719         Add m4/libunistring-base.m4.
31720         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31721         (Makefile.am): Build uniname.h from uniname.in.h.
31722         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
31723         Add m4/libunistring-base.m4.
31724         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31725         (Makefile.am): Build uninorm.h from uninorm.in.h.
31726         * modules/unistdio/base (Files): Use unistdio.in.h instead of
31727         unistdio.h. Add m4/libunistring-base.m4.
31728         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31729         (Makefile.am): Build unistdio.h from unistdio.in.h.
31730         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
31731         Add m4/libunistring-base.m4.
31732         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31733         (Makefile.am): Build unistr.h from unistr.in.h.
31734         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
31735         Add m4/libunistring-base.m4.
31736         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31737         (Makefile.am): Build unitypes.h from unitypes.in.h.
31738         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
31739         Add m4/libunistring-base.m4.
31740         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31741         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
31742         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
31743         uniwidth.h. Add m4/libunistring-base.m4.
31744         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31745         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
31746         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
31747         instead of augmenting lib_SOURCES.
31748         * modules/unicase/empty-suffix-context: Likewise.
31749         * modules/unicase/locale-language: Likewise.
31750         * modules/unicase/tolower: Likewise.
31751         * modules/unicase/totitle: Likewise.
31752         * modules/unicase/toupper: Likewise.
31753         * modules/unicase/u8-casecmp: Likewise.
31754         * modules/unicase/u8-casecoll: Likewise.
31755         * modules/unicase/u8-casefold: Likewise.
31756         * modules/unicase/u8-casexfrm: Likewise.
31757         * modules/unicase/u8-ct-casefold: Likewise.
31758         * modules/unicase/u8-ct-tolower: Likewise.
31759         * modules/unicase/u8-ct-totitle: Likewise.
31760         * modules/unicase/u8-ct-toupper: Likewise.
31761         * modules/unicase/u8-is-cased: Likewise.
31762         * modules/unicase/u8-is-casefolded: Likewise.
31763         * modules/unicase/u8-is-lowercase: Likewise.
31764         * modules/unicase/u8-is-titlecase: Likewise.
31765         * modules/unicase/u8-is-uppercase: Likewise.
31766         * modules/unicase/u8-prefix-context: Likewise.
31767         * modules/unicase/u8-suffix-context: Likewise.
31768         * modules/unicase/u8-tolower: Likewise.
31769         * modules/unicase/u8-totitle: Likewise.
31770         * modules/unicase/u8-toupper: Likewise.
31771         * modules/unicase/u16-casecmp: Likewise.
31772         * modules/unicase/u16-casecoll: Likewise.
31773         * modules/unicase/u16-casefold: Likewise.
31774         * modules/unicase/u16-casexfrm: Likewise.
31775         * modules/unicase/u16-ct-casefold: Likewise.
31776         * modules/unicase/u16-ct-tolower: Likewise.
31777         * modules/unicase/u16-ct-totitle: Likewise.
31778         * modules/unicase/u16-ct-toupper: Likewise.
31779         * modules/unicase/u16-is-cased: Likewise.
31780         * modules/unicase/u16-is-casefolded: Likewise.
31781         * modules/unicase/u16-is-lowercase: Likewise.
31782         * modules/unicase/u16-is-titlecase: Likewise.
31783         * modules/unicase/u16-is-uppercase: Likewise.
31784         * modules/unicase/u16-prefix-context: Likewise.
31785         * modules/unicase/u16-suffix-context: Likewise.
31786         * modules/unicase/u16-tolower: Likewise.
31787         * modules/unicase/u16-totitle: Likewise.
31788         * modules/unicase/u16-toupper: Likewise.
31789         * modules/unicase/u32-casecmp: Likewise.
31790         * modules/unicase/u32-casecoll: Likewise.
31791         * modules/unicase/u32-casefold: Likewise.
31792         * modules/unicase/u32-casexfrm: Likewise.
31793         * modules/unicase/u32-ct-casefold: Likewise.
31794         * modules/unicase/u32-ct-tolower: Likewise.
31795         * modules/unicase/u32-ct-totitle: Likewise.
31796         * modules/unicase/u32-ct-toupper: Likewise.
31797         * modules/unicase/u32-is-cased: Likewise.
31798         * modules/unicase/u32-is-casefolded: Likewise.
31799         * modules/unicase/u32-is-lowercase: Likewise.
31800         * modules/unicase/u32-is-titlecase: Likewise.
31801         * modules/unicase/u32-is-uppercase: Likewise.
31802         * modules/unicase/u32-prefix-context: Likewise.
31803         * modules/unicase/u32-suffix-context: Likewise.
31804         * modules/unicase/u32-tolower: Likewise.
31805         * modules/unicase/u32-totitle: Likewise.
31806         * modules/unicase/u32-toupper: Likewise.
31807         * modules/unicase/ulc-casecmp: Likewise.
31808         * modules/unicase/ulc-casecoll: Likewise.
31809         * modules/unicase/ulc-casexfrm: Likewise.
31810         * modules/uniconv/u8-conv-from-enc: Likewise.
31811         * modules/uniconv/u8-conv-to-enc: Likewise.
31812         * modules/uniconv/u8-strconv-from-enc: Likewise.
31813         * modules/uniconv/u8-strconv-from-locale: Likewise.
31814         * modules/uniconv/u8-strconv-to-enc: Likewise.
31815         * modules/uniconv/u8-strconv-to-locale: Likewise.
31816         * modules/uniconv/u16-conv-from-enc: Likewise.
31817         * modules/uniconv/u16-conv-to-enc: Likewise.
31818         * modules/uniconv/u16-strconv-from-enc: Likewise.
31819         * modules/uniconv/u16-strconv-from-locale: Likewise.
31820         * modules/uniconv/u16-strconv-to-enc: Likewise.
31821         * modules/uniconv/u16-strconv-to-locale: Likewise.
31822         * modules/uniconv/u32-conv-from-enc: Likewise.
31823         * modules/uniconv/u32-conv-to-enc: Likewise.
31824         * modules/uniconv/u32-strconv-from-enc: Likewise.
31825         * modules/uniconv/u32-strconv-from-locale: Likewise.
31826         * modules/uniconv/u32-strconv-to-enc: Likewise.
31827         * modules/uniconv/u32-strconv-to-locale: Likewise.
31828         * modules/unictype/bidicategory-byname: Likewise.
31829         * modules/unictype/bidicategory-name: Likewise.
31830         * modules/unictype/bidicategory-of: Likewise.
31831         * modules/unictype/bidicategory-test: Likewise.
31832         * modules/unictype/block-list: Likewise.
31833         * modules/unictype/block-test: Likewise.
31834         * modules/unictype/category-C: Likewise.
31835         * modules/unictype/category-Cc: Likewise.
31836         * modules/unictype/category-Cf: Likewise.
31837         * modules/unictype/category-Cn: Likewise.
31838         * modules/unictype/category-Co: Likewise.
31839         * modules/unictype/category-Cs: Likewise.
31840         * modules/unictype/category-L: Likewise.
31841         * modules/unictype/category-Ll: Likewise.
31842         * modules/unictype/category-Lm: Likewise.
31843         * modules/unictype/category-Lo: Likewise.
31844         * modules/unictype/category-Lt: Likewise.
31845         * modules/unictype/category-Lu: Likewise.
31846         * modules/unictype/category-M: Likewise.
31847         * modules/unictype/category-Mc: Likewise.
31848         * modules/unictype/category-Me: Likewise.
31849         * modules/unictype/category-Mn: Likewise.
31850         * modules/unictype/category-N: Likewise.
31851         * modules/unictype/category-Nd: Likewise.
31852         * modules/unictype/category-Nl: Likewise.
31853         * modules/unictype/category-No: Likewise.
31854         * modules/unictype/category-P: Likewise.
31855         * modules/unictype/category-Pc: Likewise.
31856         * modules/unictype/category-Pd: Likewise.
31857         * modules/unictype/category-Pe: Likewise.
31858         * modules/unictype/category-Pf: Likewise.
31859         * modules/unictype/category-Pi: Likewise.
31860         * modules/unictype/category-Po: Likewise.
31861         * modules/unictype/category-Ps: Likewise.
31862         * modules/unictype/category-S: Likewise.
31863         * modules/unictype/category-Sc: Likewise.
31864         * modules/unictype/category-Sk: Likewise.
31865         * modules/unictype/category-Sm: Likewise.
31866         * modules/unictype/category-So: Likewise.
31867         * modules/unictype/category-Z: Likewise.
31868         * modules/unictype/category-Zl: Likewise.
31869         * modules/unictype/category-Zp: Likewise.
31870         * modules/unictype/category-Zs: Likewise.
31871         * modules/unictype/category-and: Likewise.
31872         * modules/unictype/category-and-not: Likewise.
31873         * modules/unictype/category-byname: Likewise.
31874         * modules/unictype/category-name: Likewise.
31875         * modules/unictype/category-none: Likewise.
31876         * modules/unictype/category-of: Likewise.
31877         * modules/unictype/category-or: Likewise.
31878         * modules/unictype/category-test: Likewise.
31879         * modules/unictype/combining-class: Likewise.
31880         * modules/unictype/ctype-alnum: Likewise.
31881         * modules/unictype/ctype-alpha: Likewise.
31882         * modules/unictype/ctype-blank: Likewise.
31883         * modules/unictype/ctype-cntrl: Likewise.
31884         * modules/unictype/ctype-digit: Likewise.
31885         * modules/unictype/ctype-graph: Likewise.
31886         * modules/unictype/ctype-lower: Likewise.
31887         * modules/unictype/ctype-print: Likewise.
31888         * modules/unictype/ctype-punct: Likewise.
31889         * modules/unictype/ctype-space: Likewise.
31890         * modules/unictype/ctype-upper: Likewise.
31891         * modules/unictype/ctype-xdigit: Likewise.
31892         * modules/unictype/decimal-digit: Likewise.
31893         * modules/unictype/digit: Likewise.
31894         * modules/unictype/mirror: Likewise.
31895         * modules/unictype/numeric: Likewise.
31896         * modules/unictype/property-alphabetic: Likewise.
31897         * modules/unictype/property-ascii-hex-digit: Likewise.
31898         * modules/unictype/property-bidi-arabic-digit: Likewise.
31899         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
31900         * modules/unictype/property-bidi-block-separator: Likewise.
31901         * modules/unictype/property-bidi-boundary-neutral: Likewise.
31902         * modules/unictype/property-bidi-common-separator: Likewise.
31903         * modules/unictype/property-bidi-control: Likewise.
31904         * modules/unictype/property-bidi-embedding-or-override: Likewise.
31905         * modules/unictype/property-bidi-eur-num-separator: Likewise.
31906         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
31907         * modules/unictype/property-bidi-european-digit: Likewise.
31908         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
31909         * modules/unictype/property-bidi-left-to-right: Likewise.
31910         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
31911         * modules/unictype/property-bidi-other-neutral: Likewise.
31912         * modules/unictype/property-bidi-pdf: Likewise.
31913         * modules/unictype/property-bidi-segment-separator: Likewise.
31914         * modules/unictype/property-bidi-whitespace: Likewise.
31915         * modules/unictype/property-byname: Likewise.
31916         * modules/unictype/property-combining: Likewise.
31917         * modules/unictype/property-composite: Likewise.
31918         * modules/unictype/property-currency-symbol: Likewise.
31919         * modules/unictype/property-dash: Likewise.
31920         * modules/unictype/property-decimal-digit: Likewise.
31921         * modules/unictype/property-default-ignorable-code-point: Likewise.
31922         * modules/unictype/property-deprecated: Likewise.
31923         * modules/unictype/property-diacritic: Likewise.
31924         * modules/unictype/property-extender: Likewise.
31925         * modules/unictype/property-format-control: Likewise.
31926         * modules/unictype/property-grapheme-base: Likewise.
31927         * modules/unictype/property-grapheme-extend: Likewise.
31928         * modules/unictype/property-grapheme-link: Likewise.
31929         * modules/unictype/property-hex-digit: Likewise.
31930         * modules/unictype/property-hyphen: Likewise.
31931         * modules/unictype/property-id-continue: Likewise.
31932         * modules/unictype/property-id-start: Likewise.
31933         * modules/unictype/property-ideographic: Likewise.
31934         * modules/unictype/property-ids-binary-operator: Likewise.
31935         * modules/unictype/property-ids-trinary-operator: Likewise.
31936         * modules/unictype/property-ignorable-control: Likewise.
31937         * modules/unictype/property-iso-control: Likewise.
31938         * modules/unictype/property-join-control: Likewise.
31939         * modules/unictype/property-left-of-pair: Likewise.
31940         * modules/unictype/property-line-separator: Likewise.
31941         * modules/unictype/property-logical-order-exception: Likewise.
31942         * modules/unictype/property-lowercase: Likewise.
31943         * modules/unictype/property-math: Likewise.
31944         * modules/unictype/property-non-break: Likewise.
31945         * modules/unictype/property-not-a-character: Likewise.
31946         * modules/unictype/property-numeric: Likewise.
31947         * modules/unictype/property-other-alphabetic: Likewise.
31948         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
31949         * modules/unictype/property-other-grapheme-extend: Likewise.
31950         * modules/unictype/property-other-id-continue: Likewise.
31951         * modules/unictype/property-other-id-start: Likewise.
31952         * modules/unictype/property-other-lowercase: Likewise.
31953         * modules/unictype/property-other-math: Likewise.
31954         * modules/unictype/property-other-uppercase: Likewise.
31955         * modules/unictype/property-paired-punctuation: Likewise.
31956         * modules/unictype/property-paragraph-separator: Likewise.
31957         * modules/unictype/property-pattern-syntax: Likewise.
31958         * modules/unictype/property-pattern-white-space: Likewise.
31959         * modules/unictype/property-private-use: Likewise.
31960         * modules/unictype/property-punctuation: Likewise.
31961         * modules/unictype/property-quotation-mark: Likewise.
31962         * modules/unictype/property-radical: Likewise.
31963         * modules/unictype/property-sentence-terminal: Likewise.
31964         * modules/unictype/property-soft-dotted: Likewise.
31965         * modules/unictype/property-space: Likewise.
31966         * modules/unictype/property-terminal-punctuation: Likewise.
31967         * modules/unictype/property-test: Likewise.
31968         * modules/unictype/property-titlecase: Likewise.
31969         * modules/unictype/property-unassigned-code-value: Likewise.
31970         * modules/unictype/property-unified-ideograph: Likewise.
31971         * modules/unictype/property-uppercase: Likewise.
31972         * modules/unictype/property-variation-selector: Likewise.
31973         * modules/unictype/property-white-space: Likewise.
31974         * modules/unictype/property-xid-continue: Likewise.
31975         * modules/unictype/property-xid-start: Likewise.
31976         * modules/unictype/property-zero-width: Likewise.
31977         * modules/unictype/scripts: Likewise.
31978         * modules/unictype/syntax-c-ident: Likewise.
31979         * modules/unictype/syntax-c-whitespace: Likewise.
31980         * modules/unictype/syntax-java-ident: Likewise.
31981         * modules/unictype/syntax-java-whitespace: Likewise.
31982         * modules/unilbrk/u8-possible-linebreaks: Likewise.
31983         * modules/unilbrk/u8-width-linebreaks: Likewise.
31984         * modules/unilbrk/u16-possible-linebreaks: Likewise.
31985         * modules/unilbrk/u16-width-linebreaks: Likewise.
31986         * modules/unilbrk/u32-possible-linebreaks: Likewise.
31987         * modules/unilbrk/u32-width-linebreaks: Likewise.
31988         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
31989         * modules/unilbrk/ulc-width-linebreaks: Likewise.
31990         * modules/uniname/uniname: Likewise.
31991         * modules/uninorm/canonical-decomposition: Likewise.
31992         * modules/uninorm/composition: Likewise.
31993         * modules/uninorm/decomposing-form: Likewise.
31994         * modules/uninorm/decomposition: Likewise.
31995         * modules/uninorm/filter: Likewise.
31996         * modules/uninorm/nfc: Likewise.
31997         * modules/uninorm/nfd: Likewise.
31998         * modules/uninorm/nfkc: Likewise.
31999         * modules/uninorm/nfkd: Likewise.
32000         * modules/uninorm/u8-normalize: Likewise.
32001         * modules/uninorm/u8-normcmp: Likewise.
32002         * modules/uninorm/u8-normcoll: Likewise.
32003         * modules/uninorm/u8-normxfrm: Likewise.
32004         * modules/uninorm/u16-normalize: Likewise.
32005         * modules/uninorm/u16-normcmp: Likewise.
32006         * modules/uninorm/u16-normcoll: Likewise.
32007         * modules/uninorm/u16-normxfrm: Likewise.
32008         * modules/uninorm/u32-normalize: Likewise.
32009         * modules/uninorm/u32-normcmp: Likewise.
32010         * modules/uninorm/u32-normcoll: Likewise.
32011         * modules/uninorm/u32-normxfrm: Likewise.
32012         * modules/unistdio/u8-asnprintf: Likewise.
32013         * modules/unistdio/u8-asprintf: Likewise.
32014         * modules/unistdio/u8-snprintf: Likewise.
32015         * modules/unistdio/u8-sprintf: Likewise.
32016         * modules/unistdio/u8-u8-asnprintf: Likewise.
32017         * modules/unistdio/u8-u8-asprintf: Likewise.
32018         * modules/unistdio/u8-u8-snprintf: Likewise.
32019         * modules/unistdio/u8-u8-sprintf: Likewise.
32020         * modules/unistdio/u8-u8-vasnprintf: Likewise.
32021         * modules/unistdio/u8-u8-vasprintf: Likewise.
32022         * modules/unistdio/u8-u8-vsnprintf: Likewise.
32023         * modules/unistdio/u8-u8-vsprintf: Likewise.
32024         * modules/unistdio/u8-vasnprintf: Likewise.
32025         * modules/unistdio/u8-vasprintf: Likewise.
32026         * modules/unistdio/u8-vsnprintf: Likewise.
32027         * modules/unistdio/u8-vsprintf: Likewise.
32028         * modules/unistdio/u16-asnprintf: Likewise.
32029         * modules/unistdio/u16-asprintf: Likewise.
32030         * modules/unistdio/u16-snprintf: Likewise.
32031         * modules/unistdio/u16-sprintf: Likewise.
32032         * modules/unistdio/u16-u16-asnprintf: Likewise.
32033         * modules/unistdio/u16-u16-asprintf: Likewise.
32034         * modules/unistdio/u16-u16-snprintf: Likewise.
32035         * modules/unistdio/u16-u16-sprintf: Likewise.
32036         * modules/unistdio/u16-u16-vasnprintf: Likewise.
32037         * modules/unistdio/u16-u16-vasprintf: Likewise.
32038         * modules/unistdio/u16-u16-vsnprintf: Likewise.
32039         * modules/unistdio/u16-u16-vsprintf: Likewise.
32040         * modules/unistdio/u16-vasnprintf: Likewise.
32041         * modules/unistdio/u16-vasprintf: Likewise.
32042         * modules/unistdio/u16-vsnprintf: Likewise.
32043         * modules/unistdio/u16-vsprintf: Likewise.
32044         * modules/unistdio/u32-asnprintf: Likewise.
32045         * modules/unistdio/u32-asprintf: Likewise.
32046         * modules/unistdio/u32-snprintf: Likewise.
32047         * modules/unistdio/u32-sprintf: Likewise.
32048         * modules/unistdio/u32-u32-asnprintf: Likewise.
32049         * modules/unistdio/u32-u32-asprintf: Likewise.
32050         * modules/unistdio/u32-u32-snprintf: Likewise.
32051         * modules/unistdio/u32-u32-sprintf: Likewise.
32052         * modules/unistdio/u32-u32-vasnprintf: Likewise.
32053         * modules/unistdio/u32-u32-vasprintf: Likewise.
32054         * modules/unistdio/u32-u32-vsnprintf: Likewise.
32055         * modules/unistdio/u32-u32-vsprintf: Likewise.
32056         * modules/unistdio/u32-vasnprintf: Likewise.
32057         * modules/unistdio/u32-vasprintf: Likewise.
32058         * modules/unistdio/u32-vsnprintf: Likewise.
32059         * modules/unistdio/u32-vsprintf: Likewise.
32060         * modules/unistdio/ulc-asnprintf: Likewise.
32061         * modules/unistdio/ulc-asprintf: Likewise.
32062         * modules/unistdio/ulc-fprintf: Likewise.
32063         * modules/unistdio/ulc-snprintf: Likewise.
32064         * modules/unistdio/ulc-sprintf: Likewise.
32065         * modules/unistdio/ulc-vasnprintf: Likewise.
32066         * modules/unistdio/ulc-vasprintf: Likewise.
32067         * modules/unistdio/ulc-vfprintf: Likewise.
32068         * modules/unistdio/ulc-vsnprintf: Likewise.
32069         * modules/unistdio/ulc-vsprintf: Likewise.
32070         * modules/unistr/u8-check: Likewise.
32071         * modules/unistr/u8-chr: Likewise.
32072         * modules/unistr/u8-cmp: Likewise.
32073         * modules/unistr/u8-cmp2: Likewise.
32074         * modules/unistr/u8-cpy: Likewise.
32075         * modules/unistr/u8-cpy-alloc: Likewise.
32076         * modules/unistr/u8-endswith: Likewise.
32077         * modules/unistr/u8-mblen: Likewise.
32078         * modules/unistr/u8-mbsnlen: Likewise.
32079         * modules/unistr/u8-mbtouc: Likewise.
32080         * modules/unistr/u8-mbtouc-unsafe: Likewise.
32081         * modules/unistr/u8-mbtoucr: Likewise.
32082         * modules/unistr/u8-move: Likewise.
32083         * modules/unistr/u8-next: Likewise.
32084         * modules/unistr/u8-prev: Likewise.
32085         * modules/unistr/u8-set: Likewise.
32086         * modules/unistr/u8-startswith: Likewise.
32087         * modules/unistr/u8-stpcpy: Likewise.
32088         * modules/unistr/u8-stpncpy: Likewise.
32089         * modules/unistr/u8-strcat: Likewise.
32090         * modules/unistr/u8-strchr: Likewise.
32091         * modules/unistr/u8-strcmp: Likewise.
32092         * modules/unistr/u8-strcoll: Likewise.
32093         * modules/unistr/u8-strcpy: Likewise.
32094         * modules/unistr/u8-strcspn: Likewise.
32095         * modules/unistr/u8-strdup: Likewise.
32096         * modules/unistr/u8-strlen: Likewise.
32097         * modules/unistr/u8-strmblen: Likewise.
32098         * modules/unistr/u8-strmbtouc: Likewise.
32099         * modules/unistr/u8-strncat: Likewise.
32100         * modules/unistr/u8-strncmp: Likewise.
32101         * modules/unistr/u8-strncpy: Likewise.
32102         * modules/unistr/u8-strnlen: Likewise.
32103         * modules/unistr/u8-strpbrk: Likewise.
32104         * modules/unistr/u8-strrchr: Likewise.
32105         * modules/unistr/u8-strspn: Likewise.
32106         * modules/unistr/u8-strstr: Likewise.
32107         * modules/unistr/u8-strtok: Likewise.
32108         * modules/unistr/u8-to-u16: Likewise.
32109         * modules/unistr/u8-to-u32: Likewise.
32110         * modules/unistr/u8-uctomb: Likewise.
32111         * modules/unistr/u16-check: Likewise.
32112         * modules/unistr/u16-chr: Likewise.
32113         * modules/unistr/u16-cmp: Likewise.
32114         * modules/unistr/u16-cmp2: Likewise.
32115         * modules/unistr/u16-cpy: Likewise.
32116         * modules/unistr/u16-cpy-alloc: Likewise.
32117         * modules/unistr/u16-endswith: Likewise.
32118         * modules/unistr/u16-mblen: Likewise.
32119         * modules/unistr/u16-mbsnlen: Likewise.
32120         * modules/unistr/u16-mbtouc: Likewise.
32121         * modules/unistr/u16-mbtouc-unsafe: Likewise.
32122         * modules/unistr/u16-mbtoucr: Likewise.
32123         * modules/unistr/u16-move: Likewise.
32124         * modules/unistr/u16-next: Likewise.
32125         * modules/unistr/u16-prev: Likewise.
32126         * modules/unistr/u16-set: Likewise.
32127         * modules/unistr/u16-startswith: Likewise.
32128         * modules/unistr/u16-stpcpy: Likewise.
32129         * modules/unistr/u16-stpncpy: Likewise.
32130         * modules/unistr/u16-strcat: Likewise.
32131         * modules/unistr/u16-strchr: Likewise.
32132         * modules/unistr/u16-strcmp: Likewise.
32133         * modules/unistr/u16-strcoll: Likewise.
32134         * modules/unistr/u16-strcpy: Likewise.
32135         * modules/unistr/u16-strcspn: Likewise.
32136         * modules/unistr/u16-strdup: Likewise.
32137         * modules/unistr/u16-strlen: Likewise.
32138         * modules/unistr/u16-strmblen: Likewise.
32139         * modules/unistr/u16-strmbtouc: Likewise.
32140         * modules/unistr/u16-strncat: Likewise.
32141         * modules/unistr/u16-strncmp: Likewise.
32142         * modules/unistr/u16-strncpy: Likewise.
32143         * modules/unistr/u16-strnlen: Likewise.
32144         * modules/unistr/u16-strpbrk: Likewise.
32145         * modules/unistr/u16-strrchr: Likewise.
32146         * modules/unistr/u16-strspn: Likewise.
32147         * modules/unistr/u16-strstr: Likewise.
32148         * modules/unistr/u16-strtok: Likewise.
32149         * modules/unistr/u16-to-u32: Likewise.
32150         * modules/unistr/u16-to-u8: Likewise.
32151         * modules/unistr/u16-uctomb: Likewise.
32152         * modules/unistr/u32-check: Likewise.
32153         * modules/unistr/u32-chr: Likewise.
32154         * modules/unistr/u32-cmp: Likewise.
32155         * modules/unistr/u32-cmp2: Likewise.
32156         * modules/unistr/u32-cpy: Likewise.
32157         * modules/unistr/u32-cpy-alloc: Likewise.
32158         * modules/unistr/u32-endswith: Likewise.
32159         * modules/unistr/u32-mblen: Likewise.
32160         * modules/unistr/u32-mbsnlen: Likewise.
32161         * modules/unistr/u32-mbtouc: Likewise.
32162         * modules/unistr/u32-mbtouc-unsafe: Likewise.
32163         * modules/unistr/u32-mbtoucr: Likewise.
32164         * modules/unistr/u32-move: Likewise.
32165         * modules/unistr/u32-next: Likewise.
32166         * modules/unistr/u32-prev: Likewise.
32167         * modules/unistr/u32-set: Likewise.
32168         * modules/unistr/u32-startswith: Likewise.
32169         * modules/unistr/u32-stpcpy: Likewise.
32170         * modules/unistr/u32-stpncpy: Likewise.
32171         * modules/unistr/u32-strcat: Likewise.
32172         * modules/unistr/u32-strchr: Likewise.
32173         * modules/unistr/u32-strcmp: Likewise.
32174         * modules/unistr/u32-strcoll: Likewise.
32175         * modules/unistr/u32-strcpy: Likewise.
32176         * modules/unistr/u32-strcspn: Likewise.
32177         * modules/unistr/u32-strdup: Likewise.
32178         * modules/unistr/u32-strlen: Likewise.
32179         * modules/unistr/u32-strmblen: Likewise.
32180         * modules/unistr/u32-strmbtouc: Likewise.
32181         * modules/unistr/u32-strncat: Likewise.
32182         * modules/unistr/u32-strncmp: Likewise.
32183         * modules/unistr/u32-strncpy: Likewise.
32184         * modules/unistr/u32-strnlen: Likewise.
32185         * modules/unistr/u32-strpbrk: Likewise.
32186         * modules/unistr/u32-strrchr: Likewise.
32187         * modules/unistr/u32-strspn: Likewise.
32188         * modules/unistr/u32-strstr: Likewise.
32189         * modules/unistr/u32-strtok: Likewise.
32190         * modules/unistr/u32-to-u16: Likewise.
32191         * modules/unistr/u32-to-u8: Likewise.
32192         * modules/unistr/u32-uctomb: Likewise.
32193         * modules/uniwbrk/u8-wordbreaks: Likewise.
32194         * modules/uniwbrk/u16-wordbreaks: Likewise.
32195         * modules/uniwbrk/u32-wordbreaks: Likewise.
32196         * modules/uniwbrk/ulc-wordbreaks: Likewise.
32197         * modules/uniwbrk/wordbreak-property: Likewise.
32198         * modules/uniwidth/u8-strwidth: Likewise.
32199         * modules/uniwidth/u8-width: Likewise.
32200         * modules/uniwidth/u16-strwidth: Likewise.
32201         * modules/uniwidth/u16-width: Likewise.
32202         * modules/uniwidth/u32-strwidth: Likewise.
32203         * modules/uniwidth/u32-width: Likewise.
32204         * modules/uniwidth/width: Likewise.
32205         * modules/unicase/cased-tests (Makefile.am): Link all test programs
32206         with $(LIBUNISTRING).
32207         * modules/unicase/ignorable-tests: Likewise.
32208         * modules/unicase/locale-language-tests: Likewise.
32209         * modules/unicase/tolower-tests: Likewise.
32210         * modules/unicase/totitle-tests: Likewise.
32211         * modules/unicase/toupper-tests: Likewise.
32212         * modules/unicase/u8-casecmp-tests: Likewise.
32213         * modules/unicase/u8-casecoll-tests: Likewise.
32214         * modules/unicase/u8-casefold-tests: Likewise.
32215         * modules/unicase/u8-is-cased-tests: Likewise.
32216         * modules/unicase/u8-is-casefolded-tests: Likewise.
32217         * modules/unicase/u8-is-lowercase-tests: Likewise.
32218         * modules/unicase/u8-is-titlecase-tests: Likewise.
32219         * modules/unicase/u8-is-uppercase-tests: Likewise.
32220         * modules/unicase/u8-tolower-tests: Likewise.
32221         * modules/unicase/u8-totitle-tests: Likewise.
32222         * modules/unicase/u8-toupper-tests: Likewise.
32223         * modules/unicase/u16-casecmp-tests: Likewise.
32224         * modules/unicase/u16-casecoll-tests: Likewise.
32225         * modules/unicase/u16-casefold-tests: Likewise.
32226         * modules/unicase/u16-is-cased-tests: Likewise.
32227         * modules/unicase/u16-is-casefolded-tests: Likewise.
32228         * modules/unicase/u16-is-lowercase-tests: Likewise.
32229         * modules/unicase/u16-is-titlecase-tests: Likewise.
32230         * modules/unicase/u16-is-uppercase-tests: Likewise.
32231         * modules/unicase/u16-tolower-tests: Likewise.
32232         * modules/unicase/u16-totitle-tests: Likewise.
32233         * modules/unicase/u16-toupper-tests: Likewise.
32234         * modules/unicase/u32-casecmp-tests: Likewise.
32235         * modules/unicase/u32-casecoll-tests: Likewise.
32236         * modules/unicase/u32-casefold-tests: Likewise.
32237         * modules/unicase/u32-is-cased-tests: Likewise.
32238         * modules/unicase/u32-is-casefolded-tests: Likewise.
32239         * modules/unicase/u32-is-lowercase-tests: Likewise.
32240         * modules/unicase/u32-is-titlecase-tests: Likewise.
32241         * modules/unicase/u32-is-uppercase-tests: Likewise.
32242         * modules/unicase/u32-tolower-tests: Likewise.
32243         * modules/unicase/u32-totitle-tests: Likewise.
32244         * modules/unicase/u32-toupper-tests: Likewise.
32245         * modules/unicase/ulc-casecmp-tests: Likewise.
32246         * modules/unicase/ulc-casecoll-tests: Likewise.
32247         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
32248         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
32249         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
32250         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
32251         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
32252         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
32253         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
32254         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
32255         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
32256         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
32257         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
32258         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
32259         * modules/unictype/bidicategory-byname-tests: Likewise.
32260         * modules/unictype/bidicategory-name-tests: Likewise.
32261         * modules/unictype/bidicategory-of-tests: Likewise.
32262         * modules/unictype/bidicategory-test-tests: Likewise.
32263         * modules/unictype/block-list-tests: Likewise.
32264         * modules/unictype/block-of-tests: Likewise.
32265         * modules/unictype/block-test-tests: Likewise.
32266         * modules/unictype/category-C-tests: Likewise.
32267         * modules/unictype/category-Cc-tests: Likewise.
32268         * modules/unictype/category-Cf-tests: Likewise.
32269         * modules/unictype/category-Cn-tests: Likewise.
32270         * modules/unictype/category-Co-tests: Likewise.
32271         * modules/unictype/category-Cs-tests: Likewise.
32272         * modules/unictype/category-L-tests: Likewise.
32273         * modules/unictype/category-Ll-tests: Likewise.
32274         * modules/unictype/category-Lm-tests: Likewise.
32275         * modules/unictype/category-Lo-tests: Likewise.
32276         * modules/unictype/category-Lt-tests: Likewise.
32277         * modules/unictype/category-Lu-tests: Likewise.
32278         * modules/unictype/category-M-tests: Likewise.
32279         * modules/unictype/category-Mc-tests: Likewise.
32280         * modules/unictype/category-Me-tests: Likewise.
32281         * modules/unictype/category-Mn-tests: Likewise.
32282         * modules/unictype/category-N-tests: Likewise.
32283         * modules/unictype/category-Nd-tests: Likewise.
32284         * modules/unictype/category-Nl-tests: Likewise.
32285         * modules/unictype/category-No-tests: Likewise.
32286         * modules/unictype/category-P-tests: Likewise.
32287         * modules/unictype/category-Pc-tests: Likewise.
32288         * modules/unictype/category-Pd-tests: Likewise.
32289         * modules/unictype/category-Pe-tests: Likewise.
32290         * modules/unictype/category-Pf-tests: Likewise.
32291         * modules/unictype/category-Pi-tests: Likewise.
32292         * modules/unictype/category-Po-tests: Likewise.
32293         * modules/unictype/category-Ps-tests: Likewise.
32294         * modules/unictype/category-S-tests: Likewise.
32295         * modules/unictype/category-Sc-tests: Likewise.
32296         * modules/unictype/category-Sk-tests: Likewise.
32297         * modules/unictype/category-Sm-tests: Likewise.
32298         * modules/unictype/category-So-tests: Likewise.
32299         * modules/unictype/category-Z-tests: Likewise.
32300         * modules/unictype/category-Zl-tests: Likewise.
32301         * modules/unictype/category-Zp-tests: Likewise.
32302         * modules/unictype/category-Zs-tests: Likewise.
32303         * modules/unictype/category-and-not-tests: Likewise.
32304         * modules/unictype/category-and-tests: Likewise.
32305         * modules/unictype/category-byname-tests: Likewise.
32306         * modules/unictype/category-name-tests: Likewise.
32307         * modules/unictype/category-none-tests: Likewise.
32308         * modules/unictype/category-of-tests: Likewise.
32309         * modules/unictype/category-or-tests: Likewise.
32310         * modules/unictype/category-test-withtable-tests: Likewise.
32311         * modules/unictype/combining-class-tests: Likewise.
32312         * modules/unictype/ctype-alnum-tests: Likewise.
32313         * modules/unictype/ctype-alpha-tests: Likewise.
32314         * modules/unictype/ctype-blank-tests: Likewise.
32315         * modules/unictype/ctype-cntrl-tests: Likewise.
32316         * modules/unictype/ctype-digit-tests: Likewise.
32317         * modules/unictype/ctype-graph-tests: Likewise.
32318         * modules/unictype/ctype-lower-tests: Likewise.
32319         * modules/unictype/ctype-print-tests: Likewise.
32320         * modules/unictype/ctype-punct-tests: Likewise.
32321         * modules/unictype/ctype-space-tests: Likewise.
32322         * modules/unictype/ctype-upper-tests: Likewise.
32323         * modules/unictype/ctype-xdigit-tests: Likewise.
32324         * modules/unictype/decimal-digit-tests: Likewise.
32325         * modules/unictype/digit-tests: Likewise.
32326         * modules/unictype/mirror-tests: Likewise.
32327         * modules/unictype/numeric-tests: Likewise.
32328         * modules/unictype/property-alphabetic-tests: Likewise.
32329         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
32330         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
32331         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
32332         * modules/unictype/property-bidi-block-separator-tests: Likewise.
32333         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
32334         * modules/unictype/property-bidi-common-separator-tests: Likewise.
32335         * modules/unictype/property-bidi-control-tests: Likewise.
32336         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
32337         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
32338         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
32339         * modules/unictype/property-bidi-european-digit-tests: Likewise.
32340         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
32341         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
32342         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
32343         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
32344         * modules/unictype/property-bidi-pdf-tests: Likewise.
32345         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
32346         * modules/unictype/property-bidi-whitespace-tests: Likewise.
32347         * modules/unictype/property-byname-tests: Likewise.
32348         * modules/unictype/property-combining-tests: Likewise.
32349         * modules/unictype/property-composite-tests: Likewise.
32350         * modules/unictype/property-currency-symbol-tests: Likewise.
32351         * modules/unictype/property-dash-tests: Likewise.
32352         * modules/unictype/property-decimal-digit-tests: Likewise.
32353         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
32354         * modules/unictype/property-deprecated-tests: Likewise.
32355         * modules/unictype/property-diacritic-tests: Likewise.
32356         * modules/unictype/property-extender-tests: Likewise.
32357         * modules/unictype/property-format-control-tests: Likewise.
32358         * modules/unictype/property-grapheme-base-tests: Likewise.
32359         * modules/unictype/property-grapheme-extend-tests: Likewise.
32360         * modules/unictype/property-grapheme-link-tests: Likewise.
32361         * modules/unictype/property-hex-digit-tests: Likewise.
32362         * modules/unictype/property-hyphen-tests: Likewise.
32363         * modules/unictype/property-id-continue-tests: Likewise.
32364         * modules/unictype/property-id-start-tests: Likewise.
32365         * modules/unictype/property-ideographic-tests: Likewise.
32366         * modules/unictype/property-ids-binary-operator-tests: Likewise.
32367         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
32368         * modules/unictype/property-ignorable-control-tests: Likewise.
32369         * modules/unictype/property-iso-control-tests: Likewise.
32370         * modules/unictype/property-join-control-tests: Likewise.
32371         * modules/unictype/property-left-of-pair-tests: Likewise.
32372         * modules/unictype/property-line-separator-tests: Likewise.
32373         * modules/unictype/property-logical-order-exception-tests: Likewise.
32374         * modules/unictype/property-lowercase-tests: Likewise.
32375         * modules/unictype/property-math-tests: Likewise.
32376         * modules/unictype/property-non-break-tests: Likewise.
32377         * modules/unictype/property-not-a-character-tests: Likewise.
32378         * modules/unictype/property-numeric-tests: Likewise.
32379         * modules/unictype/property-other-alphabetic-tests: Likewise.
32380         * modules/unictype/property-other-default-ignorable-code-point-tests:
32381         Likewise.
32382         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
32383         * modules/unictype/property-other-id-continue-tests: Likewise.
32384         * modules/unictype/property-other-id-start-tests: Likewise.
32385         * modules/unictype/property-other-lowercase-tests: Likewise.
32386         * modules/unictype/property-other-math-tests: Likewise.
32387         * modules/unictype/property-other-uppercase-tests: Likewise.
32388         * modules/unictype/property-paired-punctuation-tests: Likewise.
32389         * modules/unictype/property-paragraph-separator-tests: Likewise.
32390         * modules/unictype/property-pattern-syntax-tests: Likewise.
32391         * modules/unictype/property-pattern-white-space-tests: Likewise.
32392         * modules/unictype/property-private-use-tests: Likewise.
32393         * modules/unictype/property-punctuation-tests: Likewise.
32394         * modules/unictype/property-quotation-mark-tests: Likewise.
32395         * modules/unictype/property-radical-tests: Likewise.
32396         * modules/unictype/property-sentence-terminal-tests: Likewise.
32397         * modules/unictype/property-soft-dotted-tests: Likewise.
32398         * modules/unictype/property-space-tests: Likewise.
32399         * modules/unictype/property-terminal-punctuation-tests: Likewise.
32400         * modules/unictype/property-test-tests: Likewise.
32401         * modules/unictype/property-titlecase-tests: Likewise.
32402         * modules/unictype/property-unassigned-code-value-tests: Likewise.
32403         * modules/unictype/property-unified-ideograph-tests: Likewise.
32404         * modules/unictype/property-uppercase-tests: Likewise.
32405         * modules/unictype/property-variation-selector-tests: Likewise.
32406         * modules/unictype/property-white-space-tests: Likewise.
32407         * modules/unictype/property-xid-continue-tests: Likewise.
32408         * modules/unictype/property-xid-start-tests: Likewise.
32409         * modules/unictype/property-zero-width-tests: Likewise.
32410         * modules/unictype/scripts-tests: Likewise.
32411         * modules/unictype/syntax-c-ident-tests: Likewise.
32412         * modules/unictype/syntax-c-whitespace-tests: Likewise.
32413         * modules/unictype/syntax-java-ident-tests: Likewise.
32414         * modules/unictype/syntax-java-whitespace-tests: Likewise.
32415         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
32416         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
32417         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
32418         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
32419         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
32420         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
32421         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
32422         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
32423         * modules/uniname/uniname-tests: Likewise.
32424         * modules/uninorm/canonical-decomposition-tests: Likewise.
32425         * modules/uninorm/compat-decomposition-tests: Likewise.
32426         * modules/uninorm/composition-tests: Likewise.
32427         * modules/uninorm/decomposing-form-tests: Likewise.
32428         * modules/uninorm/decomposition-tests: Likewise.
32429         * modules/uninorm/filter-tests: Likewise.
32430         * modules/uninorm/nfc-tests: Likewise.
32431         * modules/uninorm/nfd-tests: Likewise.
32432         * modules/uninorm/nfkc-tests: Likewise.
32433         * modules/uninorm/nfkd-tests: Likewise.
32434         * modules/uninorm/u8-normcmp-tests: Likewise.
32435         * modules/uninorm/u8-normcoll-tests: Likewise.
32436         * modules/uninorm/u16-normcmp-tests: Likewise.
32437         * modules/uninorm/u16-normcoll-tests: Likewise.
32438         * modules/uninorm/u32-normcmp-tests: Likewise.
32439         * modules/uninorm/u32-normcoll-tests: Likewise.
32440         * modules/unistdio/u8-asnprintf-tests: Likewise.
32441         * modules/unistdio/u8-vasnprintf-tests: Likewise.
32442         * modules/unistdio/u8-vasprintf-tests: Likewise.
32443         * modules/unistdio/u8-vsnprintf-tests: Likewise.
32444         * modules/unistdio/u8-vsprintf-tests: Likewise.
32445         * modules/unistdio/u16-asnprintf-tests: Likewise.
32446         * modules/unistdio/u16-vasnprintf-tests: Likewise.
32447         * modules/unistdio/u16-vasprintf-tests: Likewise.
32448         * modules/unistdio/u16-vsnprintf-tests: Likewise.
32449         * modules/unistdio/u16-vsprintf-tests: Likewise.
32450         * modules/unistdio/u32-asnprintf-tests: Likewise.
32451         * modules/unistdio/u32-vasnprintf-tests: Likewise.
32452         * modules/unistdio/u32-vasprintf-tests: Likewise.
32453         * modules/unistdio/u32-vsnprintf-tests: Likewise.
32454         * modules/unistdio/u32-vsprintf-tests: Likewise.
32455         * modules/unistdio/ulc-asnprintf-tests: Likewise.
32456         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
32457         * modules/unistdio/ulc-vasprintf-tests: Likewise.
32458         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
32459         * modules/unistdio/ulc-vsprintf-tests: Likewise.
32460         * modules/unistr/u8-check-tests: Likewise.
32461         * modules/unistr/u8-chr-tests: Likewise.
32462         * modules/unistr/u8-cmp-tests: Likewise.
32463         * modules/unistr/u8-cmp2-tests: Likewise.
32464         * modules/unistr/u8-cpy-alloc-tests: Likewise.
32465         * modules/unistr/u8-cpy-tests: Likewise.
32466         * modules/unistr/u8-mblen-tests: Likewise.
32467         * modules/unistr/u8-mbsnlen-tests: Likewise.
32468         * modules/unistr/u8-mbtouc-tests: Likewise.
32469         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
32470         * modules/unistr/u8-mbtoucr-tests: Likewise.
32471         * modules/unistr/u8-move-tests: Likewise.
32472         * modules/unistr/u8-next-tests: Likewise.
32473         * modules/unistr/u8-prev-tests: Likewise.
32474         * modules/unistr/u8-set-tests: Likewise.
32475         * modules/unistr/u8-stpcpy-tests: Likewise.
32476         * modules/unistr/u8-stpncpy-tests: Likewise.
32477         * modules/unistr/u8-strcat-tests: Likewise.
32478         * modules/unistr/u8-strcmp-tests: Likewise.
32479         * modules/unistr/u8-strcoll-tests: Likewise.
32480         * modules/unistr/u8-strcpy-tests: Likewise.
32481         * modules/unistr/u8-strdup-tests: Likewise.
32482         * modules/unistr/u8-strlen-tests: Likewise.
32483         * modules/unistr/u8-strmblen-tests: Likewise.
32484         * modules/unistr/u8-strmbtouc-tests: Likewise.
32485         * modules/unistr/u8-strncat-tests: Likewise.
32486         * modules/unistr/u8-strncmp-tests: Likewise.
32487         * modules/unistr/u8-strncpy-tests: Likewise.
32488         * modules/unistr/u8-strnlen-tests: Likewise.
32489         * modules/unistr/u8-to-u16-tests: Likewise.
32490         * modules/unistr/u8-to-u32-tests: Likewise.
32491         * modules/unistr/u8-uctomb-tests: Likewise.
32492         * modules/unistr/u16-check-tests: Likewise.
32493         * modules/unistr/u16-chr-tests: Likewise.
32494         * modules/unistr/u16-cmp-tests: Likewise.
32495         * modules/unistr/u16-cmp2-tests: Likewise.
32496         * modules/unistr/u16-cpy-alloc-tests: Likewise.
32497         * modules/unistr/u16-cpy-tests: Likewise.
32498         * modules/unistr/u16-mblen-tests: Likewise.
32499         * modules/unistr/u16-mbsnlen-tests: Likewise.
32500         * modules/unistr/u16-mbtouc-tests: Likewise.
32501         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
32502         * modules/unistr/u16-mbtoucr-tests: Likewise.
32503         * modules/unistr/u16-move-tests: Likewise.
32504         * modules/unistr/u16-next-tests: Likewise.
32505         * modules/unistr/u16-prev-tests: Likewise.
32506         * modules/unistr/u16-set-tests: Likewise.
32507         * modules/unistr/u16-stpcpy-tests: Likewise.
32508         * modules/unistr/u16-stpncpy-tests: Likewise.
32509         * modules/unistr/u16-strcat-tests: Likewise.
32510         * modules/unistr/u16-strcmp-tests: Likewise.
32511         * modules/unistr/u16-strcoll-tests: Likewise.
32512         * modules/unistr/u16-strcpy-tests: Likewise.
32513         * modules/unistr/u16-strdup-tests: Likewise.
32514         * modules/unistr/u16-strlen-tests: Likewise.
32515         * modules/unistr/u16-strmblen-tests: Likewise.
32516         * modules/unistr/u16-strmbtouc-tests: Likewise.
32517         * modules/unistr/u16-strncat-tests: Likewise.
32518         * modules/unistr/u16-strncmp-tests: Likewise.
32519         * modules/unistr/u16-strncpy-tests: Likewise.
32520         * modules/unistr/u16-strnlen-tests: Likewise.
32521         * modules/unistr/u16-to-u32-tests: Likewise.
32522         * modules/unistr/u16-to-u8-tests: Likewise.
32523         * modules/unistr/u16-uctomb-tests: Likewise.
32524         * modules/unistr/u32-check-tests: Likewise.
32525         * modules/unistr/u32-chr-tests: Likewise.
32526         * modules/unistr/u32-cmp-tests: Likewise.
32527         * modules/unistr/u32-cmp2-tests: Likewise.
32528         * modules/unistr/u32-cpy-alloc-tests: Likewise.
32529         * modules/unistr/u32-cpy-tests: Likewise.
32530         * modules/unistr/u32-mblen-tests: Likewise.
32531         * modules/unistr/u32-mbsnlen-tests: Likewise.
32532         * modules/unistr/u32-mbtouc-tests: Likewise.
32533         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
32534         * modules/unistr/u32-mbtoucr-tests: Likewise.
32535         * modules/unistr/u32-move-tests: Likewise.
32536         * modules/unistr/u32-next-tests: Likewise.
32537         * modules/unistr/u32-prev-tests: Likewise.
32538         * modules/unistr/u32-set-tests: Likewise.
32539         * modules/unistr/u32-stpcpy-tests: Likewise.
32540         * modules/unistr/u32-stpncpy-tests: Likewise.
32541         * modules/unistr/u32-strcat-tests: Likewise.
32542         * modules/unistr/u32-strcmp-tests: Likewise.
32543         * modules/unistr/u32-strcoll-tests: Likewise.
32544         * modules/unistr/u32-strcpy-tests: Likewise.
32545         * modules/unistr/u32-strdup-tests: Likewise.
32546         * modules/unistr/u32-strlen-tests: Likewise.
32547         * modules/unistr/u32-strmblen-tests: Likewise.
32548         * modules/unistr/u32-strmbtouc-tests: Likewise.
32549         * modules/unistr/u32-strncat-tests: Likewise.
32550         * modules/unistr/u32-strncmp-tests: Likewise.
32551         * modules/unistr/u32-strncpy-tests: Likewise.
32552         * modules/unistr/u32-strnlen-tests: Likewise.
32553         * modules/unistr/u32-to-u16-tests: Likewise.
32554         * modules/unistr/u32-to-u8-tests: Likewise.
32555         * modules/unistr/u32-uctomb-tests: Likewise.
32556         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
32557         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
32558         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
32559         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
32560         * modules/uniwidth/u8-strwidth-tests: Likewise.
32561         * modules/uniwidth/u8-width-tests: Likewise.
32562         * modules/uniwidth/u16-strwidth-tests: Likewise.
32563         * modules/uniwidth/u16-width-tests: Likewise.
32564         * modules/uniwidth/u32-strwidth-tests: Likewise.
32565         * modules/uniwidth/u32-width-tests: Likewise.
32566         * modules/uniwidth/width-tests: Likewise.
32567
32568 2010-05-18  Richard Jones  <rjones@redhat.com>
32569
32570         doc: users.txt: list hivex
32571         * users.txt: Add hivex.
32572
32573 2010-05-18  Richard Jones  <rjones@redhat.com>
32574
32575         doc: users.txt: list febootstrap
32576         * users.txt: Add febootstrap.
32577
32578 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
32579
32580         bootstrap: fix an error when gnulib is not used as a git submodule
32581         * build-aux/bootstrap (gnulib_path): If its length is zero then
32582         assign "gnulib" to it.
32583         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
32584
32585 2010-05-16  Bruno Haible  <bruno@clisp.org>
32586
32587         Avoid autoconf warnings about AM_ICONV.
32588         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
32589         2.64.
32590
32591 2010-05-16  Bruno Haible  <bruno@clisp.org>
32592
32593         absolute-header: Make the macro usable in more situations.
32594         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
32595         from gl_ABSOLUTE_HEADER.
32596         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
32597
32598 2010-05-16  James Youngman  <jay@gnu.org>
32599
32600         doc: update users.txt
32601         * users.txt: Add CSSC.
32602
32603 2010-05-16  Jim Meyering  <meyering@redhat.com>
32604
32605         init.sh: fix an error in the previous change; add more comments
32606         * tests/init.sh: Compare exit code in loop against 9, not 2.
32607         Patch by Bruno Haible.
32608         Make the two tests more similar by adding an empty "then" clause.
32609         Add comments.
32610
32611         init.sh: avoid unnecessary shell re-exec
32612         * tests/init.sh: Improve the re-exec-required check to first test the
32613         current shell.  If it passes the test, do not search for a shell that
32614         does pass, and do not re-exec.  This test is particularly contorted to
32615         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
32616         of $(...) evokes a syntax error and causes immediate shell exit with
32617         status 2.  Bruno Haible reported that the re-exec made it impossible
32618         to single-step through any init.sh-using script.
32619
32620 2010-05-16  Bruno Haible  <bruno@clisp.org>
32621
32622         Fix collision between gnulib's and libintl's printf replacements.
32623         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
32624         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
32625         (printf): When using GNU C, map the __printf__ function to rpl_printf
32626         via __asm__. When not using GNU C, define rpl_printf instead of
32627         __printf__.
32628         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
32629         commit.
32630         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
32631         commit.
32632         * m4/asm-underscore.m4: New file.
32633         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
32634         * modules/stdio (Files): Add m4/asm-underscore.m4.
32635         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
32636         Reported by Ben Pfaff.
32637
32638 2010-05-16  Bruno Haible  <bruno@clisp.org>
32639
32640         verify: Avoid skipping the test on openSUSE 11.0.
32641         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
32642
32643 2010-05-13  Bruno Haible  <bruno@clisp.org>
32644
32645         Avoid useless warnings from G++.
32646         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
32647         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
32648         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
32649
32650 2010-05-11  Jim Meyering  <meyering@redhat.com>
32651
32652         maint.mk: tweak preceding change
32653         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
32654         regexps tighter by anchoring at EOL, and make the new group "shy"
32655         for slightly decreased overhead.
32656
32657 2010-05-11  Eric Blake  <eblake@redhat.com>
32658
32659         maint.mk: gnulib doesn't guarantee NSIG
32660         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
32661
32662 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
32663
32664         test-pwrite.c: Remove unused variable declaration.
32665         * tests/test-pwrite.c (main): Remove read_buf declaration.
32666
32667         Remove useless test-pwrite.sh file.
32668         * tests/test-pwrite.sh: Delete file.
32669         * modules/pwrite-tests: Remove references.
32670         Reported by Bruno Haible.
32671
32672 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
32673
32674         init.sh: fix a typo
32675         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
32676
32677 2010-05-10  Jim Meyering  <meyering@redhat.com>
32678
32679         maint.mk: avoid using a temporary file in the always-defined-macros check
32680         * top/maint.mk (.re-defmac): Remove rule.
32681         (gl_trap_): Remove definition.
32682         (sc_prohibit_always-defined_macros): Rewrite not to create and
32683         depend on a temporary file.  Instead, depend on GNU grep's ability
32684         to read a list of regular expressions from stdin when given "-f -".
32685
32686 2010-05-09  Bruno Haible  <bruno@clisp.org>
32687
32688         Update to GNU gettext 0.18, part 1.
32689         * m4/gettext.m4: Update to GNU gettext 0.18.
32690         * m4/intl.m4: Likewise.
32691         * m4/po.m4: Likewise.
32692         * modules/gettext (Files): Add m4/fcntl-o.m4.
32693         (configure.ac): Require gettext infrastructure from version 0.18.
32694
32695 2010-05-09  Jim Meyering  <meyering@redhat.com>
32696
32697         init.sh: enable MALLOC_PERTURB_
32698         * tests/init.sh: Enable glibc's malloc-perturbing option.
32699
32700         maint.mk: improve sc_cross_check_PATH_usage_in_tests
32701         With my recent change in init.sh from the two-line form:
32702             -#   : ${srcdir=.}
32703             -#   . "$srcdir/init.sh"; path_prepend_ .
32704             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
32705         I noticed that using the one-line form would cause this test
32706         to fail with a false-positive, or to stop working altogether,
32707         depending on whether help-version changed or all the tests did.
32708         * top/maint.mk (_hv_regex): Remove this definition.
32709         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
32710         (_hv_regex_strong): Use a stronger regex to check for conformance.
32711         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
32712         Give a separate diagnostic for lack of conforming use.
32713
32714         maint.mk: prohibit definition of symbols defined by gnulib
32715         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
32716         definition of symbols defined by gnulib.
32717
32718 2010-05-09  Bruno Haible  <bruno@clisp.org>
32719
32720         acl: Avoid test failure on Cygwin-hosted mingw.
32721         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
32722
32723 2010-05-09  Bruno Haible  <bruno@clisp.org>
32724
32725         error: Use system's fcntl function.
32726         * lib/error.c (fcntl): Undefine.
32727
32728 2010-05-09  Jim Meyering  <meyering@redhat.com>
32729
32730         verify: adjust formatting to be more consistent
32731         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
32732         argument-list '('s, and after one comma.
32733
32734 2010-05-09  Bruno Haible  <bruno@clisp.org>
32735
32736         error: More reliable output on mingw.
32737         * lib/error.c: Include <windows.h>.
32738         (is_open): New function.
32739         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
32740         defined.
32741
32742 2010-05-09  Bruno Haible  <bruno@clisp.org>
32743
32744         vasnprintf: Fix syntax errors in libintl build on mingw.
32745         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
32746         pad_ourselves and prec_ourselves after use.
32747
32748 2010-05-08  Bruno Haible  <bruno@clisp.org>
32749
32750         * lib/config.charset: Update comments for Cygwin 1.7.
32751         * lib/localcharset.c: Likewise.
32752
32753 2010-05-07  Jim Meyering  <meyering@redhat.com>
32754
32755         init.sh: improve comments
32756         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
32757         . "${srcdir=.}/init.sh"; path_prepend_ .
32758         Add a note about path_prepend_ and the alternative of using
32759         TESTS_ENVIRONMENT.
32760
32761 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
32762
32763         exclude: Unescape hashed patterns in wildcard mode.
32764         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
32765         to the hash list.
32766         * tests/test-exclude8.sh: New test case.
32767         * modules/exclude-tests: Add new test.
32768
32769 2010-05-05  Eric Blake  <eblake@redhat.com>
32770
32771         verify: automate tests
32772         * modules/verify-tests: New module.
32773         * tests/test-verify.sh: New file.
32774         * tests/test-verify.c: Guard each negative test with a unique id.
32775         Also avoid warning about unused left hand of comma expressions.
32776
32777 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
32778
32779         Further improvements to verify.h, suggested by Eric Blake.
32780         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
32781         the GL_* versions, to avoid collision with OpenGL.
32782         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
32783         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
32784         than testing merely whether it's defined.
32785
32786         Modify verify.h to pacify gcc -Wredundant_decls.
32787         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
32788         These use the prefix "GL_" since they're likely to be useful elsewhere.
32789         We may need to break them out into a different .h file.
32790         (__COUNTER__): Define to 0 if the compiler doesn't support it.
32791         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
32792         of verify_function__.
32793
32794 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
32795
32796         Tests for module pwrite.
32797         * modules/pwrite-tests: New file.
32798         * tests/test-pwrite.sh: New file.
32799         * tests/test-pwrite.c: New file.
32800
32801         New module pwrite.
32802         * lib/unistd.in.h (pwrite): New declaration.
32803         * lib/pwrite.c: New file, from glibc with modifications.
32804         * m4/pwrite.m4: New file.
32805         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
32806         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
32807         REPLACE_PWRITE.
32808         * modules/pwrite: New file.
32809         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
32810         REPLACE_PWRITE.
32811         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
32812         * doc/posix-functions/pwrite.texi: Mention the new module.
32813
32814 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
32815
32816         pread: Update documentation.
32817         * doc/posix-functions/pread.texi: Mention the 'pread' module.
32818
32819 2010-05-04  Eric Blake  <eblake@redhat.com>
32820
32821         docs: update cygwin progress
32822         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
32823         this bug.
32824         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
32825         Added in cygwin 1.7.2.
32826         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
32827         Likewise.
32828         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
32829         Likewise.
32830         * doc/glibc-functions/dup3.texi (dup3): Likewise.
32831         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
32832         * doc/glibc-functions/accept4.texi (accept4): Likewise.
32833         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
32834         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
32835         Mention nproc module.
32836         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
32837         bug in cygwin 1.7.5 addition.
32838         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
32839         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
32840         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
32841         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
32842         1.7.5.
32843         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
32844         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
32845         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
32846         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
32847         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
32848         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
32849         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
32850         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
32851         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
32852         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
32853         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
32854         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
32855         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
32856         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
32857         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
32858         Likewise.
32859         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
32860         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
32861         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
32862         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
32863         Likewise.
32864         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
32865         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
32866         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
32867         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
32868         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
32869         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
32870         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
32871         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
32872         Likewise.
32873         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
32874         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
32875         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
32876         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
32877         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
32878         Likewise.
32879         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
32880         Likewise.
32881         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
32882         Likewise.
32883         * doc/glibc-functions/xdrrec_endofrecord.texi
32884         (xdrrec_endofrecord): Likewise.
32885         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
32886         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
32887         Likewise.
32888         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
32889         Likewise.
32890
32891 2010-05-04  Jim Meyering  <meyering@redhat.com>
32892
32893         gendocs.sh: make its "-s FILE" option more useful
32894         * build-aux/gendocs.sh: When honoring the -s FILE option, update
32895         $PACKAGE to reflect the probably-different basename of "FILE".
32896
32897 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
32898
32899         bootstrap: don't ignore download_po_files failure
32900         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
32901         failure.
32902
32903 2010-05-03  Jim Meyering  <meyering@redhat.com>
32904
32905         maint.mk: allow to pass options to gendocs.sh
32906         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
32907         (gendocs_options_): New overridable variable.
32908
32909         gnu-web-doc-update: don't ignore configure or build failure
32910         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
32911
32912         announce-gen: backslash-escape '@'s in --help output
32913         * build-aux/announce-gen: Fix syntax errors.
32914
32915         maint.mk, announce-gen: allow project-specific announcement mail headers
32916         * top/maint.mk (translation_project_): Define default.
32917         (announcement_Cc_, announcement_mail_headers_): Likewise.
32918         (announcement): Invoke announce-gen with new --mail-headers option.
32919         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
32920
32921         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
32922         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
32923         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
32924         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
32925         line in the "err2" output file when running "make check" in verbose
32926         mode (i.e., with set -x enabled).
32927
32928 2010-05-03  Bruno Haible  <bruno@clisp.org>
32929
32930         wctob: Fix for weird platforms.
32931         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
32932         argument value.
32933
32934 2010-05-03  Jim Meyering  <meyering@redhat.com>
32935
32936         maint.mk: prohibit unwarranted use of <strings.h>
32937         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
32938         strings.h in a file that does not also use strcasecmp, strncasecmp,
32939         ffs or ffsll.
32940
32941         maint.mk: remove obsolete comments
32942         * top/maint.mk: Remove stale, commented-out rules.
32943
32944 2010-05-02  Bruno Haible  <bruno@clisp.org>
32945
32946         wcwidth: Declare also when it's aliased.
32947         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
32948         macro.
32949
32950 2010-05-02  Bruno Haible  <bruno@clisp.org>
32951
32952         Fix regression from 2010-04-25.
32953         * gnulib-tool (func_modules_transitive_closure): Check the status of
32954         all modules, not only of the tests that are of the form foo-tests where
32955         foo is a module.
32956
32957 2010-05-02  Bruno Haible  <bruno@clisp.org>
32958
32959         wctob: Work around nasty Cygwin 1.7.2 bug.
32960         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
32961         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
32962
32963 2010-05-01  Bruno Haible  <bruno@clisp.org>
32964
32965         fpurge: Sharper test.
32966         * tests/test-fpurge.c (main): Add one more ftell check.
32967         * modules/fpurge-tests (Depends-on): Add ftell.
32968         Suggested by Eric Blake.
32969
32970 2010-05-01  Bruno Haible  <bruno@clisp.org>
32971
32972         ftello: Another test.
32973         * tests/test-ftello3.c: New file.
32974         * modules/ftello-tests (Files): Add it.
32975         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
32976         MOSTLYCLEANFILES.
32977
32978         ftell: Another test.
32979         * tests/test-ftell3.c: New file.
32980         * modules/ftell-tests (Files): Add it.
32981         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
32982         MOSTLYCLEANFILES.
32983
32984 2010-05-01  Bruno Haible  <bruno@clisp.org>
32985
32986         ftell, ftello: Work around Solaris bug.
32987         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
32988         * lib/ftello.c: Include stdio-impl.h.
32989         (ftello): On Solaris, when _IOWRT is set, compute the result without
32990         looking at _IOREAD.
32991         * modules/ftello (Files): Add lib/stdio-impl.h.
32992         * doc/posix-functions/ftell.texi: Mention Solaris bug.
32993         * doc/posix-functions/ftello.texi: Likewise.
32994         Reported by Eric Blake.
32995
32996 2010-05-01  Bruno Haible  <bruno@clisp.org>
32997
32998         freading: Adapt to special meaning of _IOREAD flag on Solaris.
32999         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
33000         the _IOWRT flag is also set.
33001
33002 2010-05-01  Bruno Haible  <bruno@clisp.org>
33003
33004         Fix doc about a HP-UX stdio bug.
33005         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
33006         * doc/posix-functions/ftello.texi: Likewise.
33007
33008 2010-05-01  Bruno Haible  <bruno@clisp.org>
33009
33010         lseek test: Fix failure on Solaris.
33011         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
33012         output.
33013
33014 2010-04-30  Jim Meyering  <meyering@redhat.com>
33015
33016         bootstrap: don't ignore failure to generate po*/Makevars
33017         * build-aux/bootstrap (with_gettext): Don't ignore failure
33018         to create po/Makevars or runtime-po/Makevars.
33019
33020 2010-04-29  Eric Blake  <eblake@redhat.com>
33021
33022         headers: relax license to LGPLv2+
33023         * modules/fcntl-h (License): Relax license.
33024         * modules/getopt-posix (License): Likewise.
33025         * modules/locale (License): Likewise.
33026         * modules/math (License): Likewise.
33027         * modules/pty (License): Likewise.
33028         * modules/sched (License): Likewise.
33029         * modules/search (License): Likewise.
33030         * modules/spawn (License): Likewise.
33031         * modules/stdarg (License): Likewise.
33032         * modules/sysexits (License): Likewise.
33033
33034 2010-04-29  Jim Meyering  <meyering@redhat.com>
33035
33036         inttypes: relax license to LGPLv2+
33037         * modules/inttypes (License): Relax license.
33038
33039 2010-04-29  Simon Josefsson  <simon@josefsson.org>
33040
33041         * top/maint.mk (indent): Run twice to produce idempotent results.
33042
33043 2010-04-28  Bruno Haible  <bruno@clisp.org>
33044
33045         getdate: Generate getdate.c in the source directory.
33046         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
33047         MOSTLYCLEANFILES.
33048         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
33049
33050 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
33051
33052         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
33053         is not declared as a const *; avoid warnings in that case.
33054
33055 2010-04-28  Eric Blake  <eblake@redhat.com>
33056
33057         canonicalize-lgpl: avoid compiler warning
33058         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
33059         declaration' / 'extraneous semicolon' warning with some compilers.
33060         Reported by Andreas Gruenbacher.
33061
33062 2010-04-28  Jim Meyering  <meyering@redhat.com>
33063
33064         init.sh: ensure a more reliable exit status when exiting via trap
33065         * tests/init.sh (setup_): Don't rely on $? in signal handler.
33066         Inspired by patches from Dmitry V. Levin.
33067         Also trap on signal 3 (SIGQUIT).
33068
33069 2010-04-27  Bruno Haible  <bruno@clisp.org>
33070
33071         Update doc about utimes().
33072         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
33073         'utimens' module.
33074         Reported by Andreas Gruenbacher <agruen@suse.de>.
33075
33076 2010-04-27  Eric Blake  <eblake@redhat.com>
33077
33078         full-read, full-write: relax license
33079         * modules/full-read (License): Drop to LGPLv2+.
33080         * modules/full-write (License): Likewise.
33081         * modules/safe-read (License): Likewise.
33082         * modules/safe-write (License): Likewise.
33083
33084         pthread: mention library for linking
33085         * modules/pthread (Link): Mention $(LIB_PTHREAD).
33086
33087 2010-04-27  Jim Meyering  <meyering@redhat.com>
33088
33089         maint.mk: fix a bug introduced in last change
33090         * top/maint.mk (gl_assured_headers_): Now that all names are on
33091         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
33092         is not anchored to end of word, it should be adequate.
33093
33094         maint.mk: avoid side-effect in latest syntax-check
33095         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
33096         to run commands via $(shell...), and hence to incur cost only when
33097         the new rule is actually run.
33098
33099         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
33100         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
33101         and use that to create a regexp used to detect all #if HAVE_..._H uses.
33102         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
33103         (gl_assured_headers_, az_, AZ_): Define.
33104         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
33105
33106 2010-04-26  Jim Meyering  <jim@meyering.net>
33107             Bruno Haible  <bruno@clisp.org>
33108
33109         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
33110         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
33111         Prompted by an exchange with Gilles Espinasse.
33112
33113 2010-04-26  Jim Meyering  <meyering@redhat.com>
33114
33115         git-version-gen: aesthetic tweak
33116         * build-aux/git-version-gen: Use "$nl" rather than a literal,
33117         so that the command remains on a single line.
33118
33119 2010-04-26  Eric Blake  <eblake@redhat.com>
33120
33121         git-version-gen: allow use on EBCDIC hosts
33122         * build-aux/git-version-gen (dirty): Use literal rather than tying
33123         ourselves to ascii.
33124         Reported by Steve Goetze.
33125
33126 2010-04-25  Bruno Haible  <bruno@clisp.org>
33127
33128         netdb: Add support for GNULIB_POSIXCHECK.
33129         * lib/netdb.in.h: Include warn-on-use.h.
33130         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
33131         functions are used when GNULIB_POSIXCHECK is defined and the
33132         getaddrinfo module is not in use.
33133         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
33134         freeaddrinfo, gai_strerror, getnameinfo are declared.
33135         * modules/netdb (Depends-on): Add warn-on-use.
33136         (Makefile.am): Include warn-on-use.h in netdb.h.
33137
33138 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
33139
33140         build: avoid "make check" failure without .git/ directory
33141         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
33142         there is no .git/ directory.
33143
33144 2010-04-25  Bruno Haible  <bruno@clisp.org>
33145
33146         ptsname: Fix misuse of ttyname_r.
33147         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
33148         of errno.
33149
33150 2010-04-25  Bruno Haible  <bruno@clisp.org>
33151
33152         ttyname_r: Make it work on Solaris 10.
33153         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
33154         if the system function has the POSIX declaration. Test whether the
33155         function fails if the buffer is less than 128 bytes large.
33156         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
33157         system's ttyname_r function. Provide a reasonably large buffer.
33158         * modules/ttyname_r (Depends-on): Add extensions.
33159         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
33160
33161 2010-04-25  Bruno Haible  <bruno@clisp.org>
33162
33163         Use the 'extensions' module for some more functions on Solaris.
33164         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
33165         module.
33166         * doc/posix-functions/ctime_r.texi: Likewise.
33167         * doc/posix-functions/getgrgid_r.texi: Likewise.
33168         * doc/posix-functions/getgrnam_r.texi: Likewise.
33169         * doc/posix-functions/getpwnam_r.texi: Likewise.
33170         * doc/posix-functions/getpwuid_r.texi: Likewise.
33171         * doc/posix-functions/readdir_r.texi: Likewise.
33172         * doc/posix-functions/sigwait.texi: Likewise.
33173         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
33174         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
33175
33176 2010-04-25  Bruno Haible  <bruno@clisp.org>
33177
33178         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
33179         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
33180         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
33181         * lib/ttyname_r.c: Include <limits.h>.
33182         (ttyname_r): Define using the system's ttyname_r function, if it exists
33183         and not on Solaris.
33184         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
33185         set.
33186         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
33187         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
33188         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
33189         Reported by Simon Josefsson.
33190
33191 2010-04-25  Bruno Haible  <bruno@clisp.org>
33192
33193         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
33194         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
33195         * doc/posix-functions/ctime_r.texi: Likewise.
33196         * doc/posix-functions/getgrgid_r.texi: Likewise.
33197         * doc/posix-functions/getgrnam_r.texi: Likewise.
33198         * doc/posix-functions/getlogin_r.texi: Likewise.
33199         * doc/posix-functions/getpwnam_r.texi: Likewise.
33200         * doc/posix-functions/getpwuid_r.texi: Likewise.
33201         * doc/posix-functions/readdir_r.texi: Likewise.
33202         * doc/posix-functions/sigwait.texi: Likewise.
33203         * doc/posix-functions/ttyname_r.texi: Likewise.
33204         Reported by Simon Josefsson.
33205
33206 2010-04-25  Bruno Haible  <bruno@clisp.org>
33207
33208         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
33209         * gnulib-tool (func_usage): Document that --with-*-tests options apply
33210         also to --create-testdir.
33211         (func_acceptable): Don't consider the status of *-tests modules here.
33212         (func_modules_transitive_closure): Consider it here, before including a
33213         test module.
33214         (func_import, func_create_testdir): Set inc_all_direct_tests,
33215         inc_all_indirect_tests.
33216         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
33217         --create-testdir and --create-megatestdir.
33218
33219 2010-04-25  Bruno Haible  <bruno@clisp.org>
33220
33221         gnulib-tool: Add --without-*-tests options.
33222         * gnulib-tool (func_usage): Document the --without-*-tests options.
33223         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
33224         excl_unportable_tests): New variables.
33225         Fail if they are specified with --import or --update.
33226         (func_acceptable): Respect the excl_*_tests variables.
33227         (func_import): Set the excl_*_tests variables to empty.
33228
33229 2010-04-25  Simon Josefsson  <simon@josefsson.org>
33230             Bruno Haible  <bruno@clisp.org>
33231
33232         Work around a MacOS X 10.4 bug with openpty.
33233         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
33234         * tests/test-openpty.c (main): Close the master side explicitly.
33235
33236 2010-04-25  Bruno Haible  <bruno@clisp.org>
33237
33238         strnlen: Fix a C++ test error on MacOS X and Solaris.
33239         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
33240         the function is not declared.
33241         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
33242         Simon Josefsson.
33243
33244 2010-04-24  Bruno Haible  <bruno@clisp.org>
33245
33246         Avoid a gcc warning.
33247         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
33248         of correct type for %08lx directive.
33249         Reported by Eric Blake.
33250
33251 2010-04-24  Bruno Haible  <bruno@clisp.org>
33252
33253         vasnprintf: Correct errno value in case of out-of-memory.
33254         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
33255         or sprintf. Use the errno value from SNPRINTF or sprintf.
33256         Reported by Ian Beckwith <ianb@erislabs.net>.
33257
33258 2010-04-24  Bruno Haible  <bruno@clisp.org>
33259
33260         ansi-c++-opt: Find correct compiler when cross-compiling.
33261         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
33262         AC_CHECK_PROGS.
33263         Reported by Simon Josefsson.
33264
33265 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
33266
33267         vc-list-files: Add support for subversion
33268         * build-aux/vc-list-files: Use "svn list" to generate the list of
33269         files controlled by subversion.
33270
33271 2010-04-23  Jim Meyering  <meyering@redhat.com>
33272
33273         vc-list-files tests: convert to use init.sh
33274         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
33275         path_prepend_.
33276         Use Exit, not exit.
33277         Use skip_ rather than open coding it.
33278         Remove trap set-up and compare definitions.
33279         * tests/test-vc-list-files-git.sh: Likewise.
33280         * modules/vc-list-files-tests (Files): Add tests/init.sh.
33281
33282 2010-04-22  Simon Josefsson  <simon@josefsson.org>
33283
33284         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
33285         backup files.
33286
33287 2010-04-21  Simon Josefsson  <simon@josefsson.org>
33288
33289         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
33290
33291 2010-04-20  Eric Blake  <eblake@redhat.com>
33292
33293         tests: be robust to ignored SIGPIPE
33294         * tests/test-select-in.sh: Consume all output.
33295         * tests/test-lseek.sh: Check correct exit status, while avoiding
33296         EPIPE.
33297
33298 2010-04-20  Simon Josefsson  <simon@josefsson.org>
33299             Bruno Haible  <bruno@clisp.org>
33300
33301         visibility: Don't use -fvisibility if it leads to a warning.
33302         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
33303         yes, don't pretend that visibility works if it leads to a warning.
33304         Reported by Mike Gran <spk121@yahoo.com>.
33305
33306 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
33307
33308         * build-aux/bootstrap: Use "git -h" for testing for supported options
33309         instead of "git --help".  The short-form option only shows a summary,
33310         and doesn't layout the full man page.  Grep for the full option name
33311         in the summary, too.
33312
33313 2010-04-19  Bruno Haible  <bruno@clisp.org>
33314
33315         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
33316         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
33317         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
33318         mention of RELOCATABLE_STRIP.
33319         Reported by Sylvain Beucler <beuc@beuc.net>.
33320
33321 2010-04-19  Bruno Haible  <bruno@clisp.org>
33322
33323         * lib/diffseq.h: Fix typo in comment.
33324         Reported by Eric Blake.
33325
33326 2010-04-19  Bruno Haible  <bruno@clisp.org>
33327
33328         ioctl: Move autoconf macro to a .m4 file.
33329         * m4/ioctl.m4: New file, extracted from modules/ioctl.
33330         * modules/ioctl (Files): Add it.
33331         (configure.ac): Simply invoke gl_FUNC_IOCTL.
33332         Reported by Ian Beckwith <ianb@erislabs.net>.
33333
33334 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
33335             Bruno Haible  <bruno@clisp.org>
33336
33337         diffseq: Accommodate use-case with abstract arrays.
33338         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
33339         is not defined.
33340         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
33341         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
33342
33343 2010-04-18  Bruno Haible  <bruno@clisp.org>
33344
33345         * doc/posix-headers/stdbool.texi: More precise wording.
33346
33347 2010-04-17  Jim Meyering  <meyering@redhat.com>
33348
33349         maint.mk: use gnu-style indentation in an embedded perl script
33350         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
33351         Rename variable: s/two/last_two_bytes/
33352
33353 2010-04-16  Eric Blake  <eblake@redhat.com>
33354
33355         test-stdbool: skip test that fails with Solaris CC
33356         * tests/test-stdbool.c (f): Skip test that causes compilation
33357         error under buggy C++ compiler.
33358         * lib/stdbool.in.h: Document the limitation.
33359         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
33360
33361         setenv: allow compilation with C++
33362         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
33363         register keyword.
33364
33365         stdint: allow test to pass with C++
33366         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
33367
33368         getopt: allow compilation with C++
33369         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
33370         struct.
33371         * lib/getopt.c (_getopt_internal_r): Use correct type.
33372         Reported by Dagobert Michelson, via Joel E. Denny.
33373
33374 2010-04-16  Bruno Haible  <bruno@clisp.org>
33375
33376         Override netdb.h always.
33377         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
33378         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
33379         Reported by Ludovic Courtès <ludo@gnu.org>.
33380
33381 2010-04-15  Bruno Haible  <bruno@clisp.org>
33382
33383         openpty: Fix mistake from 2010-03-21.
33384         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
33385         Reported by Simon Josefsson.
33386
33387 2010-04-15  Eric Blake  <eblake@redhat.com>
33388
33389         test-forkpty: fix expected signature
33390         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
33391         Reported by Simon Josefsson.
33392
33393 2010-04-15  Jim Meyering  <meyering@redhat.com>
33394
33395         maint.mk: texinfo_suffix_re_: correct the default regexp
33396         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
33397
33398         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
33399         make it configurable via texinfo_suffix_re_.
33400
33401 2010-04-14  Eric Blake  <eblake@redhat.com>
33402
33403         strtok_r: relax license to LGPLv2+
33404         * modules/strtok_r (License): Relax license.
33405         Reported by Matthias Bolte.
33406
33407 2010-04-14  Simon Josefsson  <simon@josefsson.org>
33408
33409         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
33410         version 1.4.4 by default instead of requiring the libgcrypt
33411         version used during build.  This makes it possible to use the
33412         application with older but still binary compatible libgcrypt
33413         versions.
33414
33415 2010-04-13  Eric Blake  <eblake@redhat.com>
33416
33417         getopt-gnu: match recent glibc fixes and posix ruling
33418         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
33419         '+' handling, when requesting extensions.
33420         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
33421         'W;' handling.
33422         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
33423         * doc/posix-functions/getopt.texi (getopt): Document this.
33424         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
33425         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33426         Likewise.
33427
33428         getopt: merge bug fixes from glibc
33429         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
33430         diagnostics.  Honor '+:' correctly.  Reject ';'.
33431
33432         getopt-posix: detect MacOS bug
33433         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
33434         optind when missing a required argument.
33435         * doc/posix-functions/getopt.texi (getopt): Document the bug.
33436         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
33437         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33438         Likewise.
33439
33440         getopt-posix: avoid spurious failure on Solaris
33441         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
33442         an indicator that setting optind=1 is sufficient for reset.
33443
33444         getopt-posix: avoid spurious failure on FreeBSD
33445         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
33446         in POSIX mode, since the m4 test uses it.
33447
33448         gnulib-tool: silence warning on BSD sh
33449         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
33450
33451 2010-04-13  Jim Meyering  <meyering@redhat.com>
33452
33453         doc: users.txt: GNU patch now uses gnulib
33454         * users.txt: Add patch.
33455
33456 2010-04-12  Jim Meyering  <meyering@redhat.com>
33457
33458         maint.mk: generate more concise timing data for syntax-check rules
33459         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
33460         " done" from each line that reports a syntax-check test duration.
33461
33462 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
33463
33464         git-version-gen: use "git update-index..." rather than "git status"
33465         * build-aux/git-version-gen: Use git update-index --refresh, not
33466         "git status".  With some versions of git, "git status" would fail
33467         to update the index and result in an unwarranted "-dirty" suffix.
33468
33469 2010-04-11  Jim Meyering  <meyering@redhat.com>
33470
33471         openat: correct formatting (no semantic change)
33472         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
33473         Suggested by Bruno Haible.
33474
33475 2010-04-11  Bruno Haible  <bruno@clisp.org>
33476
33477         Stricter declaration checking in testdirs.
33478         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33479         If for_tests is true, augment AM_CPPFLAGS to define
33480         GNULIB_STRICT_CHECKING.
33481         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
33482         GNULIB_STRICT_CHECKING is defined, verify that the function is
33483         declared.
33484
33485 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
33486             Bruno Haible  <bruno@clisp.org>
33487
33488         libunistring: Improve configure output.
33489         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
33490         Don't say "consider installing GNU libunistring" when checking again
33491         with libiconv.
33492
33493 2010-04-11  Bruno Haible  <bruno@clisp.org>
33494
33495         libunistring: Correct value of $LTLIBUNISTRING.
33496         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
33497         correct the value of $LTLIBUNISTRING.
33498
33499 2010-04-11  Bruno Haible  <bruno@clisp.org>
33500
33501         havelib: Add static libraries to LIBS in the right order.
33502         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
33503         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
33504
33505 2010-04-11  Bruno Haible  <bruno@clisp.org>
33506
33507         libunistring: Detect libunistring also when it depends on libiconv.
33508         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
33509         the second AC_LIB_HAVE_LINKFLAGS invocation.
33510
33511 2010-04-11  James Youngman  <jay@gnu.org>
33512
33513         close-stream: declare local scalars to be "const"
33514         * lib/close-stream.c (close_stream): Make boolean variables const
33515         to document the fact that we set but do not change them.
33516
33517 2010-04-11  Bruno Haible  <bruno@clisp.org>
33518
33519         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
33520
33521 2010-04-11  Jim Meyering  <meyering@redhat.com>
33522
33523         maint.mk: don't include dist-check.mk
33524         * top/maint.mk: Remove bogus include directive.
33525
33526         maint.mk: improve empty-line-at-EOF check
33527         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
33528         solution, rather than tail+Perl-based one.  The latter would read
33529         a few kilobytes from the end of each file, and did not handle empty
33530         files properly.
33531
33532         maint.mk: print the elapsed time for each syntax-check rule
33533         * top/maint.mk (sc_m_rules_): Save start time in a file.
33534         (sc_z_rules_): New rules: remove temp file and print elapsed time.
33535         (local-check): Interpose the .z rules
33536
33537 2010-04-11  Jim Meyering  <meyering@redhat.com>
33538
33539         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
33540         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
33541         empty file with one that ends in an empty line.
33542
33543 2010-04-10  Bruno Haible  <bruno@clisp.org>
33544
33545         mkdir: Make it work on mingw64.
33546         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
33547         * lib/mkdir.c: Update comment.
33548         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
33549
33550 2010-04-10  Bruno Haible  <bruno@clisp.org>
33551
33552         Don't override improved macro from newer autoconf.
33553         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
33554         autoconf >= 2.62.
33555         Reported by Joel E. Denny <jdenny@clemson.edu>.
33556
33557 2010-04-10  Jim Meyering  <meyering@redhat.com>
33558
33559         maint.mk: new syntax-check rule: prohibit empty lines at end of file
33560         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
33561
33562         maint.mk: correct a diagnostic
33563         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
33564         in diagnostic; now use $prohibit.
33565
33566 2010-04-10  Bruno Haible  <address@hidden>
33567
33568         fchownat: Fix a C++ test error on Solaris 8.
33569         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
33570         the function does not exist.
33571
33572 2010-04-10  Bruno Haible  <bruno@clisp.org>
33573
33574         vasnprintf: Add more tests.
33575         * tests/test-vasnprintf-posix.c: Include <errno.h>.
33576         (test_function): Test converting an invalid wide string.
33577
33578         vasnprintf: Correct handling of unconvertible wide string arguments.
33579         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
33580         VASNPRINTF.
33581         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
33582         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
33583         smaller than the expected maximum need for the directive. Set errno to
33584         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
33585         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
33586         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
33587         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
33588         * modules/vasnprintf (Files): Add m4/printf.m4.
33589         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33590
33591 2010-04-10  Bruno Haible  <bruno@clisp.org>
33592
33593         vasnprintf: Fix crash in %ls directive.
33594         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
33595         string is passed as argument to %ls, with no precision and no width.
33596         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33597
33598 2010-04-10  Bruno Haible  <bruno@clisp.org>
33599
33600         vasnprintf: Fix multiple test failures on mingw.
33601         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
33602         _snprintf, or snwprintf, not _snwprintf.
33603
33604 2010-04-10  Bruno Haible  <bruno@clisp.org>
33605
33606         write: Fix a C++ test error on mingw.
33607         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
33608
33609 2010-04-10  Bruno Haible  <bruno@clisp.org>
33610
33611         vasnprintf test: Reduce code duplication.
33612         * tests/test-vasnprintf.c (test_function): New function, extracted from
33613         test_vasnprintf.
33614         (test_vasnprintf, test_asnprintf): Invoke it.
33615
33616 2010-04-10  Bruno Haible  <bruno@clisp.org>
33617
33618         strnlen: Fix warning in C++ mode on MacOS X.
33619         * lib/string.in.h (strnlen): Use the modern idiom.
33620         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
33621         defining strnlen as a macro already in <config.h>.
33622         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
33623         REPLACE_STRNLEN.
33624         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
33625         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33626
33627 2010-04-08  James Youngman  <jay@gnu.org>
33628
33629         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
33630         the example.
33631
33632 2010-04-09  Jim Meyering  <meyering@redhat.com>
33633
33634         maint.mk: print better diagnostic when there is no $(_hv_file)
33635         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
33636         announce that when $(_hv_file) (aka help-version) does not exist.
33637
33638         init.sh: run tr in the "C" locale to avoid multibyte interpretation
33639         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
33640         not try to interpret its random input bytes.  Jarno Rajahalme reported
33641         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
33642         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
33643         (mktempd_): Likewise, just in case.
33644
33645         ftruncate: add two years to projected module removal date: 2012
33646         * m4/ftruncate.m4: Adjust comments.
33647
33648         ftruncate: mark module as obsolete; even MinGW provides it, now
33649         * modules/ftruncate (Status): Obsolete.
33650         (Notice): Say that.
33651         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
33652         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
33653
33654 2010-04-08  Bruno Haible  <bruno@clisp.org>
33655
33656         Fix side effects from tests-related modules.
33657         * modules/dprintf-posix (Comment): New section.
33658         * modules/fprintf-posix (Comment): Likewise.
33659         * modules/obstack-printf-posix (Comment): Likewise.
33660         * modules/printf-posix (Comment): Likewise.
33661         * modules/snprintf-posix (Comment): Likewise.
33662         * modules/sprintf-posix (Comment): Likewise.
33663         * modules/vasnprintf-posix (Comment): Likewise.
33664         * modules/vasprintf-posix (Comment): Likewise.
33665         * modules/vdprintf-posix (Comment): Likewise.
33666         * modules/vfprintf-posix (Comment): Likewise.
33667         * modules/vprintf-posix (Comment): Likewise.
33668         * modules/vsnprintf-posix (Comment): Likewise.
33669         * modules/vsprintf-posix (Comment): Likewise.
33670         * modules/xprintf-posix (Comment): Likewise.
33671         * modules/xvasprintf-posix (Comment): Likewise.
33672         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
33673         * modules/floorf-tests (Depends-on): Likewise.
33674         * modules/round-tests (Depends-on): Likewise.
33675         * modules/roundf-tests (Depends-on): Likewise.
33676         * modules/trunc-tests (Depends-on): Likewise.
33677         * modules/truncf-tests (Depends-on): Likewise.
33678         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
33679         'fprintf-posix' module is not present.
33680         * tests/test-floorf2.c (check): Likewise.
33681         * tests/test-trunc2.c (check): Likewise.
33682         * tests/test-truncf2.c (check): Likewise.
33683         * tests/test-round2.c (equal): Likewise.
33684         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33685
33686 2010-04-07  Karl Berry  <karl@gnu.org>
33687
33688         * config/srclist.txt,
33689         * config/srclistvars.sh,
33690         * config/srclist-update: doc fixes.
33691
33692 2010-04-07  Jim Meyering  <meyering@redhat.com>
33693
33694         maint.mk: add a PATH crosschecking syntax-check rule
33695         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
33696         Useful if you use a test like the one in help-version (coreutils,
33697         diffutils, grep, gzip) that ensures $(VERSION) matches what is
33698         printed by prog --version.
33699
33700 2010-04-06  Bruno Haible  <bruno@clisp.org>
33701
33702         Fix link error on mingw.
33703         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
33704         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
33705
33706 2010-04-06  Bruno Haible  <bruno@clisp.org>
33707
33708         Assume rmdir exists.
33709         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
33710
33711 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
33712
33713         doc: update users.txt
33714         * users.txt: Add gcal.
33715
33716 2010-04-06  Jim Meyering  <meyering@redhat.com>
33717
33718         init.sh: simply unset TMPDIR rather than risking env -i
33719         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
33720         although it probably works fine on all Unix-based systems, some
33721         systems (Cygwin?) cannot tolerate a totally cleared environment.
33722         Suggestion from Eric Blake.
33723
33724 2010-04-06  Jim Meyering  <meyering@redhat.com>
33725
33726         init.sh: portability fix: use env's POSIX-specified -i option not -u
33727         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
33728         than unportable env -u.  Solaris 5.11's env lacks support for -u.
33729
33730 2010-04-05  Bruno Haible  <bruno@clisp.org>
33731
33732         btowc: Work around Cygwin 1.7.2 bug.
33733         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
33734         does not map NUL to 0.
33735         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
33736
33737 2010-04-05  Bruno Haible  <bruno@clisp.org>
33738
33739         Make the multithread modules work on Cygwin 1.7.2.
33740         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
33741         imported symbols can be declared weak, so that it returns "no" on
33742         Cygwin 1.7.2.
33743
33744 2010-04-05  Bruno Haible  <bruno@clisp.org>
33745
33746         Use the module 'strncat'.
33747         * modules/unistr/u8-strncat (Depends-on): Add strncat.
33748
33749         Tests for module 'strncat'.
33750         * modules/strncat-tests: New file.
33751         * tests/test-strncat.c: New file.
33752
33753         New module 'strncat'.
33754         * lib/string.in.h (strncat): New declaration.
33755         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
33756         * m4/strncat.m4: New file, based on m4/memchr.m4.
33757         * modules/strncat: New file.
33758         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
33759         is declared.
33760         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
33761         REPLACE_STRNCAT.
33762         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
33763         REPLACE_STRNCAT.
33764         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
33765         module.
33766         * tests/test-string-c++.cc: Check signature of strncat.
33767
33768 2010-04-05  Jim Meyering  <meyering@redhat.com>
33769
33770         xstrtoumax-tests: convert to use init.sh
33771         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
33772         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
33773         Use Exit, not exit.
33774         Remove uses of $EXEEXT and "./" to run a program in the current dir.
33775
33776         xstrtoimax-tests: convert to use init.sh
33777         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
33778         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
33779         Use Exit, not exit.
33780         Remove uses of $EXEEXT and "./" to run a program in the current dir.
33781
33782 2010-04-05  Bruno Haible  <bruno@clisp.org>
33783
33784         sys_socket: Avoid #define replacements in C++ mode.
33785         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
33786         warning to the function if possible, rather than #defining the symbol
33787         to a dysfunctional alias.
33788
33789 2010-04-05  Bruno Haible  <bruno@clisp.org>
33790
33791         fseeko: Fix C++ test error on mingw.
33792         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
33793         gl_FUNC_FSEEKO.
33794         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
33795         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
33796         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
33797         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
33798
33799 2010-04-05  Bruno Haible  <bruno@clisp.org>
33800
33801         duplocale: Improve test output.
33802         * tests/test-duplocale.c (main): Print reason for skipped test.
33803
33804 2010-04-05  Bruno Haible  <bruno@clisp.org>
33805
33806         Assume rmdir exists.
33807         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
33808         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
33809
33810 2010-04-05  Bruno Haible  <bruno@clisp.org>
33811
33812         Fix link error on Solaris 8 with cc.
33813         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
33814
33815 2010-04-05  Bruno Haible  <bruno@clisp.org>
33816
33817         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
33818         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
33819
33820 2010-04-05  Bruno Haible  <bruno@clisp.org>
33821
33822         vasprintf: Update documentation.
33823         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
33824
33825 2010-04-05  Bruno Haible  <bruno@clisp.org>
33826
33827         ptsname: Improve test.
33828         * tests/test-ptsname.c (main): Also try the various master names of BSD
33829         systems.
33830
33831 2010-04-05  Bruno Haible  <bruno@clisp.org>
33832
33833         memchr: Avoid a possible C++ test error.
33834         * lib/string.in.h (memchr): Provide declaration if function is missing.
33835         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
33836         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
33837         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
33838         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
33839
33840 2010-04-05  Bruno Haible  <bruno@clisp.org>
33841
33842         strtok_r: Improve idiom.
33843         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
33844         AC_LIBOBJ is used.
33845
33846 2010-04-05  Bruno Haible  <bruno@clisp.org>
33847
33848         strdup: Improve idiom.
33849         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
33850         AC_LIBOBJ is used.
33851         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
33852         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
33853         when AC_LIBOBJ is used.
33854
33855 2010-04-05  Bruno Haible  <bruno@clisp.org>
33856
33857         mbsinit, mbrtowc, wcrtomb: Improve idioms.
33858         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
33859         don't set REPLACE_MBSINIT to 1.
33860         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
33861         don't set REPLACE_MBRTOWC to 1.
33862         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
33863         exist, don't set REPLACE_MBSRTOWCS to 1.
33864         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
33865         exist, don't set REPLACE_MBSNRTOWCS to 1.
33866         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
33867         don't set REPLACE_WCRTOMB to 1.
33868         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
33869         exist, don't set REPLACE_WCSRTOMBS to 1.
33870         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
33871         exist, don't set REPLACE_WCSNRTOMBS to 1.
33872
33873 2010-04-05  Bruno Haible  <bruno@clisp.org>
33874
33875         ldexpl: Improve idiom.
33876         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
33877         make sure to set HAVE_DECL_LDEXPL to 0.
33878
33879 2010-04-05  Jim Meyering  <meyering@redhat.com>
33880
33881         xstrtol-tests: convert to use init.sh
33882         * modules/xstrtol-tests (Files): Add tests/init.sh.
33883         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
33884         Use Exit, not exit.
33885         Remove uses of $EXEEXT and "./" to run a program in the current dir.
33886
33887         atexit-tests: convert to use init.sh
33888         * modules/atexit-tests (Files): Add tests/init.sh.
33889         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
33890         Use Exit, not exit.
33891         Remove uses of $EXEEXT and "./" to run a program in the current dir.
33892
33893         init.sh: fix typo
33894         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
33895
33896         init.sh: make it easier for a test script to write to the tty, ...
33897         when using automake's parallel-tests mode.
33898         * tests/init.sh (stderr_fileno_): Define overridable variable.
33899         (warn_): New function, to use it.
33900         (fail_, skip_, framework_failure_): Use warn_.
33901
33902 2010-04-04  Bruno Haible  <bruno@clisp.org>
33903
33904         btowc: Avoid warning.
33905         * lib/btowc.c: Include <stdlib.h>.
33906         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
33907
33908 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
33909             Bruno Haible  <bruno@clisp.org>
33910
33911         wchar: Port to NetBSD 1.5.
33912         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
33913         * lib/wctype.in.h (WEOF): Likewise.
33914
33915 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
33916             Bruno Haible  <bruno@clisp.org>
33917
33918         Port extended stdio to NetBSD 1.5.
33919         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
33920         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
33921         older.
33922
33923 2010-04-04  Bruno Haible  <bruno@clisp.org>
33924
33925         string: Remove unused substitution.
33926         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
33927         HAVE_DECL_STRERROR.
33928         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
33929
33930 2010-04-04  Bruno Haible  <bruno@clisp.org>
33931
33932         strtod: Avoid a possible C++ test error.
33933         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
33934         set REPLACE_STRTOD.
33935
33936 2010-04-04  Bruno Haible  <bruno@clisp.org>
33937
33938         strerror: Update documentation.
33939         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
33940
33941 2010-04-04  Bruno Haible  <bruno@clisp.org>
33942
33943         stdio: Fix some C++ test errors on Solaris 8 with GCC.
33944         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
33945         _GL_CXXALIAS_SYS_CAST.
33946
33947 2010-04-04  Bruno Haible  <bruno@clisp.org>
33948
33949         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
33950         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
33951         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
33952         REPLACE_FREXPL to 1.
33953         * doc/posix-functions/frexpl.texi: Update documentation.
33954
33955 2010-04-04  Bruno Haible  <bruno@clisp.org>
33956
33957         math: Fix some C++ test errors on Solaris 8 and Cygwin.
33958         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
33959
33960 2010-04-04  Bruno Haible  <bruno@clisp.org>
33961
33962         Implement nanosleep for native Windows.
33963         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
33964
33965 2010-04-04  Bruno Haible  <bruno@clisp.org>
33966
33967         math: Fix some C++ test errors on Solaris 8.
33968         * lib/math.in.h (truncf, trunc): Use simpler idiom.
33969
33970 2010-04-04  Bruno Haible  <bruno@clisp.org>
33971
33972         math: Fix some C++ test errors on Cygwin.
33973         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
33974         truncl): Provide declaration if the system does not have it.
33975         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
33976         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
33977         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
33978         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
33979         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
33980         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
33981         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
33982         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
33983         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
33984         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
33985         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
33986         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
33987         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
33988         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
33989         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
33990         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
33991         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
33992         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
33993         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
33994         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
33995         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
33996         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
33997
33998 2010-04-04  Bruno Haible  <bruno@clisp.org>
33999
34000         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
34001         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
34002         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
34003         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
34004         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
34005         * m4/isinf.m4 (gl_ISINF): Likewise.
34006         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
34007
34008 2010-04-04  Bruno Haible  <bruno@clisp.org>
34009
34010         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
34011         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
34012
34013 2010-04-04  Bruno Haible  <bruno@clisp.org>
34014
34015         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
34016         * modules/tmpfile (configure.ac): Update.
34017
34018         tmpfile: Fix C++ test error on mingw.
34019         * lib/stdio.in.h (tmpfile): New declaration.
34020         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
34021         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
34022         * modules/tmpfile (Depends-on): Add stdio.
34023         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
34024         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
34025         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
34026         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
34027         REPLACE_TMPFILE.
34028         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
34029
34030 2010-04-04  Bruno Haible  <bruno@clisp.org>
34031
34032         ioctl: Fix C++ test error on mingw.
34033         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
34034         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
34035         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
34036
34037 2010-04-03  Bruno Haible  <bruno@clisp.org>
34038
34039         wcwidth: Fix C++ test error on mingw.
34040         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
34041         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
34042         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
34043
34044 2010-04-03  Bruno Haible  <bruno@clisp.org>
34045
34046         nanosleep: Fix C++ test error on mingw.
34047         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
34048         * lib/time.in.h (nanosleep): Use modern idiom.
34049         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
34050         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
34051         REPLACE_NANOSLEEP to 1.
34052         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
34053         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
34054
34055 2010-04-03  Bruno Haible  <bruno@clisp.org>
34056
34057         strptime: Fix C++ test error on mingw.
34058         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
34059         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
34060         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
34061         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
34062         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
34063         not REPLACE_STRPTIME.
34064         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
34065         REPLACE_STRPTIME.
34066
34067 2010-04-03  Bruno Haible  <bruno@clisp.org>
34068
34069         timegm: Fix C++ test error on mingw.
34070         * lib/time.in.h (timegm): Use modern idiom.
34071         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
34072         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
34073         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
34074         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
34075
34076 2010-04-03  Bruno Haible  <bruno@clisp.org>
34077
34078         timegm: Assume declaration if function exists.
34079         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
34080         if it exists. Don't clobber ac_cv_func_timegm.
34081
34082 2010-04-03  Bruno Haible  <bruno@clisp.org>
34083
34084         time_r: Fix C++ test error on mingw.
34085         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
34086         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
34087         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
34088         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
34089         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
34090
34091 2010-04-03  Bruno Haible  <bruno@clisp.org>
34092
34093         time_r: Minor updates.
34094         * modules/time_r (Description): Mention the provided functions.
34095         * lib/time_r.c: Don't include <string.h>.
34096         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
34097         * doc/posix-functions/localtime_r.texi: Likewise.
34098
34099 2010-04-03  Bruno Haible  <bruno@clisp.org>
34100
34101         time: Fix regression introduced on 2010-03-08.
34102         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
34103         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
34104
34105 2010-04-03  Jim Meyering  <meyering@redhat.com>
34106
34107         maint.mk: don't silently disable project-specific syntax-check rules
34108         * top/maint.mk (_prohibit_regexp): Define, to help people realize
34109         that they need to convert their project-specific syntax-check rules
34110         to use the new _sc_search_regexp.
34111
34112 2010-04-03  Bruno Haible  <bruno@clisp.org>
34113
34114         fchdir: Fix regression introduced on 2010-03-08.
34115         * lib/unistd.in.h (fchdir): Fix declaration.
34116         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
34117         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
34118         REPLACE_FCHDIR.
34119         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
34120         REPLACE_FCHDIR.
34121
34122 2010-04-03  Bruno Haible  <bruno@clisp.org>
34123
34124         getpagesize: Fix C++ test error on mingw.
34125         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
34126         system does not declare the function.
34127         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
34128         declared.
34129         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34130         HAVE_DECL_GETPAGESIZE.
34131         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
34132
34133 2010-04-03  Bruno Haible  <bruno@clisp.org>
34134
34135         stdio: Make C++ tests work on mingw.
34136         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
34137         does not declare the function.
34138
34139 2010-04-03  Bruno Haible  <bruno@clisp.org>
34140
34141         ftello: Fix C++ test error on mingw.
34142         * lib/stdio.in.h (ftello): Use modern idiom.
34143         * lib/ftello.c (ftello): Renamed from rpl_ftello.
34144         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
34145         is missing and that it needs to be replaced.
34146         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
34147         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
34148         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
34149
34150 2010-04-03  Bruno Haible  <bruno@clisp.org>
34151
34152         fseeko: Fix C++ test error on mingw.
34153         * lib/stdio.in.h (fseeko): Use modern idiom.
34154         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
34155         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
34156         is missing and that it needs to be replaced.
34157         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
34158         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
34159         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
34160
34161 2010-04-03  Bruno Haible  <bruno@clisp.org>
34162
34163         mkstemp: Fix C++ test error on mingw.
34164         * lib/stdlib.in.h (mkstemp): Use modern idiom.
34165         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
34166         function is missing and that it needs to be replaced.
34167         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
34168         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
34169
34170 2010-04-03  Bruno Haible  <bruno@clisp.org>
34171
34172         stpncpy: Fix C++ test error on mingw.
34173         * lib/string.in.h (stpncpy): Use modern idiom.
34174         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
34175         function is missing and that it needs to be replaced.
34176         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
34177         REPLACE_STPNCPY.
34178         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
34179
34180 2010-04-03  Bruno Haible  <bruno@clisp.org>
34181
34182         sys_stat: Fix C++ test error on mingw.
34183         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
34184         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
34185
34186 2010-04-03  Bruno Haible  <bruno@clisp.org>
34187
34188         pty: Update doc.
34189         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
34190
34191 2010-04-03  Bruno Haible  <bruno@clisp.org>
34192
34193         unistd: Fix C++ test error on mingw.
34194         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
34195
34196 2010-04-03  Bruno Haible  <bruno@clisp.org>
34197
34198         Update doc regarding mingw.
34199         * doc/glibc-functions/openpty.texi: Update regarding mingw.
34200         * doc/glibc-functions/login_tty.texi: Likewise.
34201         * doc/glibc-functions/forkpty.texi: Likewise.
34202
34203 2010-04-03  Bruno Haible  <bruno@clisp.org>
34204
34205         stdlib: Avoid compilation failure of c-strtold on mingw.
34206         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
34207
34208 2010-04-03  Bruno Haible  <bruno@clisp.org>
34209
34210         locale: Make C++ tests work on Cygwin and mingw.
34211         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
34212         cannot provide the function.
34213         Reported by Simon Josefsson.
34214
34215 2010-04-03  Bruno Haible  <bruno@clisp.org>
34216
34217         localename: Port to MacOS X 10.6.
34218         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
34219         memory layout of the locales in MacOS X 10.6 as well.
34220         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
34221
34222 2010-04-02  Bruno Haible  <bruno@clisp.org>
34223
34224         gnulib-tool: Ensure that long-running tests are executed last.
34225         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
34226         running tests after the one for the other tests.
34227
34228 2010-04-02  Bruno Haible  <bruno@clisp.org>
34229
34230         gnulib-tool: Ensure the tests in the main directory are executed first.
34231         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
34232         start with the current directory.
34233
34234 2010-04-02  Bruno Haible  <bruno@clisp.org>
34235
34236         Tests for module 'havelib', moved here from GNU gettext.
34237         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
34238         modifications.
34239         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
34240         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
34241         with modifications.
34242         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
34243         modifications.
34244         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
34245         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
34246         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
34247         with modifications.
34248         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
34249         with modifications.
34250         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
34251         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
34252         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
34253         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
34254         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
34255         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
34256         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
34257         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
34258         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
34259         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
34260         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
34261         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
34262         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
34263         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
34264         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
34265         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
34266         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
34267         with modifications.
34268         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
34269         with modifications.
34270         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
34271         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
34272         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
34273         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
34274         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
34275         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
34276         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
34277         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
34278         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
34279         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
34280         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
34281         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
34282         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
34283         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
34284         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
34285         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
34286         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
34287         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
34288         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
34289         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
34290         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
34291         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
34292         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
34293         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
34294         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
34295         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
34296         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
34297         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
34298         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
34299         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
34300         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
34301         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
34302         * tests/havelib/rpathx/rpathx.c: New file, from
34303         gettext/autoconf-lib-link.
34304         * tests/havelib/rpathx/Makefile.am: New file, from
34305         gettext/autoconf-lib-link.
34306         * tests/havelib/rpathx/configure.ac: New file, from
34307         gettext/autoconf-lib-link with modifications.
34308         * tests/havelib/rpathy/rpathy.c: New file, from
34309         gettext/autoconf-lib-link.
34310         * tests/havelib/rpathy/Makefile.am: New file, from
34311         gettext/autoconf-lib-link.
34312         * tests/havelib/rpathy/configure.ac: New file, from
34313         gettext/autoconf-lib-link with modifications.
34314         * tests/havelib/rpathz/rpathz.c: New file, from
34315         gettext/autoconf-lib-link.
34316         * tests/havelib/rpathz/Makefile.am: New file, from
34317         gettext/autoconf-lib-link.
34318         * tests/havelib/rpathz/configure.ac: New file, from
34319         gettext/autoconf-lib-link with modifications.
34320         * tests/havelib/rpathlx/usex.c: New file, from
34321         gettext/autoconf-lib-link.
34322         * tests/havelib/rpathlx/Makefile.am: New file, from
34323         gettext/autoconf-lib-link.
34324         * tests/havelib/rpathlx/configure.ac: New file, from
34325         gettext/autoconf-lib-link with modifications.
34326         * tests/havelib/rpathly/usey.c: New file, from
34327         gettext/autoconf-lib-link.
34328         * tests/havelib/rpathly/Makefile.am: New file, from
34329         gettext/autoconf-lib-link.
34330         * tests/havelib/rpathly/configure.ac: New file, from
34331         gettext/autoconf-lib-link with modifications.
34332         * tests/havelib/rpathlz/usez.c: New file, from
34333         gettext/autoconf-lib-link.
34334         * tests/havelib/rpathlz/Makefile.am: New file, from
34335         gettext/autoconf-lib-link.
34336         * tests/havelib/rpathlz/configure.ac: New file, from
34337         gettext/autoconf-lib-link with modifications.
34338         * tests/havelib/rpathlyx/usey.c: New file, from
34339         gettext/autoconf-lib-link.
34340         * tests/havelib/rpathlyx/Makefile.am: New file, from
34341         gettext/autoconf-lib-link.
34342         * tests/havelib/rpathlyx/configure.ac: New file, from
34343         gettext/autoconf-lib-link with modifications.
34344         * tests/havelib/rpathlzyx/usez.c: New file, from
34345         gettext/autoconf-lib-link.
34346         * tests/havelib/rpathlzyx/Makefile.am: New file, from
34347         gettext/autoconf-lib-link.
34348         * tests/havelib/rpathlzyx/configure.ac: New file, from
34349         gettext/autoconf-lib-link with modifications.
34350         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
34351         with modifications.
34352
34353 2010-04-02  Bruno Haible  <bruno@clisp.org>
34354
34355         gnulib-tool: Create distributed built sources also for the tests.
34356         * gnulib-tool (func_create_testdir): Also generate distributed built
34357         sources in the tests directory.
34358
34359 2010-04-02  Bruno Haible  <bruno@clisp.org>
34360
34361         gnulib-tool: Obey user's environment variables.
34362         * gnulib-tool (func_create_testdir): When creating built sources,
34363         respect the environment variables for autoconf, automake, etc. given by
34364         the user.
34365
34366 2010-04-02  Bruno Haible  <bruno@clisp.org>
34367
34368         gnulib-tool: Provide the value of --m4-base to modules.
34369         * gnulib-tool (func_import, func_create_testdir): Emit a definition
34370         of gl_m4_base.
34371
34372 2010-04-02  Eric Blake  <eblake@redhat.com>
34373
34374         maint.mk: fix some fallout
34375         * NEWS: Document the incompatible change, and its effect on cfg.mk.
34376         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
34377
34378 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
34379
34380         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
34381         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
34382         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
34383         (sc_cast_of_x_alloc_return_value): Likewise.
34384         (sc_cast_of_alloca_return_value): Likewise.
34385         (sc_space_tab): Likewise.
34386         (sc_prohibit_atoi_atof): Likewise.
34387         (sc_prohibit_magic_number_exit): Likewise.
34388         (sc_error_exit_success): Likewise.
34389         (sc_file_system): Likewise.
34390         (sc_prohibit_have_config_h): Likewise.
34391         (sc_require_config_h): Likewise.
34392         (sc_prohibit_HAVE_MBRTOWC): Likewise.
34393         (sc_obsolete_symbols): Likewise.
34394         (sc_changelog): Likewise.
34395         (sc_program_name): Likewise.
34396         (sc_the_the): Likewise.
34397         (sc_trailing_blank): Likewise.
34398         (sc_two_space_separator_in_usage): Likewise.
34399         (sc_useless_cpp_parens): Likewise.
34400         (sc_GPL_version): Likewise.
34401         (sc_GFDL_version): Likewise.
34402         (sc_texinfo_acronym): Likewise.
34403         (sc_prohibit_cvs_keyword): Likewise.
34404         (sc_prohibit_stat_st_blocks): Likewise.
34405         (sc_prohibit_S_IS_definition): Likewise.
34406         (sc_redundant_const): Likewise.
34407         (sc_makefile_TAB_only_indentation): Likewise.
34408         (sc_m4_quote_check): Likewise.
34409         (sc_makefile_path_separator_check): Likewise.
34410         (sc_copyright_check): Likewise.
34411         (sc_Wundef_boolean): Likewise.
34412         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
34413
34414         maint.mk: match 0 or more whitespace-before-function-call '('
34415         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
34416         that have zero or two-and-more spaces between the function name
34417         and the open parenthesis.
34418         (sc_error_message_warn_fatal): Likewise.
34419         (sc_error_message_uppercase): Likewise.
34420         (sc_error_message_period): Likewise.
34421
34422 2010-03-31  Eric Blake  <eblake@redhat.com>
34423
34424         maint.mk: check for [ as well as test
34425         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
34426         Based on a libvirt report by Matthias Bolte.
34427
34428         gnumakefile: don't squelch _version output
34429         * top/GNUmakefile (_version): Create one-shot dependency rather
34430         than using $(shell) when version must be regenerated.
34431         (_autoreconf): Run verbosely, by default.
34432
34433         sys_time: avoid compiler warnings
34434         * lib/sys_time.in.h (includes): Ensure gcc pragma is
34435         unconditional, fixing regression from 2010-03-29.
34436         Reported by Simon Josefsson.
34437
34438 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
34439
34440         maint.mk: s/_header_without_use/_sc_header_without_use/
34441         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
34442         (sc_prohibit_assert_without_use): Use the new name.
34443         (sc_prohibit_close_stream_without_use): Likewise.
34444         (sc_prohibit_getopt_without_use): Likewise.
34445         (sc_prohibit_quotearg_without_use): Likewise.
34446         (sc_prohibit_quote_without_use): Likewise.
34447         (sc_prohibit_long_options_without_use): Likewise.
34448         (sc_prohibit_inttostr_without_use): Likewise.
34449         (sc_prohibit_ignore_value_without_use): Likewise.
34450         (sc_prohibit_error_without_use): Likewise.
34451         (sc_prohibit_xalloc_without_use): Likewise.
34452         (sc_prohibit_hash_without_use): Likewise.
34453         (sc_prohibit_hash_pjw_without_use): Likewise.
34454         (sc_prohibit_safe_read_without_use): Likewise.
34455         (sc_prohibit_argmatch_without_use): Likewise.
34456         (sc_prohibit_canonicalize_without_use): Likewise.
34457         (sc_prohibit_root_dev_ino_without_use): Likewise.
34458         (sc_prohibit_openat_without_use): Likewise.
34459         (sc_prohibit_c_ctype_without_use): Likewise.
34460         (sc_prohibit_signal_without_use): Likewise.
34461         (sc_prohibit_intprops_without_use): Likewise.
34462
34463 2010-03-30  Eric Blake  <eblake@redhat.com>
34464
34465         maint: improve module indicators
34466         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
34467         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
34468         columns, and avoid extra macro expansion.
34469
34470         fdopendir: work around FreeBSD bug
34471         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
34472         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
34473         * modules/dirent (Makefile.am): Substitute it.
34474         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
34475         declaration.
34476         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
34477         fix.
34478         Reported by Christian Weisgerber <naddy@mips.inka.de>.
34479
34480 2010-03-29  Bruno Haible  <bruno@clisp.org>
34481
34482         Emit #pragma system_header after the inclusion guard, not before.
34483         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
34484         guard that spans the entire file, not before. This enables an
34485         optimization in GCC's preprocessor.
34486         * lib/ctype.in.h: Likewise.
34487         * lib/dirent.in.h: Likewise.
34488         * lib/errno.in.h: Likewise.
34489         * lib/float.in.h: Likewise.
34490         * lib/getopt.in.h: Likewise.
34491         * lib/iconv.in.h: Likewise.
34492         * lib/langinfo.in.h: Likewise.
34493         * lib/locale.in.h: Likewise.
34494         * lib/math.in.h: Likewise.
34495         * lib/netdb.in.h: Likewise.
34496         * lib/netinet_in.in.h: Likewise.
34497         * lib/pty.in.h: Likewise.
34498         * lib/sched.in.h: Likewise.
34499         * lib/se-selinux.in.h: Likewise.
34500         * lib/search.in.h: Likewise.
34501         * lib/spawn.in.h: Likewise.
34502         * lib/stdarg.in.h: Likewise.
34503         * lib/stdint.in.h: Likewise.
34504         * lib/string.in.h: Likewise.
34505         * lib/strings.in.h: Likewise.
34506         * lib/sys_file.in.h: Likewise.
34507         * lib/sys_ioctl.in.h: Likewise.
34508         * lib/sys_time.in.h: Likewise.
34509         * lib/sys_times.in.h: Likewise.
34510         * lib/sys_utsname.in.h: Likewise.
34511         * lib/sys_wait.in.h: Likewise.
34512         * lib/sysexits.in.h: Likewise.
34513         * lib/wctype.in.h: Likewise.
34514
34515 2010-03-28  James Youngman  <jay@gnu.org>
34516
34517         save-cwd: don't leak a file descriptor when the caller execs.
34518         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
34519         saved file descriptor.
34520         * modules/save-cwd (Depends-on): Depend on cloexec.
34521
34522 2010-03-29  Bruno Haible  <bruno@clisp.org>
34523
34524         Remove vestiges of fts-lgpl module.
34525         * lib/fts_.h: Assume GNULIB_FTS is 1.
34526         * lib/fts.c: Likewise.
34527         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
34528
34529 2010-03-28  Bruno Haible  <bruno@clisp.org>
34530
34531         Fix definition of tests witness macro.
34532         * gnulib-tool (func_import): Fix definition of witness macro.
34533
34534 2010-03-28  Bruno Haible  <bruno@clisp.org>
34535
34536         Fix ioctl's protoype on glibc systems.
34537         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
34538         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
34539         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
34540         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
34541         signature. If not, arrange to replace the ioctl function.
34542         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
34543         REPLACE_IOCTL.
34544         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
34545         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
34546         Reported by Ludovic Courtès <ludo@gnu.org>.
34547
34548 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
34549
34550         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
34551         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
34552         made it so grep -r --include=GLOB* ... did not work.
34553
34554 2010-03-26  Jim Meyering  <meyering@redhat.com>
34555             Eric Blake  <eblake@redhat.com>
34556
34557         maint.mk: prohibit use of test's -o and -a operators
34558         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
34559
34560 2010-03-28  Bruno Haible  <bruno@clisp.org>
34561
34562         Remove unused GNULIB_XYZ macro definitions.
34563         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
34564         invocation.
34565
34566 2010-03-28  Bruno Haible  <bruno@clisp.org>
34567
34568         Mark privileged tests modules.
34569         * modules/idpriv-drop-tests (Status): New section.
34570         * modules/idpriv-droptemp-tests (Status): New section.
34571
34572 2010-03-28  Bruno Haible  <bruno@clisp.org>
34573
34574         Split C++ tests into separate tests modules.
34575         * modules/dirent-c++-tests: New file, extracted from
34576         modules/dirent-tests.
34577         * modules/dirent-tests: Depend on it.
34578         * modules/fcntl-h-c++-tests: New file, extracted from
34579         modules/fcntl-h-tests.
34580         * modules/fcntl-h-tests: Depend on it.
34581         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
34582         * modules/glob-tests: Depend on it.
34583         * modules/iconv-h-c++-tests: New file, extracted from
34584         modules/iconv-h-tests.
34585         * modules/iconv-h-tests: Depend on it.
34586         * modules/langinfo-c++-tests: New file, extracted from
34587         modules/langinfo-tests.
34588         * modules/langinfo-tests: Depend on it.
34589         * modules/locale-c++-tests: New file, extracted from
34590         modules/locale-tests.
34591         * modules/locale-tests: Depend on it.
34592         * modules/math-c++-tests: New file, extracted from modules/math-tests.
34593         * modules/math-tests: Depend on it.
34594         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
34595         * modules/pty-tests: Depend on it.
34596         * modules/search-c++-tests: New file, extracted from
34597         modules/search-tests.
34598         * modules/search-tests: Depend on it.
34599         * modules/signal-c++-tests: New file, extracted from
34600         modules/signal-tests.
34601         * modules/signal-tests: Depend on it.
34602         * modules/spawn-c++-tests: New file, extracted from
34603         modules/spawn-tests.
34604         * modules/spawn-tests: Depend on it.
34605         * modules/stdio-c++-tests: New file, extracted from
34606         modules/stdio-tests.
34607         * modules/stdio-tests: Depend on it.
34608         * modules/stdlib-c++-tests: New file, extracted from
34609         modules/stdlib-tests.
34610         * modules/stdlib-tests: Depend on it.
34611         * modules/string-c++-tests: New file, extracted from
34612         modules/string-tests.
34613         * modules/string-tests: Depend on it.
34614         * modules/sys_ioctl-c++-tests: New file, extracted from
34615         modules/sys_ioctl-tests.
34616         * modules/sys_ioctl-tests: Depend on it.
34617         * modules/sys_select-c++-tests: New file, extracted from
34618         modules/sys_select-tests.
34619         * modules/sys_select-tests: Depend on it.
34620         * modules/sys_socket-c++-tests: New file, extracted from
34621         modules/sys_socket-tests.
34622         * modules/sys_socket-tests: Depend on it.
34623         * modules/sys_stat-c++-tests: New file, extracted from
34624         modules/sys_stat-tests.
34625         * modules/sys_stat-tests: Depend on it.
34626         * modules/sys_time-c++-tests: New file, extracted from
34627         modules/sys_time-tests.
34628         * modules/sys_time-tests: Depend on it.
34629         * modules/time-c++-tests: New file, extracted from modules/time-tests.
34630         * modules/time-tests: Depend on it.
34631         * modules/unistd-c++-tests: New file, extracted from
34632         modules/unistd-tests.
34633         * modules/unistd-tests: Depend on it.
34634         * modules/wchar-c++-tests: New file, extracted from
34635         modules/wchar-tests.
34636         * modules/wchar-tests: Depend on it.
34637         * modules/wctype-c++-tests: New file, extracted from
34638         modules/wctype-tests.
34639         * modules/wctype-tests: Depend on it.
34640         Reported by Simon Josefsson.
34641
34642 2010-03-28  Bruno Haible  <bruno@clisp.org>
34643
34644         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
34645         * gnulib-tool (func_exists_module): New function, extracted from
34646         func_verify_module.
34647         (func_verify_module): Use it.
34648         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
34649         'foo' only if 'foo' exists.
34650         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
34651         module.
34652
34653 2010-03-28  Bruno Haible  <bruno@clisp.org>
34654
34655         gnulib-tool: Add support for special categories of tests.
34656         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
34657         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
34658         (func_usage): Document them.
34659         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
34660         inc_unportable_tests, inc_all_tests): New variables.
34661         (func_acceptable): Consider these variables.
34662         (func_modules_transitive_closure): Make it work when the 'Status' field
34663         consists of multiple words.
34664         (func_import): Store and restore the values of inc_cxx_tests,
34665         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
34666         inc_all_tests in gnulib-comp.m4.
34667         (func_create_testdir): Set inc_all_tests to true.
34668         * doc/gnulib.texi (Extra tests modules): New section.
34669         Suggested by Jim Meyering.
34670
34671 2010-03-28  Bruno Haible  <bruno@clisp.org>
34672
34673         ansi-c++-opt: Allow turning off the C++ build by default.
34674         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
34675         gl_CXX_CHOICE_DEFAULT_NO is defined.
34676         Requested by Eric Blake.
34677
34678 2010-03-28  Bruno Haible  <bruno@clisp.org>
34679
34680         unistd: Avoid #define replacements in C++ mode.
34681         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
34682         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
34683         setsockopt, shutdown, select): In C++, attach a warning to the function
34684         if possible, rather than #defining the symbol to a dysfunctional alias.
34685         Reported by John W. Eaton <jwe@gnu.org>.
34686
34687 2010-03-28  Bruno Haible  <bruno@clisp.org>
34688
34689         Fix link errors on mingw.
34690         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
34691         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
34692         $(LIBSOCKET).
34693         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
34694         $(LIBSOCKET).
34695
34696 2010-03-28  Bruno Haible  <bruno@clisp.org>
34697             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34698
34699         lib-ignore: Determine different options for different compilers.
34700         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
34701         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
34702         Add comments.
34703         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
34704         * NEWS: Mention the change.
34705
34706 2010-03-27  Bruno Haible  <bruno@clisp.org>
34707
34708         Remove unused GNULIB_XYZ macro definitions.
34709         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
34710         * modules/fseek (configure.ac): Likewise.
34711         * modules/ioctl (configure.ac): Likewise.
34712         * modules/open (configure.ac): Likewise.
34713         * modules/stdlib-safer (configure.ac): Likewise.
34714
34715 2010-03-27  Bruno Haible  <bruno@clisp.org>
34716
34717         Add a remark about certain modules.
34718         * modules/malloc (Comment): New section.
34719         * modules/realloc (Comment): Likewise.
34720         * modules/sigpipe (Comment): Likewise.
34721
34722 2010-03-27  Bruno Haible  <bruno@clisp.org>
34723
34724         Resolve conflict between the two kinds of module indicators.
34725         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
34726         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
34727         * modules/canonicalize (configure.ac): Invoke
34728         gl_MODULE_INDICATOR_FOR_TESTS.
34729         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
34730         GNULIB_XYZ.
34731         * tests/test-dirent-c++.cc: Likewise.
34732         * tests/test-dirent-safer.c: Likewise.
34733         * tests/test-dup2.c: Likewise.
34734         * tests/test-fchdir.c: Likewise.
34735         * tests/test-fcntl-h-c++.cc: Likewise.
34736         * tests/test-getopt.c: Likewise.
34737         * tests/test-getopt.h: Likewise.
34738         * tests/test-langinfo-c++.cc: Likewise.
34739         * tests/test-locale-c++.cc: Likewise.
34740         * tests/test-math-c++.cc: Likewise.
34741         * tests/test-pty-c++.cc: Likewise.
34742         * tests/test-search-c++.cc: Likewise.
34743         * tests/test-signal-c++.cc: Likewise.
34744         * tests/test-spawn-c++.cc: Likewise.
34745         * tests/test-stdio-c++.cc: Likewise.
34746         * tests/test-stdlib-c++.cc: Likewise.
34747         * tests/test-string-c++.cc: Likewise.
34748         * tests/test-sys_ioctl-c++.cc: Likewise.
34749         * tests/test-sys_select-c++.cc: Likewise.
34750         * tests/test-sys_socket-c++.cc: Likewise.
34751         * tests/test-sys_stat-c++.cc: Likewise.
34752         * tests/test-sys_time-c++.cc: Likewise.
34753         * tests/test-time-c++.cc: Likewise.
34754         * tests/test-unistd-c++.cc: Likewise.
34755         * tests/test-wchar-c++.cc: Likewise.
34756         * tests/uninorm/test-u8-nfc.c: Likewise.
34757         * tests/uninorm/test-u8-nfd.c: Likewise.
34758         * tests/uninorm/test-u8-nfkc.c: Likewise.
34759         * tests/uninorm/test-u8-nfkd.c: Likewise.
34760         * tests/uninorm/test-u16-nfc.c: Likewise.
34761         * tests/uninorm/test-u16-nfd.c: Likewise.
34762         * tests/uninorm/test-u16-nfkc.c: Likewise.
34763         * tests/uninorm/test-u16-nfkd.c: Likewise.
34764         * tests/uninorm/test-u32-nfc.c: Likewise.
34765         * tests/uninorm/test-u32-nfc-big.c: Likewise.
34766         * tests/uninorm/test-u32-nfd.c: Likewise.
34767         * tests/uninorm/test-u32-nfd-big.c: Likewise.
34768         * tests/uninorm/test-u32-nfkc.c: Likewise.
34769         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
34770         * tests/uninorm/test-u32-nfkd.c: Likewise.
34771         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
34772         * tests/uninorm/test-u32-normalize-big.c: Likewise.
34773
34774 2010-03-27  Bruno Haible  <bruno@clisp.org>
34775
34776         Distinguish two kinds of module indicators.
34777         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
34778         gl_MODULE_INDICATOR.
34779         (gl_MODULE_INDICATOR): New macro.
34780         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
34781         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
34782         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
34783         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
34784         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
34785         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
34786         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
34787         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
34788         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
34789         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
34790         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
34791         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
34792         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
34793         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
34794         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
34795         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
34796         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
34797         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
34798         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
34799         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
34800         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
34801         * modules/cloexec (configure.ac): Likewise.
34802         * modules/getopt-gnu (configure.ac): Likewise.
34803         * modules/uninorm/u8-normalize (configure.ac): Likewise.
34804         * modules/uninorm/u16-normalize (configure.ac): Likewise.
34805         * modules/uninorm/u32-normalize (configure.ac): Likewise.
34806         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
34807
34808 2010-03-27  Bruno Haible  <bruno@clisp.org>
34809
34810         New module description field 'Comment'.
34811         * gnulib-tool: New option --extract-comment.
34812         (func_usage): Document it.
34813         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
34814         (func_get_comment): New function.
34815         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
34816
34817 2010-03-27  Bruno Haible  <bruno@clisp.org>
34818
34819         Addendum to 2010-02-07 commit.
34820         * gnulib-tool (func_usage): Document --extract-applicability option.
34821
34822 2010-03-27  Bruno Haible  <bruno@clisp.org>
34823
34824         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
34825         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
34826         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
34827         rather than link errors.
34828
34829 2010-03-27  Bruno Haible  <bruno@clisp.org>
34830
34831         Avoid side effects from tests-related modules on the compilation of lib.
34832         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
34833         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
34834         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
34835         parameter. Emit into AM_CPPFLAGS a definition of the designated C
34836         macro.
34837         (func_import): Define a witness macro. Assign it a value that depends
34838         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
34839         tests-related modules.
34840         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
34841         Reported by Jim Meyering.
34842
34843 2010-03-27  Bruno Haible  <bruno@clisp.org>
34844
34845         Factorize common .m4 code.
34846         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
34847         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
34848         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
34849         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
34850         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
34851         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
34852         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
34853         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
34854         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
34855         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
34856         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
34857         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
34858         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
34859         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
34860         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
34861         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
34862         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
34863         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
34864         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
34865         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
34866         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
34867         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
34868         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
34869         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
34870         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
34871         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
34872         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
34873         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
34874         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
34875         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
34876         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
34877         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
34878
34879 2010-03-27  Bruno Haible  <bruno@clisp.org>
34880
34881         Fix a compilation error on Cygwin with g++ >= 4.3.
34882         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
34883         if it is undefined or if we alias it to chmod.
34884         (lstat): Don't warn about the use of this function if it is undefined
34885         or if we alias it to stat.
34886         Reported by Simon Josefsson.
34887
34888 2010-03-27  Bruno Haible  <bruno@clisp.org>
34889
34890         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
34891         * modules/getlogin (configure.ac): Update.
34892
34893         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
34894         * modules/getlogin_r (configure.ac): Update.
34895
34896         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
34897         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
34898         * modules/inet_ntop (configure.ac): Update.
34899
34900         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
34901         * modules/inet_pton (configure.ac): Update.
34902
34903         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
34904         * modules/mbslen (configure.ac): Update.
34905
34906         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
34907         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
34908         * modules/forkpty (configure.ac): Update.
34909         * modules/openpty (configure.ac): Update.
34910
34911 2010-03-26  Simon Josefsson  <simon@josefsson.org>
34912
34913         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
34914         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
34915
34916 2010-03-25  Eric Blake  <eblake@redhat.com>
34917
34918         maint: use pragma consistently across replacement headers
34919         * lib/ctype.in.h (system_header): Hoist for consistent placement.
34920         * lib/dirent.in.h (system_header): Likewise.
34921         * lib/errno.in.h (system_header): Likewise.
34922         * lib/float.in.h (system_header): Likewise.
34923         * lib/getopt.in.h (system_header): Likewise.
34924         * lib/iconv.in.h (system_header): Likewise.
34925         * lib/inttypes.in.h (system_header): Likewise.
34926         * lib/langinfo.in.h (system_header): Likewise.
34927         * lib/locale.in.h (system_header): Likewise.
34928         * lib/math.in.h (system_header): Likewise.
34929         * lib/netdb.in.h (system_header): Likewise.
34930         * lib/netinet_in.in.h (system_header): Likewise.
34931         * lib/pty.in.h (system_header): Likewise.
34932         * lib/sched.in.h (system_header): Likewise.
34933         * lib/se-selinux.in.h (system_header): Likewise.
34934         * lib/search.in.h (system_header): Likewise.
34935         * lib/spawn.in.h (system_header): Likewise.
34936         * lib/stdarg.in.h (system_header): Likewise.
34937         * lib/stdint.in.h (system_header): Likewise.
34938         * lib/string.in.h (system_header): Likewise.
34939         * lib/strings.in.h (system_header): Likewise.
34940         * lib/sys_file.in.h (system_header): Likewise.
34941         * lib/sys_ioctl.in.h (system_header): Likewise.
34942         * lib/sys_socket.in.h (system_header): Likewise.
34943         * lib/sys_times.in.h (system_header): Likewise.
34944         * lib/sys_utsname.in.h (system_header): Likewise.
34945         * lib/sys_wait.in.h (system_header): Likewise.
34946         * lib/sysexits.in.h (system_header): Likewise.
34947         * lib/unistd.in.h (system_header): Likewise.
34948         * lib/wctype.in.h (system_header): Likewise.
34949
34950         arpa/inet: fix mingw compilation warning
34951         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
34952         Reported by Matthew Bolte.
34953
34954 2010-03-25  Bruno Haible  <bruno@clisp.org>
34955
34956         Avoid collision between gnulib wrapper and libintl wrapper.
34957         * lib/printf.c (printf): Don't define if a printf wrapper is already
34958         defined in intl/printf.c.
34959         Reported by Michel Boaventura <michel@michelboaventura.com>.
34960
34961 2010-03-25  Bruno Haible  <bruno@clisp.org>
34962
34963         Use ANSI C.
34964         * lib/readutmp.h (getutent): Provide ANSI C prototype.
34965
34966 2010-03-25  Bruno Haible  <bruno@clisp.org>
34967
34968         Minor formatting changes.
34969         * lib/acosl.c: Insert space before function argument list.
34970         * lib/argz.c: Likewise.
34971         * lib/asinl.c: Likewise.
34972         * lib/expl.c: Likewise.
34973         * lib/gen-uni-tables.c: Likewise.
34974         * lib/gettext.h: Likewise.
34975         * lib/glthread/lock.h: Likewise.
34976         * lib/tanl.c: Likewise.
34977         * lib/uniname/uniname.c: Likewise.
34978         * tests/test-idpriv-drop.c: Likewise.
34979         * tests/test-idpriv-droptemp.c: Likewise.
34980         * tests/test-lock.c: Likewise.
34981         * tests/test-tls.c: Likewise.
34982         * lib/argp-help.c: Insert space before function-like macro argument
34983         list.
34984         * lib/memcmp.c: Likewise.
34985         * tests/test-base64.c: Likewise.
34986         * lib/localename.c: Insert space before sizeof's argument list.
34987         * lib/safe-alloc.h: Likewise.
34988         * lib/file-set.h: Insert space before macro argument list.
34989         * tests/test-argp.c: Likewise.
34990         * lib/argp-namefrob.h: Insert space before function parameter list.
34991         * lib/getaddrinfo.c: Likewise.
34992         * lib/netdb.in.h: Likewise.
34993         * lib/parse-duration.h: Likewise.
34994         * lib/parse-duration.c: Likewise.
34995         * lib/poll.c: Likewise.
34996         * lib/select.c: Likewise.
34997         * lib/trim.h: Likewise.
34998         * tests/test-usleep.c: Likewise.
34999         * lib/ldexpl.c: Insert space before function parameter list and before
35000         function argument list.
35001         * lib/logl.c: Likewise.
35002         * lib/sqrtl.c: Likewise.
35003         * lib/trim.c: Likewise.
35004         * lib/cosl.c: Use GNU style indentation. Insert space before function
35005         argument list.
35006         * lib/sinl.c: Likewise.
35007         * lib/tsearch.c: Insert space after 'for'.
35008         Reported by Jim Meyering.
35009
35010 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
35011
35012         * maint.mk (sc_Wundef_boolean): Check for the presence of the
35013         config header before grepping, as it's not present before
35014         autoreconf/configure are run.  Reported by Simon Josefsson.
35015
35016 2010-03-23  Bruno Haible  <bruno@clisp.org>
35017
35018         pt_chown: Make it work with automake < 1.11.
35019         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
35020         Reported by Simon Josefsson.
35021
35022 2010-03-23  Bruno Haible  <bruno@clisp.org>
35023
35024         pt_chown: Don't depend on GPLed modules.
35025         * lib/pt_chown.c: Don't include idpriv.h.
35026         (main): Don't drop privileges.
35027         * modules/pt_chown (Depends-on): Remove idpriv-drop.
35028         Reported by Simon Josefsson.
35029
35030 2010-03-24  Simon Josefsson  <simon@josefsson.org>
35031
35032         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
35033         suggestions from karl@freefriends.org (Karl Berry).
35034
35035 2010-03-22  Eric Blake  <eblake@redhat.com>
35036
35037         gethostname: further tweaks
35038         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
35039         are overriding gethostname.
35040         Suggested by Bruno Haible.
35041
35042 2010-03-21  Bruno Haible  <bruno@clisp.org>
35043
35044         Fix comments.
35045         * lib/forkpty.c (rpl_forkpty): Fix comment.
35046         * lib/openpty.c (rpl_openpty): Likewise.
35047         Reported by Eric Blake.
35048
35049 2010-03-22  Eric Blake  <eblake@redhat.com>
35050
35051         gethostname: fix build on mingw
35052         * lib/unistd.in.h (includes): Work around fact that mingw
35053         <winsock2.h> re-includes <unistd.h>, by avoiding any
35054         redeclarations if we are being included by <winsock2.h>.
35055         Reported by Matthias Bolte.
35056
35057 2010-03-21  Bruno Haible  <bruno@clisp.org>
35058
35059         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
35060         * lib/forkpty.c (forkpty): New replacement function, from glibc with
35061         modifications.
35062         * lib/pty.in.h (forkpty): Update declaration. Add comments.
35063         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
35064         provide the replacement.
35065         * modules/forkpty (Depends-on): Add openpty, login_tty.
35066         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
35067         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
35068         * doc/glibc-functions/forkpty.texi: More supported platforms.
35069         * config/srclist.txt: Add forkpty.c (commented).
35070
35071 2010-03-21  Bruno Haible  <bruno@clisp.org>
35072
35073         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
35074         (Makefile.am): Verify that PTY_LIB is defined.
35075
35076         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
35077
35078 2010-03-21  Bruno Haible  <bruno@clisp.org>
35079
35080         Tests for module 'login_tty'.
35081         * modules/login_tty-tests: New file.
35082         * tests/test-login_tty.c: New file.
35083
35084         New module 'login_tty'.
35085         * lib/login_tty.c: New file.
35086         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
35087         * modules/login_tty: New file.
35088         * doc/glibc-functions/login_tty.texi: Mention the new module.
35089
35090 2010-03-21  Bruno Haible  <bruno@clisp.org>
35091
35092         login_tty: Documentation.
35093         * doc/glibc-functions/login_tty.texi: New file.
35094         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
35095
35096 2010-03-21  Bruno Haible  <bruno@clisp.org>
35097
35098         pty: Consistent macro naming.
35099         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
35100         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
35101         * modules/pty (configure.ac): Update.
35102
35103 2010-03-21  Bruno Haible  <bruno@clisp.org>
35104
35105         Tests for openpty: Make stricter.
35106         * tests/test-openpty.c (main): Add test of canonical processing and
35107         erase.
35108         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
35109
35110         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
35111         * lib/openpty.c (openpty): New replacement function.
35112         * lib/pty.in.h: Include <termios.h>.
35113         (openpty): Update declaration. Add comments.
35114         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
35115         is not declared, arrange to provide the replacement. Check for _getpty
35116         and posix_openpt.
35117         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
35118         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
35119         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
35120         * modules/pty-tests (test_pty_c___LDADD): New variable.
35121         * doc/glibc-functions/openpty.texi: More supported platforms.
35122
35123 2010-03-21  Bruno Haible  <bruno@clisp.org>
35124
35125         setenv: Tweaks.
35126         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
35127         the test program.
35128         * doc/posix-functions/setenv.texi: Update platforms list.
35129
35130 2010-03-21  Bruno Haible  <bruno@clisp.org>
35131
35132         New module 'unlockpt'.
35133         * lib/unlockpt.c: New file, from glibc with modifications.
35134         * m4/unlockpt.m4: New file.
35135         * modules/unlockpt: New file.
35136         * lib/stdlib.in.h (unlockpt): New declaration.
35137         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
35138         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
35139         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
35140         HAVE_UNLOCKPT.
35141         * doc/posix-functions/unlockpt.texi: Mention the new module.
35142         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
35143         * config/srclist.txt: Add unlockpt.c (commented).
35144
35145 2010-03-21  Jim Meyering  <meyering@redhat.com>
35146
35147         maint.mk: prohibit inclusion of "intprops.h" without use
35148         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
35149
35150 2010-03-21  Bruno Haible  <bruno@clisp.org>
35151
35152         New module 'grantpt'.
35153         * lib/grantpt.c: New file, from glibc with modifications.
35154         * m4/grantpt.m4: New file.
35155         * modules/grantpt: New file.
35156         * lib/stdlib.in.h (grantpt): New declaration.
35157         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
35158         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
35159         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
35160         HAVE_GRANTPT.
35161         * doc/posix-functions/grantpt.texi: Mention the new module.
35162         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
35163         * config/srclist.txt: Add grantpt.c (commented).
35164
35165 2010-03-21  Bruno Haible  <bruno@clisp.org>
35166
35167         New module 'pt_chown'.
35168         * lib/pt_chown.c: New file, from glibc with modifications.
35169         * lib/pty-private.h: New file, from glibc with modifications.
35170         * modules/pt_chown: New file.
35171         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
35172
35173 2010-03-21  Bruno Haible  <bruno@clisp.org>
35174
35175         Tests for module 'ptsname'.
35176         * modules/ptsname-tests: New file.
35177         * tests/test-ptsname.c: New file.
35178
35179         New module 'ptsname'.
35180         * lib/ptsname.c: New file, from glibc with modifications.
35181         * m4/ptsname.m4: New file.
35182         * modules/ptsname: New file.
35183         * lib/stdlib.in.h (ptsname): New declaration.
35184         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
35185         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
35186         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
35187         HAVE_PTSNAME.
35188         * doc/posix-functions/ptsname.texi: Mention the new module.
35189         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
35190         * config/srclist.txt: Add ptsname.c (commented).
35191
35192 2010-03-21  Bruno Haible  <bruno@clisp.org>
35193
35194         Tests for module 'ttyname_r'.
35195         * modules/ttyname_r-tests: New file.
35196         * tests/test-ttyname_r.c: New file.
35197
35198         New module 'ttyname_r'.
35199         * lib/ttyname_r.c: New file.
35200         * m4/ttyname_r.m4: New file.
35201         * modules/ttyname_r: New file.
35202         * lib/unistd.in.h (ttyname_r): New declaration.
35203         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
35204         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
35205         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
35206         HAVE_TTYNAME_R.
35207         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
35208         * doc/posix-functions/ttyname_r.texi: Mention the new module.
35209
35210 2010-03-20  Bruno Haible  <bruno@clisp.org>
35211
35212         signal: Undefine macro definitions in C++ mode.
35213         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
35214         sigfillset): Undefine macro definitions from the system header in C++
35215         mode.
35216         Reported by John W. Eaton <jwe@gnu.org>.
35217
35218 2010-03-20  Bruno Haible  <bruno@clisp.org>
35219
35220         Ensure no #include statements inside extern "C" { ... }.
35221         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
35222         contain #include statements.
35223         * lib/time.in.h: Likewise.
35224
35225 2010-03-20  Bruno Haible  <bruno@clisp.org>
35226
35227         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
35228         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
35229         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
35230         Reported by John W. Eaton <jwe@gnu.org>.
35231
35232 2010-03-20  Bruno Haible  <bruno@clisp.org>
35233
35234         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
35235         Reported by Jim Meyering.
35236
35237 2010-03-20  Bruno Haible  <bruno@clisp.org>
35238
35239         pipe: Set errno upon failure.
35240         * lib/pipe.h: Specify that when -1 is returned, errno is set.
35241         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
35242         errno value in error message.
35243
35244 2010-03-20  Bruno Haible  <bruno@clisp.org>
35245             Jim Meyering  <meyering@redhat.com>
35246
35247         lchown: Avoid "unused variable" warning.
35248         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
35249
35250 2010-03-20  Bruno Haible  <bruno@clisp.org>
35251
35252         Work around unlink() bug on MacOS X 10.5.6.
35253         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
35254         attempting to unlink a parent directory.
35255         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
35256         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
35257         activate for the replacement function.
35258         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
35259
35260 2010-03-20  Bruno Haible  <bruno@clisp.org>
35261
35262         Fix link errors on Solaris 8.
35263         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
35264         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
35265
35266 2010-03-19  Jim Meyering  <meyering@redhat.com>
35267
35268         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
35269         The _LIBC implementation of build_range_exp correctly honors the
35270         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
35271         However, the non-_LIBC implementation would ignore that syntax-bit
35272         flag and return REG_ERANGE unconditionally.
35273         This change makes it honor that flag.
35274         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
35275         Make two pointer parameters "const".
35276         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
35277         (parse_bracket_exp): Update caller.
35278
35279         regex.m4: correct the reversed range endpoint ([b-a]) test
35280         * m4/regex.m4: When requiring that [b-a] evoke failure,
35281         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
35282         test pass once again for x86-based systems.
35283
35284 2010-03-19  Bruno Haible  <bruno@clisp.org>
35285
35286         scandir: Fix link error on Solaris 8.
35287         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
35288         macros.
35289
35290 2010-03-19  Bruno Haible  <bruno@clisp.org>
35291
35292         getusershell: Fix documentation.
35293         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
35294         module.
35295         * doc/glibc-functions/setusershell.texi: Likewise.
35296
35297         getusershell: Provide declaration, missing on Solaris 9.
35298         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
35299         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
35300         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
35301         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
35302         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35303         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
35304         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
35305         HAVE_GETUSERSHELL.
35306         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
35307
35308 2010-03-19  Bruno Haible  <bruno@clisp.org>
35309
35310         wctype: Provide iswblank function.
35311         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
35312         exists and is fine.
35313         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
35314         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
35315         * tests/test-wctype.c (main): Re-enable the iswblank tests.
35316         * doc/posix-functions/iswblank.texi: Update.
35317
35318 2010-03-19  Bruno Haible  <bruno@clisp.org>
35319
35320         Tests of module 'pty' in C++ mode.
35321         * modules/pty-tests: New file.
35322         * tests/test-pty-c++.cc: New file.
35323         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
35324
35325 2010-03-19  Eric Blake  <eblake@redhat.com>
35326
35327         logb: fix documentation
35328         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
35329         1.5 declaration bug.
35330
35331         forkpty, openpty: prefer glibc's const-safe prototype
35332         * lib/forkpty.c (rpl_forkpty): New file.
35333         * lib/openpty.c (rpl_openpty): Likewise.
35334         * modules/forkpty (Files): Distribute it.
35335         * modules/openpty (Files): Likewise.
35336         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
35337         check...
35338         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
35339         replacement for for non-const BSD signature.
35340         * modules/pty (Makefile.am): Substitute witnesses.
35341         * lib/pty.in.h (forkpty, openpty): Declare replacements.
35342         * tests/test-forkpty.c: Update signature check.
35343         * tests/test-openpty.c: Likewise.
35344         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
35345         * doc/glibc-functions/openpty.texi (openpty): Likewise.
35346
35347         forkpty, openpty: split functions into new modules
35348         * modules/pty (Makefile.am): Substitute new witnesses.
35349         (Libraries): Move library detection...
35350         * modules/forkpty: ...into new module.
35351         * modules/openpty: Another new module.
35352         * modules/pty-tests: Rename and split...
35353         * modules/forkpty-tests: ...to this...
35354         * modules/openpty-tests: ...and this.
35355         * tests/test-pty.c: Rename and split...
35356         * tests/test-forkpty.c: ...to this...
35357         * tests/test-openpty.c: ...and this.
35358         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
35359         (gl_PTY): Split library searching...
35360         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
35361         (gl_FORKPTY, gl_OPENPTY): New macros.
35362         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
35363         * NEWS: Mention the split.
35364         * MODULES.html.sh (Misc): Document the modules.
35365         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
35366         * doc/glibc-functions/openpty.texi (openpty): Likewise.
35367
35368         pty: improve replacement header
35369         * lib/pty.in.h: New file.
35370         * modules/pty (Files): Ship it.
35371         (Makefile.am): Always build replacement.
35372         * m4/pty.m4: Rename...
35373         * m4/pty_h.m4: ...to this.
35374         (gl_PTY): Modernize setting of witness macros; update check of
35375         forkpty to take proper advantage of cache.
35376         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
35377
35378         getopt: avoid compiler warning
35379         * lib/getopt.c (attribute_hidden): Remove unused macro.
35380
35381 2010-03-18  Bruno Haible  <bruno@clisp.org>
35382
35383         Fix link errors on Solaris 8.
35384         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
35385         * modules/search-tests (test_search_c___LDADD): Likewise.
35386         * modules/signal-tests (test_signal_c___LDADD): Likewise.
35387         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
35388         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
35389         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
35390         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
35391         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
35392         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
35393
35394 2010-03-18  Bruno Haible  <bruno@clisp.org>
35395
35396         Fix bug introduced on 2010-03-14.
35397         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
35398         (gl_SPAWN_H): Require it.
35399         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
35400         Reported by Simon Josefsson.
35401
35402 2010-03-18  Bruno Haible  <bruno@clisp.org>
35403
35404         Fix typo introduced on 2009-12-31.
35405         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
35406         posix_spawn_file_actions_adddup2.
35407
35408 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
35409         and Eric Blake  <eblake@redhat.com>
35410
35411         test-vc-list-files-git: make more robust
35412         * tests/test-vc-list-files-git.sh: Unset problematic environment
35413         variables.  Chain commands together.
35414
35415 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
35416
35417         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
35418         `AC_CHECK_DECL' invocation.
35419
35420 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
35421
35422         * lib/inttostr.c (inttostr): Make sure the invocation of verify
35423         appears before executable statements. Suggested by Petr Sumbera
35424         <Petr.Sumbera@Sun.COM>.
35425
35426 2010-03-14  Bruno Haible  <bruno@clisp.org>
35427
35428         * tests/test-flock.c (test_exclusive): Comment out a test that causes
35429         portability problems. Instead use a simpler test.
35430         (main): Check that invalid arguments are rejected only on Linux.
35431
35432 2010-03-14  Bruno Haible  <bruno@clisp.org>
35433
35434         Fix bug introduced on 2009-12-31.
35435         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
35436         gl_PREREQ_SYS_H_WINSOCK2 always.
35437         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
35438         SYS_SOCKET_H variable.
35439         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
35440         Update comments.
35441         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
35442         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
35443         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
35444         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
35445         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
35446
35447 2010-03-14  Bruno Haible  <bruno@clisp.org>
35448
35449         Fix values returned by sinl, cosl.
35450         * lib/trigl.h: Add specification comments.
35451         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
35452         that combines the values from the precomputed table with the values of
35453         the Chebyshev polynomials.
35454
35455 2010-03-14  Bruno Haible  <bruno@clisp.org>
35456
35457         Fix compilation error when modules 'posix_spawn[p]' are not used.
35458         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
35459         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
35460
35461 2010-03-14  Bruno Haible  <bruno@clisp.org>
35462
35463         Fix compilation error on mingw when module 'time_r' is not used.
35464         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
35465         is 1.
35466         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
35467         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
35468         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
35469         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
35470
35471 2010-03-14  Bruno Haible  <bruno@clisp.org>
35472
35473         Fix compilation error with Sun C.
35474         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
35475         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
35476         instead of GCC specific ULONG_LONG_MAX.
35477         * lib/xstrtoll.c: Likewise.
35478         * lib/xstrtoull.c: Likewise.
35479
35480 2010-03-13  Bruno Haible  <bruno@clisp.org>
35481
35482         Allow the user to disable C++ code and tests.
35483         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
35484         (gl_PROG_ANSI_CXX): Require it.
35485
35486 2010-03-13  Bruno Haible  <bruno@clisp.org>
35487
35488         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
35489         cases.
35490
35491 2010-03-13  Bruno Haible  <bruno@clisp.org>
35492
35493         Test that gnulib does not break the standard C++ headers.
35494         * tests/test-locale-c++2.cc: New file.
35495         * modules/locale-tests (Files): Add it.
35496         (Makefile.am): Compile it for test-locale-c++.
35497         * tests/test-math-c++2.cc: New file.
35498         * modules/math-tests (Files): Add it.
35499         (Makefile.am): Compile it for test-math-c++.
35500         * tests/test-signal-c++2.cc: New file.
35501         * modules/signal-tests (Files): Add it.
35502         (Makefile.am): Compile it for test-signal-c++.
35503         * tests/test-stdio-c++2.cc: New file.
35504         * modules/stdio-tests (Files): Add it.
35505         (Makefile.am): Compile it for test-stdio-c++.
35506         * tests/test-stdlib-c++2.cc: New file.
35507         * modules/stdlib-tests (Files): Add it.
35508         (Makefile.am): Compile it for test-stdlib-c++.
35509         * tests/test-string-c++2.cc: New file.
35510         * modules/string-tests (Files): Add it.
35511         (Makefile.am): Compile it for test-string-c++.
35512         * tests/test-time-c++2.cc: New file.
35513         * modules/time-tests (Files): Add it.
35514         (Makefile.am): Compile it for test-time-c++.
35515         Reported by John W. Eaton <jwe@gnu.org>.
35516
35517 2010-03-13  Bruno Haible  <bruno@clisp.org>
35518
35519         * gnulib-tool (func_usage): Clarify which options are available for
35520         --create-testdir and --create-megatestdir.
35521
35522 2010-03-13  Bruno Haible  <bruno@clisp.org>
35523
35524         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
35525         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
35526         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
35527         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
35528         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
35529         when appropriate.
35530         Reported by Jim Meyering.
35531
35532 2010-03-12  Simon Josefsson  <simon@josefsson.org>
35533
35534         * gnulib-tool (func_import): Explain origin of code.
35535
35536 2010-03-12  Bruno Haible  <bruno@clisp.org>
35537
35538         Fix problem with automake's definition of CXXLINK.
35539         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
35540         Reported by Simon Josefsson and Ludovic Courtès.
35541
35542 2010-03-12  Bruno Haible  <bruno@clisp.org>
35543
35544         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
35545         stable releases.
35546
35547 2010-03-11  Bruno Haible  <bruno@clisp.org>
35548
35549         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
35550         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
35551         whether the system provides one variant or multiple variants of the
35552         function.
35553         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
35554         C++ compilers.
35555         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
35556         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
35557         Reported by Jim Meyering.
35558
35559 2010-03-09  Simon Josefsson  <simon@josefsson.org>
35560
35561         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
35562
35563 2010-03-08  Bruno Haible  <bruno@clisp.org>
35564
35565         gnulib-tool: Add support for --libtool in --create-testdir.
35566         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
35567         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
35568
35569 2010-03-08  Eric Blake  <eblake@redhat.com>
35570
35571         gnulib-tool.texi: mention possibility of git submodule
35572         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
35573         submodules.
35574         * doc/.gitignore: Ignore another generated file.
35575
35576 2010-03-08  Karl Berry  <karl@gnu.org>
35577
35578         * doc/gnulib-tool.texi (VCS Issues): Mention third option
35579         of committing gnulib files while skipping others.
35580
35581 2010-03-07  Bruno Haible  <bruno@clisp.org>
35582
35583         Tests of module 'wctype' in C++ mode.
35584         * tests/test-wctype-c++.cc: New file.
35585         * modules/wctype-tests (Files): Add it and tests/signature.h.
35586         (Depends-on): Add ansi-c++-opt.
35587         (Makefile.am): Arrange to compile and run test-wctype-c++.
35588
35589         Tests of module 'wchar' in C++ mode.
35590         * tests/test-wchar-c++.cc: New file.
35591         * modules/wchar-tests (Files): Add it and tests/signature.h.
35592         (Depends-on): Add ansi-c++-opt.
35593         (Makefile.am): Arrange to compile and run test-wchar-c++.
35594         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
35595         gl_MODULE_INDICATOR.
35596
35597         Tests of module 'unistd' in C++ mode.
35598         * tests/test-unistd-c++.cc: New file.
35599         * modules/unistd-tests (Files): Add it and tests/signature.h.
35600         (Depends-on): Add ansi-c++-opt.
35601         (Makefile.am): Arrange to compile and run test-unistd-c++.
35602         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
35603         gl_MODULE_INDICATOR.
35604
35605         Tests of module 'time' in C++ mode.
35606         * tests/test-time-c++.cc: New file.
35607         * modules/time-tests (Files): Add it and tests/signature.h.
35608         (Depends-on): Add ansi-c++-opt.
35609         (Makefile.am): Arrange to compile and run test-time-c++.
35610         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
35611
35612         Tests of module 'sys_time' in C++ mode.
35613         * tests/test-sys_time-c++.cc: New file.
35614         * modules/sys_time-tests (Files): Add it and tests/signature.h.
35615         (Depends-on): Add ansi-c++-opt.
35616         (Makefile.am): Arrange to compile and run test-sys_time-c++.
35617         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
35618         gl_MODULE_INDICATOR.
35619
35620         Tests of module 'sys_stat' in C++ mode.
35621         * tests/test-sys_stat-c++.cc: New file.
35622         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
35623         (Depends-on): Add ansi-c++-opt.
35624         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
35625         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
35626         gl_MODULE_INDICATOR.
35627
35628         Tests of module 'sys_socket' in C++ mode.
35629         * tests/test-sys_socket-c++.cc: New file.
35630         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
35631         (Depends-on): Add ansi-c++-opt.
35632         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
35633         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
35634         gl_MODULE_INDICATOR.
35635
35636         Tests of module 'sys_select' in C++ mode.
35637         * tests/test-sys_select-c++.cc: New file.
35638         * modules/sys_select-tests (Files): Add it and tests/signature.h.
35639         (Depends-on): Add ansi-c++-opt.
35640         (Makefile.am): Arrange to compile and run test-sys_select-c++.
35641         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
35642         gl_MODULE_INDICATOR.
35643
35644         Tests of module 'sys_ioctl' in C++ mode.
35645         * tests/test-sys_ioctl-c++.cc: New file.
35646         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
35647         (Depends-on): Add ansi-c++-opt.
35648         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
35649         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
35650         gl_MODULE_INDICATOR.
35651
35652         Tests of module 'string' in C++ mode.
35653         * tests/test-string-c++.cc: New file.
35654         * modules/string-tests (Files): Add it and tests/signature.h.
35655         (Depends-on): Add ansi-c++-opt.
35656         (Makefile.am): Arrange to compile and run test-string-c++.
35657         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
35658         gl_MODULE_INDICATOR.
35659
35660         Tests of module 'stdlib' in C++ mode.
35661         * tests/test-stdlib-c++.cc: New file.
35662         * modules/stdlib-tests (Files): Add it and tests/signature.h.
35663         (Depends-on): Add ansi-c++-opt.
35664         (Makefile.am): Arrange to compile and run test-stdlib-c++.
35665         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
35666         gl_MODULE_INDICATOR.
35667
35668         Tests of module 'stdio' in C++ mode.
35669         * tests/test-stdio-c++.cc: New file.
35670         * modules/stdio-tests (Files): Add it and tests/signature.h.
35671         (Depends-on): Add ansi-c++-opt.
35672         (Makefile.am): Arrange to compile and run test-stdio-c++.
35673         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
35674         gl_MODULE_INDICATOR.
35675
35676         Tests of module 'spawn' in C++ mode.
35677         * tests/test-spawn-c++.cc: New file.
35678         * modules/spawn-tests (Files): Add it and tests/signature.h.
35679         (Depends-on): Add ansi-c++-opt.
35680         (Makefile.am): Arrange to compile and run test-spawn-c++.
35681         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
35682         gl_MODULE_INDICATOR.
35683
35684         Tests of module 'signal' in C++ mode.
35685         * tests/test-signal-c++.cc: New file.
35686         * modules/signal-tests (Files): Add it and tests/signature.h.
35687         (Depends-on): Add ansi-c++-opt.
35688         (Makefile.am): Arrange to compile and run test-signal-c++.
35689         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
35690         gl_MODULE_INDICATOR.
35691
35692         Tests of module 'search' in C++ mode.
35693         * tests/test-search-c++.cc: New file.
35694         * modules/search-tests (Files): Add it and tests/signature.h.
35695         (Depends-on): Add ansi-c++-opt.
35696         (Makefile.am): Arrange to compile and run test-search-c++.
35697         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
35698         gl_MODULE_INDICATOR.
35699
35700         Tests of module 'math' in C++ mode.
35701         * tests/test-math-c++.cc: New file.
35702         * modules/math-tests (Files): Add it and tests/signature.h.
35703         (Depends-on): Add ansi-c++-opt.
35704         (Makefile.am): Arrange to compile and run test-math-c++.
35705         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
35706
35707         Tests of module 'locale' in C++ mode.
35708         * tests/test-locale-c++.cc: New file.
35709         * modules/locale-tests (Files): Add it and tests/signature.h.
35710         (Depends-on): Add ansi-c++-opt.
35711         (Makefile.am): Arrange to compile and run test-locale-c++.
35712         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
35713         gl_MODULE_INDICATOR.
35714
35715         Tests of module 'langinfo' in C++ mode.
35716         * tests/test-langinfo-c++.cc: New file.
35717         * modules/langinfo-tests (Files): Add it and tests/signature.h.
35718         (Depends-on): Add ansi-c++-opt.
35719         (Makefile.am): Arrange to compile and run test-langinfo-c++.
35720         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
35721         gl_MODULE_INDICATOR.
35722
35723         Tests of module 'iconv-h' in C++ mode.
35724         * tests/test-iconv-h-c++.cc: New file.
35725         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
35726         (Depends-on): Add ansi-c++-opt.
35727         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
35728
35729         Tests of module 'glob' in C++ mode.
35730         * tests/test-glob-c++.cc: New file.
35731         * modules/glob-tests (Files): Add it.
35732         (Depends-on): Add ansi-c++-opt.
35733         (Makefile.am): Arrange to compile and run test-glob-c++.
35734
35735         Tests of module 'fcntl-h' in C++ mode.
35736         * tests/test-fcntl-h-c++.cc: New file.
35737         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
35738         (Depends-on): Add ansi-c++-opt.
35739         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
35740         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
35741         gl_MODULE_INDICATOR.
35742
35743         Tests of module 'dirent' in C++ mode.
35744         * tests/test-dirent-c++.cc: New file.
35745         * modules/dirent-tests (Files): Add it and tests/signature.h.
35746         (Depends-on): Add ansi-c++-opt.
35747         (Makefile.am): Arrange to compile and run test-dirent-c++.
35748         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
35749         gl_MODULE_INDICATOR.
35750
35751         New module 'ansi-c++-opt'.
35752         * modules/ansi-c++-opt: New file.
35753         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
35754
35755         Document C++ namespace mode.
35756         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
35757
35758         wctype: Avoid #define replacements in C++ mode.
35759         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
35760         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
35761         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
35762         In C++, define a namespaced alias symbol.
35763         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
35764         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
35765         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
35766         rule.
35767
35768         wchar: Avoid #define replacements in C++ mode.
35769         * lib/wchar.in.h: Include c++defs.h.
35770         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
35771         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
35772         symbol.
35773         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
35774         * modules/wchar (Depends-on): Add c++defs.
35775         (Makefile.am): Update wchar.h rule.
35776
35777         unistd: Avoid #define replacements in C++ mode.
35778         * lib/unistd.in.h: Include c++defs.h.
35779         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
35780         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
35781         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
35782         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
35783         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
35784         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
35785         symbol.
35786         (environ): Update.
35787         * modules/unistd (Depends-on): Add c++defs.
35788         (Makefile.am): Update unistd.h rule.
35789
35790         time: Avoid #define replacements in C++ mode.
35791         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
35792         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
35793         define a namespaced alias symbol.
35794         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
35795         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
35796         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
35797         * modules/time (Depends-on): Add c++defs, warn-on-use.
35798         (Makefile.am): Update time.h rule.
35799         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
35800         * modules/nanosleep (configure.ac): Likewise.
35801         * modules/strptime (configure.ac): Likewise.
35802         * modules/timegm (configure.ac): Likewise.
35803
35804         sys_time: Avoid #define replacements in C++ mode.
35805         * lib/sys_time.in.h: Include c++defs.h.
35806         (gettimeofday): In C++, define a namespaced alias symbol.
35807         * modules/sys_time (Depends-on): Add c++defs.
35808         (Makefile.am): Update sys/time.h rule.
35809
35810         sys_stat: Avoid #define replacements in C++ mode.
35811         * lib/sys_stat.in.h: Include c++defs.h.
35812         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
35813         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
35814         namespaced alias symbol.
35815         In C++, define a namespaced alias symbol.
35816         * modules/sys_stat (Depends-on): Add c++defs.
35817         (Makefile.am): Update sys/stat.h rule.
35818
35819         sys_socket: Avoid #define replacements in C++ mode.
35820         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
35821         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
35822         definitions also when the system has a <sys/socket.h>.
35823         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
35824         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
35825         In C++, define a namespaced alias symbol.
35826         * modules/sys_socket (Depends-on): Add c++defs.
35827         (Makefile.am): Update sys/socket.h rule.
35828
35829         sys_select: Avoid #define replacements in C++ mode.
35830         * lib/sys_select.in.h: Include c++defs.h. Enable the function
35831         definitions also when the system has a <sys/select.h>.
35832         (select): In C++, define a namespaced alias symbol.
35833         * modules/sys_select (Depends-on): Add c++defs.
35834         (Makefile.am): Update sys/select.h rule.
35835
35836         sys_ioctl: Avoid #define replacements in C++ mode.
35837         * lib/sys_ioctl.in.h: Include c++defs.h.
35838         (ioctl): In C++, define a namespaced alias symbol.
35839         * modules/sys_ioctl (Depends-on): Add c++defs.
35840         (Makefile.am): Update sys/ioctl.h rule.
35841
35842         string: Avoid #define replacements in C++ mode.
35843         * lib/string.in.h: Include c++defs.h.
35844         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
35845         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
35846         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
35847         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
35848         strsignal, strverscmp): In C++, define a namespaced alias symbol.
35849         * modules/string (Depends-on): Add c++defs.
35850         (Makefile.am): Update string.h rule.
35851
35852         stdlib: Avoid #define replacements in C++ mode.
35853         * lib/stdlib.in.h: Include c++defs.h.
35854         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
35855         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
35856         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
35857         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
35858         symbol.
35859         * modules/stdlib (Depends-on): Add c++defs.
35860         (Makefile.am): Update stdlib.h rule.
35861
35862         stdio: Avoid #define replacements in C++ mode.
35863         * lib/stdio.in.h: Include c++defs.h.
35864         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
35865         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
35866         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
35867         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
35868         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
35869         namespaced alias symbol.
35870         * modules/stdio (Depends-on): Add c++defs.
35871         (Makefile.am): Update stdio.h rule.
35872
35873         spawn: Avoid #define replacements in C++ mode.
35874         * lib/spawn.in.h: Include c++defs.h.
35875         (posix_spawn, posix_spawnp, posix_spawnattr_init,
35876         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
35877         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
35878         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
35879         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
35880         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
35881         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
35882         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
35883         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
35884         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
35885         In C++, define a namespaced alias symbol.
35886         * modules/spawn (Depends-on): Add c++defs.
35887         (Makefile.am): Update spawn.h rule.
35888
35889         signal: Avoid #define replacements in C++ mode.
35890         * lib/signal.in.h: Include c++defs.h.
35891         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
35892         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
35893         namespaced alias symbol.
35894         * modules/signal (Depends-on): Add c++defs.
35895         (Makefile.am): Update signal.h rule.
35896
35897         search: Avoid #define replacements in C++ mode.
35898         * lib/search.in.h: Include c++defs.h.
35899         (_gl_search_compar_fn, _gl_search_action_fn): New types.
35900         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
35901         symbol.
35902         * modules/search (Depends-on): Add c++defs.
35903         (Makefile.am): Update search.h rule.
35904
35905         math: Avoid #define replacements in C++ mode.
35906         * lib/math.in.h: Include c++defs.h.
35907         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
35908         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
35909         trunc, truncl): In C++, define a namespaced alias symbol.
35910         * modules/math (Depends-on): Add c++defs.
35911         (Makefile.am): Update math.h rule.
35912
35913         locale: Avoid #define replacements in C++ mode.
35914         * lib/locale.in.h: Include c++defs.h.
35915         (duplocale): In C++, define a namespaced alias symbol.
35916         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
35917         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
35918         * modules/locale (Depends-on): Add c++defs.
35919         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
35920
35921         langinfo: Avoid #define replacements in C++ mode.
35922         * lib/langinfo.in.h: Include c++defs.h.
35923         (nl_langinfo): In C++, define a namespaced alias symbol.
35924         * modules/langinfo (Depends-on): Add c++defs.
35925         (Makefile.am): Update langinfo.h rule.
35926
35927         iconv-h: Avoid #define replacements in C++ mode.
35928         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
35929         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
35930         symbol.
35931         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
35932         whenever iconv is present.
35933         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
35934         (Makefile.am): Update iconv.h rule.
35935
35936         glob: Avoid #define replacements in C++ mode.
35937         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
35938         (_gl_glob_errfunc_fn): New type.
35939         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
35940         symbol.
35941         * modules/glob (Depends-on): Add c++defs, warn-on-use.
35942         (Makefile.am): Update glob.h rule.
35943
35944         fcntl-h: Avoid #define replacements in C++ mode.
35945         * lib/fcntl.in.h: Include c++defs.h.
35946         (fcntl, open, openat): In C++, define a namespaced alias symbol.
35947         * modules/fcntl-h (Depends-on): Add c++defs.
35948         (Makefile.am): Update fcntl.h rule.
35949
35950         dirent: Avoid #define replacements in C++ mode.
35951         * lib/dirent.in.h: Include c++defs.h.
35952         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
35953         namespaced alias symbol.
35954         (dirfd): Update declaration.
35955         * modules/dirent (Depends-on): Add c++defs.
35956         (Makefile.am): Update dirent.h rule.
35957
35958         ctype: Make it usable in C++ code.
35959         * lib/ctype.in.h: Include c++defs.h.
35960         (isblank): Declare as extern "C".
35961         * modules/ctype (Depends-on): Add c++defs.
35962         (Makefile.am): Update ctype.h rule.
35963
35964         New module 'c++defs'.
35965         * modules/c++defs: New file.
35966         * build-aux/c++defs.h: New file.
35967         Reported by John W. Eaton <jwe@gnu.org>.
35968
35969 2010-03-07  Bruno Haible  <bruno@clisp.org>
35970
35971         logb: Provide missing declaration for Cygwin.
35972         * lib/math.in.h (logb): New declaration.
35973         * m4/logb.m4: New file.
35974         * modules/logb (Files): Add m4/logb.m4.
35975         (Depends-on): Add math.
35976         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
35977         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
35978         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
35979         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
35980         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
35981
35982 2010-03-07  Bruno Haible  <bruno@clisp.org>
35983
35984         Fix test-cond link error.
35985         * tests/test-cond.c: Include <stdio.h>.
35986
35987 2010-03-07  Bruno Haible  <bruno@clisp.org>
35988
35989         Fix test-dirent-safer link error.
35990         * modules/dirent-safer-tests (Makefile.am): Define
35991         test_dirent_safer_LDADD.
35992
35993 2010-03-07  Bruno Haible  <bruno@clisp.org>
35994
35995         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
35996         among default module list.
35997
35998 2010-03-07  Bruno Haible  <bruno@clisp.org>
35999
36000         Fix link error on platforms with GNU libiconv.
36001         * modules/unistr/u8-strcoll-tests (Makefile): Define
36002         test_u8_strcoll_LDADD.
36003         * modules/unistr/u16-strcoll-tests (Makefile): Define
36004         test_u16_strcoll_LDADD.
36005         * modules/unistr/u32-strcoll-tests (Makefile): Define
36006         test_u32_strcoll_LDADD.
36007
36008 2010-03-07  Bruno Haible  <bruno@clisp.org>
36009
36010         Use POSIX declarations for socket functions.
36011         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
36012         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
36013         rpl_sendto): Change declaration to match POSIX.
36014         * lib/connect.c (rpl_connect): Likewise.
36015         * lib/accept.c (rpl_accept): Likewise.
36016         * lib/bind.c (rpl_bind): Likewise.
36017         * lib/getpeername.c (rpl_getpeername): Likewise.
36018         * lib/getsockname.c (rpl_getsockname): Likewise.
36019         * lib/recv.c (rpl_recv): Likewise.
36020         * lib/send.c (rpl_send): Likewise.
36021         * lib/recvfrom.c (rpl_recvfrom): Likewise.
36022         * lib/sendto.c (rpl_sendto): Likewise.
36023
36024 2010-03-06  Bruno Haible  <bruno@clisp.org>
36025
36026         Clarify access, euidaccess, faccessat.
36027         * doc/posix-functions/faccessat.texi: Mention security problem under
36028         "Other problems", not "Portability problems".
36029         * doc/posix-functions/access.texi: Likewise. Mention a related security
36030         problem.
36031         * doc/glibc-functions/euidaccess.texi: Mention security problems.
36032         * lib/euidaccess.c: Add comments about platforms.
36033         * lib/unistd.in.h (access, euidaccess): Add warnings.
36034
36035 2010-03-07  Bruno Haible  <bruno@clisp.org>
36036
36037         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
36038         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
36039         (POSIX_SPAWN_SETSCHEDULER): Likewise.
36040         (POSIX_SPAWN_USEVFORK): Define in a way that works when
36041         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
36042         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
36043         declare when POSIX_SPAWN_SETSCHEDULER is zero.
36044         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
36045         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
36046         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
36047         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
36048         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
36049         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
36050         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
36051         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
36052         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
36053         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
36054         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
36055         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
36056         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
36057         Likewise.
36058         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
36059         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
36060         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
36061         Likewise.
36062         * tests/test-spawn.c (main): Make it work when
36063         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
36064
36065 2010-03-07  Bruno Haible  <bruno@clisp.org>
36066
36067         Fix incorrect Makefile.am generation in German locale.
36068         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
36069         Execute sed command with character range in C locale.
36070
36071 2010-03-06  Bruno Haible  <bruno@clisp.org>
36072
36073         Tests for module 'iconv-h'.
36074         * modules/iconv-h-tests: New file.
36075         * tests/test-iconv-h.c: New file.
36076
36077         New module 'iconv-h'.
36078         * modules/iconv-h: New file.
36079         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
36080         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
36081         (configure.ac): Remove gl_ICONV_H.
36082         (Makefile.am): Remove rule for iconv.h.
36083
36084 2010-03-06  Bruno Haible  <bruno@clisp.org>
36085
36086         More consistent naming of *.m4 files.
36087         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
36088         * modules/wctype (Files): Update.
36089
36090         More consistent naming of *.m4 files.
36091         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
36092         * modules/wchar (Files): Update.
36093
36094 2010-03-06  Jim Meyering  <meyering@redhat.com>
36095
36096         euidaccess: relax license to LGPLv2+
36097         * modules/euidaccess (License): Relax to LGPLv2+.
36098
36099 2010-03-06  Bruno Haible  <bruno@clisp.org>
36100
36101         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
36102         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
36103         (Makefile.am): Augment lib_SOURCES instead.
36104
36105 2010-03-04  Jim Meyering  <meyering@redhat.com>
36106
36107         utime: remove obsolete module
36108         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
36109         unnecessary for years, and has been marked as obsolete for 10 months.
36110         * modules/utime: Remove file.
36111         * lib/utime.c: Remove file.
36112         * m4/utime.m4: Remove file.
36113         * m4/utimes-null.m4: Remove file.
36114         * doc/posix-functions/utime.texi (utime): Remove reference to
36115         the module.  Move the sole "fixed by gnulib" item into the
36116         "problems not fixed by Gnulib" list.
36117         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
36118
36119 2010-03-05  Simon Josefsson  <simon@josefsson.org>
36120
36121         * modules/exit (License): Relax license to LGPLv2+.
36122         (Status): Mark as obsolete.
36123         * NEWS: Mention deprecated 'exit' module.
36124         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
36125         of now obsolete 'exit'.
36126
36127 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36128
36129         fts-lgpl: remove unused module
36130         * modules/fts-lgpl: Remove.
36131         * MODULES.html.sh (func_all_modules): Adjust.
36132         * check-module (find_included_lib_files): Adjust.
36133         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
36134
36135 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
36136
36137         copy-acl: enhance Solaris ACL error handling
36138         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
36139         * lib/set-mode-acl.c (qset_acl): Likewise.
36140
36141 2010-03-02  Bruno Haible  <bruno@clisp.org>
36142
36143         spawn: Don't override the system defined values on FreeBSD 8.
36144         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
36145         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
36146         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
36147         if HAVE_POSIX_SPAWN is 1.
36148         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
36149
36150 2010-03-01  Bruno Haible  <bruno@clisp.org>
36151
36152         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
36153         regarding Automake.
36154
36155 2010-02-25  Bruno Haible  <bruno@clisp.org>
36156
36157         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
36158         * gnulib-tool: Define 'echo' as a function only before the ksh alias
36159         setting, not afterwards.
36160         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
36161
36162 2010-02-24  Eric Blake  <eblake@redhat.com>
36163
36164         bootstrap, git-version-gen: use timestamp
36165         * build-aux/git-version-gen (scriptversion): Force UTC.
36166         * build-aux/bootstrap (scriptversion): New variable.
36167
36168         bootstrap: allow older git
36169         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
36170         older than 1.6.4.  Requested by the libvirt project.
36171
36172 2010-02-23  Eric Blake  <eblake@redhat.com>
36173
36174         warn-on-use: work with old autoconf
36175         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
36176         AS_VAR semantics of autoconf 2.60.
36177         Reported by Bruno Haible.
36178
36179         bootstrap: improve some comments
36180         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
36181         clarification comments.
36182
36183         gettimeofday: provide correct function
36184         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
36185         when replacement is declared, otherwise provide gettimeofday.
36186         Reported by Michael Goffioul.
36187
36188 2010-02-23  Jim Meyering  <meyering@redhat.com>
36189
36190         lib-ignore: relax license to "unlimited", not LGPLv2+
36191         * modules/lib-ignore (License): Relax to "unlimited".
36192
36193 2010-02-23  Jim Meyering  <meyering@redhat.com>
36194
36195         lib-ignore: relax license to LGPLv2+
36196         * modules/lib-ignore (License): Relax to LGPLv2+.
36197
36198 2010-02-22  Eric Blake  <eblake@redhat.com>
36199
36200         lseek: avoid bash 3.2 broken pipe bug
36201         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
36202         warning from bash 3.2.
36203         Reported by Ben Pfaff, with analysis from Bruno Haible.
36204
36205         bootstrap: support non-FSF copyright holder
36206         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
36207         bootstrap.conf override of COPYRIGHT_HOLDER.
36208         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
36209
36210         bootstrap: interoperate with gettext 0.14.1
36211         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
36212
36213         bootstrap: allow for alternate submodule location
36214         * build-aux/bootstrap (gnulib_path): New variable; use instead of
36215         hardcoding submodule location.
36216         (gnulib_mk): Allow direct use of Makefile.am.
36217
36218         bootstrap: use GNULIB_SRCDIR to reduce disk usage
36219         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
36220         rather than reconfiguring where the submodule points.
36221
36222         gettimeofday: restore support for platforms that lack function
36223         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
36224         replacement if function is missing.
36225         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
36226         * modules/sys_time (Makefile.am): Substitute it.
36227         * lib/sys_time.in.h (gettimeofday): Check it.
36228         Reported by Michael Goffioul.
36229
36230 2010-02-21  Bruno Haible  <bruno@clisp.org>
36231
36232         * lib/stdio.in.h (obstack_printf): Fix typo.
36233
36234 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
36235
36236         vc-list-files: use bzr ls's -R option
36237         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
36238         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
36239
36240 2010-02-21  Jim Meyering  <meyering@redhat.com>
36241
36242         init.sh: fix EXEEXT shims to work also for names like test-prog
36243         * tests/init.sh: Re-exec a better shell, when needed.
36244         If the current shell lacks support for posix $(...), an init.sh-using
36245         test will now try to find a shell that supports that.  If EXEEXT is
36246         nonempty, we also require support for hyphen-in-alias-name and shell
36247         substitutions like ${var#glob}.  Failure to find such a shell results
36248         in a skipped test.
36249
36250 2010-02-21  Bruno Haible  <bruno@clisp.org>
36251
36252         Really work around around "broken pipe" error message from bash 3.2.
36253         * gnulib-tool (func_reset_sigpipe): Remove function.
36254         (echo): In bash 3.2, define to a function that uses printf.
36255         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
36256
36257 2010-02-20  Bruno Haible  <bruno@clisp.org>
36258
36259         Restore support for automake 1.9.6 with autoconf 2.61.
36260         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
36261         Reported by James Youngman <jay@gnu.org>.
36262
36263 2010-02-20  Bruno Haible  <bruno@clisp.org>
36264
36265         Improve *printf warning condition.
36266         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
36267         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
36268         and the function is overridden due to SIGPIPE emulation.
36269
36270 2010-02-20  Bruno Haible  <bruno@clisp.org>
36271
36272         * lib/stdio.in.h: Tweak comments.
36273
36274 2010-02-19  Bruno Haible  <bruno@clisp.org>
36275
36276         Make it easier to find modules. New gnulib-tool option '--find'.
36277         * gnulib-tool: New option --find.
36278         (func_usage): Document it.
36279         (func_sanitize_modulelist): New function, extracted from
36280         func_all_modules.
36281         (func_all_modules): Invoke it.
36282         * doc/gnulib-tool.texi (Which modules?): New node.
36283
36284 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
36285
36286         * lib/sys_select.in.h: Provide select replacement even if
36287         sys/select.h exists on a system, for Interix.
36288
36289 2010-02-18  Jim Meyering  <meyering@redhat.com>
36290
36291         init.sh: don't use $(...) just yet
36292         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
36293         to accommodate e.g., Solaris' /bin/sh.
36294
36295 2010-02-17  Bruno Haible  <bruno@clisp.org>
36296
36297         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
36298         Reported by Ludovic Courtès <ludo@gnu.org>.
36299
36300 2010-02-16  Simon Josefsson  <simon@josefsson.org>
36301
36302         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
36303         linking with -lintl.
36304
36305 2010-02-17  Simon Josefsson  <simon@josefsson.org>
36306
36307         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
36308         if not provided by the system's netdb.h.  Reported by
36309         ludo@gnu.org (Ludovic Courtès).
36310
36311 2010-02-15  Jim Meyering  <meyering@redhat.com>
36312
36313         init.sh: improve portability and efficiency
36314         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
36315         "dummy" in a for loop.
36316         Use '!', not '^' to select the complement of a character set used
36317         in a "case" statement.
36318         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
36319         Suggestions from Eric Blake.
36320
36321         init.sh: automatically accommodate programs with the .exe suffix
36322         Automatically arrange for an invocation of "prog" to execute the
36323         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
36324         may use the simpler "prog", yet still work when built on a system
36325         that requires specifying the added suffix.
36326         Do this by constructing a function named "prog" that invokes
36327         "prog.exe" for each .exe file in selected directories.
36328         * tests/init.sh (find_exe_basenames_): New function.
36329         (create_exe_shim_functions_): New function.
36330         (path_prepend_): Use it.
36331
36332         maint.mk: mark syntax-check sc_*.m rules as .PHONY
36333         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
36334         "make -t syntax-check" doesn't create a ton of sc_*.m files.
36335
36336 2010-02-14  Jim Meyering  <meyering@redhat.com>
36337
36338         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
36339         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
36340         (sc_prohibit_hash_pjw_without_use): New rule.
36341
36342         maint.mk: allow the default upload destination dir to be overridden
36343         * top/maint.mk (upload_dest_dir_): Define with a default that
36344         preserves the status quo.
36345         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
36346         Reported by Peter Simons.
36347
36348         maint.mk: prohibit inclusion of "hash.h" without_use
36349         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
36350
36351 2010-02-10  Jim Meyering  <meyering@redhat.com>
36352
36353         maint.mk: prohibit inclusion of "ignore-value.h" without_use
36354         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
36355
36356 2010-02-09  Eric Blake  <ebb9@byu.net>
36357         and Bruno Haible  <bruno@clisp.org>
36358
36359         obstack-printf-posix: ensure declaration
36360         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
36361         extracted from gl_FUNC_OBSTACK_PRINTF.
36362         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
36363         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
36364         Likewise.
36365         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
36366         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
36367         0.
36368
36369 2010-02-08  Bruno Haible  <bruno@clisp.org>
36370
36371         gnulib-tool: Fix typo in 2010-02-07 commit.
36372         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
36373         Reported by Eric Blake.
36374
36375 2010-02-07  Bruno Haible  <bruno@clisp.org>
36376
36377         gnulib-tool: Fix up caching patches.
36378         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
36379         option --no-cache. Use associative arrays when supported by the shell.
36380         (sed_comments): New variable.
36381         (modcache): Renamed from do_cache.
36382         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
36383         abbreviate unnecessarily.
36384         (have_associative): New variable.
36385         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
36386         way also for ksh and zsh.
36387         (func_init_sed_convert_to_cache_statements): New function, extracted
36388         from func_cache_lookup_module. Add support for associative arrays.
36389         Don't set the c_MODULE_cached variable here. Ignore all lines before
36390         the first field header. Remove only the final newline, not all trailing
36391         newlines. Support empty fields correctly. Limit the use of 'eval' to
36392         assignments.
36393         (func_get_description, func_get_status, func_get_notice,
36394         func_get_applicability, func_get_filelist, func_get_dependencies,
36395         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
36396         func_get_automake_snippet, func_get_include_directive,
36397         func_get_link_directive, func_get_license, func_get_maintainer):
36398         Update documentation. List the unoptimized code first. Add support for
36399         associative arrays. Limit the use of 'eval' to assignments.
36400         (func_get_applicability): Undo stylistic pessimisations.
36401         (func_get_automake_snippet, func_get_include_directive): Reduce code
36402         duplication.
36403         (func_modules_transitive_closure, func_modules_add_dummy,
36404         func_modules_notice, func_modules_to_filelist, func_add_file,
36405         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
36406         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
36407         func_create_testdir, func_create_megatestdir): Update documentation.
36408
36409 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36410
36411         * gnulib-tool (func_cache_lookup_module): Store the module name
36412         belonging to the cache variable; error out if two different
36413         module names map to the same cache variable name.
36414
36415 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36416
36417         gnulib-tool: Make caching optional.
36418         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
36419         Update matching short versions of --no-changelog.
36420         (func_usage): Update.
36421         (sed_extract_cache_prog): Renamed from ...
36422         (sed_extract_prog): ... this; revert to old extraction script.
36423         (func_get_description, func_get_status)
36424         (func_get_notice, func_get_applicability, func_get_filelist)
36425         (func_get_dependencies, func_get_autoconf_early_snippet)
36426         (func_get_autoconf_snippet, func_get_automake_snippet)
36427         (func_get_include_directive, func_get_link_directive)
36428         (func_get_license, func_get_maintainer): If $do_cache is false,
36429         use old, non-caching extraction scripts.
36430         Suggestion by Bruno Haible.
36431
36432 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36433
36434         gnulib-tool: cache module metainformation.
36435         * gnulib-tool (sed_extract_prog): Match newline before each
36436         header, and rewrite header to a shell variable suffix.
36437         (func_cache_var, func_cache_lookup_module): New functions,
36438         to turn a module name into a cache variable prefix, and to
36439         look up and cache module metainformation.
36440         (func_get_description, func_get_status)
36441         (func_get_notice, func_get_applicability, func_get_filelist)
36442         (func_get_dependencies, func_get_autoconf_early_snippet)
36443         (func_get_autoconf_snippet, func_get_automake_snippet)
36444         (func_get_include_directive, func_get_link_directive)
36445         (func_get_license, func_get_maintainer): Use
36446         func_cache_lookup_module.
36447
36448 2010-02-07  Bruno Haible  <bruno@clisp.org>
36449
36450         fnctl: Fix missing dependency.
36451         * modules/fcntl (Depends-on): Add getdtablesize.
36452         Reported by John W. Eaton <jwe@gnu.org>.
36453
36454 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
36455
36456         Argp: fix recognition of short alias options.
36457
36458         * lib/argp-parse.c (convert_options): Fix improper use of
36459         `|' between character values.
36460         * tests/test-argp.c (group1_option): New alias option
36461         --read (-r).
36462         (group1_parser): Special handling for 'r'.
36463         (test15): New test case.
36464         (test_fun): Add test15.
36465         * tests/test-argp-2.sh: Update expected --help and --usage
36466         outputs.
36467
36468 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
36469
36470         * tests/test-argp.c: Fix indentation.
36471
36472 2010-02-04  Eric Blake  <ebb9@byu.net>
36473
36474         gettimeofday: expose type of second argument
36475         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
36476         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
36477         * tests/test-gettimeofday.c: Use it to silence warning.
36478         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
36479         the issue.
36480
36481 2010-02-03  Jim Meyering  <meyering@redhat.com>
36482
36483         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
36484         * lib/regcomp.c (TYPE_SIGNED): Define.
36485         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
36486
36487         regcomp.c: avoid a new -Wshadow warning
36488         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
36489
36490 2010-02-01  Jim Meyering  <meyering@redhat.com>
36491
36492         removing useless parentheses in cpp #define directives
36493         For motivation, see commit c0221df4, "define STREQ(a,b)
36494         consistently, removing useless parentheses"
36495         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
36496         * lib/mountlist.c (MNT_IGNORE): Likewise.
36497         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
36498
36499 2010-02-01  Eric Blake  <ebb9@byu.net>
36500
36501         sys_time: use link-warning
36502         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
36503         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
36504         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
36505         * modules/sys_time (Depends-on): Add warn-on-use.
36506         (Makefile.am): Always build replacement.
36507         (configure.ac): Update substitutions.
36508         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
36509         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
36510         bother with SYS_TIME_H.
36511         * modules/gettimeofday (configure.ac): Declare indicator.
36512         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
36513         in use.
36514
36515         closein-tests: silence compiler warning
36516         * tests/test-closein.c (main): Ignore fread result.
36517         * modules/closein-tests (Depends-on): Add ignore-value.
36518
36519         tests: silence warning about system return
36520         * tests/test-areadlink-with-size.c (main): Ignore system result.
36521         * tests/test-areadlink.c (main): Likewise.
36522         * tests/test-areadlinkat-with-size.c (main): Likewise.
36523         * tests/test-areadlinkat.c (main): Likewise.
36524         * tests/test-canonicalize-lgpl.c (main): Likewise.
36525         * tests/test-canonicalize.c (main): Likewise.
36526         * tests/test-chown.c (main): Likewise.
36527         * tests/test-fchownat.c (main): Likewise.
36528         * tests/test-fdutimensat.c (main): Likewise.
36529         * tests/test-fstatat.c (main): Likewise.
36530         * tests/test-futimens.c (main): Likewise.
36531         * tests/test-lchown.c (main): Likewise.
36532         * tests/test-link.c (main): Likewise.
36533         * tests/test-linkat.c (main): Likewise.
36534         * tests/test-lstat.c (main): Likewise.
36535         * tests/test-mkdir.c (main): Likewise.
36536         * tests/test-mkdirat.c (main): Likewise.
36537         * tests/test-mkfifo.c (main): Likewise.
36538         * tests/test-mkfifoat.c (main): Likewise.
36539         * tests/test-mknod.c (main): Likewise.
36540         * tests/test-readlink.c (main): Likewise.
36541         * tests/test-remove.c (main): Likewise.
36542         * tests/test-rename.c (main): Likewise.
36543         * tests/test-renameat.c (main): Likewise.
36544         * tests/test-rmdir.c (main): Likewise.
36545         * tests/test-symlink.c (main): Likewise.
36546         * tests/test-symlinkat.c (main): Likewise.
36547         * tests/test-unlink.c (main): Likewise.
36548         * tests/test-unlinkat.c (main): Likewise.
36549         * tests/test-utimens.c (main): Likewise.
36550         * tests/test-utimensat.c (main): Likewise.
36551         * modules/areadlink-tests (Depends-on): Add ignore-value.
36552         * modules/areadlink-with-size-tests (Depends-on): Likewise.
36553         * modules/areadlinkat-tests (Depends-on): Likewise.
36554         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
36555         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
36556         * modules/canonicalize-tests (Depends-on): Likewise.
36557         * modules/chown-tests (Depends-on): Likewise.
36558         * modules/fdutimensat-tests (Depends-on): Likewise.
36559         * modules/futimens-tests (Depends-on): Likewise.
36560         * modules/lchown-tests (Depends-on): Likewise.
36561         * modules/link-tests (Depends-on): Likewise.
36562         * modules/linkat-tests (Depends-on): Likewise.
36563         * modules/lstat-tests (Depends-on): Likewise.
36564         * modules/mkdir-tests (Depends-on): Likewise.
36565         * modules/mkfifo-tests (Depends-on): Likewise.
36566         * modules/mkfifoat-tests (Depends-on): Likewise.
36567         * modules/mknod-tests (Depends-on): Likewise.
36568         * modules/openat-tests (Depends-on): Likewise.
36569         * modules/readlink-tests (Depends-on): Likewise.
36570         * modules/remove-tests (Depends-on): Likewise.
36571         * modules/rename-tests (Depends-on): Likewise.
36572         * modules/renameat-tests (Depends-on): Likewise.
36573         * modules/rmdir-tests (Depends-on): Likewise.
36574         * modules/symlink-tests (Depends-on): Likewise.
36575         * modules/symlinkat-tests (Depends-on): Likewise.
36576         * modules/unlink-tests (Depends-on): Likewise.
36577         * modules/utimens-tests (Depends-on): Likewise.
36578         * modules/utimensat-tests (Depends-on): Likewise.
36579
36580 2010-01-31  Bruno Haible  <bruno@clisp.org>
36581
36582         Perform the same test for many <math.h> functions.
36583         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
36584         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
36585         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
36586         of gl_MATHFUNC.
36587         * modules/acos (configure.ac): Likewise.
36588         * modules/asin (configure.ac): Likewise.
36589         * modules/atan (configure.ac): Likewise.
36590         * modules/atan2 (configure.ac): Likewise.
36591         * modules/cbrt (configure.ac): Likewise.
36592         * modules/copysign (configure.ac): Likewise.
36593         * modules/cos (configure.ac): Likewise.
36594         * modules/cosh (configure.ac): Likewise.
36595         * modules/erf (configure.ac): Likewise.
36596         * modules/erfc (configure.ac): Likewise.
36597         * modules/exp (configure.ac): Likewise.
36598         * modules/fmod (configure.ac): Likewise.
36599         * modules/hypot (configure.ac): Likewise.
36600         * modules/j0 (configure.ac): Likewise.
36601         * modules/j1 (configure.ac): Likewise.
36602         * modules/jn (configure.ac): Likewise.
36603         * modules/lgamma (configure.ac): Likewise.
36604         * modules/log (configure.ac): Likewise.
36605         * modules/log10 (configure.ac): Likewise.
36606         * modules/log1p (configure.ac): Likewise.
36607         * modules/pow (configure.ac): Likewise.
36608         * modules/remainder (configure.ac): Likewise.
36609         * modules/sin (configure.ac): Likewise.
36610         * modules/sinh (configure.ac): Likewise.
36611         * modules/tan (configure.ac): Likewise.
36612         * modules/tanh (configure.ac): Likewise.
36613         * modules/y0 (configure.ac): Likewise.
36614         * modules/y1 (configure.ac): Likewise.
36615         * modules/yn (configure.ac): Likewise.
36616         Suggested by Paolo Bonzini.
36617
36618 2010-01-31  Bruno Haible  <bruno@clisp.org>
36619
36620         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
36621
36622 2010-01-31  Bruno Haible  <bruno@clisp.org>
36623
36624         Work around getdelim() bug on FreeBSD 8.0.
36625         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
36626         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
36627         not work.
36628         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
36629         is 1.
36630         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
36631         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
36632         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
36633         a non-zero size.
36634         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
36635
36636 2010-01-31  Bruno Haible  <bruno@clisp.org>
36637
36638         Work around getline() bug on FreeBSD 8.0.
36639         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
36640         and a non-zero size.
36641         * tests/test-getline.c (main): Likewise.
36642         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
36643         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
36644
36645 2010-01-28  Eric Blake  <ebb9@byu.net>
36646
36647         regex: fix build failure
36648         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
36649         platforms.
36650
36651 2010-01-28  Jim Meyering  <meyering@redhat.com>
36652
36653         regex: do not ignore memory allocation failure
36654         * lib/regex_internal.c (create_cd_newstate): Detect
36655         re_node_set_init_copy failure.   Extracted from glibc commit
36656         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
36657
36658         regex: sync more white-space changes from libc
36659         * lib/regex_internal.c: White-space only changes.
36660         * lib/regexec.c: Likewise.
36661
36662         regex: add many uses of __attribute_warn_unused_result__
36663         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
36664         * lib/regexec.c: Likewise.
36665         Extracted from a messy glibc commit.
36666
36667         regcomp.c: spelling and merge-artifact from glibc
36668         * lib/regcomp.c: Merge remainder of glibc's
36669         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
36670
36671         regcomp.c: sync white-space changes from glibc
36672         * lib/regcomp.c: Merge to accommodate white space
36673         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
36674
36675         regcomp.c: do not ignore internal return values
36676         * lib/regcomp.c: Do not ignore internal return values.
36677         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
36678         but without its white-space changes and spelling fixes.
36679
36680         regex_internal.h: define __attribute_warn_unused_result__
36681         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
36682
36683         maint: add a syntax-check rule to check for vulnerable Makefile.in
36684         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
36685
36686 2010-01-27  Jim Meyering  <meyering@redhat.com>
36687
36688         ncftpput-ftp: clean up spaces
36689         * build-aux/ncftpput-ftp: Make Copyright line consistent.
36690         Remove trailing blanks.
36691
36692 2010-01-27  Simon Josefsson  <simon@josefsson.org>
36693
36694         * build-aux/git-version-gen: Fix copyright statement.
36695         * build-aux/gnupload: Likewise.
36696         * tests/test-arcfour.c: Likewise.
36697         * tests/test-arctwo.c: Likewise.
36698         * tests/test-count-one-bits.c: Likewise.
36699         * tests/test-crc.c: Likewise.
36700         * tests/test-des.c: Likewise.
36701         * tests/test-gc-arcfour.c: Likewise.
36702         * tests/test-gc-arctwo.c: Likewise.
36703         * tests/test-gc-des.c: Likewise.
36704         * tests/test-gc-hmac-md5.c: Likewise.
36705         * tests/test-gc-hmac-sha1.c: Likewise.
36706         * tests/test-gc-md2.c: Likewise.
36707         * tests/test-gc-md4.c: Likewise.
36708         * tests/test-gc-md5.c: Likewise.
36709         * tests/test-gc-pbkdf2-sha1.c: Likewise.
36710         * tests/test-gc-rijndael.c: Likewise.
36711         * tests/test-gc-sha1.c: Likewise.
36712         * tests/test-gc.c: Likewise.
36713         * tests/test-gethostname.c: Likewise.
36714         * tests/test-gettimeofday.c: Likewise.
36715         * tests/test-hash.c: Likewise.
36716         * tests/test-hmac-md5.c: Likewise.
36717         * tests/test-hmac-sha1.c: Likewise.
36718         * tests/test-md2.c: Likewise.
36719         * tests/test-md4.c: Likewise.
36720         * tests/test-md5.c: Likewise.
36721         * tests/test-memchr.c: Likewise.
36722         * tests/test-memchr2.c: Likewise.
36723         * tests/test-memcmp.c: Likewise.
36724         * tests/test-memmem.c: Likewise.
36725         * tests/test-memrchr.c: Likewise.
36726         * tests/test-rawmemchr.c: Likewise.
36727         * tests/test-read-file.c: Likewise.
36728         * tests/test-rijndael.c: Likewise.
36729         * tests/test-sockets.c: Likewise.
36730         * tests/test-strchrnul.c: Likewise.
36731         * tests/test-strstr.c: Likewise.
36732         * tests/test-strtod.c: Likewise.
36733         * build-aux/ncftpput-ftp: Likewise.
36734
36735 2010-01-26  Eric Blake  <ebb9@byu.net>
36736
36737         ignore-value: update recommended header name
36738         * modules/ignore-value (Include): Only use <> for headers that
36739         exist in glibc.
36740
36741 2010-01-26  Jim Meyering  <meyering@redhat.com>
36742
36743         test-userspec.c: avoid compiler warnings
36744         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
36745         and "initialization discards qualifiers..." warnings.
36746         Put the first "uid" in its own scope, and make char* members "const".
36747
36748 2010-01-25  Bruno Haible  <bruno@clisp.org>
36749
36750         gnulib-tool: Make warning diagnostics consistent.
36751         * gnulib-tool (func_warning): New function.
36752         Use it everywhere where gnulib-tool produces output to stderr and it is
36753         not a fatal error.
36754
36755 2010-01-25  Bruno Haible  <bruno@clisp.org>
36756
36757         Fix test dependencies.
36758         * modules/xstrtol-tests (Depends-on): Add inttypes.
36759         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
36760
36761 2010-01-25 Pádraig Brady <P@draigBrady.com>
36762
36763         syntax-check: detect incorrect boolean macro values in config.h
36764         * modules/maintainer-makefile (configure.ac): Parameterize the location
36765         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
36766         The logic is from Eric Blake and the location indicated by Jim Meyering.
36767         Note the more natural CONFIG_HEADER name is prohibited by automake
36768         for backwards compatibility reasons.
36769         * top/maint.mk (sc_Wundef_boolean): New rule.
36770
36771 2010-01-25  Jim Meyering  <meyering@redhat.com>
36772
36773         bootstrap: detect MacOS 10.6's shasum, too
36774         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
36775         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
36776
36777 2010-01-23  Jim Meyering  <meyering@redhat.com>
36778
36779         xstrtoll: new module
36780         * modules/xstrtoll: New file.
36781         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
36782         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
36783         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
36784         ./configure fails if you use this module and lack "long long".
36785         * modules/xstrtoll-tests: New module.
36786         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
36787         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
36788         new init.sh-based test framework.
36789
36790 2010-01-24  Bruno Haible  <bruno@clisp.org>
36791
36792         Tests for module 'yn'.
36793         * modules/yn-tests: New file.
36794         * tests/test-yn.c: New file.
36795
36796         Tests for module 'y1'.
36797         * modules/y1-tests: New file.
36798         * tests/test-y1.c: New file.
36799
36800         Tests for module 'y0'.
36801         * modules/y0-tests: New file.
36802         * tests/test-y0.c: New file.
36803
36804         Tests for module 'tanh'.
36805         * modules/tanh-tests: New file.
36806         * tests/test-tanh.c: New file.
36807
36808         Tests for module 'tan'.
36809         * modules/tan-tests: New file.
36810         * tests/test-tan.c: New file.
36811
36812         Tests for module 'sqrt'.
36813         * modules/sqrt-tests: New file.
36814         * tests/test-sqrt.c: New file.
36815
36816         Tests for module 'sinh'.
36817         * modules/sinh-tests: New file.
36818         * tests/test-sinh.c: New file.
36819
36820         Tests for module 'sin'.
36821         * modules/sin-tests: New file.
36822         * tests/test-sin.c: New file.
36823
36824         Tests for module 'rint'.
36825         * modules/rint-tests: New file.
36826         * tests/test-rint.c: New file.
36827
36828         Tests for module 'remainder'.
36829         * modules/remainder-tests: New file.
36830         * tests/test-remainder.c: New file.
36831
36832         Tests for module 'pow'.
36833         * modules/pow-tests: New file.
36834         * tests/test-pow.c: New file.
36835
36836         Tests for module 'nextafter'.
36837         * modules/nextafter-tests: New file.
36838         * tests/test-nextafter.c: New file.
36839
36840         Tests for module 'modf'.
36841         * modules/modf-tests: New file.
36842         * tests/test-modf.c: New file.
36843
36844         Tests for module 'logb'.
36845         * modules/logb-tests: New file.
36846         * tests/test-logb.c: New file.
36847
36848         Tests for module 'log1p'.
36849         * modules/log1p-tests: New file.
36850         * tests/test-log1p.c: New file.
36851
36852         Tests for module 'log10'.
36853         * modules/log10-tests: New file.
36854         * tests/test-log10.c: New file.
36855
36856         Tests for module 'log'.
36857         * modules/log-tests: New file.
36858         * tests/test-log.c: New file.
36859
36860         Tests for module 'lgamma'.
36861         * modules/lgamma-tests: New file.
36862         * tests/test-lgamma.c: New file.
36863
36864         Tests for module 'ldexp'.
36865         * modules/ldexp-tests: New file.
36866         * tests/test-ldexp.c: New file.
36867
36868         Tests for module 'jn'.
36869         * modules/jn-tests: New file.
36870         * tests/test-jn.c: New file.
36871
36872         Tests for module 'j1'.
36873         * modules/j1-tests: New file.
36874         * tests/test-j1.c: New file.
36875
36876         Tests for module 'j0'.
36877         * modules/j0-tests: New file.
36878         * tests/test-j0.c: New file.
36879
36880         Tests for module 'hypot'.
36881         * modules/hypot-tests: New file.
36882         * tests/test-hypot.c: New file.
36883
36884         Tests for module 'fmod'.
36885         * modules/fmod-tests: New file.
36886         * tests/test-fmod.c: New file.
36887
36888         Tests for module 'fabs'.
36889         * modules/fabs-tests: New file.
36890         * tests/test-fabs.c: New file.
36891
36892         Tests for module 'exp'.
36893         * modules/exp-tests: New file.
36894         * tests/test-exp.c: New file.
36895
36896         Tests for module 'erfc'.
36897         * modules/erfc-tests: New file.
36898         * tests/test-erfc.c: New file.
36899
36900         Tests for module 'erf'.
36901         * modules/erf-tests: New file.
36902         * tests/test-erf.c: New file.
36903
36904         Tests for module 'cosh'.
36905         * modules/cosh-tests: New file.
36906         * tests/test-cosh.c: New file.
36907
36908         Tests for module 'cos'.
36909         * modules/cos-tests: New file.
36910         * tests/test-cos.c: New file.
36911
36912         Tests for module 'copysign'.
36913         * modules/copysign-tests: New file.
36914         * tests/test-copysign.c: New file.
36915
36916         Tests for module 'cbrt'.
36917         * modules/cbrt-tests: New file.
36918         * tests/test-cbrt.c: New file.
36919
36920         Tests for module 'atan2'.
36921         * modules/atan2-tests: New file.
36922         * tests/test-atan2.c: New file.
36923
36924         Tests for module 'atan'.
36925         * modules/atan-tests: New file.
36926         * tests/test-atan.c: New file.
36927
36928         Tests for module 'asin'.
36929         * modules/asin-tests: New file.
36930         * tests/test-asin.c: New file.
36931
36932         Tests for module 'acos'.
36933         * modules/acos-tests: New file.
36934         * tests/test-acos.c: New file.
36935
36936 2010-01-24  Bruno Haible  <bruno@clisp.org>
36937
36938         Fix tests for common <math.h> functions.
36939         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
36940         code snippet that references the function pointer, rather than merely
36941         calling the function. Substitute the FUNC_LIBM variable.
36942         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
36943         * modules/acos (configure.ac): Likewise.
36944         * modules/asin (configure.ac): Likewise.
36945         * modules/atan (configure.ac): Likewise.
36946         * modules/atan2 (configure.ac): Likewise.
36947         * modules/cbrt (configure.ac): Likewise.
36948         * modules/copysign (configure.ac): Likewise.
36949         * modules/cos (configure.ac): Likewise.
36950         * modules/cosh (configure.ac): Likewise.
36951         * modules/erf (configure.ac): Likewise.
36952         * modules/erfc (configure.ac): Likewise.
36953         * modules/exp (configure.ac): Likewise.
36954         * modules/fabs (configure.ac): Likewise.
36955         * modules/fmod (configure.ac): Likewise.
36956         * modules/hypot (configure.ac): Likewise.
36957         * modules/j0 (configure.ac): Likewise.
36958         * modules/j1 (configure.ac): Likewise.
36959         * modules/jn (configure.ac): Likewise.
36960         * modules/ldexp (configure.ac): Likewise.
36961         * modules/lgamma (configure.ac): Likewise.
36962         * modules/log (configure.ac): Likewise.
36963         * modules/log10 (configure.ac): Likewise.
36964         * modules/log1p (configure.ac): Likewise.
36965         * modules/logb (configure.ac): Likewise.
36966         * modules/modf (configure.ac): Likewise.
36967         * modules/nextafter (configure.ac): Likewise.
36968         * modules/pow (configure.ac): Likewise.
36969         * modules/remainder (configure.ac): Likewise.
36970         * modules/rint (configure.ac): Likewise.
36971         * modules/sin (configure.ac): Likewise.
36972         * modules/sinh (configure.ac): Likewise.
36973         * modules/tan (configure.ac): Likewise.
36974         * modules/tanh (configure.ac): Likewise.
36975         * modules/y0 (configure.ac): Likewise.
36976         * modules/y1 (configure.ac): Likewise.
36977         * modules/yn (configure.ac): Likewise.
36978
36979 2010-01-24  Bruno Haible  <bruno@clisp.org>
36980
36981         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
36982         * tests/test-acosl.c (x): New variable.
36983         (main): Store argument in x and fetch it from x.
36984         * tests/test-asinl.c (x): New variable.
36985         (main): Store argument in x and fetch it from x.
36986         * tests/test-atanl.c (x): New variable.
36987         (main): Store argument in x and fetch it from x.
36988         * tests/test-cosl.c (x): New variable.
36989         (main): Store argument in x and fetch it from x.
36990         * tests/test-expl.c (x): New variable.
36991         (main): Store argument in x and fetch it from x.
36992         * tests/test-logl.c (x): New variable.
36993         (main): Store argument in x and fetch it from x.
36994         * tests/test-sinl.c (x): New variable.
36995         (main): Store argument in x and fetch it from x.
36996         * tests/test-sqrtl.c (x): New variable.
36997         (main): Store argument in x and fetch it from x.
36998         * tests/test-tanl.c (x): New variable.
36999         (main): Store argument in x and fetch it from x.
37000
37001 2010-01-24  Bruno Haible  <bruno@clisp.org>
37002
37003         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
37004         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
37005         assignments to the initial TESTS_ENVIRONMENT.
37006         * doc/gnulib.texi (Unit test modules): Document it.
37007         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
37008         TESTS_ENVIRONMENT.
37009         * modules/btowc-tests (Makefile.am): Likewise.
37010         * modules/c-stack-tests (Makefile.am): Likewise.
37011         * modules/c-strcase-tests (Makefile.am): Likewise.
37012         * modules/copy-file-tests (Makefile.am): Likewise.
37013         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
37014         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
37015         * modules/mbrtowc-tests (Makefile.am): Likewise.
37016         * modules/mbscasecmp-tests (Makefile.am): Likewise.
37017         * modules/mbscasestr-tests (Makefile.am): Likewise.
37018         * modules/mbschr-tests (Makefile.am): Likewise.
37019         * modules/mbscspn-tests (Makefile.am): Likewise.
37020         * modules/mbsinit-tests (Makefile.am): Likewise.
37021         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
37022         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
37023         * modules/mbspbrk-tests (Makefile.am): Likewise.
37024         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
37025         * modules/mbsrchr-tests (Makefile.am): Likewise.
37026         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
37027         * modules/mbsspn-tests (Makefile.am): Likewise.
37028         * modules/mbsstr-tests (Makefile.am): Likewise.
37029         * modules/nl_langinfo-tests (Makefile.am): Likewise.
37030         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
37031         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
37032         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
37033         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
37034         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
37035         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
37036         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
37037         * modules/wcrtomb-tests (Makefile.am): Likewise.
37038         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
37039         * modules/wcsrtombs-tests (Makefile.am): Likewise.
37040         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
37041         assignments from TESTS_ENVIRONMENT.
37042         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
37043         augmentation.
37044         * modules/argp-version-etc-tests (Makefile.am): Likewise.
37045         * modules/atexit-tests (Makefile.am): Likewise.
37046         * modules/binary-io-tests (Makefile.am): Likewise.
37047         * modules/closein-tests (Makefile.am): Likewise.
37048         * modules/dprintf-posix-tests (Makefile.am): Likewise.
37049         * modules/exclude-tests (Makefile.am): Likewise.
37050         * modules/fflush-tests (Makefile.am): Likewise.
37051         * modules/fpending-tests (Makefile.am): Likewise.
37052         * modules/fprintf-posix-tests (Makefile.am): Likewise.
37053         * modules/freadahead-tests (Makefile.am): Likewise.
37054         * modules/freadptr-tests (Makefile.am): Likewise.
37055         * modules/freadseek-tests (Makefile.am): Likewise.
37056         * modules/fseek-tests (Makefile.am): Likewise.
37057         * modules/fseeko-tests (Makefile.am): Likewise.
37058         * modules/ftell-tests (Makefile.am): Likewise.
37059         * modules/ftello-tests (Makefile.am): Likewise.
37060         * modules/idpriv-drop-tests (Makefile.am): Likewise.
37061         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
37062         * modules/lseek-tests (Makefile.am): Likewise.
37063         * modules/parse-duration-tests (Makefile.am): Likewise.
37064         * modules/perror-tests (Makefile.am): Likewise.
37065         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
37066         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
37067         * modules/pipe-tests (Makefile.am): Likewise.
37068         * modules/pread-tests (Makefile.am): Likewise.
37069         * modules/printf-posix-tests (Makefile.am): Likewise.
37070         * modules/select-tests (Makefile.am): Likewise.
37071         * modules/sigpipe-tests (Makefile.am): Likewise.
37072         * modules/tsearch-tests (Makefile.am): Likewise.
37073         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
37074         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
37075         * modules/uniname/uniname-tests (Makefile.am): Likewise.
37076         * modules/uniwidth/width-tests (Makefile.am): Likewise.
37077         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
37078         * modules/version-etc-tests (Makefile.am): Likewise.
37079         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
37080         * modules/vprintf-posix-tests (Makefile.am): Likewise.
37081         * modules/xalloc-die-tests (Makefile.am): Likewise.
37082         * modules/xprintf-posix-tests (Makefile.am): Likewise.
37083         * modules/xstrtoimax-tests (Makefile.am): Likewise.
37084         * modules/xstrtol-tests (Makefile.am): Likewise.
37085         * modules/xstrtoumax-tests (Makefile.am): Likewise.
37086         * modules/yesno-tests (Makefile.am): Likewise.
37087         Suggested by Jim Meyering.
37088
37089 2010-01-24  Bruno Haible  <bruno@clisp.org>
37090
37091         More documentation.
37092         * doc/gnulib.texi (Writing modules): New chapter.
37093         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
37094         the new chapter.
37095
37096 2010-01-24  Jim Meyering  <meyering@redhat.com>
37097
37098         maint.mk: do not prepend "./" after filtering
37099         * top/maint.mk (_prepend_srcdir_prefix): New variable
37100         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
37101         "./" when $(srcdir) is ".".
37102
37103         define STREQ(a,b) consistently, removing useless parentheses
37104         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
37105         since the only risk is that "a" or "b" contains an unparenthesized
37106         comma, but if either did that, STREQ would have 3 or more arguments.
37107         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
37108         * lib/fts.c (STREQ): Remove unnecessary parentheses.
37109         * lib/hash-triple.c (STREQ): Likewise.
37110         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
37111         * lib/getugroups.c (STREQ): Likewise.
37112
37113 2010-01-23  Jim Meyering  <meyering@redhat.com>
37114
37115         maint.mk: fix syntax-check in a non-srcdir build directory
37116         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
37117         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
37118
37119 2010-01-22  Jim Meyering  <meyering@redhat.com>
37120
37121         userspec: add unit tests
37122         * tests/test-userspec.c: New file.
37123         * modules/userspec-tests: Likewise.
37124
37125 2010-01-21  Jim Meyering  <meyering@redhat.com>
37126
37127         maint.mk: handle source file names containing "." robustly
37128         * top/maint.mk (_dot_escaped_srcdir): Define.
37129         (VC_LIST): Use it in LHS of sed substitution.
37130
37131 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
37132
37133         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
37134         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
37135         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
37136         from a non-srcdir build.
37137
37138 2010-01-20  Eric Blake  <ebb9@byu.net>
37139
37140         warn-on-use: use instead of link-warning
37141         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
37142         * modules/unistd (Depends-on, Makefile.am): Likewise.
37143         * modules/arpa_inet (Depends-on): Replace link-warning with
37144         warn-on-use.
37145         (Makefile.am): Update rules accordingly.
37146         * modules/ctype (Depends-on, Makefile.am): Likewise.
37147         * modules/dirent (Depends-on, Makefile.am): Likewise.
37148         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
37149         * modules/inttypes (Depends-on, Makefile.am): Likewise.
37150         * modules/langinfo (Depends-on, Makefile.am): Likewise.
37151         * modules/locale (Depends-on, Makefile.am): Likewise.
37152         * modules/math (Depends-on, Makefile.am): Likewise.
37153         * modules/search (Depends-on, Makefile.am): Likewise.
37154         * modules/signal (Depends-on, Makefile.am): Likewise.
37155         * modules/spawn (Depends-on, Makefile.am): Likewise.
37156         * modules/stdlib (Depends-on, Makefile.am): Likewise.
37157         * modules/string (Depends-on, Makefile.am): Likewise.
37158         * modules/strings (Depends-on, Makefile.am): Likewise.
37159         * modules/sys_file (Depends-on, Makefile.am): Likewise.
37160         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
37161         * modules/sys_select (Depends-on, Makefile.am): Likewise.
37162         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
37163         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
37164         * modules/sys_times (Depends-on, Makefile.am): Likewise.
37165         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
37166         * modules/wchar (Depends-on, Makefile.am): Likewise.
37167         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
37168         should be poisoned.
37169         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
37170         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
37171         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
37172         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
37173         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
37174         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
37175         * m4/math_h.m4 (gl_MATH_H): Likewise.
37176         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
37177         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
37178         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
37179         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
37180         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
37181         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
37182         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
37183         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
37184         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
37185         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37186         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
37187         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
37188         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
37189         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
37190         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
37191         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
37192         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
37193         GL_LINK_WARNING.
37194         * lib/ctype.in.h: Likewise.
37195         * lib/dirent.in.h: Likewise.
37196         * lib/fcntl.in.h: Likewise.
37197         * lib/inttypes.in.h: Likewise.
37198         * lib/langinfo.in.h: Likewise.
37199         * lib/locale.in.h: Likewise.
37200         * lib/math.in.h: Likewise.
37201         * lib/search.in.h: Likewise.
37202         * lib/signal.in.h: Likewise.
37203         * lib/spawn.in.h: Likewise.
37204         * lib/stdio.in.h: Likewise.
37205         * lib/stdlib.in.h: Likewise.
37206         * lib/string.in.h: Likewise.
37207         * lib/strings.in.h: Likewise.
37208         * lib/sys_file.in.h: Likewise.
37209         * lib/sys_ioctl.in.h: Likewise.
37210         * lib/sys_select.in.h: Likewise.
37211         * lib/sys_socket.in.h: Likewise.
37212         * lib/sys_stat.in.h: Likewise.
37213         * lib/sys_times.in.h: Likewise.
37214         * lib/sys_utsname.in.h: Likewise.
37215         * lib/unistd.in.h: Likewise.
37216         * lib/wchar.in.h: Likewise.
37217
37218 2010-01-20  Bruno Haible  <bruno@clisp.org>
37219
37220         Avoid duplicate -lm.
37221         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
37222         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
37223         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
37224         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
37225         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
37226         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
37227         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
37228         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
37229         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
37230         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
37231         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
37232         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
37233         Reported by Paolo Bonzini.
37234
37235 2010-01-19  Bruno Haible  <bruno@clisp.org>
37236
37237         langinfo, nl_langinfo: Relicense under LGPLv2+.
37238         * modules/langinfo (License): Change to LGPLv2+.
37239         * modules/nl_langinfo (License): Likewise.
37240         Patch by David Lutterkort <lutter@redhat.com>.
37241
37242 2010-01-19  Bruno Haible  <bruno@clisp.org>
37243
37244         Avoid compilation error with cc on OSF/1 5.1.
37245         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
37246         statement, not before.
37247         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37248
37249 2010-01-18  Bruno Haible  <bruno@clisp.org>
37250
37251         Avoid a link error due to the __printf__ symbol.
37252         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
37253         and 2.6.x.
37254         (__format__, __printf__): Remove definitions.
37255         * lib/argp-fmtstream.h: Likewise.
37256         * lib/argp.h: Likewise.
37257         * lib/error.h: Likewise.
37258         * lib/vasnprintf.h: Likewise.
37259         * lib/xprintf.h: Likewise.
37260         * lib/xvasprintf.h: Likewise.
37261         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37262
37263 2010-01-18  Bruno Haible  <bruno@clisp.org>
37264
37265         Tests for module 'tanl'.
37266         * modules/tanl-tests: New file.
37267         * tests/test-tanl.c: New file.
37268
37269         Tests for module 'sqrtl'.
37270         * modules/sqrtl-tests: New file.
37271         * tests/test-sqrtl.c: New file.
37272
37273         Tests for module 'sinl'.
37274         * modules/sinl-tests: New file.
37275         * tests/test-sinl.c: New file.
37276
37277         Tests for module 'logl'.
37278         * modules/logl-tests: New file.
37279         * tests/test-logl.c: New file.
37280
37281         Tests for module 'expl'.
37282         * modules/expl-tests: New file.
37283         * tests/test-expl.c: New file.
37284
37285         Tests for module 'cosl'.
37286         * modules/cosl-tests: New file.
37287         * tests/test-cosl.c: New file.
37288
37289         Tests for module 'atanl'.
37290         * modules/atanl-tests: New file.
37291         * tests/test-atanl.c: New file.
37292
37293         Tests for module 'asinl'.
37294         * modules/asinl-tests: New file.
37295         * tests/test-asinl.c: New file.
37296
37297         Tests for module 'acosl'.
37298         * modules/acosl-tests: New file.
37299         * tests/test-acosl.c: New file.
37300
37301         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
37302         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
37303         tanl): Use the standard gnulib idiom.
37304         * lib/cosl.c: Don't include trigl.c and sincosl.c.
37305         * lib/sinl.c: Likewise.
37306         * lib/tanl.c: Don't include trigl.c.
37307         (kernel_tanl): Make static.
37308         * lib/sincosl.c: Include trigl.h first.
37309         * lib/trigl.c: Likewise.
37310         * m4/acosl.m4: New file.
37311         * m4/asinl.m4: New file.
37312         * m4/atanl.m4: New file.
37313         * m4/cosl.m4: New file.
37314         * m4/expl.m4: New file.
37315         * m4/logl.m4: New file.
37316         * m4/sinl.m4: New file.
37317         * m4/sqrtl.m4: New file.
37318         * m4/tanl.m4: New file.
37319         * m4/mathl.m4: Remove file.
37320         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
37321         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
37322         Don't initialize GNULIB_MATHL.
37323         * modules/acosl: New file.
37324         * modules/asinl: New file.
37325         * modules/atanl: New file.
37326         * modules/cosl: New file.
37327         * modules/expl: New file.
37328         * modules/logl: New file.
37329         * modules/sinl: New file.
37330         * modules/sqrtl: New file.
37331         * modules/tanl: New file.
37332         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
37333         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
37334         substitute GNULIB_MATHL.
37335         * modules/mathl: Rewritten.
37336         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
37337         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
37338         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
37339         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
37340         * doc/posix-functions/expl.texi: Mention the 'expl' module.
37341         * doc/posix-functions/logl.texi: Mention the 'logl' module.
37342         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
37343         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
37344         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
37345
37346 2010-01-18  Bruno Haible  <bruno@clisp.org>
37347
37348         sqrt: Make gl_FUNC_SQRT requirable.
37349         * m4/sqrt.m4: New file.
37350         * modules/sqrt (Files): Add it.
37351         (configure.ac): Invoke gl_FUNC_SQRT.
37352
37353 2010-01-18  Bruno Haible  <bruno@clisp.org>
37354
37355         New modules for common <math.h> functions.
37356         * m4/mathfunc.m4: New file.
37357         * modules/acos: New file.
37358         * modules/asin: New file.
37359         * modules/atan: New file.
37360         * modules/atan2: New file.
37361         * modules/cbrt: New file.
37362         * modules/copysign: New file.
37363         * modules/cos: New file.
37364         * modules/cosh: New file.
37365         * modules/erf: New file.
37366         * modules/erfc: New file.
37367         * modules/exp: New file.
37368         * modules/fabs: New file.
37369         * modules/fmod: New file.
37370         * modules/hypot: New file.
37371         * modules/j0: New file.
37372         * modules/j1: New file.
37373         * modules/jn: New file.
37374         * modules/ldexp: New file.
37375         * modules/lgamma: New file.
37376         * modules/log: New file.
37377         * modules/log10: New file.
37378         * modules/log1p: New file.
37379         * modules/logb: New file.
37380         * modules/modf: New file.
37381         * modules/nextafter: New file.
37382         * modules/pow: New file.
37383         * modules/remainder: New file.
37384         * modules/rint: New file.
37385         * modules/sin: New file.
37386         * modules/sinh: New file.
37387         * modules/sqrt: New file.
37388         * modules/tan: New file.
37389         * modules/tanh: New file.
37390         * modules/y0: New file.
37391         * modules/y1: New file.
37392         * modules/yn: New file.
37393         * doc/posix-functions/acos.texi: Mention the 'acos' module.
37394         * doc/posix-functions/asin.texi: Mention the 'asin' module.
37395         * doc/posix-functions/atan.texi: Mention the 'atan' module.
37396         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
37397         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
37398         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
37399         * doc/posix-functions/cos.texi: Mention the 'cos' module.
37400         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
37401         * doc/posix-functions/erf.texi: Mention the 'erf' module.
37402         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
37403         * doc/posix-functions/exp.texi: Mention the 'exp' module.
37404         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
37405         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
37406         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
37407         * doc/posix-functions/j0.texi: Mention the 'j0' module.
37408         * doc/posix-functions/j1.texi: Mention the 'j1' module.
37409         * doc/posix-functions/jn.texi: Mention the 'jn' module.
37410         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
37411         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
37412         * doc/posix-functions/log.texi: Mention the 'log' module.
37413         * doc/posix-functions/log10.texi: Mention the 'log10' module.
37414         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
37415         * doc/posix-functions/logb.texi: Mention the 'logb' module.
37416         * doc/posix-functions/modf.texi: Mention the 'modf' module.
37417         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
37418         * doc/posix-functions/pow.texi: Mention the 'pow' module.
37419         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
37420         * doc/posix-functions/rint.texi: Mention the 'rint' module.
37421         * doc/posix-functions/sin.texi: Mention the 'sin' module.
37422         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
37423         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
37424         * doc/posix-functions/tan.texi: Mention the 'tan' module.
37425         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
37426         * doc/posix-functions/y0.texi: Mention the 'y0' module.
37427         * doc/posix-functions/y1.texi: Mention the 'y1' module.
37428         * doc/posix-functions/yn.texi: Mention the 'yn' module.
37429
37430 2010-01-18  Jim Meyering  <meyering@redhat.com>
37431
37432         ignore-value: relax license to LGPLv2+
37433         * modules/ignore-value (License): Relax to LGPLv2+.
37434
37435         getdate: don't leak when TZ contains two or more '"'s
37436         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
37437         double quote in TZ after the first one.
37438
37439         readtokens: do not leak internal token_lengths buffer
37440         * lib/readtokens.c (readtokens): Free the local, lengths,
37441         when the supplied "token_lengths" parameter is NULL.
37442
37443 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37444
37445         Fix a couple of missing LIBTHREAD link failures on AIX.
37446         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
37447         $(LIBTHREAD).
37448         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
37449
37450         Link test-poll against INET_PTON_LIB.
37451         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
37452         for inet_pton on Solaris 10.
37453
37454 2010-01-17  Bruno Haible  <bruno@clisp.org>
37455
37456         unistdio/*-sprintf: Fix typo in module description.
37457         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
37458         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
37459         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
37460         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
37461         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
37462         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
37463         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
37464         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37465
37466 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37467
37468         gnulib-tool: fix filelist for AIX, HP-UX ksh.
37469         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
37470         variables in shell case patterns, for AIX and HP-UX ksh.
37471
37472         Split large sed scripts, for HP-UX sed.
37473         * modules/stdio: Split sed scripts around 50 sed commands,
37474         to avoid HP-UX limit of 99 commands, in the near future.
37475         * modules/string: Likewise.
37476         * modules/unistd: Likewise.
37477
37478         gnulib-tool: avoid writing in the current directory.
37479         * gnulib-tool (func_emit_lib_Makefile_am)
37480         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
37481         not in the current directory, so concurrent gnulib-tool
37482         instances do not interfere.
37483
37484 2010-01-16  Jim Meyering  <meyering@redhat.com>
37485
37486         doc: update users.txt
37487         * users.txt: Add grep.
37488         (diffutils, gzip): Update URLs.
37489
37490 2010-01-12  Bruno Haible  <bruno@clisp.org>
37491
37492         posix_spawn: Avoid test failure on Cygwin.
37493         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
37494         characters.
37495         Reported by Simon Josefsson.
37496
37497 2010-01-12  Bruno Haible  <bruno@clisp.org>
37498
37499         * tests/test-cond.c (main): When skipping the test, show the reason.
37500
37501 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37502
37503         * lib/striconv.c (str_cd_iconv): Avoid if before free.
37504
37505 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37506
37507         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
37508         VC_LIST_ALWAYS_EXCLUDE_REGEX.
37509
37510 2010-01-12  Eric Blake  <ebb9@byu.net>
37511
37512         build: guarantee AS_VAR_IF
37513         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
37514         (gl_AS_VAR_IF): Move...
37515         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
37516         Reported by Simon Josefsson.
37517
37518 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37519
37520         * lib/stdio.in.h: Fix typo.
37521
37522 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37523
37524         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
37525         libgpg-error.
37526
37527 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37528
37529         * tests/test-xalloc-die.sh: Use $EXEEXT.
37530
37531 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37532             Bruno Haible  <bruno@clisp.org>
37533
37534         getlogin, getlogin_r: Avoid test failure.
37535         * tests/test-getlogin.c: Include <stdio.h>.
37536         (main): Skip the test when the function fails because stdin is not a
37537         tty.
37538         * tests/test-getlogin_r.c: Include <stdio.h>.
37539         (main): Skip the test when the function fails because stdin is not a
37540         tty.
37541
37542 2010-01-11  Eric Blake  <ebb9@byu.net>
37543
37544         tests: avoid more large file warnings
37545         * tests/test-fflush.c: Avoid warning about ftell use.
37546         * tests/test-fseek.c: Avoid warning about fseek use.
37547
37548 2010-01-10  Bruno Haible  <bruno@clisp.org>
37549
37550         nproc: Work better on Linux when /proc and /sys are not mounted.
37551         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
37552         as lower bound when, on glibc/Linux systems,
37553         sysconf (_SC_NPROCESSORS_CONF) returns 1.
37554         Suggested by Pádraig Brady <P@draigbrady.com>.
37555         Reported by Dmitry V. Levin <ldv@altlinux.org>.
37556
37557         nproc: Refactor.
37558         * lib/nproc.c (num_processors_via_affinity_mask): New function,
37559         extracted from num_processors.
37560         (num_processors): Call it.
37561
37562 2010-01-11  Jim Meyering  <meyering@redhat.com>
37563
37564         utimecmp: avoid new warning from upcoming gcc-4.5.0
37565         * lib/utimecmp.c (BILLION): Define using #define rather than an
37566         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
37567
37568 2010-01-11  Eric Blake  <ebb9@byu.net>
37569
37570         math: add portability warnings for classification macros
37571         * modules/math (Depends-on): Add warn-on-use.
37572         (Makefile.am): Provide new substitutions.
37573         * m4/math_h.m4 (gl_MATH_H): Require inline.
37574         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
37575         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
37576         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
37577         implement warnings.
37578
37579         unistd: warn on use of environ without module
37580         * modules/unistd (Depends-on): Add warn-on-use.
37581         (Makefile.am): Provide new substitutions.
37582         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
37583         * lib/unistd.in.h (environ): Wrap with a warning helper function.
37584
37585         stdio: warn on suspicious uses
37586         * modules/stdio (Depends-on): Add warn-on-use.
37587         (Makefile.am): Provide new substitutions.
37588         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
37589         fseeko.
37590         * lib/stdio.in.h (gets): Always warn on use.
37591         (fseek, ftell): Adjust when warnings are issued, and honor
37592         _GL_NO_LARGE_FILES as a way to silence the warning.
37593         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
37594         any warning about large file offsets.
37595         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
37596         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
37597         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
37598         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
37599         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
37600         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
37601         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
37602         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
37603
37604         warn-on-use: new module
37605         * modules/warn-on-use: New file.
37606         * build-aux/warn-on-use.h: Likewise.
37607         * m4/warn-on-use.m4: Likewise.
37608         * MODULES.html.sh (Support for building): Mention it.
37609
37610 2010-01-10  Bruno Haible  <bruno@clisp.org>
37611
37612         Tests for module 'unistr/u32-strdup'.
37613         * modules/unistr/u32-strdup-tests: New file.
37614         * tests/unistr/test-u32-strdup.c: New file.
37615
37616         Tests for module 'unistr/u16-strdup'.
37617         * modules/unistr/u16-strdup-tests: New file.
37618         * tests/unistr/test-u16-strdup.c: New file.
37619
37620         Tests for module 'unistr/u8-strdup'.
37621         * modules/unistr/u8-strdup-tests: New file.
37622         * tests/unistr/test-u8-strdup.c: New file.
37623         * tests/unistr/test-strdup.h: New file.
37624
37625         Tests for module 'unistr/u32-strncmp'.
37626         * modules/unistr/u32-strncmp-tests: New file.
37627         * tests/unistr/test-u32-strncmp.c: New file.
37628
37629         Tests for module 'unistr/u16-strncmp'.
37630         * modules/unistr/u16-strncmp-tests: New file.
37631         * tests/unistr/test-u16-strncmp.c: New file.
37632
37633         Tests for module 'unistr/u8-strncmp'.
37634         * modules/unistr/u8-strncmp-tests: New file.
37635         * tests/unistr/test-u8-strncmp.c: New file.
37636         * tests/unistr/test-strncmp.h: New file.
37637
37638         Tests for module 'unistr/u32-strcoll'.
37639         * modules/unistr/u32-strcoll-tests: New file.
37640         * tests/unistr/test-u32-strcoll.c: New file.
37641
37642         Tests for module 'unistr/u16-strcoll'.
37643         * modules/unistr/u16-strcoll-tests: New file.
37644         * tests/unistr/test-u16-strcoll.c: New file.
37645
37646         Tests for module 'unistr/u8-strcoll'.
37647         * modules/unistr/u8-strcoll-tests: New file.
37648         * tests/unistr/test-u8-strcoll.c: New file.
37649
37650         Tests for module 'unistr/u32-strcmp'.
37651         * modules/unistr/u32-strcmp-tests: New file.
37652         * tests/unistr/test-u32-strcmp.c: New file.
37653         * tests/unistr/test-u32-strcmp.h: New file.
37654
37655         Tests for module 'unistr/u16-strcmp'.
37656         * modules/unistr/u16-strcmp-tests: New file.
37657         * tests/unistr/test-u16-strcmp.c: New file.
37658         * tests/unistr/test-u16-strcmp.h: New file.
37659
37660         Tests for module 'unistr/u8-strcmp'.
37661         * modules/unistr/u8-strcmp-tests: New file.
37662         * tests/unistr/test-u8-strcmp.c: New file.
37663         * tests/unistr/test-u8-strcmp.h: New file.
37664         * tests/unistr/test-strcmp.h: New file.
37665
37666         Tests for module 'unistr/u32-strncat'.
37667         * modules/unistr/u32-strncat-tests: New file.
37668         * tests/unistr/test-u32-strncat.c: New file.
37669
37670         Tests for module 'unistr/u16-strncat'.
37671         * modules/unistr/u16-strncat-tests: New file.
37672         * tests/unistr/test-u16-strncat.c: New file.
37673
37674         Tests for module 'unistr/u8-strncat'.
37675         * modules/unistr/u8-strncat-tests: New file.
37676         * tests/unistr/test-u8-strncat.c: New file.
37677         * tests/unistr/test-strncat.h: New file.
37678
37679         Tests for module 'unistr/u32-strcat'.
37680         * modules/unistr/u32-strcat-tests: New file.
37681         * tests/unistr/test-u32-strcat.c: New file.
37682
37683         Tests for module 'unistr/u16-strcat'.
37684         * modules/unistr/u16-strcat-tests: New file.
37685         * tests/unistr/test-u16-strcat.c: New file.
37686
37687         Tests for module 'unistr/u8-strcat'.
37688         * modules/unistr/u8-strcat-tests: New file.
37689         * tests/unistr/test-u8-strcat.c: New file.
37690         * tests/unistr/test-strcat.h: New file.
37691
37692         Tests for module 'unistr/u32-stpncpy'.
37693         * modules/unistr/u32-stpncpy-tests: New file.
37694         * tests/unistr/test-u32-stpncpy.c: New file.
37695
37696         Tests for module 'unistr/u16-stpncpy'.
37697         * modules/unistr/u16-stpncpy-tests: New file.
37698         * tests/unistr/test-u16-stpncpy.c: New file.
37699
37700         Tests for module 'unistr/u8-stpncpy'.
37701         * modules/unistr/u8-stpncpy-tests: New file.
37702         * tests/unistr/test-u8-stpncpy.c: New file.
37703         * tests/unistr/test-stpncpy.h: New file.
37704
37705         Tests for module 'unistr/u32-strncpy'.
37706         * modules/unistr/u32-strncpy-tests: New file.
37707         * tests/unistr/test-u32-strncpy.c: New file.
37708
37709         Tests for module 'unistr/u16-strncpy'.
37710         * modules/unistr/u16-strncpy-tests: New file.
37711         * tests/unistr/test-u16-strncpy.c: New file.
37712
37713         Tests for module 'unistr/u8-strncpy'.
37714         * modules/unistr/u8-strncpy-tests: New file.
37715         * tests/unistr/test-u8-strncpy.c: New file.
37716         * tests/unistr/test-strncpy.h: New file.
37717
37718         Tests for module 'unistr/u32-stpcpy'.
37719         * modules/unistr/u32-stpcpy-tests: New file.
37720         * tests/unistr/test-u32-stpcpy.c: New file.
37721
37722         Tests for module 'unistr/u16-stpcpy'.
37723         * modules/unistr/u16-stpcpy-tests: New file.
37724         * tests/unistr/test-u16-stpcpy.c: New file.
37725
37726         Tests for module 'unistr/u8-stpcpy'.
37727         * modules/unistr/u8-stpcpy-tests: New file.
37728         * tests/unistr/test-u8-stpcpy.c: New file.
37729         * tests/unistr/test-stpcpy.h: New file.
37730
37731         Tests for module 'unistr/u32-strcpy'.
37732         * modules/unistr/u32-strcpy-tests: New file.
37733         * tests/unistr/test-u32-strcpy.c: New file.
37734
37735         Tests for module 'unistr/u16-strcpy'.
37736         * modules/unistr/u16-strcpy-tests: New file.
37737         * tests/unistr/test-u16-strcpy.c: New file.
37738
37739         Tests for module 'unistr/u8-strcpy'.
37740         * modules/unistr/u8-strcpy-tests: New file.
37741         * tests/unistr/test-u8-strcpy.c: New file.
37742         * tests/unistr/test-strcpy.h: New file.
37743
37744         Tests for module 'unistr/u32-strnlen'.
37745         * modules/unistr/u32-strnlen-tests: New file.
37746         * tests/unistr/test-u32-strnlen.c: New file.
37747
37748         Tests for module 'unistr/u16-strnlen'.
37749         * modules/unistr/u16-strnlen-tests: New file.
37750         * tests/unistr/test-u16-strnlen.c: New file.
37751
37752         Tests for module 'unistr/u8-strnlen'.
37753         * modules/unistr/u8-strnlen-tests: New file.
37754         * tests/unistr/test-u8-strnlen.c: New file.
37755         * tests/unistr/test-strnlen.h: New file.
37756
37757         Tests for module 'unistr/u32-strlen'.
37758         * modules/unistr/u32-strlen-tests: New file.
37759         * tests/unistr/test-u32-strlen.c: New file.
37760
37761         Tests for module 'unistr/u16-strlen'.
37762         * modules/unistr/u16-strlen-tests: New file.
37763         * tests/unistr/test-u16-strlen.c: New file.
37764
37765         Tests for module 'unistr/u8-strlen'.
37766         * modules/unistr/u8-strlen-tests: New file.
37767         * tests/unistr/test-u8-strlen.c: New file.
37768
37769         Tests for module 'unistr/u32-prev'.
37770         * modules/unistr/u32-prev-tests: New file.
37771         * tests/unistr/test-u32-prev.c: New file.
37772
37773         Tests for module 'unistr/u16-prev'.
37774         * modules/unistr/u16-prev-tests: New file.
37775         * tests/unistr/test-u16-prev.c: New file.
37776
37777         Tests for module 'unistr/u8-prev'.
37778         * modules/unistr/u8-prev-tests: New file.
37779         * tests/unistr/test-u8-prev.c: New file.
37780
37781         Tests for module 'unistr/u32-next'.
37782         * modules/unistr/u32-next-tests: New file.
37783         * tests/unistr/test-u32-next.c: New file.
37784
37785         Tests for module 'unistr/u16-next'.
37786         * modules/unistr/u16-next-tests: New file.
37787         * tests/unistr/test-u16-next.c: New file.
37788
37789         Tests for module 'unistr/u8-next'.
37790         * modules/unistr/u8-next-tests: New file.
37791         * tests/unistr/test-u8-next.c: New file.
37792
37793         Tests for module 'unistr/u32-strmbtouc'.
37794         * modules/unistr/u32-strmbtouc-tests: New file.
37795         * tests/unistr/test-u32-strmbtouc.c: New file.
37796
37797         Tests for module 'unistr/u16-strmbtouc'.
37798         * modules/unistr/u16-strmbtouc-tests: New file.
37799         * tests/unistr/test-u16-strmbtouc.c: New file.
37800
37801         Tests for module 'unistr/u8-strmbtouc'.
37802         * modules/unistr/u8-strmbtouc-tests: New file.
37803         * tests/unistr/test-u8-strmbtouc.c: New file.
37804
37805         Tests for module 'unistr/u32-strmblen'.
37806         * modules/unistr/u32-strmblen-tests: New file.
37807         * tests/unistr/test-u32-strmblen.c: New file.
37808
37809         Tests for module 'unistr/u16-strmblen'.
37810         * modules/unistr/u16-strmblen-tests: New file.
37811         * tests/unistr/test-u16-strmblen.c: New file.
37812
37813         Tests for module 'unistr/u8-strmblen'.
37814         * modules/unistr/u8-strmblen-tests: New file.
37815         * tests/unistr/test-u8-strmblen.c: New file.
37816
37817         Tests for module 'unistr/u32-cpy-alloc'.
37818         * modules/unistr/u32-cpy-alloc-tests: New file.
37819         * tests/unistr/test-u32-cpy-alloc.c: New file.
37820
37821         Tests for module 'unistr/u16-cpy-alloc'.
37822         * modules/unistr/u16-cpy-alloc-tests: New file.
37823         * tests/unistr/test-u16-cpy-alloc.c: New file.
37824
37825         Tests for module 'unistr/u8-cpy-alloc'.
37826         * modules/unistr/u8-cpy-alloc-tests: New file.
37827         * tests/unistr/test-u8-cpy-alloc.c: New file.
37828         * tests/unistr/test-cpy-alloc.h: New file.
37829
37830         Tests for module 'unistr/u32-mbsnlen'.
37831         * modules/unistr/u32-mbsnlen-tests: New file.
37832         * tests/unistr/test-u32-mbsnlen.c: New file.
37833
37834         Tests for module 'unistr/u16-mbsnlen'.
37835         * modules/unistr/u16-mbsnlen-tests: New file.
37836         * tests/unistr/test-u16-mbsnlen.c: New file.
37837
37838         Tests for module 'unistr/u8-mbsnlen'.
37839         * modules/unistr/u8-mbsnlen-tests: New file.
37840         * tests/unistr/test-u8-mbsnlen.c: New file.
37841
37842         Tests for module 'unistr/u32-chr'.
37843         * modules/unistr/u32-chr-tests: New file.
37844         * tests/unistr/test-u32-chr.c: New file.
37845
37846         Tests for module 'unistr/u16-chr'.
37847         * modules/unistr/u16-chr-tests: New file.
37848         * tests/unistr/test-u16-chr.c: New file.
37849
37850         Tests for module 'unistr/u8-chr'.
37851         * modules/unistr/u8-chr-tests: New file.
37852         * tests/unistr/test-u8-chr.c: New file.
37853         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
37854
37855         Tests for module 'unistr/u32-cmp2'.
37856         * modules/unistr/u32-cmp2-tests: New file.
37857         * tests/unistr/test-u32-cmp2.c: New file.
37858
37859         Tests for module 'unistr/u16-cmp2'.
37860         * modules/unistr/u16-cmp2-tests: New file.
37861         * tests/unistr/test-u16-cmp2.c: New file.
37862
37863         Tests for module 'unistr/u8-cmp2'.
37864         * modules/unistr/u8-cmp2-tests: New file.
37865         * tests/unistr/test-u8-cmp2.c: New file.
37866         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
37867
37868         Tests for module 'unistr/u32-cmp'.
37869         * modules/unistr/u32-cmp-tests: New file.
37870         * tests/unistr/test-u32-cmp.c: New file.
37871
37872         Tests for module 'unistr/u16-cmp'.
37873         * modules/unistr/u16-cmp-tests: New file.
37874         * tests/unistr/test-u16-cmp.c: New file.
37875
37876         Tests for module 'unistr/u8-cmp'.
37877         * modules/unistr/u8-cmp-tests: New file.
37878         * tests/unistr/test-u8-cmp.c: New file.
37879         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
37880
37881         Tests for module 'unistr/u32-set'.
37882         * modules/unistr/u32-set-tests: New file.
37883         * tests/unistr/test-u32-set.c: New file.
37884
37885         Tests for module 'unistr/u16-set'.
37886         * modules/unistr/u16-set-tests: New file.
37887         * tests/unistr/test-u16-set.c: New file.
37888
37889         Tests for module 'unistr/u8-set'.
37890         * modules/unistr/u8-set-tests: New file.
37891         * tests/unistr/test-u8-set.c: New file.
37892         * tests/unistr/test-set.h: New file.
37893
37894         Tests for module 'unistr/u32-move'.
37895         * modules/unistr/u32-move-tests: New file.
37896         * tests/unistr/test-u32-move.c: New file.
37897
37898         Tests for module 'unistr/u16-move'.
37899         * modules/unistr/u16-move-tests: New file.
37900         * tests/unistr/test-u16-move.c: New file.
37901
37902         Tests for module 'unistr/u8-move'.
37903         * modules/unistr/u8-move-tests: New file.
37904         * tests/unistr/test-u8-move.c: New file.
37905         * tests/unistr/test-move.h: New file.
37906
37907         Tests for module 'unistr/u32-cpy'.
37908         * modules/unistr/u32-cpy-tests: New file.
37909         * tests/unistr/test-u32-cpy.c: New file.
37910
37911         Tests for module 'unistr/u16-cpy'.
37912         * modules/unistr/u16-cpy-tests: New file.
37913         * tests/unistr/test-u16-cpy.c: New file.
37914
37915         Tests for module 'unistr/u8-cpy'.
37916         * modules/unistr/u8-cpy-tests: New file.
37917         * tests/unistr/test-u8-cpy.c: New file.
37918         * tests/unistr/test-cpy.h: New file.
37919
37920 2010-01-09  Bruno Haible  <bruno@clisp.org>
37921
37922         Tests for module 'unistr/u32-uctomb'.
37923         * modules/unistr/u32-uctomb-tests: New file.
37924         * tests/unistr/test-u32-uctomb.c: New file.
37925
37926         Tests for module 'unistr/u16-uctomb'.
37927         * modules/unistr/u16-uctomb-tests: New file.
37928         * tests/unistr/test-u16-uctomb.c: New file.
37929
37930         Tests for module 'unistr/u8-uctomb'.
37931         * modules/unistr/u8-uctomb-tests: New file.
37932         * tests/unistr/test-u8-uctomb.c: New file.
37933
37934         Tests for module 'unistr/u32-mbtoucr'.
37935         * modules/unistr/u32-mbtoucr-tests: New file.
37936         * tests/unistr/test-u32-mbtoucr.c: New file.
37937
37938         Tests for module 'unistr/u16-mbtoucr'.
37939         * modules/unistr/u16-mbtoucr-tests: New file.
37940         * tests/unistr/test-u16-mbtoucr.c: New file.
37941
37942         Tests for module 'unistr/u8-mbtoucr'.
37943         * modules/unistr/u8-mbtoucr-tests: New file.
37944         * tests/unistr/test-u8-mbtoucr.c: New file.
37945
37946         Tests for module 'unistr/u32-mbtouc'.
37947         * modules/unistr/u32-mbtouc-tests: New file.
37948         * tests/unistr/test-u32-mbtouc.c: New file.
37949
37950         Tests for module 'unistr/u16-mbtouc'.
37951         * modules/unistr/u16-mbtouc-tests: New file.
37952         * tests/unistr/test-u16-mbtouc.c: New file.
37953
37954         Tests for module 'unistr/u8-mbtouc'.
37955         * modules/unistr/u8-mbtouc-tests: New file.
37956         * tests/unistr/test-u8-mbtouc.c: New file.
37957
37958         Tests for module 'unistr/u32-mbtouc-unsafe'.
37959         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
37960         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
37961         * tests/unistr/test-u32-mbtouc.h: New file.
37962
37963         Tests for module 'unistr/u16-mbtouc-unsafe'.
37964         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
37965         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
37966         * tests/unistr/test-u16-mbtouc.h: New file.
37967
37968         Tests for module 'unistr/u8-mbtouc-unsafe'.
37969         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
37970         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
37971         * tests/unistr/test-u8-mbtouc.h: New file.
37972
37973         Tests for module 'unistr/u32-mblen'.
37974         * modules/unistr/u32-mblen-tests: New file.
37975         * tests/unistr/test-u32-mblen.c: New file.
37976
37977         Tests for module 'unistr/u16-mblen'.
37978         * modules/unistr/u16-mblen-tests: New file.
37979         * tests/unistr/test-u16-mblen.c: New file.
37980
37981         Tests for module 'unistr/u8-mblen'.
37982         * modules/unistr/u8-mblen-tests: New file.
37983         * tests/unistr/test-u8-mblen.c: New file.
37984
37985         Tests for module 'unistr/u32-to-u16'.
37986         * modules/unistr/u32-to-u16-tests: New file.
37987         * tests/unistr/test-u32-to-u16.c: New file.
37988
37989         Tests for module 'unistr/u32-to-u8'.
37990         * modules/unistr/u32-to-u8-tests: New file.
37991         * tests/unistr/test-u32-to-u8.c: New file.
37992
37993         Tests for module 'unistr/u16-to-u32'.
37994         * modules/unistr/u16-to-u32-tests: New file.
37995         * tests/unistr/test-u16-to-u32.c: New file.
37996
37997         Tests for module 'unistr/u16-to-u8'.
37998         * modules/unistr/u16-to-u8-tests: New file.
37999         * tests/unistr/test-u16-to-u8.c: New file.
38000
38001         Tests for module 'unistr/u8-to-u32'.
38002         * modules/unistr/u8-to-u32-tests: New file.
38003         * tests/unistr/test-u8-to-u32.c: New file.
38004
38005         Tests for module 'unistr/u8-to-u16'.
38006         * modules/unistr/u8-to-u16-tests: New file.
38007         * tests/unistr/test-u8-to-u16.c: New file.
38008
38009         Tests for module 'unistr/u32-check'.
38010         * modules/unistr/u32-check-tests: New file.
38011         * tests/unistr/test-u32-check.c: New file.
38012
38013         Tests for module 'unistr/u16-check'.
38014         * modules/unistr/u16-check-tests: New file.
38015         * tests/unistr/test-u16-check.c: New file.
38016
38017         Tests for module 'unistr/u8-check'.
38018         * modules/unistr/u8-check-tests: New file.
38019         * tests/unistr/test-u8-check.c: New file.
38020
38021         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
38022         (category_equals): New function.
38023         (main): Add more tests.
38024         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
38025
38026         * tests/unictype/test-bidi_byname.c (main): Add more tests.
38027
38028 2010-01-10  Bruno Haible  <bruno@clisp.org>
38029
38030         unistr/u*-strcoll: Try harder to distinguish different strings.
38031         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
38032         compare s1 and s2 to see if they are different.
38033
38034 2010-01-10  Bruno Haible  <bruno@clisp.org>
38035
38036         unistr/u*-stpncpy: Fix the return value.
38037         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
38038         description of the return value consistent with stpncpy in glibc.
38039         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
38040         written non-NUL unit.
38041
38042 2010-01-10  Bruno Haible  <bruno@clisp.org>
38043
38044         unistr/u*-next: Add missing dependencies.
38045         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
38046         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
38047         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
38048
38049 2010-01-10  Bruno Haible  <bruno@clisp.org>
38050
38051         unistr/u8-mbsnlen: Fix return value for incomplete character.
38052         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
38053         u8_mblen.
38054         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
38055         Remove unistr/u8-mblen.
38056         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
38057         u16_mblen.
38058         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
38059         Remove unistr/u16-mblen.
38060
38061 2010-01-10  Bruno Haible  <bruno@clisp.org>
38062
38063         wchar: Fix compilation error when <wchar.h> is used from coreutils.
38064         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
38065         Reported by Brian Gough <bjg@gnu.org> and
38066         Chris Clayton <chris2553@googlemail.com> via
38067         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
38068
38069 2010-01-09  Bruno Haible  <bruno@clisp.org>
38070
38071         unistr/u16-to-u32: Reject invalid input.
38072         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
38073         u16_mbtouc.
38074         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
38075         Remove unistr/u16-mbtouc.
38076
38077         unistr/u16-to-u8: Reject invalid input.
38078         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
38079         u16_mbtouc.
38080         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
38081         Remove unistr/u16-mbtouc.
38082
38083         unistr/u8-to-u32: Reject invalid input.
38084         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
38085         u8_mbtouc.
38086         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
38087         Remove unistr/u8-mbtouc.
38088
38089         unistr/u8-to-u16: Reject invalid input.
38090         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
38091         u8_mbtouc.
38092         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
38093         Remove unistr/u8-mbtouc.
38094
38095 2010-01-09  Bruno Haible  <bruno@clisp.org>
38096
38097         Tests for module 'getlogin'.
38098         * modules/getlogin-tests: New file.
38099         * tests/test-getlogin.c: New file.
38100
38101         New module 'getlogin'.
38102         * lib/unistd.in.h (getlogin): New declaration.
38103         * lib/getlogin.c: New file.
38104         * m4/getlogin.m4: New file.
38105         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
38106         HAVE_GETLOGIN.
38107         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
38108         HAVE_GETLOGIN.
38109         * modules/getlogin: New file.
38110         * doc/posix-functions/getlogin.texi: Mention the new module.
38111         Reported by John W. Eaton <jwe@gnu.org>.
38112
38113 2010-01-09  Bruno Haible  <bruno@clisp.org>
38114
38115         getlogin_r: Support for native Windows.
38116         * lib/getlogin_r.c: Include <windows.h>
38117         (getlogin_r): Implement for native Windows.
38118         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
38119         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
38120         via John W. Eaton <jwe@gnu.org>.
38121
38122 2010-01-09  Bruno Haible  <bruno@clisp.org>
38123
38124         getlogin_r: Small fixes.
38125         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
38126         succeeds.
38127         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
38128         before testing whether getlogin_r is declared. No need to set
38129         HAVE_DECL_GETLOGIN_R to 1.
38130         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
38131
38132 2010-01-09  Bruno Haible  <bruno@clisp.org>
38133
38134         * lib/unistd.in.h (getlogin_r): Add comment.
38135
38136 2010-01-09  Bruno Haible  <bruno@clisp.org>
38137
38138         Tests for module 'getlogin_r'.
38139         * modules/getlogin_r-tests: New file.
38140         * tests/test-getlogin_r.c: New file.
38141
38142 2010-01-09  Jim Meyering  <meyering@redhat.com>
38143
38144         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
38145         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
38146         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
38147
38148 2010-01-08  Simon Josefsson  <simon@josefsson.org>
38149
38150         * lib/dup2.c (rpl_dup2): Improve comment.
38151
38152 2010-01-08  Eric Blake  <ebb9@byu.net>
38153
38154         maint.mk: allow packages to add makefile @@ exceptions
38155         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
38156         (sc_makefile_check): Rename...
38157         (sc_makefile_at_at_check): ...to this, and use hook.
38158
38159         dup2: work around mingw bug
38160         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
38161         Reported by Simon Josefsson.
38162
38163 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
38164
38165         glob: Fix C++ compilation.
38166         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
38167         C++.
38168
38169 2010-01-07  Bruno Haible  <bruno@clisp.org>
38170
38171         Fix indentation of wctype.in.h, broken since 2007-01-06.
38172         * lib/wctype.in.h: Fix indentation of preprocessor directives.
38173
38174 2010-01-07  Bruno Haible  <bruno@clisp.org>
38175
38176         mbslen: Avoid collision with system function.
38177         * lib/string.in.h [MirBSD]: Include <wchar.h>.
38178         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
38179         * m4/mbslen.m4: New file.
38180         * modules/mbslen (Files): Add it.
38181         (configure.ac): Invoke gl_MBSLEN.
38182         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
38183         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
38184         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
38185         via Ian Beckwith <ianb@erislabs.net>.
38186
38187 2010-01-07  Bruno Haible  <bruno@clisp.org>
38188
38189         dirent: Document the last fix.
38190         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
38191
38192 2010-01-07  Bruno Haible  <bruno@clisp.org>
38193
38194         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
38195         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
38196         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
38197         va_list are defined.
38198         * doc/posix-headers/stdio.texi: Document the bug of missing types.
38199         Reported by Eric Blake.
38200
38201 2010-01-07  Bruno Haible  <bruno@clisp.org>
38202
38203         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
38204         * modules/xlist (Depends-on): Add 'list',
38205         * modules/xoset (Depends-on): Add 'oset'.
38206         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38207
38208 2010-01-07  Bruno Haible  <bruno@clisp.org>
38209
38210         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
38211         * doc/posix-functions/strncasecmp.texi: Likewise.
38212
38213 2010-01-07  Bruno Haible  <bruno@clisp.org>
38214
38215         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
38216
38217 2010-01-07  John W. Eaton  <jwe@octave.org>
38218
38219         wctype: allow C++ use
38220         * lib/wctype.in.h: Add extern "C" block for C++.
38221
38222 2010-01-06  Eric Blake  <ebb9@byu.net>
38223
38224         maint.mk: detect incorrect GFDL usage
38225         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
38226
38227 2010-01-06  Jim Meyering  <meyering@redhat.com>
38228         and Eric Blake  <ebb9@byu.net>
38229
38230         maint.mk: ignore multi-line copyright in NEWS
38231         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
38232
38233 2010-01-06  Eric Blake  <ebb9@byu.net>
38234
38235         select: add missing dependency
38236         * modules/select-tests (Depends-on): Move sockets dependency...
38237         * modules/select (Depends-on): ...here.
38238         Reported by Ian Beckwith.
38239
38240         doc: regenerate INSTALL
38241         * doc/INSTALL: Reflect recent autoconf update.
38242         * doc/INSTALL.ISO: Likewise.
38243         * doc/INSTALL.UTF-8: Likewise.
38244
38245         pread: fix compilation on glibc
38246         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
38247         Reported by Ralf Wildenhues.
38248
38249         dirent: fix test failure
38250         * lib/dirent.in.h (includes): Guarantee ino_t.
38251         Reported by Ralf Wildenhues.
38252
38253 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
38254
38255         linkat, renameat: avoid bad free
38256         * lib/at-func2.c (at_func2): Fix typo.
38257         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
38258
38259 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38260
38261         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
38262         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
38263         to avoid failure of symlink test later.
38264
38265 2010-01-06  Eric Blake  <ebb9@byu.net>
38266
38267         stdio, unistd: guarantee ssize_t
38268         * lib/unistd.in.h (includes): Ensure that types required by POSIX
38269         2008 are exposed when needed.
38270         * lib/stdio.in.h (includes): Likewise.
38271         Reported by Ralf Wildenhues.
38272
38273 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
38274
38275         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
38276         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
38277         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
38278
38279 2010-01-06  Jim Meyering  <meyering@redhat.com>
38280
38281         readtokens: this module *does* require xalloc.h
38282         It uses only functions that were omitted by the old syntax-check rule.
38283         * lib/readtokens.c: Include "xalloc.h" once again.
38284         * modules/readtokens (Depends-on): Add xalloc.
38285         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
38286
38287 2010-01-05  Eric Blake  <ebb9@byu.net>
38288
38289         maint: support 'make announcement' from a VPATH build
38290         * top/maint.mk (announcement): Look for correct NEWS file.
38291
38292 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
38293
38294         utimens (fdutimens): ignore a negative FD, per contract
38295         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
38296         when we have a valid file descriptor.  Otherwise, using a brand
38297         new glibc (with just-patched futimens that now fails with EBADF)
38298         would cause this function to fail with ENOSYS.
38299         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
38300         See also http://bugzilla.redhat.com/552320.
38301
38302 2010-01-05  Eric Blake  <ebb9@byu.net>
38303
38304         strcase: document what it provides
38305         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
38306         gnulib module.
38307         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
38308         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
38309
38310 2010-01-05  Jim Meyering  <meyering@redhat.com>
38311
38312         maint: remove useless inclusions of "xalloc.h"
38313         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
38314         * lib/readtokens.c: Likewise.
38315         * lib/same.c: Likewise.
38316         * modules/getloadavg (Depends-on): Remove xalloc.
38317         * modules/readtokens: Likewise.
38318         * modules/same: Likewise.
38319
38320         maint.mk: include 4 more function names in alloca.h-checking regexp
38321         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
38322         regexp.  Before, we would give a false-positive (saying alloca.h
38323         is included unnecessarily) when the only uses involved omitted symbols.
38324
38325         xalloc.h: use consistent formatting
38326         * lib/xalloc.h: Move declarations to start in the first column.
38327
38328 2010-01-05  Eric Blake  <ebb9@byu.net>
38329
38330         mkdir: avoid xalloc
38331         * lib/mkdir.c (includes): Drop unused header.
38332         Reported by John W. Eaton.
38333
38334 2010-01-04  Jim Meyering  <meyering@redhat.com>
38335
38336         nl_langinfo: avoid configure-time syntax error
38337         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
38338         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
38339         the empty string.  Don't let that provoke a shell syntax error.
38340
38341         regcomp, regexec, fnmatch: avoid array bounds read error
38342         * lib/regcomp.c (build_equiv_class): From glibc:
38343         Use only the low 24 bits of a findidx return value as an index
38344         into the weights array.  Patch by Ulrich Drepper:
38345         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
38346         * lib/regexec.c (check_node_accept_bytes): Likewise.
38347         * lib/fnmatch_loop.c (FCT): Likewise.
38348
38349         regcomp: skip collseq lookup when there are no rules
38350         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
38351         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
38352
38353         regcomp: recognize ill-formed { } expressions
38354         * lib/regcomp.c (parse_dup_op): From glibc:
38355         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
38356
38357         regcomp: fix typo in comment
38358         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
38359         s/satisfy/satisfies/.
38360
38361         regcomp: sync from glibc: remove dead store
38362         * lib/regcomp.c (duplicate_node_closure): Remove useless
38363         search_duplicated_node call and dead store.
38364
38365         regcomp: sync from glibc; always use nl_langinfo
38366         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
38367         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
38368         * modules/regex (Depends-on): Add nl_langinfo.
38369
38370 2010-01-04  Eric Blake  <ebb9@byu.net>
38371
38372         fdopendir: fix configure test
38373         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
38374
38375 2010-01-01  Bruno Haible  <bruno@clisp.org>
38376
38377         wchar: Remove unused configure check.
38378         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
38379
38380 2010-01-01  Eric Blake  <ebb9@byu.net>
38381
38382         headers: make check of system header explicit
38383         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
38384         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
38385         ourselves.
38386         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
38387         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38388         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
38389         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
38390         internals.
38391         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
38392         missing.
38393         Suggested by Bruno Haible.
38394
38395 2010-01-01  Jim Meyering  <meyering@redhat.com>
38396
38397         ChangeLog: tweak to eliminate unnecessary copyright line
38398         * ChangeLog: Remove a copyright line that was mistakenly updated
38399         by today's update-copyright run.  Reported by Eric Blake.
38400
38401         test-update-copyright: don't let envvar setting cause test failure
38402         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
38403
38404 2010-01-01  Bruno Haible  <bruno@clisp.org>
38405
38406         localename: Avoid gcc warning.
38407         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
38408         function if it is not used.
38409
38410 2010-01-01  Jim Meyering  <meyering@redhat.com>
38411
38412         update nearly all FSF copyright year lists to include 2010
38413         Use the same procedure as for 2009, outlined in
38414         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
38415
38416         version-etc: set COPYRIGHT_YEAR to 2010
38417         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
38418
38419 2009-12-31  Eric Blake  <ebb9@byu.net>
38420
38421         doc: correct availability of cygwin 1.5.x getopt
38422         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
38423         variables.
38424         * doc/posix-functions/opterr.texi (opterr): Likewise.
38425         * doc/posix-functions/optind.texi (optind): Likewise.
38426         * doc/posix-functions/optopt.texi (optopt): Likewise.
38427         * doc/posix-functions/tzname.texi (tzname): Likewise.
38428
38429         openat: update maintainer
38430         * modules/openat (Maintainer): Add myself.
38431
38432         utimens: avoid shadowing warning
38433         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
38434         buffers into one, to avoid shadowing, as well as avoiding a
38435         redundant stat.
38436         Reported by Jim Meyering.
38437
38438         test-dup2: avoid compiler warning
38439         * tests/test-dup2.c (is_inheritable): Only define if used.
38440
38441 2010-01-01  Bruno Haible  <bruno@clisp.org>
38442
38443         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
38444         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
38445         defined, use wctomb instead of wcrtomb.
38446
38447 2010-01-01  Bruno Haible  <bruno@clisp.org>
38448
38449         iconv: Reject native Solaris iconv.
38450         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
38451         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
38452
38453 2009-12-31  Bruno Haible  <bruno@clisp.org>
38454
38455         * tests/test-signal.c (main): Remove test of 'SIG'.
38456
38457 2009-12-31  Bruno Haible  <bruno@clisp.org>
38458
38459         spawn: Fix incomplete fix.
38460         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
38461         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
38462         warnings for GNULIB_POSIXCHECK again.
38463         Reported by Eric Blake.
38464
38465 2009-12-31  Bruno Haible  <bruno@clisp.org>
38466
38467         Avoid namespace pollution on glibc systems.
38468         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
38469         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
38470         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
38471         glibc systems.
38472
38473 2009-12-31  Bruno Haible  <bruno@clisp.org>
38474
38475         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
38476         (gl_REPLACE_WCHAR_H): Turn into a no-op.
38477         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
38478         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
38479         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
38480         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
38481         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
38482
38483 2009-12-31  Bruno Haible  <bruno@clisp.org>
38484
38485         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
38486         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
38487         afterwards.
38488
38489 2009-12-31  Bruno Haible  <bruno@clisp.org>
38490
38491         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
38492         SYS_UTSNAME_H.
38493
38494 2009-12-31  Bruno Haible  <bruno@clisp.org>
38495
38496         spawn: Fix misapplied patch.
38497         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
38498         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
38499         warnings for GNULIB_POSIXCHECK.
38500
38501 2009-12-31  Bruno Haible  <bruno@clisp.org>
38502
38503         times: Update after sys_times changed.
38504         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
38505         * modules/times (Files): Add it.
38506         (configure.ac): Invoke gl_FUNC_TIMES.
38507
38508 2009-12-31  Bruno Haible  <bruno@clisp.org>
38509
38510         Use AC_C_INLINE where necessary.
38511         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
38512         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
38513         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
38514         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
38515         * m4/mbfile.m4 (gl_MBFILE): Likewise.
38516         * m4/mbiter.m4 (gl_MBITER): Likewise.
38517         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
38518         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
38519         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
38520         * modules/u64 (configure.ac): Likewise.
38521
38522 2009-12-31  Bruno Haible  <bruno@clisp.org>
38523
38524         Use AC_C_INLINE instead of module 'inline' where possible.
38525         * modules/inline (Description): Clarify purpose.
38526         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
38527         * modules/count-one-bits (Depends-on): Remove inline.
38528         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
38529         * modules/openat (Depends-on): Remove inline.
38530         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
38531         instead of depending on module 'inline'.
38532         * modules/filevercmp (Depends-on, configure.ac): Likewise.
38533         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
38534         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
38535         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
38536         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
38537         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
38538         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
38539         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
38540         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
38541         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
38542         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
38543         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
38544         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
38545         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
38546         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
38547         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
38548         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
38549         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
38550         Likewise.
38551         * modules/unictype/property-ascii-hex-digit (Depends-on,
38552         configure.ac): Likewise.
38553         * modules/unictype/property-bidi-arabic-digit (Depends-on,
38554         configure.ac): Likewise.
38555         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
38556         configure.ac): Likewise.
38557         * modules/unictype/property-bidi-block-separator (Depends-on,
38558         configure.ac): Likewise.
38559         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
38560         configure.ac): Likewise.
38561         * modules/unictype/property-bidi-common-separator (Depends-on,
38562         configure.ac): Likewise.
38563         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
38564         Likewise.
38565         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
38566         configure.ac): Likewise.
38567         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
38568         configure.ac): Likewise.
38569         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
38570         configure.ac): Likewise.
38571         * modules/unictype/property-bidi-european-digit (Depends-on,
38572         configure.ac): Likewise.
38573         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
38574         configure.ac): Likewise.
38575         * modules/unictype/property-bidi-left-to-right (Depends-on,
38576         configure.ac): Likewise.
38577         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
38578         configure.ac): Likewise.
38579         * modules/unictype/property-bidi-other-neutral (Depends-on,
38580         configure.ac): Likewise.
38581         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
38582         Likewise.
38583         * modules/unictype/property-bidi-segment-separator (Depends-on,
38584         configure.ac): Likewise.
38585         * modules/unictype/property-bidi-whitespace (Depends-on,
38586         configure.ac): Likewise.
38587         * modules/unictype/property-combining (Depends-on, configure.ac):
38588         Likewise.
38589         * modules/unictype/property-composite (Depends-on, configure.ac):
38590         Likewise.
38591         * modules/unictype/property-currency-symbol (Depends-on,
38592         configure.ac): Likewise.
38593         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
38594         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
38595         Likewise.
38596         * modules/unictype/property-default-ignorable-code-point (Depends-on,
38597         configure.ac): Likewise.
38598         * modules/unictype/property-deprecated (Depends-on, configure.ac):
38599         Likewise.
38600         * modules/unictype/property-diacritic (Depends-on, configure.ac):
38601         Likewise.
38602         * modules/unictype/property-extender (Depends-on, configure.ac):
38603         Likewise.
38604         * modules/unictype/property-format-control (Depends-on, configure.ac):
38605         Likewise.
38606         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
38607         Likewise.
38608         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
38609         Likewise.
38610         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
38611         Likewise.
38612         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
38613         Likewise.
38614         * modules/unictype/property-hyphen (Depends-on, configure.ac):
38615         Likewise.
38616         * modules/unictype/property-id-continue (Depends-on, configure.ac):
38617         Likewise.
38618         * modules/unictype/property-id-start (Depends-on, configure.ac):
38619         Likewise.
38620         * modules/unictype/property-ideographic (Depends-on, configure.ac):
38621         Likewise.
38622         * modules/unictype/property-ids-binary-operator (Depends-on,
38623         configure.ac): Likewise.
38624         * modules/unictype/property-ids-trinary-operator (Depends-on,
38625         configure.ac): Likewise.
38626         * modules/unictype/property-ignorable-control (Depends-on,
38627         configure.ac): Likewise.
38628         * modules/unictype/property-iso-control (Depends-on, configure.ac):
38629         Likewise.
38630         * modules/unictype/property-join-control (Depends-on, configure.ac):
38631         Likewise.
38632         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
38633         Likewise.
38634         * modules/unictype/property-line-separator (Depends-on, configure.ac):
38635         Likewise.
38636         * modules/unictype/property-logical-order-exception (Depends-on,
38637         configure.ac): Likewise.
38638         * modules/unictype/property-lowercase (Depends-on, configure.ac):
38639         Likewise.
38640         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
38641         * modules/unictype/property-non-break (Depends-on, configure.ac):
38642         Likewise.
38643         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
38644         Likewise.
38645         * modules/unictype/property-numeric (Depends-on, configure.ac):
38646         Likewise.
38647         * modules/unictype/property-other-alphabetic (Depends-on,
38648         configure.ac): Likewise.
38649         * modules/unictype/property-other-default-ignorable-code-point
38650         (Depends-on, configure.ac): Likewise.
38651         * modules/unictype/property-other-grapheme-extend (Depends-on,
38652         configure.ac): Likewise.
38653         * modules/unictype/property-other-id-continue (Depends-on,
38654         configure.ac): Likewise.
38655         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
38656         Likewise.
38657         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
38658         Likewise.
38659         * modules/unictype/property-other-math (Depends-on, configure.ac):
38660         Likewise.
38661         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
38662         Likewise.
38663         * modules/unictype/property-paired-punctuation (Depends-on,
38664         configure.ac): Likewise.
38665         * modules/unictype/property-paragraph-separator (Depends-on,
38666         configure.ac): Likewise.
38667         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
38668         Likewise.
38669         * modules/unictype/property-pattern-white-space (Depends-on,
38670         configure.ac): Likewise.
38671         * modules/unictype/property-private-use (Depends-on, configure.ac):
38672         Likewise.
38673         * modules/unictype/property-punctuation (Depends-on, configure.ac):
38674         Likewise.
38675         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
38676         Likewise.
38677         * modules/unictype/property-radical (Depends-on, configure.ac):
38678         Likewise.
38679         * modules/unictype/property-sentence-terminal (Depends-on,
38680         configure.ac): Likewise.
38681         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
38682         Likewise.
38683         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
38684         * modules/unictype/property-terminal-punctuation (Depends-on,
38685         configure.ac): Likewise.
38686         * modules/unictype/property-titlecase (Depends-on, configure.ac):
38687         Likewise.
38688         * modules/unictype/property-unassigned-code-value (Depends-on,
38689         configure.ac): Likewise.
38690         * modules/unictype/property-unified-ideograph (Depends-on,
38691         configure.ac): Likewise.
38692         * modules/unictype/property-uppercase (Depends-on, configure.ac):
38693         Likewise.
38694         * modules/unictype/property-variation-selector (Depends-on,
38695         configure.ac): Likewise.
38696         * modules/unictype/property-white-space (Depends-on, configure.ac):
38697         Likewise.
38698         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
38699         Likewise.
38700         * modules/unictype/property-xid-start (Depends-on, configure.ac):
38701         Likewise.
38702         * modules/unictype/property-zero-width (Depends-on, configure.ac):
38703         Likewise.
38704         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
38705         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
38706         Likewise.
38707
38708 2009-12-31  Bruno Haible  <bruno@clisp.org>
38709
38710         Remove unnecessary AC_C_INLINE invocation.
38711         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
38712         since 2009-08-21.
38713
38714 2009-12-31  Jim Meyering  <meyering@redhat.com>
38715
38716         maint.mk: don't require explicit gpg_key_ID in cfg.mk
38717         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
38718         With this change, we can all remove the gpg_key_ID = ... definition
38719         from our respective cfg.mk files.
38720
38721         maint.mk: create announcement template in ~/, not in /tmp
38722         * top/maint.mk (emit_upload_commands): Adjust.
38723         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
38724         Remove temporary file, .ci-msg.
38725
38726 2009-12-31  Eric Blake  <ebb9@byu.net>
38727
38728         link-warning: always build headers with link warnings
38729         * modules/arpa_inet (Makefile.am): Always build replacement
38730         header.
38731         * modules/ctype (Makefile.am): Likewise.
38732         * modules/dirent (Makefile.am): Likewise.
38733         * modules/inttypes (Makefile.am): Likewise.
38734         * modules/langinfo (Makefile.am): Likewise.
38735         * modules/locale (Makefile.am): Likewise.
38736         * modules/spawn (Makefile.am): Likewise.
38737         * modules/sys_file (Makefile.am): Likewise.
38738         * modules/sys_ioctl (Makefile.am): Likewise.
38739         * modules/sys_select (Makefile.am): Likewise.
38740         * modules/sys_socket (Makefile.am): Likewise.
38741         * modules/sys_times (Makefile.am): Likewise.
38742         * modules/sys_utsname (Makefile.am): Likewise.
38743         * modules/sys_wait (Makefile.am): Likewise.
38744         * modules/wchar (Makefile.am): Likewise.
38745         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
38746         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
38747         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
38748         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
38749         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
38750         Likewise.
38751         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
38752         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
38753         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
38754         Likewise.
38755         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
38756         Likewise.
38757         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
38758         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
38759         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
38760         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38761         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
38762         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
38763         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
38764         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
38765         (gl_WCHAR_H_DEFAULTS): Likewise.
38766
38767 2009-12-31  Eric Blake  <ebb9@byu.net>
38768
38769         signal, spawn: use link warnings
38770         * lib/signal.in.h (sigset_t): Make unconditional.
38771         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
38772         (sigpending, sigprocmask, sigaction): Add link warnings.
38773         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
38774         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
38775         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
38776         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
38777         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
38778         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
38779         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
38780         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
38781         (posix_spawn_file_actions_destroy)
38782         (posix_spawn_file_actions_addopen)
38783         (posix_spawn_file_actions_addclose)
38784         (posix_spawn_file_actions_adddup2): Likewise.
38785         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
38786         * tests/test-signal.c (main): Enhance test.
38787
38788         spawn: improve wrapper support
38789         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
38790         (gl_SPAWN_H_DEFAULTS): New defaults.
38791         * modules/spawn (Makefile.am): Substitute them.
38792         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
38793         Only declare if missing or broken.
38794
38795         sys_times, sys_utsname: use include_next
38796         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
38797         header.
38798         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
38799         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
38800         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
38801         * modules/sys_times (Depends-on): Add include_next.
38802         (Makefile.am): Substitute additional values.
38803         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
38804         * lib/sys_times.in.h (includes): Include native header, if
38805         available.
38806         * lib/sys_utsname.in.h (includes): Likewise.
38807         * tests/test-sys_times.c (main): Enhance test.
38808
38809         fdutimensat: revert prior patch
38810         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
38811         utimens.h.
38812         Reported by Bruno Haible.
38813
38814 2009-12-30  Eric Blake  <ebb9@byu.net>
38815
38816         sys_wait: drop link-warning dependency
38817         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
38818         link-warning efforts.
38819         * lib/sys_wait.in.h: Likewise.
38820
38821         fdutimensat: remove bogus dependency
38822         * modules/fdutimensat (Depends-on): Drop inline.
38823
38824         unistd: fix typo
38825         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
38826
38827 2009-12-30  Bruno Haible  <bruno@clisp.org>
38828
38829         Fix compilation error with Solaris cc.
38830         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
38831         * lib/unicase/u16-is-invariant.c: Likewise.
38832         * lib/unicase/u32-is-invariant.c: Likewise.
38833         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
38834
38835 2009-12-30  Bruno Haible  <bruno@clisp.org>
38836
38837         Fix test crash.
38838         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
38839         locales.
38840         Reported by Simon Josefsson <simon@josefsson.org>.
38841
38842 2009-12-30  Bruno Haible  <bruno@clisp.org>
38843
38844         Fix compilation error on most platforms.
38845         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
38846         Reported by Simon Josefsson <simon@josefsson.org>
38847         and Nelson H. F. Beebe <beebe@math.utah.edu>.
38848
38849 2009-12-30  Eric Blake  <ebb9@byu.net>
38850
38851         futimens, utimensat: work around ntfs-3g bug
38852         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
38853         a ctime bug is present, and expand workaround to cover ntfs-3g.
38854         * lib/utimens.c (fdutimens, lutimens): Likewise.
38855         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
38856         (validate_timespec): Adjust return value.
38857         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
38858         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
38859         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
38860
38861 2009-12-29  Eric Blake  <ebb9@byu.net>
38862
38863         link-warning: make usage consistent
38864         * modules/ctype (Depends-on): Add link-warning.
38865         (Makefile.am): Update rules accordingly.
38866         * modules/langinfo (Depends-on, Makefile.am): Likewise.
38867         * modules/locale (Depends-on, Makefile.am): Likewise.
38868         * modules/sys_file (Makefile.am): Likewise.
38869         * modules/getopt-posix (Makefile.am): Delete unused link warning
38870         efforts.
38871         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
38872         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
38873         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
38874         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
38875
38876         stdio: remove unused variables
38877         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
38878         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
38879         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
38880
38881         tests: test more substitute headers
38882         * modules/ctype-tests: New file.
38883         * modules/dirent-tests: Likewise.
38884         * modules/spawn-tests: Likewise.
38885         * modules/sys_file-tests: Likewise.
38886         * modules/sys_ioctl-tests: Likewise.
38887         * modules/sys_wait-tests: Likewise.
38888         * tests/test-ctype.c: Likewise.
38889         * tests/test-dirent.c: Likewise.
38890         * tests/test-spawn.c: Likewise.
38891         * tests/test-sys_file.c: Likewise.
38892         * tests/test-sys_ioctl.c: Likewise.
38893         * tests/test-sys_wait.c: Likewise.
38894         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
38895         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
38896         whether or not flock is in use.
38897
38898         tests: remove License section from module
38899         * modules/arpa_inet-tests: Remove unneeded section.
38900         * modules/byteswap-tests: Likewise.
38901         * modules/ceilf-tests: Likewise.
38902         * modules/ceill-tests: Likewise.
38903         * modules/crypto/des-tests: Likewise.
38904         * modules/crypto/gc-arcfour-tests: Likewise.
38905         * modules/crypto/gc-arctwo-tests: Likewise.
38906         * modules/crypto/gc-des-tests: Likewise.
38907         * modules/crypto/gc-hmac-md5-tests: Likewise.
38908         * modules/crypto/gc-hmac-sha1-tests: Likewise.
38909         * modules/crypto/gc-md2-tests: Likewise.
38910         * modules/crypto/gc-md4-tests: Likewise.
38911         * modules/crypto/gc-md5-tests: Likewise.
38912         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
38913         * modules/crypto/gc-rijndael-tests: Likewise.
38914         * modules/crypto/gc-sha1-tests: Likewise.
38915         * modules/crypto/gc-tests: Likewise.
38916         * modules/crypto/md2-tests: Likewise.
38917         * modules/crypto/md4-tests: Likewise.
38918         * modules/fcntl-h-tests: Likewise.
38919         * modules/floorf-tests: Likewise.
38920         * modules/floorl-tests: Likewise.
38921         * modules/frexp-nolibm-tests: Likewise.
38922         * modules/frexp-tests: Likewise.
38923         * modules/frexpl-nolibm-tests: Likewise.
38924         * modules/frexpl-tests: Likewise.
38925         * modules/getaddrinfo-tests: Likewise.
38926         * modules/inttypes-tests: Likewise.
38927         * modules/isfinite-tests: Likewise.
38928         * modules/isinf-tests: Likewise.
38929         * modules/ldexpl-tests: Likewise.
38930         * modules/locale-tests: Likewise.
38931         * modules/math-tests: Likewise.
38932         * modules/netdb-tests: Likewise.
38933         * modules/netinet_in-tests: Likewise.
38934         * modules/printf-frexp-tests: Likewise.
38935         * modules/printf-frexpl-tests: Likewise.
38936         * modules/priv-set-tests: Likewise.
38937         * modules/random_r-tests: Likewise.
38938         * modules/round-tests: Likewise.
38939         * modules/roundf-tests: Likewise.
38940         * modules/roundl-tests: Likewise.
38941         * modules/search-tests: Likewise.
38942         * modules/select-tests: Likewise.
38943         * modules/signal-tests: Likewise.
38944         * modules/stdbool-tests: Likewise.
38945         * modules/stddef-tests: Likewise.
38946         * modules/stdint-tests: Likewise.
38947         * modules/stdio-tests: Likewise.
38948         * modules/stdlib-tests: Likewise.
38949         * modules/string-tests: Likewise.
38950         * modules/strings-tests: Likewise.
38951         * modules/sys_select-tests: Likewise.
38952         * modules/sys_socket-tests: Likewise.
38953         * modules/sys_stat-tests: Likewise.
38954         * modules/sys_time-tests: Likewise.
38955         * modules/sys_utsname-tests: Likewise.
38956         * modules/sysexits-tests: Likewise.
38957         * modules/time-tests: Likewise.
38958         * modules/trunc-tests: Likewise.
38959         * modules/truncf-tests: Likewise.
38960         * modules/truncl-tests: Likewise.
38961         * modules/tsearch-tests: Likewise.
38962         * modules/unistd-tests: Likewise.
38963         * modules/wchar-tests: Likewise.
38964         * modules/wctype-tests: Likewise.
38965
38966         tests: fix license on several tests
38967         * tests/test-des.c: Update to GPLv3+.
38968         * tests/test-flock.c: Likewise.
38969         * tests/test-fsync.c: Likewise.
38970         * tests/test-futimens.h: Likewise.
38971         * tests/test-gc-arcfour.c: Likewise.
38972         * tests/test-gc-arctwo.c: Likewise.
38973         * tests/test-gc-des.c: Likewise.
38974         * tests/test-gc-hmac-md5.c: Likewise.
38975         * tests/test-gc-hmac-sha1.c: Likewise.
38976         * tests/test-gc-md2.c: Likewise.
38977         * tests/test-gc-md4.c: Likewise.
38978         * tests/test-gc-md5.c: Likewise.
38979         * tests/test-gc-pbkdf2-sha1.c: Likewise.
38980         * tests/test-gc-rijndael.c: Likewise.
38981         * tests/test-gc-sha1.c: Likewise.
38982         * tests/test-gc.c: Likewise.
38983         * tests/test-getcwd.c: Likewise.
38984         * tests/test-link.c: Likewise.
38985         * tests/test-link.h: Likewise.
38986         * tests/test-lutimens.h: Likewise.
38987         * tests/test-md2.c: Likewise.
38988         * tests/test-md4.c: Likewise.
38989         * tests/test-mkdir.h: Likewise.
38990         * tests/test-rename.c: Likewise.
38991         * tests/test-rename.h: Likewise.
38992         * tests/test-safe-alloc.c: Likewise.
38993         * tests/test-utimens-common.h: Likewise.
38994         * tests/test-utimens.h: Likewise.
38995
38996         maint: sync license texts
38997         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
38998         * doc/gpl-3.0.texi: Revert copyright year update.
38999         * doc/lgpl-3.0.texi: Likewise.
39000
39001 2009-12-29  Jim Meyering  <meyering@redhat.com>
39002
39003         update nearly all FSF copyright year lists to include 2009
39004         The files named by the following are exempted:
39005             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
39006               test -f "$dst" && { echo "$dst"; continue; }
39007               test -d "$dst" || continue
39008               echo "$dst"/$(basename "$src")
39009             done > exempt
39010             git ls-files tests/unictype >> exempt
39011         In the remaining files, convert to all-interval notation if
39012         - there is already at least one year interval like 2000-2003
39013         - the file is maintained by me
39014         - the file is in lib/uni*/, where that style already prevails
39015         Otherwise, use update-copyright's default.
39016
39017 2009-12-29  Simon Josefsson  <simon@josefsson.org>
39018         and Eric Blake  <ebb9@byu.net>
39019
39020         tests: don't require debug system() to pass
39021         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
39022         * tests/test-rmdir.h (test_rmdir_func): Likewise.
39023         * tests/test-unlink.h (test_unlink_func): Likewise.
39024         * tests/test-fstatat.c (main): ...into callers.
39025         * tests/test-lstat.c (main): Likewise.
39026         * tests/test-rmdir.c (main): Likewise.
39027         * tests/test-unlink.c (main): Likewise.
39028         * tests/test-unlinkat.c (main): Likewise.
39029         * tests/test-areadlink-with-size.c (main): Don't require a
39030         debug-only system call to pass, aiding cross-testing to mingw.
39031         * tests/test-areadlink.c (main): Likewise.
39032         * tests/test-areadlinkat-with-size.c (main): Likewise.
39033         * tests/test-areadlinkat.c (main): Likewise.
39034         * tests/test-canonicalize-lgpl.c (main): Likewise.
39035         * tests/test-canonicalize.c (main): Likewise.
39036         * tests/test-chown.c (main): Likewise.
39037         * tests/test-fchownat.c (main): Likewise.
39038         * tests/test-lchown.c (main): Likewise.
39039         * tests/test-fdutimensat.c (main): Likewise.
39040         * tests/test-futimens.c (main): Likewise.
39041         * tests/test-link.c (main): Likewise.
39042         * tests/test-linkat.c (main): Likewise.
39043         * tests/test-mkdir.c (main): Likewise.
39044         * tests/test-mkdirat.c (main): Likewise.
39045         * tests/test-mkfifo.c (main): Likewise.
39046         * tests/test-mkfifoat.c (main): Likewise.
39047         * tests/test-mknod.c (main): Likewise.
39048         * tests/test-readlink.c (main): Likewise.
39049         * tests/test-remove.c (main): Likewise.
39050         * tests/test-rename.c (main): Likewise.
39051         * tests/test-renameat.c (main): Likewise.
39052         * tests/test-symlink.c (main): Likewise.
39053         * tests/test-symlinkat.c (main): Likewise.
39054         * tests/test-utimens.c (main): Likewise.
39055         * tests/test-utimensat.c (main): Likewise.
39056
39057 2009-12-29  Simon Josefsson  <simon@josefsson.org>
39058
39059         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
39060         on $(UNUSED_PARAMETER_H) to avoid build failure.
39061
39062 2009-12-28  Jim Meyering  <meyering@redhat.com>
39063
39064         update-copyright: you may specify a max. line length other than 72
39065         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
39066
39067         maint: use consistent FSF copyright line syntax
39068         * lib/posixtm.c: Add missing comma in FSF copyright line.
39069         * lib/posixtm.h: Likewise.
39070         * lib/getugroups.c: Add missing ", Inc.".
39071
39072         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
39073         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
39074         FSF copyright line.  Remove trailing blanks.
39075
39076 2009-12-28  Eric Blake  <ebb9@byu.net>
39077
39078         test-dup2: reduce dependencies
39079         * modules/cloexec (Configure.ac): Set witness.
39080         * modules/dup2-tests (Depends-on): Drop cloexec.
39081         * tests/test-dup2.c (main): Skip portion of test if cloexec module
39082         not present.
39083         Suggested by Bruno Haible.
39084
39085 2009-12-26  Bruno Haible  <bruno@clisp.org>
39086
39087         Remove an unneeded dependency.
39088         * modules/fseterr (Depends-on): Remove dup2.
39089
39090 2009-12-26  Eric Blake  <ebb9@byu.net>
39091
39092         tests: use macros.h in more places
39093         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
39094         (ASSERT_STREAM): Provide default of stderr.
39095         * tests/test-dirent-safer.c: Include macros.h, using alternate
39096         stream for assertions.
39097         * tests/test-dup-safer.c: Likewise.
39098         * tests/test-freopen-safer.c: Likewise.
39099         * tests/test-getopt.c: Likewise.
39100         * tests/test-openat-safer.c: Likewise.
39101         * tests/test-pipe.c: Likewise.
39102         * tests/test-popen-safer.c: Likewise.
39103         * modules/dirent-safer-tests (Files): Include macros.h.
39104         * modules/unistd-safer-tests (Files): Likewise.
39105         * modules/freopen-safer-tests (Files): Likewise.
39106         * modules/getopt-posix-tests (Files): Likewise.
39107         * modules/openat-safer-tests (Files): Likewise.
39108         * modules/pipe-tests (Files): Likewise.
39109
39110 2009-12-26  Bruno Haible  <bruno@clisp.org>
39111
39112         javacomp: Portability fix.
39113         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
39114         that it also works on Solaris.
39115
39116 2009-12-26  Bruno Haible  <bruno@clisp.org>
39117
39118         localename: Fix storage allocation of gl_locale_name_thread's result.
39119         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
39120         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
39121         all platforms that have 'uselocale'.
39122         (gl_locale_name_thread_unsafe): New function, extracted from
39123         gl_locale_name_thread.
39124         (gl_locale_name_thread): Call struniq on all platforms that have
39125         'uselocale'.
39126         * tests/test-localename.c (test_locale_name_thread): Check that the
39127         resulting strings are permanently allocated.
39128         * modules/localename-tests (Depends-on): Add strdup.
39129
39130 2009-12-26  Bruno Haible  <bruno@clisp.org>
39131
39132         * tests/test-localename.c (categories): Fill in the strings.
39133
39134 2009-12-26  Jim Meyering  <meyering@redhat.com>
39135
39136         isdir: complete the removal of m4/isdir.m4
39137         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
39138
39139         isdir: clean up, since at least grep still uses it
39140         * lib/isdir.c: Include "isdir.h".
39141         (S_ISDIR): Remove now-unneeded definition.
39142         * modules/isdir (Files): Add lib/isdir.h.
39143         * lib/isdir.h: New file, with declaration.
39144         * m4/isdir.m4: Remove file -- unneeded.
39145
39146 2009-12-25  Bruno Haible  <bruno@clisp.org>
39147
39148         selinux-h: Make generated .h files standalone.
39149         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
39150         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
39151         * lib/se-selinux.in.h: Likewise.
39152         * modules/selinux-h (Depends-on): Add unused-parameter.
39153         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
39154         selinux/selinux.h and selinux/context.h.
39155         Suggested by Eric Blake.
39156
39157 2009-12-25  Bruno Haible  <bruno@clisp.org>
39158
39159         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
39160         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
39161         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
39162         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
39163         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
39164
39165 2009-12-24  Bruno Haible  <bruno@clisp.org>
39166
39167         openat: Fix warning.
39168         * lib/openat-proc.c: Include <unistd.h>.
39169
39170 2009-12-24  Bruno Haible  <bruno@clisp.org>
39171
39172         New module 'unused-parameter'.
39173         * build-aux/unused-parameter.h: New file, extracted from earlier
39174         gnulib-common.m4.
39175         * modules/unused-parameter: New file.
39176         * lib/unistr.h: Include unused-parameter.h.
39177         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
39178         _GL_UNUSED.
39179         * modules/unistr/base (Depends-on): Add unused-parameter.
39180
39181 2009-12-24  Bruno Haible  <bruno@clisp.org>
39182
39183         Add missing dependencies to 'extensions' module.
39184         * m4/extensions.m4: Add comment.
39185         * modules/accept4 (Depends-on): Add extensions.
39186         * modules/dup3 (Depends-on): Likewise.
39187         * modules/fcntl (Depends-on): Likewise.
39188         * modules/futimens (Depends-on): Likewise.
39189         * modules/mknod (Depends-on): Likewise.
39190         * modules/pipe2 (Depends-on): Likewise.
39191         * modules/stat-time (Depends-on): Likewise.
39192         * modules/strcasestr-simple (Depends-on): Likewise.
39193         * modules/strsignal (Depends-on): Likewise.
39194         * modules/utimensat (Depends-on): Likewise.
39195         * modules/localcharset (Depends-on): Likewise. Needed because of
39196         gl_FCNTL_O_FLAGS.
39197         * modules/wcrtomb (Depends-on): Likewise. Needed because of
39198         AC_TYPE_MBSTATE_T.
39199         * modules/wcsnrtombs (Depends-on): Likewise.
39200         * modules/wcsrtombs (Depends-on): Likewise.
39201
39202 2009-12-24  Bruno Haible  <bruno@clisp.org>
39203
39204         binary-io: Avoid gcc warning due to SET_BINARY.
39205         * lib/binary-io.h (SET_BINARY): Cast the result to void.
39206         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
39207
39208 2009-12-24  Bruno Haible  <bruno@clisp.org>
39209
39210         Avoid future namespace pollution on glibc systems.
39211         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
39212         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
39213         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
39214         glibc systems.
39215
39216 2009-12-24  Bruno Haible  <bruno@clisp.org>
39217
39218         Refactor common macros used in tests.
39219         * tests/macros.h: New file.
39220         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
39221         and/or <stdlib.h>, if appropriate.
39222         (ASSERT, SIZEOF): Remove macros.
39223         * tests/test-areadlink-with-size.c: Likewise.
39224         * tests/test-areadlinkat.c: Likewise.
39225         * tests/test-areadlinkat-with-size.c: Likewise.
39226         * tests/test-argmatch.c: Likewise.
39227         * tests/test-argv-iter.c: Likewise.
39228         * tests/test-array-mergesort.c: Likewise.
39229         * tests/test-array_list.c: Likewise.
39230         * tests/test-array_oset.c: Likewise.
39231         * tests/test-avltree_list.c: Likewise.
39232         * tests/test-avltree_oset.c: Likewise.
39233         * tests/test-avltreehash_list.c: Likewise.
39234         * tests/test-base64.c: Likewise.
39235         * tests/test-binary-io.c: Likewise.
39236         * tests/test-bitrotate.c: Likewise.
39237         * tests/test-btowc.c: Likewise.
39238         * tests/test-byteswap.c: Likewise.
39239         * tests/test-c-ctype.c: Likewise.
39240         * tests/test-c-stack.c: Likewise.
39241         * tests/test-c-strcasecmp.c: Likewise.
39242         * tests/test-c-strcasestr.c: Likewise.
39243         * tests/test-c-strncasecmp.c: Likewise.
39244         * tests/test-c-strstr.c: Likewise.
39245         * tests/test-canonicalize-lgpl.c: Likewise.
39246         * tests/test-canonicalize.c: Likewise.
39247         * tests/test-carray_list.c: Likewise.
39248         * tests/test-ceilf1.c: Likewise.
39249         * tests/test-ceilf2.c: Likewise.
39250         * tests/test-ceill.c: Likewise.
39251         * tests/test-chown.c: Likewise.
39252         * tests/test-cloexec.c: Likewise.
39253         * tests/test-copy-acl.c: Likewise.
39254         * tests/test-copy-file.c: Likewise.
39255         * tests/test-count-one-bits.c: Likewise.
39256         * tests/test-dprintf-posix.c: Likewise.
39257         * tests/test-dup2.c: Likewise.
39258         * tests/test-dup3.c: Likewise.
39259         * tests/test-duplocale.c: Likewise.
39260         * tests/test-fbufmode.c: Likewise.
39261         * tests/test-fchdir.c: Likewise.
39262         * tests/test-fchownat.c: Likewise.
39263         * tests/test-fcntl-safer.c: Likewise.
39264         * tests/test-fcntl.c: Likewise.
39265         * tests/test-fdopendir.c: Likewise.
39266         * tests/test-fdutimensat.c: Likewise.
39267         * tests/test-fflush2.c: Likewise.
39268         * tests/test-file-has-acl.c: Likewise.
39269         * tests/test-filevercmp.c: Likewise.
39270         * tests/test-flock.c: Likewise.
39271         * tests/test-floorf1.c: Likewise.
39272         * tests/test-floorf2.c: Likewise.
39273         * tests/test-floorl.c: Likewise.
39274         * tests/test-fnmatch.c: Likewise.
39275         * tests/test-fopen.h: Likewise.
39276         * tests/test-fpending.c: Likewise.
39277         * tests/test-fprintf-posix.c: Likewise.
39278         * tests/test-fpurge.c: Likewise.
39279         * tests/test-freadable.c: Likewise.
39280         * tests/test-freadahead.c: Likewise.
39281         * tests/test-freading.c: Likewise.
39282         * tests/test-freadptr.c: Likewise.
39283         * tests/test-freadptr2.c: Likewise.
39284         * tests/test-freadseek.c: Likewise.
39285         * tests/test-freopen.c: Likewise.
39286         * tests/test-frexp.c: Likewise.
39287         * tests/test-frexpl.c: Likewise.
39288         * tests/test-fseek.c: Likewise.
39289         * tests/test-fseeko.c: Likewise.
39290         * tests/test-fstatat.c: Likewise.
39291         * tests/test-fstrcmp.c: Likewise.
39292         * tests/test-fsync.c: Likewise.
39293         * tests/test-ftell.c: Likewise.
39294         * tests/test-ftello.c: Likewise.
39295         * tests/test-func.c: Likewise.
39296         * tests/test-futimens.c: Likewise.
39297         * tests/test-fwritable.c: Likewise.
39298         * tests/test-fwriting.c: Likewise.
39299         * tests/test-getcwd.c: Likewise.
39300         * tests/test-getdate.c: Likewise.
39301         * tests/test-getdelim.c: Likewise.
39302         * tests/test-getdtablesize.c: Likewise.
39303         * tests/test-getgroups.c: Likewise.
39304         * tests/test-getline.c: Likewise.
39305         * tests/test-getndelim2.c: Likewise.
39306         * tests/test-glob.c: Likewise.
39307         * tests/test-hash.c: Likewise.
39308         * tests/test-i-ring.c: Likewise.
39309         * tests/test-iconv-utf.c: Likewise.
39310         * tests/test-iconv.c: Likewise.
39311         * tests/test-idpriv-drop.c: Likewise.
39312         * tests/test-idpriv-droptemp.c: Likewise.
39313         * tests/test-inet_ntop.c: Likewise.
39314         * tests/test-inet_pton.c: Likewise.
39315         * tests/test-isblank.c: Likewise.
39316         * tests/test-isfinite.c: Likewise.
39317         * tests/test-isinf.c: Likewise.
39318         * tests/test-isnan.c: Likewise.
39319         * tests/test-isnand.h: Likewise.
39320         * tests/test-isnanf.h: Likewise.
39321         * tests/test-isnanl.h: Likewise.
39322         * tests/test-lchown.c: Likewise.
39323         * tests/test-ldexpl.c: Likewise.
39324         * tests/test-link.c: Likewise.
39325         * tests/test-linkat.c: Likewise.
39326         * tests/test-linked_list.c: Likewise.
39327         * tests/test-linkedhash_list.c: Likewise.
39328         * tests/test-localename.c: Likewise.
39329         * tests/test-lseek.c: Likewise.
39330         * tests/test-lstat.c: Likewise.
39331         * tests/test-mbmemcasecmp.c: Likewise.
39332         * tests/test-mbmemcasecoll.c: Likewise.
39333         * tests/test-mbrtowc.c: Likewise.
39334         * tests/test-mbscasecmp.c: Likewise.
39335         * tests/test-mbscasestr1.c: Likewise.
39336         * tests/test-mbscasestr2.c: Likewise.
39337         * tests/test-mbscasestr3.c: Likewise.
39338         * tests/test-mbscasestr4.c: Likewise.
39339         * tests/test-mbschr.c: Likewise.
39340         * tests/test-mbscspn.c: Likewise.
39341         * tests/test-mbsinit.c: Likewise.
39342         * tests/test-mbsncasecmp.c: Likewise.
39343         * tests/test-mbsnrtowcs.c: Likewise.
39344         * tests/test-mbspbrk.c: Likewise.
39345         * tests/test-mbspcasecmp.c: Likewise.
39346         * tests/test-mbsrchr.c: Likewise.
39347         * tests/test-mbsrtowcs.c: Likewise.
39348         * tests/test-mbsspn.c: Likewise.
39349         * tests/test-mbsstr1.c: Likewise.
39350         * tests/test-mbsstr2.c: Likewise.
39351         * tests/test-mbsstr3.c: Likewise.
39352         * tests/test-memchr.c: Likewise.
39353         * tests/test-memchr2.c: Likewise.
39354         * tests/test-memcmp.c: Likewise.
39355         * tests/test-memmem.c: Likewise.
39356         * tests/test-memrchr.c: Likewise.
39357         * tests/test-mkdir.c: Likewise.
39358         * tests/test-mkdirat.c: Likewise.
39359         * tests/test-mkfifo.c: Likewise.
39360         * tests/test-mkfifoat.c: Likewise.
39361         * tests/test-mknod.c: Likewise.
39362         * tests/test-nanosleep.c: Likewise.
39363         * tests/test-nl_langinfo.c: Likewise.
39364         * tests/test-obstack-printf.c: Likewise.
39365         * tests/test-open.c: Likewise.
39366         * tests/test-openat.c: Likewise.
39367         * tests/test-pipe-filter-gi1.c: Likewise.
39368         * tests/test-pipe-filter-gi2-main.c: Likewise.
39369         * tests/test-pipe-filter-ii1.c: Likewise.
39370         * tests/test-pipe-filter-ii2-main.c: Likewise.
39371         * tests/test-pipe2.c: Likewise.
39372         * tests/test-popen.h: Likewise.
39373         * tests/test-posixtm.c: Likewise.
39374         * tests/test-pread.c: Likewise.
39375         * tests/test-printf-frexp.c: Likewise.
39376         * tests/test-printf-frexpl.c: Likewise.
39377         * tests/test-printf-posix.c: Likewise.
39378         * tests/test-priv-set.c: Likewise.
39379         * tests/test-quotearg.c: Likewise.
39380         * tests/test-random_r.c: Likewise.
39381         * tests/test-rawmemchr.c: Likewise.
39382         * tests/test-rbtree_list.c: Likewise.
39383         * tests/test-rbtree_oset.c: Likewise.
39384         * tests/test-rbtreehash_list.c: Likewise.
39385         * tests/test-readlink.c: Likewise.
39386         * tests/test-remove.c: Likewise.
39387         * tests/test-rename.c: Likewise.
39388         * tests/test-renameat.c: Likewise.
39389         * tests/test-rmdir.c: Likewise.
39390         * tests/test-round1.c: Likewise.
39391         * tests/test-roundf1.c: Likewise.
39392         * tests/test-roundl.c: Likewise.
39393         * tests/test-safe-alloc.c: Likewise.
39394         * tests/test-sameacls.c: Likewise.
39395         * tests/test-set-mode-acl.c: Likewise.
39396         * tests/test-setenv.c: Likewise.
39397         * tests/test-sigaction.c: Likewise.
39398         * tests/test-signbit.c: Likewise.
39399         * tests/test-sleep.c: Likewise.
39400         * tests/test-snprintf-posix.c: Likewise.
39401         * tests/test-snprintf.c: Likewise.
39402         * tests/test-sprintf-posix.c: Likewise.
39403         * tests/test-stat-time.c: Likewise.
39404         * tests/test-stat.c: Likewise.
39405         * tests/test-strcasestr.c: Likewise.
39406         * tests/test-strchrnul.c: Likewise.
39407         * tests/test-strerror.c: Likewise.
39408         * tests/test-striconv.c: Likewise.
39409         * tests/test-striconveh.c: Likewise.
39410         * tests/test-striconveha.c: Likewise.
39411         * tests/test-strsignal.c: Likewise.
39412         * tests/test-strstr.c: Likewise.
39413         * tests/test-strtod.c: Likewise.
39414         * tests/test-strverscmp.c: Likewise.
39415         * tests/test-symlink.c: Likewise.
39416         * tests/test-symlinkat.c: Likewise.
39417         * tests/test-trunc1.c: Likewise.
39418         * tests/test-trunc2.c: Likewise.
39419         * tests/test-truncf1.c: Likewise.
39420         * tests/test-truncf2.c: Likewise.
39421         * tests/test-truncl.c: Likewise.
39422         * tests/test-uname.c: Likewise.
39423         * tests/test-unlink.c: Likewise.
39424         * tests/test-unlinkat.c: Likewise.
39425         * tests/test-unsetenv.c: Likewise.
39426         * tests/test-usleep.c: Likewise.
39427         * tests/test-utimens.c: Likewise.
39428         * tests/test-utimensat.c: Likewise.
39429         * tests/test-vasnprintf-posix.c: Likewise.
39430         * tests/test-vasnprintf-posix2.c: Likewise.
39431         * tests/test-vasnprintf.c: Likewise.
39432         * tests/test-vasprintf-posix.c: Likewise.
39433         * tests/test-vasprintf.c: Likewise.
39434         * tests/test-vdprintf-posix.c: Likewise.
39435         * tests/test-vfprintf-posix.c: Likewise.
39436         * tests/test-vprintf-posix.c: Likewise.
39437         * tests/test-vsnprintf-posix.c: Likewise.
39438         * tests/test-vsnprintf.c: Likewise.
39439         * tests/test-vsprintf-posix.c: Likewise.
39440         * tests/test-wcrtomb.c: Likewise.
39441         * tests/test-wcsnrtombs.c: Likewise.
39442         * tests/test-wcsrtombs.c: Likewise.
39443         * tests/test-wctype.c: Likewise.
39444         * tests/test-wcwidth.c: Likewise.
39445         * tests/test-xfprintf-posix.c: Likewise.
39446         * tests/test-xmemdup0.c: Likewise.
39447         * tests/test-xprintf-posix.c: Likewise.
39448         * tests/test-xvasprintf.c: Likewise.
39449         * tests/unicase/test-locale-language.c: Likewise.
39450         * tests/unicase/test-mapping-part1.h: Likewise.
39451         * tests/unicase/test-predicate-part1.h: Likewise.
39452         * tests/unicase/test-u8-casecmp.c: Likewise.
39453         * tests/unicase/test-u8-casecoll.c: Likewise.
39454         * tests/unicase/test-u8-casefold.c: Likewise.
39455         * tests/unicase/test-u8-is-cased.c: Likewise.
39456         * tests/unicase/test-u8-is-casefolded.c: Likewise.
39457         * tests/unicase/test-u8-is-lowercase.c: Likewise.
39458         * tests/unicase/test-u8-is-titlecase.c: Likewise.
39459         * tests/unicase/test-u8-is-uppercase.c: Likewise.
39460         * tests/unicase/test-u8-tolower.c: Likewise.
39461         * tests/unicase/test-u8-totitle.c: Likewise.
39462         * tests/unicase/test-u8-toupper.c: Likewise.
39463         * tests/unicase/test-u16-casecmp.c: Likewise.
39464         * tests/unicase/test-u16-casecoll.c: Likewise.
39465         * tests/unicase/test-u16-casefold.c: Likewise.
39466         * tests/unicase/test-u16-is-cased.c: Likewise.
39467         * tests/unicase/test-u16-is-casefolded.c: Likewise.
39468         * tests/unicase/test-u16-is-lowercase.c: Likewise.
39469         * tests/unicase/test-u16-is-titlecase.c: Likewise.
39470         * tests/unicase/test-u16-is-uppercase.c: Likewise.
39471         * tests/unicase/test-u16-tolower.c: Likewise.
39472         * tests/unicase/test-u16-totitle.c: Likewise.
39473         * tests/unicase/test-u16-toupper.c: Likewise.
39474         * tests/unicase/test-u32-casecmp.c: Likewise.
39475         * tests/unicase/test-u32-casecoll.c: Likewise.
39476         * tests/unicase/test-u32-casefold.c: Likewise.
39477         * tests/unicase/test-u32-is-cased.c: Likewise.
39478         * tests/unicase/test-u32-is-casefolded.c: Likewise.
39479         * tests/unicase/test-u32-is-lowercase.c: Likewise.
39480         * tests/unicase/test-u32-is-titlecase.c: Likewise.
39481         * tests/unicase/test-u32-is-uppercase.c: Likewise.
39482         * tests/unicase/test-u32-tolower.c: Likewise.
39483         * tests/unicase/test-u32-totitle.c: Likewise.
39484         * tests/unicase/test-u32-toupper.c: Likewise.
39485         * tests/unicase/test-ulc-casecmp.c: Likewise.
39486         * tests/unicase/test-ulc-casecoll.c: Likewise.
39487         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
39488         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
39489         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
39490         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
39491         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
39492         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
39493         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
39494         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
39495         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
39496         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
39497         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
39498         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
39499         * tests/unictype/test-bidi_byname.c: Likewise.
39500         * tests/unictype/test-bidi_name.c: Likewise.
39501         * tests/unictype/test-bidi_of.c: Likewise.
39502         * tests/unictype/test-bidi_test.c: Likewise.
39503         * tests/unictype/test-block_list.c: Likewise.
39504         * tests/unictype/test-block_of.c: Likewise.
39505         * tests/unictype/test-block_test.c: Likewise.
39506         * tests/unictype/test-categ_and.c: Likewise.
39507         * tests/unictype/test-categ_and_not.c: Likewise.
39508         * tests/unictype/test-categ_byname.c: Likewise.
39509         * tests/unictype/test-categ_name.c: Likewise.
39510         * tests/unictype/test-categ_none.c: Likewise.
39511         * tests/unictype/test-categ_of.c: Likewise.
39512         * tests/unictype/test-categ_or.c: Likewise.
39513         * tests/unictype/test-categ_test_withtable.c: Likewise.
39514         * tests/unictype/test-combining.c: Likewise.
39515         * tests/unictype/test-decdigit.c: Likewise.
39516         * tests/unictype/test-digit.c: Likewise.
39517         * tests/unictype/test-mirror.c: Likewise.
39518         * tests/unictype/test-numeric.c: Likewise.
39519         * tests/unictype/test-pr_byname.c: Likewise.
39520         * tests/unictype/test-pr_test.c: Likewise.
39521         * tests/unictype/test-predicate-part1.h: Likewise.
39522         * tests/unictype/test-scripts.c: Likewise.
39523         * tests/unictype/test-sy_c_ident.c: Likewise.
39524         * tests/unictype/test-sy_java_ident.c: Likewise.
39525         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
39526         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
39527         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
39528         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
39529         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
39530         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
39531         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
39532         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
39533         * tests/uninorm/test-canonical-decomposition.c: Likewise.
39534         * tests/uninorm/test-compat-decomposition.c: Likewise.
39535         * tests/uninorm/test-composition.c: Likewise.
39536         * tests/uninorm/test-decomposing-form.c: Likewise.
39537         * tests/uninorm/test-decomposition.c: Likewise.
39538         * tests/uninorm/test-u8-nfc.c: Likewise.
39539         * tests/uninorm/test-u8-nfd.c: Likewise.
39540         * tests/uninorm/test-u8-nfkc.c: Likewise.
39541         * tests/uninorm/test-u8-nfkd.c: Likewise.
39542         * tests/uninorm/test-u8-normcmp.c: Likewise.
39543         * tests/uninorm/test-u8-normcoll.c: Likewise.
39544         * tests/uninorm/test-u16-nfc.c: Likewise.
39545         * tests/uninorm/test-u16-nfd.c: Likewise.
39546         * tests/uninorm/test-u16-nfkc.c: Likewise.
39547         * tests/uninorm/test-u16-nfkd.c: Likewise.
39548         * tests/uninorm/test-u16-normcmp.c: Likewise.
39549         * tests/uninorm/test-u16-normcoll.c: Likewise.
39550         * tests/uninorm/test-u32-nfc.c: Likewise.
39551         * tests/uninorm/test-u32-nfd.c: Likewise.
39552         * tests/uninorm/test-u32-nfkc.c: Likewise.
39553         * tests/uninorm/test-u32-nfkd.c: Likewise.
39554         * tests/uninorm/test-u32-normalize-big.c: Likewise.
39555         * tests/uninorm/test-u32-normcmp.c: Likewise.
39556         * tests/uninorm/test-u32-normcoll.c: Likewise.
39557         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
39558         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
39559         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
39560         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
39561         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
39562         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
39563         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
39564         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
39565         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
39566         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
39567         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
39568         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
39569         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
39570         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
39571         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
39572         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
39573         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
39574         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
39575         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
39576         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
39577         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
39578         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
39579         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
39580         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
39581         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
39582         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
39583         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
39584         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
39585         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
39586         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
39587         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
39588         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
39589         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
39590         * tests/uniwidth/test-u8-strwidth.c: Likewise.
39591         * tests/uniwidth/test-u8-width.c: Likewise.
39592         * tests/uniwidth/test-u16-strwidth.c: Likewise.
39593         * tests/uniwidth/test-u16-width.c: Likewise.
39594         * tests/uniwidth/test-u32-strwidth.c: Likewise.
39595         * tests/uniwidth/test-u32-width.c: Likewise.
39596         * tests/uniwidth/test-uc_width.c: Likewise.
39597         * tests/uniwidth/test-uc_width2.c: Likewise.
39598         * modules/acl-tests (Files): Add tests/macros.h.
39599         * modules/areadlink-tests (Files): Likewise.
39600         * modules/areadlink-with-size-tests (Files): Likewise.
39601         * modules/areadlinkat-tests (Files): Likewise.
39602         * modules/areadlinkat-with-size-tests (Files): Likewise.
39603         * modules/argmatch-tests (Files): Likewise.
39604         * modules/argv-iter-tests (Files): Likewise.
39605         * modules/array-list-tests (Files): Likewise.
39606         * modules/array-mergesort-tests (Files): Likewise.
39607         * modules/array-oset-tests (Files): Likewise.
39608         * modules/avltree-list-tests (Files): Likewise.
39609         * modules/avltree-oset-tests (Files): Likewise.
39610         * modules/avltreehash-list-tests (Files): Likewise.
39611         * modules/base64-tests (Files): Likewise.
39612         * modules/binary-io-tests (Files): Likewise.
39613         * modules/bitrotate-tests (Files): Likewise.
39614         * modules/btowc-tests (Files): Likewise.
39615         * modules/byteswap-tests (Files): Likewise.
39616         * modules/c-ctype-tests (Files): Likewise.
39617         * modules/c-stack-tests (Files): Likewise.
39618         * modules/c-strcase-tests (Files): Likewise.
39619         * modules/c-strcasestr-tests (Files): Likewise.
39620         * modules/c-strstr-tests (Files): Likewise.
39621         * modules/canonicalize-lgpl-tests (Files): Likewise.
39622         * modules/canonicalize-tests (Files): Likewise.
39623         * modules/carray-list-tests (Files): Likewise.
39624         * modules/ceilf-tests (Files): Likewise.
39625         * modules/ceill-tests (Files): Likewise.
39626         * modules/chown-tests (Files): Likewise.
39627         * modules/cloexec-tests (Files): Likewise.
39628         * modules/copy-file-tests (Files): Likewise.
39629         * modules/count-one-bits-tests (Files): Likewise.
39630         * modules/dprintf-posix-tests (Files): Likewise.
39631         * modules/dup2-tests (Files): Likewise.
39632         * modules/dup3-tests (Files): Likewise.
39633         * modules/duplocale-tests (Files): Likewise.
39634         * modules/fbufmode-tests (Files): Likewise.
39635         * modules/fchdir-tests (Files): Likewise.
39636         * modules/fcntl-safer-tests (Files): Likewise.
39637         * modules/fcntl-tests (Files): Likewise.
39638         * modules/fdopendir-tests (Files): Likewise.
39639         * modules/fdutimensat-tests (Files): Likewise.
39640         * modules/fflush-tests (Files): Likewise.
39641         * modules/filevercmp-tests (Files): Likewise.
39642         * modules/flock-tests (Files): Likewise.
39643         * modules/floorf-tests (Files): Likewise.
39644         * modules/floorl-tests (Files): Likewise.
39645         * modules/fnmatch-tests (Files): Likewise.
39646         * modules/fopen-safer-tests (Files): Likewise.
39647         * modules/fopen-tests (Files): Likewise.
39648         * modules/fpending-tests (Files): Likewise.
39649         * modules/fprintf-posix-tests (Files): Likewise.
39650         * modules/fpurge-tests (Files): Likewise.
39651         * modules/freadable-tests (Files): Likewise.
39652         * modules/freadahead-tests (Files): Likewise.
39653         * modules/freading-tests (Files): Likewise.
39654         * modules/freadptr-tests (Files): Likewise.
39655         * modules/freadseek-tests (Files): Likewise.
39656         * modules/freopen-tests (Files): Likewise.
39657         * modules/frexp-nolibm-tests (Files): Likewise.
39658         * modules/frexp-tests (Files): Likewise.
39659         * modules/frexpl-nolibm-tests (Files): Likewise.
39660         * modules/frexpl-tests (Files): Likewise.
39661         * modules/fseek-tests (Files): Likewise.
39662         * modules/fseeko-tests (Files): Likewise.
39663         * modules/fstrcmp-tests (Files): Likewise.
39664         * modules/fsync-tests (Files): Likewise.
39665         * modules/ftell-tests (Files): Likewise.
39666         * modules/ftello-tests (Files): Likewise.
39667         * modules/func-tests (Files): Likewise.
39668         * modules/futimens-tests (Files): Likewise.
39669         * modules/fwritable-tests (Files): Likewise.
39670         * modules/fwriting-tests (Files): Likewise.
39671         * modules/getcwd-tests (Files): Likewise.
39672         * modules/getdate-tests (Files): Likewise.
39673         * modules/getdelim-tests (Files): Likewise.
39674         * modules/getdtablesize-tests (Files): Likewise.
39675         * modules/getgroups-tests (Files): Likewise.
39676         * modules/getline-tests (Files): Likewise.
39677         * modules/getndelim2-tests (Files): Likewise.
39678         * modules/glob-tests (Files): Likewise.
39679         * modules/hash-tests (Files): Likewise.
39680         * modules/i-ring-tests (Files): Likewise.
39681         * modules/iconv-tests (Files): Likewise.
39682         * modules/iconv_open-utf-tests (Files): Likewise.
39683         * modules/idpriv-drop-tests (Files): Likewise.
39684         * modules/idpriv-droptemp-tests (Files): Likewise.
39685         * modules/inet_ntop-tests (Files): Likewise.
39686         * modules/inet_pton-tests (Files): Likewise.
39687         * modules/isblank-tests (Files): Likewise.
39688         * modules/isfinite-tests (Files): Likewise.
39689         * modules/isinf-tests (Files): Likewise.
39690         * modules/isnan-tests (Files): Likewise.
39691         * modules/isnand-nolibm-tests (Files): Likewise.
39692         * modules/isnand-tests (Files): Likewise.
39693         * modules/isnanf-nolibm-tests (Files): Likewise.
39694         * modules/isnanf-tests (Files): Likewise.
39695         * modules/isnanl-nolibm-tests (Files): Likewise.
39696         * modules/isnanl-tests (Files): Likewise.
39697         * modules/lchown-tests (Files): Likewise.
39698         * modules/ldexpl-tests (Files): Likewise.
39699         * modules/link-tests (Files): Likewise.
39700         * modules/linkat-tests (Files): Likewise.
39701         * modules/linked-list-tests (Files): Likewise.
39702         * modules/linkedhash-list-tests (Files): Likewise.
39703         * modules/localename-tests (Files): Likewise.
39704         * modules/lseek-tests (Files): Likewise.
39705         * modules/lstat-tests (Files): Likewise.
39706         * modules/mbmemcasecmp-tests (Files): Likewise.
39707         * modules/mbmemcasecoll-tests (Files): Likewise.
39708         * modules/mbrtowc-tests (Files): Likewise.
39709         * modules/mbscasecmp-tests (Files): Likewise.
39710         * modules/mbscasestr-tests (Files): Likewise.
39711         * modules/mbschr-tests (Files): Likewise.
39712         * modules/mbscspn-tests (Files): Likewise.
39713         * modules/mbsinit-tests (Files): Likewise.
39714         * modules/mbsncasecmp-tests (Files): Likewise.
39715         * modules/mbsnrtowcs-tests (Files): Likewise.
39716         * modules/mbspbrk-tests (Files): Likewise.
39717         * modules/mbspcasecmp-tests (Files): Likewise.
39718         * modules/mbsrchr-tests (Files): Likewise.
39719         * modules/mbsrtowcs-tests (Files): Likewise.
39720         * modules/mbsspn-tests (Files): Likewise.
39721         * modules/mbsstr-tests (Files): Likewise.
39722         * modules/memchr-tests (Files): Likewise.
39723         * modules/memchr2-tests (Files): Likewise.
39724         * modules/memcmp-tests (Files): Likewise.
39725         * modules/memmem-tests (Files): Likewise.
39726         * modules/memrchr-tests (Files): Likewise.
39727         * modules/mkdir-tests (Files): Likewise.
39728         * modules/mkfifo-tests (Files): Likewise.
39729         * modules/mkfifoat-tests (Files): Likewise.
39730         * modules/mknod-tests (Files): Likewise.
39731         * modules/nanosleep-tests (Files): Likewise.
39732         * modules/nl_langinfo-tests (Files): Likewise.
39733         * modules/obstack-printf-tests (Files): Likewise.
39734         * modules/open-tests (Files): Likewise.
39735         * modules/openat-tests (Files): Likewise.
39736         * modules/pipe-filter-gi-tests (Files): Likewise.
39737         * modules/pipe-filter-ii-tests (Files): Likewise.
39738         * modules/pipe2-tests (Files): Likewise.
39739         * modules/popen-safer-tests (Files): Likewise.
39740         * modules/popen-tests (Files): Likewise.
39741         * modules/posixtm-tests (Files): Likewise.
39742         * modules/pread-tests (Files): Likewise.
39743         * modules/printf-frexp-tests (Files): Likewise.
39744         * modules/printf-frexpl-tests (Files): Likewise.
39745         * modules/printf-posix-tests (Files): Likewise.
39746         * modules/priv-set-tests (Files): Likewise.
39747         * modules/quotearg-tests (Files): Likewise.
39748         * modules/random_r-tests (Files): Likewise.
39749         * modules/rawmemchr-tests (Files): Likewise.
39750         * modules/rbtree-list-tests (Files): Likewise.
39751         * modules/rbtree-oset-tests (Files): Likewise.
39752         * modules/rbtreehash-list-tests (Files): Likewise.
39753         * modules/readlink-tests (Files): Likewise.
39754         * modules/remove-tests (Files): Likewise.
39755         * modules/rename-tests (Files): Likewise.
39756         * modules/renameat-tests (Files): Likewise.
39757         * modules/rmdir-tests (Files): Likewise.
39758         * modules/round-tests (Files): Likewise.
39759         * modules/roundf-tests (Files): Likewise.
39760         * modules/roundl-tests (Files): Likewise.
39761         * modules/safe-alloc-tests (Files): Likewise.
39762         * modules/setenv-tests (Files): Likewise.
39763         * modules/sigaction-tests (Files): Likewise.
39764         * modules/signbit-tests (Files): Likewise.
39765         * modules/sleep-tests (Files): Likewise.
39766         * modules/snprintf-posix-tests (Files): Likewise.
39767         * modules/snprintf-tests (Files): Likewise.
39768         * modules/sprintf-posix-tests (Files): Likewise.
39769         * modules/stat-tests (Files): Likewise.
39770         * modules/stat-time-tests (Files): Likewise.
39771         * modules/strcasestr-tests (Files): Likewise.
39772         * modules/strchrnul-tests (Files): Likewise.
39773         * modules/strerror-tests (Files): Likewise.
39774         * modules/striconv-tests (Files): Likewise.
39775         * modules/striconveh-tests (Files): Likewise.
39776         * modules/striconveha-tests (Files): Likewise.
39777         * modules/strsignal-tests (Files): Likewise.
39778         * modules/strstr-tests (Files): Likewise.
39779         * modules/strtod-tests (Files): Likewise.
39780         * modules/strverscmp-tests (Files): Likewise.
39781         * modules/symlink-tests (Files): Likewise.
39782         * modules/symlinkat-tests (Files): Likewise.
39783         * modules/trunc-tests (Files): Likewise.
39784         * modules/truncf-tests (Files): Likewise.
39785         * modules/truncl-tests (Files): Likewise.
39786         * modules/uname-tests (Files): Likewise.
39787         * modules/unicase/cased-tests (Files): Likewise.
39788         * modules/unicase/ignorable-tests (Files): Likewise.
39789         * modules/unicase/locale-language-tests (Files): Likewise.
39790         * modules/unicase/tolower-tests (Files): Likewise.
39791         * modules/unicase/totitle-tests (Files): Likewise.
39792         * modules/unicase/toupper-tests (Files): Likewise.
39793         * modules/unicase/u8-casecmp-tests (Files): Likewise.
39794         * modules/unicase/u8-casecoll-tests (Files): Likewise.
39795         * modules/unicase/u8-casefold-tests (Files): Likewise.
39796         * modules/unicase/u8-is-cased-tests (Files): Likewise.
39797         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
39798         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
39799         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
39800         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
39801         * modules/unicase/u8-tolower-tests (Files): Likewise.
39802         * modules/unicase/u8-totitle-tests (Files): Likewise.
39803         * modules/unicase/u8-toupper-tests (Files): Likewise.
39804         * modules/unicase/u16-casecmp-tests (Files): Likewise.
39805         * modules/unicase/u16-casecoll-tests (Files): Likewise.
39806         * modules/unicase/u16-casefold-tests (Files): Likewise.
39807         * modules/unicase/u16-is-cased-tests (Files): Likewise.
39808         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
39809         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
39810         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
39811         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
39812         * modules/unicase/u16-tolower-tests (Files): Likewise.
39813         * modules/unicase/u16-totitle-tests (Files): Likewise.
39814         * modules/unicase/u16-toupper-tests (Files): Likewise.
39815         * modules/unicase/u32-casecmp-tests (Files): Likewise.
39816         * modules/unicase/u32-casecoll-tests (Files): Likewise.
39817         * modules/unicase/u32-casefold-tests (Files): Likewise.
39818         * modules/unicase/u32-is-cased-tests (Files): Likewise.
39819         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
39820         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
39821         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
39822         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
39823         * modules/unicase/u32-tolower-tests (Files): Likewise.
39824         * modules/unicase/u32-totitle-tests (Files): Likewise.
39825         * modules/unicase/u32-toupper-tests (Files): Likewise.
39826         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
39827         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
39828         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
39829         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
39830         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
39831         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
39832         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
39833         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
39834         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
39835         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
39836         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
39837         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
39838         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
39839         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
39840         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
39841         * modules/unictype/bidicategory-name-tests (Files): Likewise.
39842         * modules/unictype/bidicategory-of-tests (Files): Likewise.
39843         * modules/unictype/bidicategory-test-tests (Files): Likewise.
39844         * modules/unictype/block-list-tests (Files): Likewise.
39845         * modules/unictype/block-of-tests (Files): Likewise.
39846         * modules/unictype/block-test-tests (Files): Likewise.
39847         * modules/unictype/category-C-tests (Files): Likewise.
39848         * modules/unictype/category-Cc-tests (Files): Likewise.
39849         * modules/unictype/category-Cf-tests (Files): Likewise.
39850         * modules/unictype/category-Cn-tests (Files): Likewise.
39851         * modules/unictype/category-Co-tests (Files): Likewise.
39852         * modules/unictype/category-Cs-tests (Files): Likewise.
39853         * modules/unictype/category-L-tests (Files): Likewise.
39854         * modules/unictype/category-Ll-tests (Files): Likewise.
39855         * modules/unictype/category-Lm-tests (Files): Likewise.
39856         * modules/unictype/category-Lo-tests (Files): Likewise.
39857         * modules/unictype/category-Lt-tests (Files): Likewise.
39858         * modules/unictype/category-Lu-tests (Files): Likewise.
39859         * modules/unictype/category-M-tests (Files): Likewise.
39860         * modules/unictype/category-Mc-tests (Files): Likewise.
39861         * modules/unictype/category-Me-tests (Files): Likewise.
39862         * modules/unictype/category-Mn-tests (Files): Likewise.
39863         * modules/unictype/category-N-tests (Files): Likewise.
39864         * modules/unictype/category-Nd-tests (Files): Likewise.
39865         * modules/unictype/category-Nl-tests (Files): Likewise.
39866         * modules/unictype/category-No-tests (Files): Likewise.
39867         * modules/unictype/category-P-tests (Files): Likewise.
39868         * modules/unictype/category-Pc-tests (Files): Likewise.
39869         * modules/unictype/category-Pd-tests (Files): Likewise.
39870         * modules/unictype/category-Pe-tests (Files): Likewise.
39871         * modules/unictype/category-Pf-tests (Files): Likewise.
39872         * modules/unictype/category-Pi-tests (Files): Likewise.
39873         * modules/unictype/category-Po-tests (Files): Likewise.
39874         * modules/unictype/category-Ps-tests (Files): Likewise.
39875         * modules/unictype/category-S-tests (Files): Likewise.
39876         * modules/unictype/category-Sc-tests (Files): Likewise.
39877         * modules/unictype/category-Sk-tests (Files): Likewise.
39878         * modules/unictype/category-Sm-tests (Files): Likewise.
39879         * modules/unictype/category-So-tests (Files): Likewise.
39880         * modules/unictype/category-Z-tests (Files): Likewise.
39881         * modules/unictype/category-Zl-tests (Files): Likewise.
39882         * modules/unictype/category-Zp-tests (Files): Likewise.
39883         * modules/unictype/category-Zs-tests (Files): Likewise.
39884         * modules/unictype/category-and-not-tests (Files): Likewise.
39885         * modules/unictype/category-and-tests (Files): Likewise.
39886         * modules/unictype/category-byname-tests (Files): Likewise.
39887         * modules/unictype/category-name-tests (Files): Likewise.
39888         * modules/unictype/category-none-tests (Files): Likewise.
39889         * modules/unictype/category-of-tests (Files): Likewise.
39890         * modules/unictype/category-or-tests (Files): Likewise.
39891         * modules/unictype/category-test-withtable-tests (Files): Likewise.
39892         * modules/unictype/combining-class-tests (Files): Likewise.
39893         * modules/unictype/ctype-alnum-tests (Files): Likewise.
39894         * modules/unictype/ctype-alpha-tests (Files): Likewise.
39895         * modules/unictype/ctype-blank-tests (Files): Likewise.
39896         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
39897         * modules/unictype/ctype-digit-tests (Files): Likewise.
39898         * modules/unictype/ctype-graph-tests (Files): Likewise.
39899         * modules/unictype/ctype-lower-tests (Files): Likewise.
39900         * modules/unictype/ctype-print-tests (Files): Likewise.
39901         * modules/unictype/ctype-punct-tests (Files): Likewise.
39902         * modules/unictype/ctype-space-tests (Files): Likewise.
39903         * modules/unictype/ctype-upper-tests (Files): Likewise.
39904         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
39905         * modules/unictype/decimal-digit-tests (Files): Likewise.
39906         * modules/unictype/digit-tests (Files): Likewise.
39907         * modules/unictype/mirror-tests (Files): Likewise.
39908         * modules/unictype/numeric-tests (Files): Likewise.
39909         * modules/unictype/property-alphabetic-tests (Files): Likewise.
39910         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
39911         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
39912         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
39913         Likewise.
39914         * modules/unictype/property-bidi-block-separator-tests (Files):
39915         Likewise.
39916         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
39917         Likewise.
39918         * modules/unictype/property-bidi-common-separator-tests (Files):
39919         Likewise.
39920         * modules/unictype/property-bidi-control-tests (Files): Likewise.
39921         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
39922         Likewise.
39923         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
39924         Likewise.
39925         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
39926         Likewise.
39927         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
39928         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
39929         Likewise.
39930         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
39931         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
39932         Likewise.
39933         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
39934         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
39935         * modules/unictype/property-bidi-segment-separator-tests (Files):
39936         Likewise.
39937         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
39938         * modules/unictype/property-byname-tests (Files): Likewise.
39939         * modules/unictype/property-combining-tests (Files): Likewise.
39940         * modules/unictype/property-composite-tests (Files): Likewise.
39941         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
39942         * modules/unictype/property-dash-tests (Files): Likewise.
39943         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
39944         * modules/unictype/property-default-ignorable-code-point-tests (Files):
39945         Likewise.
39946         * modules/unictype/property-deprecated-tests (Files): Likewise.
39947         * modules/unictype/property-diacritic-tests (Files): Likewise.
39948         * modules/unictype/property-extender-tests (Files): Likewise.
39949         * modules/unictype/property-format-control-tests (Files): Likewise.
39950         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
39951         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
39952         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
39953         * modules/unictype/property-hex-digit-tests (Files): Likewise.
39954         * modules/unictype/property-hyphen-tests (Files): Likewise.
39955         * modules/unictype/property-id-continue-tests (Files): Likewise.
39956         * modules/unictype/property-id-start-tests (Files): Likewise.
39957         * modules/unictype/property-ideographic-tests (Files): Likewise.
39958         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
39959         * modules/unictype/property-ids-trinary-operator-tests (Files):
39960         Likewise.
39961         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
39962         * modules/unictype/property-iso-control-tests (Files): Likewise.
39963         * modules/unictype/property-join-control-tests (Files): Likewise.
39964         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
39965         * modules/unictype/property-line-separator-tests (Files): Likewise.
39966         * modules/unictype/property-logical-order-exception-tests (Files):
39967         Likewise.
39968         * modules/unictype/property-lowercase-tests (Files): Likewise.
39969         * modules/unictype/property-math-tests (Files): Likewise.
39970         * modules/unictype/property-non-break-tests (Files): Likewise.
39971         * modules/unictype/property-not-a-character-tests (Files): Likewise.
39972         * modules/unictype/property-numeric-tests (Files): Likewise.
39973         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
39974         * modules/unictype/property-other-default-ignorable-code-point-tests
39975         (Files): Likewise.
39976         * modules/unictype/property-other-grapheme-extend-tests (Files):
39977         Likewise.
39978         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
39979         * modules/unictype/property-other-id-start-tests (Files): Likewise.
39980         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
39981         * modules/unictype/property-other-math-tests (Files): Likewise.
39982         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
39983         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
39984         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
39985         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
39986         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
39987         * modules/unictype/property-private-use-tests (Files): Likewise.
39988         * modules/unictype/property-punctuation-tests (Files): Likewise.
39989         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
39990         * modules/unictype/property-radical-tests (Files): Likewise.
39991         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
39992         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
39993         * modules/unictype/property-space-tests (Files): Likewise.
39994         * modules/unictype/property-terminal-punctuation-tests (Files):
39995         Likewise.
39996         * modules/unictype/property-test-tests (Files): Likewise.
39997         * modules/unictype/property-titlecase-tests (Files): Likewise.
39998         * modules/unictype/property-unassigned-code-value-tests (Files):
39999         Likewise.
40000         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
40001         * modules/unictype/property-uppercase-tests (Files): Likewise.
40002         * modules/unictype/property-variation-selector-tests (Files): Likewise.
40003         * modules/unictype/property-white-space-tests (Files): Likewise.
40004         * modules/unictype/property-xid-continue-tests (Files): Likewise.
40005         * modules/unictype/property-xid-start-tests (Files): Likewise.
40006         * modules/unictype/property-zero-width-tests (Files): Likewise.
40007         * modules/unictype/scripts-tests (Files): Likewise.
40008         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
40009         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
40010         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
40011         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
40012         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
40013         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
40014         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
40015         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
40016         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
40017         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
40018         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
40019         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
40020         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
40021         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
40022         * modules/uninorm/composition-tests (Files): Likewise.
40023         * modules/uninorm/decomposing-form-tests (Files): Likewise.
40024         * modules/uninorm/decomposition-tests (Files): Likewise.
40025         * modules/uninorm/filter-tests (Files): Likewise.
40026         * modules/uninorm/nfc-tests (Files): Likewise.
40027         * modules/uninorm/nfd-tests (Files): Likewise.
40028         * modules/uninorm/nfkc-tests (Files): Likewise.
40029         * modules/uninorm/nfkd-tests (Files): Likewise.
40030         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
40031         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
40032         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
40033         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
40034         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
40035         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
40036         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
40037         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
40038         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
40039         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
40040         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
40041         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
40042         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
40043         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
40044         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
40045         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
40046         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
40047         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
40048         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
40049         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
40050         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
40051         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
40052         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
40053         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
40054         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
40055         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
40056         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
40057         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
40058         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
40059         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
40060         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
40061         * modules/uniwidth/u8-width-tests (Files): Likewise.
40062         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
40063         * modules/uniwidth/u16-width-tests (Files): Likewise.
40064         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
40065         * modules/uniwidth/u32-width-tests (Files): Likewise.
40066         * modules/uniwidth/width-tests (Files): Likewise.
40067         * modules/unlink-tests (Files): Likewise.
40068         * modules/unsetenv-tests (Files): Likewise.
40069         * modules/usleep-tests (Files): Likewise.
40070         * modules/utimens-tests (Files): Likewise.
40071         * modules/utimensat-tests (Files): Likewise.
40072         * modules/vasnprintf-posix-tests (Files): Likewise.
40073         * modules/vasnprintf-tests (Files): Likewise.
40074         * modules/vasprintf-posix-tests (Files): Likewise.
40075         * modules/vasprintf-tests (Files): Likewise.
40076         * modules/vdprintf-posix-tests (Files): Likewise.
40077         * modules/vfprintf-posix-tests (Files): Likewise.
40078         * modules/vprintf-posix-tests (Files): Likewise.
40079         * modules/vsnprintf-posix-tests (Files): Likewise.
40080         * modules/vsnprintf-tests (Files): Likewise.
40081         * modules/vsprintf-posix-tests (Files): Likewise.
40082         * modules/wcrtomb-tests (Files): Likewise.
40083         * modules/wcsnrtombs-tests (Files): Likewise.
40084         * modules/wcsrtombs-tests (Files): Likewise.
40085         * modules/wctype-tests (Files): Likewise.
40086         * modules/wcwidth-tests (Files): Likewise.
40087         * modules/xmemdup0-tests (Files): Likewise.
40088         * modules/xprintf-posix-tests (Files): Likewise.
40089         * modules/xvasprintf-tests (Files): Likewise.
40090
40091 2009-12-24  Eric Blake  <ebb9@byu.net>
40092
40093         test-nanosleep: fix typo
40094         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
40095         patch.
40096         Reported by Bruno Haible.
40097
40098 2009-12-24  Bruno Haible  <bruno@clisp.org>
40099
40100         Reduce namespace pollution on glibc systems.
40101         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
40102         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
40103         systems.
40104         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
40105         <getopt.h> on glibc systems.
40106         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
40107         systems.
40108         * lib/fcntl.c: Include <unistd.h> here instead.
40109
40110 2009-12-24  Bruno Haible  <bruno@clisp.org>
40111
40112         * lib/stdlib.in.h (includes): Fix typo in today's commit.
40113
40114 2009-12-24  Eric Blake  <ebb9@byu.net>
40115
40116         tests: add signature checks
40117         * tests/signature.h (SIGNATURE_CHECK): New file.
40118         * modules/atexit-tests (Files): Use it.
40119         * modules/btowc-tests (Files): Likewise.
40120         * modules/canonicalize-lgpl-tests (Files): Likewise.
40121         * modules/ceilf-tests (Files): Likewise.
40122         * modules/ceill-tests (Files): Likewise.
40123         * modules/chown-tests (Files): Likewise.
40124         * modules/dprintf-posix-tests (Files): Likewise.
40125         * modules/dup2-tests (Files): Likewise.
40126         * modules/dup3-tests (Files): Likewise.
40127         * modules/duplocale-tests (Files): Likewise.
40128         * modules/fchdir-tests (Files): Likewise.
40129         * modules/fcntl-tests (Files): Likewise.
40130         * modules/fdopendir-tests (Files): Likewise.
40131         * modules/fflush-tests (Files): Likewise.
40132         * modules/flock-tests (Files): Likewise.
40133         * modules/floorf-tests (Files): Likewise.
40134         * modules/floorl-tests (Files): Likewise.
40135         * modules/fnmatch-tests (Files): Likewise.
40136         * modules/fopen-tests (Files): Likewise.
40137         * modules/fprintf-posix-tests (Files): Likewise.
40138         * modules/freopen-tests (Files): Likewise.
40139         * modules/frexp-nolibm-tests (Files): Likewise.
40140         * modules/frexp-tests (Files): Likewise.
40141         * modules/frexpl-nolibm-tests (Files): Likewise.
40142         * modules/frexpl-tests (Files): Likewise.
40143         * modules/fseek-tests (Files): Likewise.
40144         * modules/fseeko-tests (Files): Likewise.
40145         * modules/fsync-tests (Files): Likewise.
40146         * modules/ftell-tests (Files): Likewise.
40147         * modules/ftello-tests (Files): Likewise.
40148         * modules/futimens-tests (Files): Likewise.
40149         * modules/getaddrinfo-tests (Files): Likewise.
40150         * modules/getcwd-tests (Files): Likewise.
40151         * modules/getdelim-tests (Files): Likewise.
40152         * modules/getdtablesize-tests (Files): Likewise.
40153         * modules/getgroups-tests (Files): Likewise.
40154         * modules/gethostname-tests (Files): Likewise.
40155         * modules/getline-tests (Files): Likewise.
40156         * modules/getopt-posix-tests (Files): Likewise.
40157         * modules/gettimeofday-tests (Files): Likewise.
40158         * modules/glob-tests (Files): Likewise.
40159         * modules/iconv-tests (Files): Likewise.
40160         * modules/inet_ntop-tests (Files): Likewise.
40161         * modules/inet_pton-tests (Files): Likewise.
40162         * modules/isblank-tests (Files): Likewise.
40163         * modules/lchown-tests (Files): Likewise.
40164         * modules/ldexpl-tests (Files): Likewise.
40165         * modules/link-tests (Files): Likewise.
40166         * modules/linkat-tests (Files): Likewise.
40167         * modules/lseek-tests (Files): Likewise.
40168         * modules/lstat-tests (Files): Likewise.
40169         * modules/mbrtowc-tests (Files): Likewise.
40170         * modules/mbsinit-tests (Files): Likewise.
40171         * modules/mbsnrtowcs-tests (Files): Likewise.
40172         * modules/mbsrtowcs-tests (Files): Likewise.
40173         * modules/memchr-tests (Files): Likewise.
40174         * modules/memcmp-tests (Files): Likewise.
40175         * modules/memmem-tests (Files): Likewise.
40176         * modules/memrchr-tests (Files): Likewise.
40177         * modules/mkdir-tests (Files): Likewise.
40178         * modules/mkfifo-tests (Files): Likewise.
40179         * modules/mkfifoat-tests (Files): Likewise.
40180         * modules/mknod-tests (Files): Likewise.
40181         * modules/nanosleep-tests (Files): Likewise.
40182         * modules/nl_langinfo-tests (Files): Likewise.
40183         * modules/obstack-printf-tests (Files): Likewise.
40184         * modules/open-tests (Files): Likewise.
40185         * modules/openat-tests (Files): Likewise.
40186         * modules/perror-tests (Files): Likewise.
40187         * modules/pipe2-tests (Files): Likewise.
40188         * modules/poll-tests (Files): Likewise.
40189         * modules/popen-tests (Files): Likewise.
40190         * modules/posix_spawn-tests (Files): Likewise.
40191         * modules/posix_spawnp-tests (Files): Likewise.
40192         * modules/pread-tests (Files): Likewise.
40193         * modules/printf-posix-tests (Files): Likewise.
40194         * modules/pty-tests (Files): Likewise.
40195         * modules/random_r-tests (Files): Likewise.
40196         * modules/rawmemchr-tests (Files): Likewise.
40197         * modules/readlink-tests (Files): Likewise.
40198         * modules/remove-tests (Files): Likewise.
40199         * modules/rename-tests (Files): Likewise.
40200         * modules/renameat-tests (Files): Likewise.
40201         * modules/rmdir-tests (Files): Likewise.
40202         * modules/round-tests (Files): Likewise.
40203         * modules/roundf-tests (Files): Likewise.
40204         * modules/roundl-tests (Files): Likewise.
40205         * modules/select-tests (Files): Likewise.
40206         * modules/setenv-tests (Files): Likewise.
40207         * modules/sigaction-tests (Files): Likewise.
40208         * modules/sleep-tests (Files): Likewise.
40209         * modules/snprintf-posix-tests (Files): Likewise.
40210         * modules/snprintf-tests (Files): Likewise.
40211         * modules/sprintf-posix-tests (Files): Likewise.
40212         * modules/stat-tests (Files): Likewise.
40213         * modules/strcasestr-tests (Files): Likewise.
40214         * modules/strchrnul-tests (Files): Likewise.
40215         * modules/strerror-tests (Files): Likewise.
40216         * modules/strsignal-tests (Files): Likewise.
40217         * modules/strstr-tests (Files): Likewise.
40218         * modules/strtod-tests (Files): Likewise.
40219         * modules/strverscmp-tests (Files): Likewise.
40220         * modules/symlink-tests (Files): Likewise.
40221         * modules/symlinkat-tests (Files): Likewise.
40222         * modules/times-tests (Files): Likewise.
40223         * modules/trunc-tests (Files): Likewise.
40224         * modules/truncf-tests (Files): Likewise.
40225         * modules/truncl-tests (Files): Likewise.
40226         * modules/tsearch-tests (Files): Likewise.
40227         * modules/uname-tests (Files): Likewise.
40228         * modules/unlink-tests (Files): Likewise.
40229         * modules/unsetenv-tests (Files): Likewise.
40230         * modules/usleep-tests (Files): Likewise.
40231         * modules/utimensat-tests (Files): Likewise.
40232         * modules/vasprintf-tests (Files): Likewise.
40233         * modules/vdprintf-posix-tests (Files): Likewise.
40234         * modules/vfprintf-posix-tests (Files): Likewise.
40235         * modules/vprintf-posix-tests (Files): Likewise.
40236         * modules/vsnprintf-posix-tests (Files): Likewise.
40237         * modules/vsnprintf-tests (Files): Likewise.
40238         * modules/vsprintf-posix-tests (Files): Likewise.
40239         * modules/wcrtomb-tests (Files): Likewise.
40240         * modules/wcsnrtombs-tests (Files): Likewise.
40241         * modules/wcsrtombs-tests (Files): Likewise.
40242         * modules/wcwidth-tests (Files): Likewise.
40243         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
40244         * tests/test-isinf.c (isinf): Likewise.
40245         * tests/test-isnan.c (isnan): Likewise.
40246         * tests/test-signbit.c (signbit): Likewise.
40247         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
40248         declaration, either as macro or with correct signature.
40249         (select): Ensure function under test is declared with correct
40250         signature in correct header.
40251         * tests/test-atexit.c (atexit): Likewise.
40252         * tests/test-btowc.c (btowc): Likewise.
40253         * tests/test-canonicalize-lgpl.c (realpath)
40254         (canonicalize_file_name): Likewise.
40255         * tests/test-ceilf1.c (ceilf): Likewise.
40256         * tests/test-ceill.c (ceill): Likewise.
40257         * tests/test-chown.c (chown): Likewise.
40258         * tests/test-dprintf-posix.c (dprintf): Likewise.
40259         * tests/test-dup2.c (dup2): Likewise.
40260         * tests/test-dup3.c (dup3): Likewise.
40261         * tests/test-duplocale.c (duplocale): Likewise.
40262         * tests/test-fchdir.c (fchdir): Likewise.
40263         * tests/test-fchownat.c (fchownat): Likewise.
40264         * tests/test-fcntl.c (fcntl): Likewise.
40265         * tests/test-fdopendir.c (fdopendir): Likewise.
40266         * tests/test-fflush.c (fflush): Likewise.
40267         * tests/test-flock.c (flock): Likewise.
40268         * tests/test-floorf1.c (floorf): Likewise.
40269         * tests/test-floorl.c (floorl): Likewise.
40270         * tests/test-fnmatch.c (fnmatch): Likewise.
40271         * tests/test-fopen.c (fopen): Likewise.
40272         * tests/test-fprintf-posix.c (fprintf): Likewise.
40273         * tests/test-freopen.c (freopen): Likewise.
40274         * tests/test-frexp.c (frexp): Likewise.
40275         * tests/test-frexpl.c (frexpl): Likewise.
40276         * tests/test-fseek.c (fseek): Likewise.
40277         * tests/test-fseeko.c (fseeko): Likewise.
40278         * tests/test-fstatat.c (fstatat): Likewise.
40279         * tests/test-fsync.c (fsync): Likewise.
40280         * tests/test-ftell.c (ftell): Likewise.
40281         * tests/test-ftello.c (ftello): Likewise.
40282         * tests/test-futimens.c (futimens): Likewise.
40283         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
40284         (gai_strerror): Likewise.
40285         * tests/test-getcwd.c (getcwd): Likewise.
40286         * tests/test-getdelim.c (getdelim): Likewise.
40287         * tests/test-getdtablesize.c (getdtablesize): Likewise.
40288         * tests/test-getgroups.c (getgroups): Likewise.
40289         * tests/test-gethostname.c (gethostname): Likewise.
40290         * tests/test-getline.c (getline): Likewise.
40291         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
40292         Likewise.
40293         * tests/test-gettimeofday.c (gettimeofday): Likewise.
40294         * tests/test-glob.c (glob, globfree): Likewise.
40295         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
40296         * tests/test-inet_ntop.c (inet_ntop): Likewise.
40297         * tests/test-inet_pton.c (inet_pton): Likewise.
40298         * tests/test-isblank.c (isblank): Likewise.
40299         * tests/test-lchown.c (lchown): Likewise.
40300         * tests/test-ldexpl.c (ldexpl): Likewise.
40301         * tests/test-link.c (link): Likewise.
40302         * tests/test-linkat.c (linkat): Likewise.
40303         * tests/test-lseek.c (lseek): Likewise.
40304         * tests/test-lstat.c (lstat): Likewise.
40305         * tests/test-mbrtowc.c (mbrtowc): Likewise.
40306         * tests/test-mbsinit.c (mbsinit): Likewise.
40307         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
40308         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
40309         * tests/test-memchr.c (memchr): Likewise.
40310         * tests/test-memcmp.c (memcmp): Likewise.
40311         * tests/test-memmem.c (memmem): Likewise.
40312         * tests/test-memrchr.c (memrchr): Likewise.
40313         * tests/test-mkdir.c (mkdir): Likewise.
40314         * tests/test-mkdirat.c (mkdirat): Likewise.
40315         * tests/test-mkfifo.c (mkfifo): Likewise.
40316         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
40317         * tests/test-mknod.c (mknod): Likewise.
40318         * tests/test-nanosleep.c (nanosleep): Likewise.
40319         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
40320         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
40321         Likewise.
40322         * tests/test-open.c (open): Likewise.
40323         * tests/test-openat.c (openat): Likewise.
40324         * tests/test-perror.c (perror): Likewise.
40325         * tests/test-pipe2.c (pipe2): Likewise.
40326         * tests/test-poll.c (poll): Likewise.
40327         * tests/test-popen.c (popen, pclose): Likewise.
40328         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
40329         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
40330         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
40331         (posix_spawn_file_actions_destroy)
40332         (posix_spawn_file_actions_addclose)
40333         (posix_spawn_file_actions_addopen)
40334         (posix_spawn_file_actions_adddup2): Likewise.
40335         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
40336         * tests/test-pread.c (pread): Likewise.
40337         * tests/test-printf-posix.c (printf): Likewise.
40338         * tests/test-pty.c (openpty, forkpty): Likewise.
40339         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
40340         (random_r): Likewise.
40341         * tests/test-rawmemchr.c (rawmemchr): Likewise.
40342         * tests/test-readlink.c (readlink): Likewise.
40343         * tests/test-remove.c (remove): Likewise.
40344         * tests/test-rename.c (rename): Likewise.
40345         * tests/test-renameat.c (renameat): Likewise.
40346         * tests/test-rmdir.c (rmdir): Likewise.
40347         * tests/test-round1.c (round): Likewise.
40348         * tests/test-roundf1.c (roundf): Likewise.
40349         * tests/test-roundl.c (roundl): Likewise.
40350         * tests/test-setenv.c (setenv): Likewise.
40351         * tests/test-sigaction.c (sigaction): Likewise.
40352         * tests/test-sleep.c (sleep): Likewise.
40353         * tests/test-snprintf.c (snprintf): Likewise.
40354         * tests/test-sprintf-posix.c (sprintf): Likewise.
40355         * tests/test-stat.c (stat): Likewise.
40356         * tests/test-stpncpy.c (stpncpy): Likewise.
40357         * tests/test-strcasestr.c (strcasestr): Likewise.
40358         * tests/test-strchrnul.c (strchrnul): Likewise.
40359         * tests/test-strerror.c (strerror): Likewise.
40360         * tests/test-strsignal.c (strsignal): Likewise.
40361         * tests/test-strstr.c (strstr): Likewise.
40362         * tests/test-strtod.c (strtod): Likewise.
40363         * tests/test-strverscmp.c (strverscmp): Likewise.
40364         * tests/test-symlink.c (symlink): Likewise.
40365         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
40366         * tests/test-times.c (times): Likewise.
40367         * tests/test-trunc1.c (trunc): Likewise.
40368         * tests/test-truncf1.c (truncf): Likewise.
40369         * tests/test-truncl.c (truncl): Likewise.
40370         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
40371         Likewise.
40372         * tests/test-uname.c (uname): Likewise.
40373         * tests/test-unlink.c (unlink): Likewise.
40374         * tests/test-unlinkat.c (unlinkat): Likewise.
40375         * tests/test-unsetenv.c (unsetenv): Likewise.
40376         * tests/test-usleep.c (usleep): Likewise.
40377         * tests/test-utimensat.c (utimensat): Likewise.
40378         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
40379         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
40380         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
40381         * tests/test-vprintf-posix.c (vprintf): Likewise.
40382         * tests/test-vsnprintf.c (vsnprintf): Likewise.
40383         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
40384         * tests/test-wcrtomb.c (wcrtomb): Likewise.
40385         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
40386         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
40387         * tests/test-wcwidth.c (wcwidth): Likewise.
40388
40389         build: pull in conditional headers during GNULIB_POSIXCHECK
40390         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
40391         definitions from any conditionally-included headers.
40392         * lib/stdlib.in.h (includes): Likewise.
40393         * lib/unistd.in.h (includes): Likewise.
40394
40395 2009-12-24  Bruno Haible  <bruno@clisp.org>
40396
40397         * tests/test-argv-iter.c: Include header file being tested immediately
40398         after config.h.
40399         * tests/test-base64.c: Likewise.
40400         * tests/test-flock.c: Likewise.
40401         * tests/test-fsync.c: Likewise.
40402         * tests/test-getdate.c: Likewise.
40403         * tests/test-getndelim2.c: Likewise.
40404         * tests/test-isfinite.c: Likewise.
40405         * tests/test-isinf.c: Likewise.
40406         * tests/test-strerror.c: Likewise.
40407         * tests/test-strsignal.c: Likewise.
40408
40409 2009-12-23  Eric Blake  <ebb9@byu.net>
40410
40411         unistd: work around cygwin bug
40412         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
40413         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
40414         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
40415
40416 2009-12-23  Bruno Haible  <bruno@clisp.org>
40417
40418         localename: More tests.
40419         * tests/test-localename.c (SIZEOF): New macro.
40420         (categories): New variable.
40421         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
40422         test_locale_name_default): Add test w.r.t. thread locale.
40423         (test_locale_name_thread): New function.
40424         (main): Invoke it.
40425
40426         localename: Make aware of thread locale.
40427         * lib/localename.h (gl_locale_name_thread): New declaration.
40428         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
40429         behaviour with respect to thread locale.
40430         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
40431         <langinfo.h>, glthread/lock.h.
40432         (SIZE_BITS): New macro.
40433         (string_hash): New function.
40434         (struct hash_node): New type.
40435         (HASH_TABLE_SIZE): New macro.
40436         (struniq_hash_table, struniq_lock): New variables.
40437         (struniq): New function.
40438         (gl_locale_name_thread): New function.
40439         (gl_locale_name): Invoke it.
40440         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
40441         * modules/localename (Depends-on): Add lock.
40442         Reported by Mike Gran <spk121@yahoo.com>.
40443
40444 2009-12-23  Eric Blake  <ebb9@byu.net>
40445
40446         va-args: new module
40447         * modules/va-args: New file.
40448         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
40449         * MODULES.html.sh (Core language properties): Mention it.
40450
40451         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
40452         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
40453         named alias for __attribute__((__unused__)).
40454         * lib/chown.c: Update client.
40455         * lib/fchmodat.c: Likewise.
40456         * lib/fts.c: Likewise.
40457         * lib/getdate.y: Likewise.
40458         * lib/getgroups.c: Likewise.
40459         * lib/getopt.c: Likewise.
40460         * lib/getugroups.c: Likewise.
40461         * lib/mkdir.c: Likewise.
40462         * lib/mkfifo.c: Likewise.
40463         * lib/mkfifoat.c: Likewise.
40464         * lib/mknod.c: Likewise.
40465         * lib/mknodat.c: Likewise.
40466         * lib/readlink.c: Likewise.
40467         * lib/se-context.in.h: Likewise.
40468         * lib/se-selinux.in.h: Likewise.
40469         * lib/sockets.c: Likewise.
40470         * lib/symlink.c: Likewise.
40471         * lib/symlinkat.c: Likewise.
40472         * lib/unicodeio.c: Likewise.
40473         * lib/unistr.h: Likewise.
40474         * tests/test-areadlink.c: Likewise.
40475         * tests/test-areadlinkat.c: Likewise.
40476         * tests/test-filenamecat.c: Likewise.
40477         * tests/test-fseeko.c: Likewise.
40478         * tests/test-ftello.c: Likewise.
40479         * tests/test-getdate.c: Likewise.
40480         * tests/test-getgroups.c: Likewise.
40481         * tests/test-gethostname.c: Likewise.
40482         * tests/test-quotearg.c: Likewise.
40483         * tests/test-version-etc.c: Likewise.
40484         * tests/test-xalloc-die.c: Likewise.
40485         * tests/test-xfprintf-posix.c: Likewise.
40486         * tests/test-xprintf-posix.c: Likewise.
40487         * tests/test-xvasprintf.c: Likewise.
40488
40489         tests: avoid compiler warnings
40490         * tests/test-fcntl.c (main): Delete unused parameters.
40491         * tests/test-freopen-safer.c (main): Likewise.
40492         * tests/test-xalloc-die.c (main): Mark unused parameters.
40493         * tests/test-fseeko.c (main): Likewise.
40494         * tests/test-ftello.c (main): Likewise.
40495         * tests/test-nanosleep.c (main): Avoid declaration warning.
40496         * tests/test-sleep.c (main): Likewise.
40497         * tests/test-unsetenv.c (main): Silence warning about string
40498         literal.
40499         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
40500
40501 2009-12-23  Bruno Haible  <bruno@clisp.org>
40502
40503         * tests/test-localename.c (test_locale_name): New function, extracted
40504         from main. Also test mixed situations.
40505         (test_locale_name_posix, test_locale_name_environ,
40506         test_locale_name_default): New functions.
40507         (main): Invoke them all.
40508         * modules/localename-tests (configure.ac): Test for newlocale.
40509
40510 2009-12-23  Bruno Haible  <bruno@clisp.org>
40511
40512         unistd: Ensure getcwd gets declared before being overridden.
40513         * lib/unistd.in.h: Conditionally include <io.h>.
40514
40515 2009-12-22  Bruno Haible  <bruno@clisp.org>
40516
40517         wchar: Diagnose broken combination of glibc and gcc versions and flags.
40518         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
40519         (gl_WCHAR_H): Invoke it.
40520         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
40521         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
40522         Reported by Karl Berry <karl@freefriends.org>.
40523
40524 2009-12-22  Eric Blake  <ebb9@byu.net>
40525
40526         math, unistd: avoid redundant includes
40527         * lib/math.in.h (isnan): No need to re-include <math.h>.
40528         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
40529
40530         getsubopt: work around cygwin bug
40531         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
40532         avoid conflicting with system getsubopt.
40533         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
40534         bug.
40535
40536         getopt: synchronize from glibc
40537         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
40538         parameter order.  Adjust all callers.
40539         (_getopt_internal_r, main): Adjust quoting in error messages.
40540         Drop considerations for outdated POSIX 1003.2 error message.
40541         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
40542         callers.
40543         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
40544
40545         test-getopt: test stderr behavior
40546         * modules/getopt-posix-tests (Depends-on): Add dup2.
40547         * tests/test-getopt.c (ASSERT): Avoid stderr.
40548         (main): Move stderr to a temporary file.
40549         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
40550         Instead, add parameter to inform caller if output occurred.
40551         (test_getopt): Adjust all existing tests to expect silence, and
40552         add new tests of leading ":".
40553         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
40554         glibc shortcomings with leading "-:" or "+:" in optstring.
40555         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
40556         Likewise.
40557         * doc/posix-functions/getopt.texi (getopt): Likewise.
40558
40559         test-getopt: enhance test
40560         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
40561         supports optind=0.
40562         * tests/test-getopt.c (OPTIND_MIN): Move...
40563         * tests/test-getopt.h (OPTIND_MIN): ...here.
40564         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
40565         Require that optind=0 works, since modern BSD supports it in
40566         addition to optreset, and since coreutils expects it.
40567         (test_getopt_long_only): New test.
40568         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
40569         glibc shortcomings with 'W;', and enforcement of optind=0.
40570         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
40571         Likewise.
40572
40573 2009-12-21  Bruno Haible  <bruno@clisp.org>
40574
40575         localename: Improvements for MacOS X and Cygwin.
40576         * lib/localename.h (gl_locale_name_environ): New declaration.
40577         * lib/localename.c (gl_locale_name_environ): New function, extracted from
40578         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
40579         (gl_locale_name_posix): Invoke it.
40580         (gl_locale_name_default): Add comments. Use Windows native API also on
40581         Cygwin.
40582
40583 2009-12-21  Bruno Haible  <bruno@clisp.org>
40584
40585         Update list of Win32 locale ids.
40586         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
40587         (LANG_SAMI): Renamed from LANG_SAAMI.
40588         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
40589         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
40590         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
40591         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
40592         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
40593         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
40594         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
40595         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
40596         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
40597         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
40598         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
40599         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
40600         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
40601         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
40602         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
40603         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
40604         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
40605         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
40606         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
40607         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
40608         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
40609         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
40610         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
40611         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
40612         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
40613         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
40614         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
40615         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
40616         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
40617         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
40618         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
40619         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
40620         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
40621         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
40622         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
40623         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
40624         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
40625         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
40626         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
40627         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
40628         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
40629         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
40630         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
40631         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
40632         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
40633         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
40634         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
40635         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
40636         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
40637         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
40638         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
40639         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
40640         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
40641         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
40642         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
40643         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
40644         Add more languages and countries for Sami, Sorbian. Add more countries
40645         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
40646         for Pashto. Change country for Syriac, Tswana.
40647
40648 2009-12-21  Eric Blake  <ebb9@byu.net>
40649
40650         test-utimens: avoid spurious failure
40651         * tests/test-chown.h (nap): Factor...
40652         * tests/nap.h: ...into new file.
40653         * tests/test-lchown.h (nap): Avoid duplication.
40654         * tests/test-utimens-common.h (nap): Use shared implementation,
40655         necessary on file systems with 1-second resolution.
40656         * modules/chown-tests (Files): Include new file.
40657         * modules/fdutimensat-tests (Files): Likewise.
40658         * modules/futimens-tests (Files): Likewise.
40659         * modules/lchown-tests (Files): Likewise.
40660         * modules/openat-tests (Files): Likewise.
40661         * modules/utimens-tests (Files): Likewise.
40662         * modules/utimensat-tests (Files): Likewise.
40663
40664 2009-12-19  Eric Blake  <ebb9@byu.net>
40665
40666         futimens, utimensat: work around Linux bug
40667         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
40668         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
40669         * lib/utimensat.c (rpl_utimensat): Work around it.
40670         * lib/futimens.c (rpl_futimens): Adjust comment.
40671
40672         utimens: work around Linux ctime bug
40673         * lib/utimens.c (detect_ctime_bug): New helper function.
40674         (update_timespec): Differentiate between workaround needed for
40675         this bug vs. what is needed for systems that lack utimensat.
40676         (fdutimens, lutimens): Work around bug.
40677
40678         utimens: check for ctime update
40679         * tests/test-utimens-common.h (check_ctime): Define.
40680         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
40681         * tests/test-futimens.h (test_futimens): Likewise.
40682         * tests/test-lutimens.h (test_lutimens): Likewise.
40683         * doc/posix-functions/futimens.texi (futimens): Document the bug.
40684         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
40685
40686 2009-12-19  Bruno Haible  <bruno@clisp.org>
40687
40688         dprintf-posix: Check against memory leak fixed on 2009-12-15.
40689         * tests/test-dprintf-posix2.sh: New file.
40690         * tests/test-dprintf-posix2.c: New file.
40691         * modules/dprintf-posix-tests (Files): Add them.
40692         (configure.ac): Check for getrlimit and setrlimit.
40693         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
40694
40695 2009-12-19  Bruno Haible  <bruno@clisp.org>
40696
40697         fprintf-posix: Check against memory leak fixed on 2009-12-15.
40698         * tests/test-fprintf-posix3.sh: New file.
40699         * tests/test-fprintf-posix3.c: New file.
40700         * modules/fprintf-posix-tests (Files): Add them.
40701         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
40702
40703 2009-12-19  Eric Blake  <ebb9@byu.net>
40704
40705         dirfd: fix prototype
40706         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
40707         * lib/dirfd.c (dirfd): Likewise.
40708
40709         canonicalize: reduce memory usage
40710         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
40711         allocation to size.
40712         Reported by Solar Designer <solar@openwall.com>.
40713
40714 2009-12-19  Bruno Haible  <bruno@clisp.org>
40715
40716         New module attribute 'Applicability'.
40717         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
40718         * gnulib-tool: New option --extract-applicability.
40719         (func_usage): Document it.
40720         (sed_extract_prog): Recognize it.
40721         (func_get_applicability): New function.
40722         (func_import): Generalize handling of 'link-warning' module.
40723         * modules/link-warning (Applicability): New section.
40724         * modules/arg-nonnull (Applicability): New section.
40725         Repoted by Simon Josefsson <simon@josefsson.org>.
40726
40727 2009-12-19  Bruno Haible  <bruno@clisp.org>
40728
40729         fflush: tweak
40730         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
40731         * lib/fseeko.c (rpl_fseeko): Likewise.
40732
40733 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
40734
40735         * lib/gl_list.h: Fix typo in comment.
40736
40737 2009-12-16  Eric Blake  <ebb9@byu.net>
40738
40739         fcntl: use to simplify other modules
40740         * modules/cloexec (Depends-on): Add fcntl.
40741         * modules/fchdir (Depends-on): Likewise.
40742         * modules/fd-safer-flag (Depends-on): Likewise.
40743         * modules/unistd-safer (Depends-on): Likewise.
40744         * modules/dup3 (configure.ac): Set module indicator.
40745         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
40746         missing.
40747         * lib/fchdir.c (_gl_register_dup): Fix comment.
40748         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
40749         * lib/dup-safer.c (dup_safer): Likewise.
40750         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
40751         * lib/dup3.c (dup3): Likewise.
40752         * tests/test-fchdir.c (main): Enhance test.
40753         Fixes a dup_cloexec bug reported by Ondřej Vašík.
40754
40755         fcntl: port portions of fcntl to mingw
40756         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
40757         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
40758         replacement for mingw.
40759         * modules/fcntl (Description): Update.
40760         (Depends-on): Add dup2.
40761         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
40762         * modules/fcntl-h (Makefile.am): Substitute it.
40763         * lib/fcntl.in.h (fcntl): Update declaration.
40764         (F_DUPFD, F_GETFD): New macros, when needed.
40765         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
40766         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
40767         * tests/test-fcntl.c (check_flags, main): Enhance test for items
40768         we now guarantee.
40769
40770         fcntl: work around cygwin bug in F_DUPFD
40771         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
40772         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
40773         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
40774         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
40775         * doc/posix-functions/fcntl.texi (fcntl): Document it.
40776
40777         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
40778         * modules/fcntl (Files): List new files.
40779         (configure.ac): Run a test.
40780         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
40781         * lib/fcntl.c (rpl_fcntl): Likewise.
40782         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
40783         (gl_FCNTL_H): Always replace fcntl.h.
40784         * modules/fcntl-h (Makefile.am): Substitute witnesses.
40785         * lib/fcntl.in.h (fcntl): Declare replacement.
40786         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
40787         needed, plus a witness.
40788         * doc/posix-functions/fcntl.texi (fcntl): Document this.
40789         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
40790         * tests/test-fcntl.c: New file.
40791         * modules/fcntl-tests: Likewise.
40792
40793         binary-io: avoid potential compilation warning
40794         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
40795         directives.
40796
40797         fflush: avoid compilation error on NetBSD
40798         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
40799         between off_t and fpos_t, since the latter is sometimes a struct.
40800         * lib/fseeko.c (rpl_fseeko): Likewise.
40801         Reported by Alexander Nasonov <alnsn@yandex.ru>.
40802
40803 2009-12-15  Eric Blake  <ebb9@byu.net>
40804
40805         fcntl-h, stdio, sys_ioctl: fix declarations
40806         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
40807         function must not take arguments.
40808         * lib/sys_ioctl.in.h (ioctl): Likewise.
40809         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
40810         (open): Add a link warning.
40811
40812 2009-12-15  Jim Meyering  <meyering@redhat.com>
40813
40814         areadlink, areadlink-with-size: relax license to LGPLv2+
40815         * modules/areadlink (License): Relax to LGPLv2+.
40816         * modules/areadlink-with-size (License): Likewise.
40817
40818 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
40819             Bruno Haible  <bruno@clisp.org>
40820
40821         *printf: Fix memory leak.
40822         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
40823         * lib/vfprintf.c (vfprintf): Likewise.
40824         * lib/dprintf.c (dprintf): Likewise.
40825         * lib/vdprintf.c (vdprintf): Likewise.
40826
40827 2009-12-14  Eric Blake  <ebb9@byu.net>
40828
40829         accept4: adjust module dependencies
40830         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
40831
40832         utimens: one more try at avoiding compiler warning
40833         * lib/utimens.c (lutimens): Lower scope of result.
40834
40835 2009-12-13  Bruno Haible  <bruno@clisp.org>
40836
40837         Move the malloc checking from module 'list' to new module 'xlist'.
40838         * modules/xlist: New file.
40839         * lib/gl_xlist.h: New file.
40840         * lib/gl_xlist.c: New file.
40841         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
40842         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
40843         gl_list_add_last, gl_list_add_before, gl_list_add_after,
40844         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
40845         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
40846         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
40847         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
40848         gl_sortedlist_nx_add): New declarations.
40849         (struct gl_list_implementation): Rename and change methods accordingly.
40850         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
40851         (gl_list_nx_create): Renamed from gl_list_create.
40852         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
40853         (gl_list_nx_set_at): Renamed from gl_list_set_at.
40854         (gl_list_nx_add_first): Renamed from gl_list_add_first.
40855         (gl_list_nx_add_last): Renamed from gl_list_add_last.
40856         (gl_list_nx_add_before): Renamed from gl_list_add_before.
40857         (gl_list_nx_add_after): Renamed from gl_list_add_after.
40858         (gl_list_nx_add_at): Renamed from gl_list_add_at.
40859         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
40860         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
40861         gl_list_create_empty.
40862         (gl_list_nx_create): Renamed from gl_list_create.
40863         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
40864         (gl_list_nx_set_at): Renamed from gl_list_set_at.
40865         (gl_list_nx_add_first): Renamed from gl_list_add_first.
40866         (gl_list_nx_add_last): Renamed from gl_list_add_last.
40867         (gl_list_nx_add_before): Renamed from gl_list_add_before.
40868         (gl_list_nx_add_after): Renamed from gl_list_add_after.
40869         (gl_list_nx_add_at): Renamed from gl_list_add_at.
40870         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
40871         * lib/gl_array_list.c: Don't include xalloc.h.
40872         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
40873         NULL upon out-of-memory.
40874         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
40875         out-of-memory.
40876         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
40877         Change return type to 'int'.
40878         (gl_array_nx_set_at): Renamed from gl_array_set_at.
40879         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
40880         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
40881         upon out-of-memory.
40882         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
40883         upon out-of-memory.
40884         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
40885         upon out-of-memory.
40886         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
40887         upon out-of-memory.
40888         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
40889         out-of-memory.
40890         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
40891         Update.
40892         (gl_array_list_implementation): Update.
40893         * lib/gl_carray_list.c: Don't include xalloc.h.
40894         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
40895         Return NULL upon out-of-memory.
40896         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
40897         out-of-memory.
40898         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
40899         Change return type to 'int'.
40900         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
40901         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
40902         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
40903         upon out-of-memory.
40904         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
40905         upon out-of-memory.
40906         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
40907         out-of-memory.
40908         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
40909         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
40910         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
40911         Update.
40912         (gl_carray_list_implementation): Update.
40913         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
40914         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
40915         gl_linked_create_empty. Return NULL upon out-of-memory.
40916         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
40917         out-of-memory.
40918         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
40919         Change return type to 'int'. Return -1 upon out-of-memory.
40920         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
40921         out-of-memory.
40922         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
40923         upon out-of-memory.
40924         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
40925         upon out-of-memory.
40926         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
40927         NULL upon out-of-memory.
40928         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
40929         upon out-of-memory.
40930         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
40931         out-of-memory.
40932         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
40933         Update.
40934         * lib/gl_linked_list.c: Don't include xalloc.h.
40935         (gl_linked_list_implementation): Update.
40936         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
40937         (add_to_bucket): Change return type to 'int'.
40938         (gl_linkedhash_list_implementation): Update.
40939         * lib/gl_anytree_list1.h (free_subtree): New function.
40940         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
40941         gl_tree_create_empty. Return NULL upon out-of-memory.
40942         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
40943         Change return type to 'int'. Return -1 upon out-of-memory.
40944         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
40945         out-of-memory.
40946         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
40947         (gl_tree_remove_node): New function, moved here from
40948         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
40949         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
40950         Update.
40951         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
40952         malloc, not xmalloc. Return NULL upon out-of-memory.
40953         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
40954         out-of-memory.
40955         (gl_tree_remove_node_from_tree): New function, extracted from
40956         gl_tree_remove_node.
40957         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
40958         upon out-of-memory.
40959         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
40960         out-of-memory.
40961         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
40962         upon out-of-memory.
40963         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
40964         upon out-of-memory.
40965         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
40966         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
40967         not xmalloc. Return NULL upon out-of-memory.
40968         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
40969         out-of-memory.
40970         (gl_tree_remove_node_from_tree): New function, extracted from
40971         gl_tree_remove_node.
40972         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
40973         upon out-of-memory.
40974         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
40975         out-of-memory.
40976         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
40977         upon out-of-memory.
40978         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
40979         upon out-of-memory.
40980         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
40981         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
40982         gl_anytree_list1.h before gl_anyavltree_list2.h.
40983         (gl_avltree_list_implementation): Update.
40984         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
40985         gl_anytree_list1.h before gl_anyavltree_list2.h.
40986         (gl_rbtree_list_implementation): Update.
40987         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
40988         Change return type to 'int'. Return -1 upon out-of-memory. Use
40989         __builtin_expect.
40990         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
40991         (gl_avltreehash_list_implementation): Update.
40992         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
40993         (gl_rbtreehash_list_implementation): Update.
40994         * modules/array-list (Depends-on): Remove xalloc.
40995         * modules/carray-list (Depends-on): Likewise.
40996         * modules/linked-list (Depends-on): Likewise.
40997         * modules/linkedhash-list (Depends-on): Likewise.
40998         * modules/avltree-list (Depends-on): Likewise.
40999         * modules/rbtree-list (Depends-on): Likewise.
41000         * modules/avltreehash-list (Depends-on): Likewise.
41001         * modules/rbtreehash-list (Depends-on): Likewise.
41002
41003         * modules/xsublist: New file.
41004         * lib/gl_xsublist.h: New file.
41005         * lib/gl_xsublist.c: New file.
41006         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
41007         (gl_sublist_nx_create): New declaration.
41008         * lib/gl_sublist.c: Don't include xalloc.h.
41009         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
41010         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
41011         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
41012         Change return type to 'int'. Return -1 upon out-of-memory.
41013         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
41014         upon out-of-memory.
41015         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
41016         NULL upon out-of-memory.
41017         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
41018         upon out-of-memory.
41019         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
41020         NULL upon out-of-memory.
41021         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
41022         NULL upon out-of-memory.
41023         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
41024         upon out-of-memory.
41025         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
41026         (gl_sublist_list_implementation): Update.
41027         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
41028         upon out-of-memory.
41029         * modules/sublist (Depends-on): Remove xalloc.
41030
41031         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
41032         * tests/test-carray_list.c: Likewise.
41033         * tests/test-linked_list.c: Likewise.
41034         * tests/test-linkedhash_list.c: Likewise.
41035         * tests/test-avltree_list.c: Likewise.
41036         * tests/test-rbtree_list.c: Likewise.
41037         * tests/test-avltreehash_list.c: Likewise.
41038         * tests/test-rbtreehash_list.c: Likewise.
41039         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
41040         * modules/carray-list-tests (Makefile.am): Likewise.
41041         * modules/linked-list-tests (Makefile.am): Likewise.
41042         * modules/linkedhash-list-tests (Makefile.am): Likewise.
41043         * modules/avltree-list-tests (Makefile.am): Likewise.
41044         * modules/rbtree-list-tests (Makefile.am): Likewise.
41045         * modules/avltreehash-list-tests (Makefile.am): Likewise.
41046         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
41047
41048         * NEWS: Mention the changes.
41049
41050         * lib/clean-temp.c: Include gl_xlist.h.
41051         * modules/clean-temp (Depends-on): Add xlist.
41052
41053         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
41054         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
41055
41056         * tests/test-array_oset.c: Include gl_xlist.h.
41057         * modules/array-oset-tests (Depends-on): Add xlist.
41058
41059         Reported by José E. Marchesi <jemarch@gnu.org>.
41060
41061 2009-12-13  Bruno Haible  <bruno@clisp.org>
41062
41063         Move the malloc checking from module 'oset' to new module 'xoset'.
41064         * modules/xoset: New file.
41065         * lib/gl_xoset.h: New file.
41066         * lib/gl_xoset.c: New file.
41067         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
41068         declarations.
41069         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
41070         (struct gl_oset_implementation): Rename and change methods accordingly.
41071         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
41072         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
41073         'int'. Mark as __warn_unused_result__.
41074         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
41075         gl_oset_create_empty.
41076         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
41077         'int'.
41078         * lib/gl_array_oset.c: Don't include xalloc.h.
41079         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
41080         malloc, not xmalloc.
41081         (grow): Change return type to 'int'. Don't call xalloc_die.
41082         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
41083         to 'int'.
41084         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
41085         'int'.
41086         (gl_array_oset_implementation): Update.
41087         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
41088         gl_tree_create_empty.
41089         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
41090         'int'.
41091         * lib/gl_avltree_oset.c: Don't include xalloc.h.
41092         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
41093         xmalloc.
41094         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
41095         not xmalloc.
41096         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
41097         xmalloc.
41098         (gl_avltree_oset_implementation): Update.
41099         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
41100         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
41101         xmalloc.
41102         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
41103         not xmalloc.
41104         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
41105         xmalloc.
41106         (gl_rbtree_oset_implementation): Update.
41107         * modules/array-oset (Depends-on): Remove xalloc.
41108         * modules/avltree-oset (Depends-on): Likewise.
41109         * modules/rbtree-oset (Depends-on): Likewise.
41110         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
41111         * tests/test-avltree_oset.c: Likewise.
41112         * tests/test-rbtree_oset.c: Likewise.
41113         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
41114         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
41115         * modules/rbtree-oset-tests (Makefile.am): Likewise.
41116         * NEWS: Mention the change.
41117
41118 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
41119
41120         maint.mk: allow a project to override release-prep commands
41121         * top/maint.mk (alpha, beta, stable): Move release-preparatory
41122         commands into a new rule.
41123         (release-prep): New rule.
41124         (release-prep-hook): New overridable variable.
41125
41126 2009-12-13  Bruno Haible  <bruno@clisp.org>
41127
41128         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
41129
41130 2009-12-13  Jim Meyering  <meyering@redhat.com>
41131
41132         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
41133         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
41134
41135 2009-12-12  Bruno Haible  <bruno@clisp.org>
41136
41137         duplocale: Tweak.
41138         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
41139
41140 2009-12-12  Karl Berry  <karl@gnu.org>
41141
41142         * config/srclist.txt (strtoll.c): tab changes, no more sync.
41143
41144 2009-12-12  Bruno Haible  <bruno@clisp.org>
41145
41146         * m4/po.m4: Undo incorrect untabification.
41147
41148 2009-12-12  Bruno Haible  <bruno@clisp.org>
41149
41150         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
41151         * modules/c-strtod (Depends-on): Add locale.
41152         * modules/c-strtold (Depends-on): Likewise.
41153
41154 2009-12-12  Bruno Haible  <bruno@clisp.org>
41155
41156         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
41157
41158 2009-12-11  Eric Blake  <ebb9@byu.net>
41159
41160         setenv: relax requirement in light of POSIX ruling
41161         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
41162         not NULL.
41163         * tests/test-setenv.c (main): Relax test.
41164         * tests/test-unsetenv.c (main): Likewise.
41165         * doc/posix-functions/setenv.texi (setenv): Document this.
41166         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
41167
41168 2009-12-11  Bruno Haible  <bruno@clisp.org>
41169
41170         New module 'fd-safer-flag'.
41171         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
41172         * lib/dup-safer.c (dup_safer_flag): Remove function.
41173         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
41174         * lib/fd-safer.c (fd_safer_flag): Remove function.
41175         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
41176         * modules/cloexec (configure.ac): Drop indicator macro.
41177         * modules/fd-safer-flag: New file.
41178         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
41179         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
41180         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
41181
41182 2009-12-11  Bruno Haible  <bruno@clisp.org>
41183
41184         Tests for module 'nl_langinfo'.
41185         * modules/nl_langinfo-tests: New file.
41186         * tests/test-nl_langinfo.sh: New file.
41187         * tests/test-nl_langinfo.c: New file.
41188
41189         New module 'nl_langinfo'.
41190         * lib/nl_langinfo.c: New file.
41191         * m4/nl_langinfo.m4: New file.
41192         * modules/nl_langinfo: New file.
41193         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
41194
41195 2009-12-11  Bruno Haible  <bruno@clisp.org>
41196
41197         Tests for module 'langinfo'.
41198         * modules/langinfo-tests: New file.
41199         * tests/test-langinfo.c: New file.
41200
41201         New module 'langinfo'.
41202         * lib/langinfo.in.h: New file.
41203         * m4/langinfo_h.m4: New file.
41204         * modules/langinfo: New file.
41205         * doc/posix-headers/langinfo.texi: Mention the new module.
41206
41207 2009-12-11  Bruno Haible  <bruno@clisp.org>
41208
41209         * lib/config.charset: Untabify.
41210
41211 2009-12-11  Bruno Haible  <bruno@clisp.org>
41212
41213         * modules/unistd-safer (configure.ac): Drop indicator macro.
41214
41215 2009-12-11  Bruno Haible  <bruno@clisp.org>
41216
41217         Move pipe2-safer code to its own file.
41218         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
41219         * lib/pipe-safer.c (pipe2_safer): Remove function.
41220         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
41221         (Makefile.am): Add it to lib_SOURCES.
41222
41223 2009-12-10  Bruno Haible  <bruno@clisp.org>
41224
41225         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
41226
41227 2009-12-10  Bruno Haible  <bruno@clisp.org>
41228
41229         Declare which arguments expect non-NULL values, for GCC and clang.
41230         * build-aux/arg-nonnull.h: New file.
41231         * modules/arg-nonnull: New file.
41232         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
41233         (inet_ntop, inet_pton): Use it.
41234         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
41235         (closedir, dirfd, opendir, scandir, alphasort): Use it.
41236         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
41237         (open, openat): Use it.
41238         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
41239         (fnmatch): Use it.
41240         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
41241         (getopt, getopt_long, getopt_long_only): Use it.
41242         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
41243         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
41244         Use it.
41245         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
41246         (iconv_open): Use it.
41247         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
41248         (strtoimax, strtoumax): Use it.
41249         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
41250         (duplocale): Use it.
41251         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
41252         (frexp, frexpl): Use it.
41253         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
41254         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
41255         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
41256         (tsearch, tfind, tdelete, twalk): Use it.
41257         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
41258         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
41259         sigpending): Use it.
41260         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
41261         (posix_spawn, posix_spawnp, posix_spawnattr_init,
41262         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
41263         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
41264         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
41265         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
41266         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
41267         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
41268         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
41269         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
41270         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
41271         Use it.
41272         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
41273         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
41274         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
41275         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
41276         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
41277         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
41278         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
41279         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
41280         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
41281         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
41282         strtoull, unsetenv): Use it.
41283         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
41284         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
41285         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
41286         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
41287         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
41288         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
41289         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
41290         (strcasecmp, strncasecmp): Use it.
41291         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
41292         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
41293         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
41294         rpl_setsockopt): Use it.
41295         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
41296         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
41297         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
41298         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
41299         (gettimeofday): Use it.
41300         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
41301         (times): Use it.
41302         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
41303         (uname): Use it.
41304         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
41305         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
41306         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
41307         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
41308         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
41309         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
41310         unlinkat, write): Use it.
41311         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
41312         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
41313         * lib/argv-iter.h: Include arg-nonnull.h.
41314         (_ATTRIBUTE_NONNULL_): Remove macro.
41315         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
41316         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
41317         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
41318         optimization.
41319         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
41320         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
41321         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
41322         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
41323         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
41324         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
41325         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
41326         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
41327         * modules/arpa_inet (Depends-on): Add arg-nonnull.
41328         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
41329         * modules/dirent (Depends-on): Add arg-nonnull.
41330         (Makefile.am): Insert arg-nonnull.h into dirent.h.
41331         * modules/fcntl-h (Depends-on): Add arg-nonnull.
41332         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
41333         * modules/fnmatch (Depends-on): Add arg-nonnull.
41334         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
41335         * modules/getopt-posix (Depends-on): Add arg-nonnull.
41336         (Makefile.am): Insert arg-nonnull.h into getopt.h.
41337         * modules/glob (Depends-on): Add arg-nonnull.
41338         (Makefile.am): Insert arg-nonnull.h into glob.h.
41339         * modules/iconv_open (Depends-on): Add arg-nonnull.
41340         (Makefile.am): Insert arg-nonnull.h into iconv.h.
41341         * modules/inttypes (Depends-on): Add arg-nonnull.
41342         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
41343         * modules/locale (Depends-on): Add arg-nonnull.
41344         (Makefile.am): Insert arg-nonnull.h into locale.h.
41345         * modules/math (Depends-on): Add arg-nonnull.
41346         (Makefile.am): Insert arg-nonnull.h into math.h.
41347         * modules/netdb (Depends-on): Add arg-nonnull.
41348         (Makefile.am): Insert arg-nonnull.h into netdb.h.
41349         * modules/search (Depends-on): Add arg-nonnull.
41350         (Makefile.am): Insert arg-nonnull.h into search.h.
41351         * modules/signal (Depends-on): Add arg-nonnull.
41352         (Makefile.am): Insert arg-nonnull.h into signal.h.
41353         * modules/spawn (Depends-on): Add arg-nonnull.
41354         (Makefile.am): Insert arg-nonnull.h into spawn.h.
41355         * modules/stdio (Depends-on): Add arg-nonnull.
41356         (Makefile.am): Insert arg-nonnull.h into stdio.h.
41357         * modules/stdlib (Depends-on): Add arg-nonnull.
41358         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
41359         * modules/string (Depends-on): Add arg-nonnull.
41360         (Makefile.am): Insert arg-nonnull.h into string.h.
41361         * modules/strings (Depends-on): Add arg-nonnull.
41362         (Makefile.am): Insert arg-nonnull.h into strings.h.
41363         * modules/sys_socket (Depends-on): Add arg-nonnull.
41364         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
41365         * modules/sys_stat (Depends-on): Add arg-nonnull.
41366         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
41367         * modules/sys_time (Depends-on): Add arg-nonnull.
41368         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
41369         * modules/sys_times (Depends-on): Add arg-nonnull.
41370         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
41371         * modules/sys_utsname (Depends-on): Add arg-nonnull.
41372         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
41373         * modules/time (Depends-on): Add arg-nonnull.
41374         (Makefile.am): Insert arg-nonnull.h into time.h.
41375         * modules/unistd (Depends-on): Add arg-nonnull.
41376         (Makefile.am): Insert arg-nonnull.h into unistd.h.
41377         * modules/wchar (Depends-on): Add arg-nonnull.
41378         (Makefile.am): Insert arg-nonnull.h into wchar.h.
41379         * modules/argv-iter (Depends-on): Add arg-nonnull.
41380         * tests/test-canonicalize.c (null_ptr): New function.
41381         (main): Use it.
41382         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
41383         (main): Use it.
41384         * tests/test-memmem.c (null_ptr): New function.
41385         (main): Use it.
41386         Reported by Jim Meyering.
41387
41388 2009-12-10  Bruno Haible  <bruno@clisp.org>
41389
41390         Use spaces for indentation, not tabs.
41391         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
41392         * m4/*.m4: Untabify.
41393         * build-aux/*.h: Untabify.
41394         * tests/**/*.[hc]: Untabify.
41395         * README: New section "Indent with spaces, not TABs", based on
41396         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
41397         * NEWS: Mention the change.
41398
41399 2009-12-10  Bruno Haible  <bruno@clisp.org>
41400
41401         pty test: Fix link error.
41402         * modules/pty-tests (Makefile.am): Add the default LDADD value to
41403         test_pty_LDADD.
41404
41405 2009-12-07  Simon Josefsson  <simon@josefsson.org>
41406
41407         * modules/pty: New file.
41408         * modules/pty-tests: New file.
41409         * m4/pty.m4: New file.
41410         * tests/test-pty.c: New file.
41411         * doc/glibc-headers/pty.texi: Modified.
41412         * doc/glibc-functions/forkpty.texi: Modified.
41413         * doc/glibc-functions/openpty.texi: Modified.
41414
41415 2009-12-10  Bruno Haible  <bruno@clisp.org>
41416
41417         Avoid syntax error in C++ mode.
41418         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
41419
41420 2009-12-10  Bruno Haible  <bruno@clisp.org>
41421
41422         Use sed with option -e.
41423         * gnulib-tool (func_version, func_emit_copyright_notice,
41424         func_emit_initmacro_end, func_import, func_create_testdir): Pass
41425         option -e to sed.
41426         * modules/link-warning (Makefile.am): Likewise.
41427
41428 2009-12-10  Jim Meyering  <meyering@redhat.com>
41429
41430         mgetgroups: do not write bytes beyond end of malloc'd buffer
41431         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
41432         username, we call getgroups with a one-element-shorter buffer,
41433         but still told it the length was original, max_n_groups.
41434
41435 2009-12-09  Eric Blake  <ebb9@byu.net>
41436
41437         cloexec: relax license
41438         * modules/cloexec (Maintainer): Add myself.
41439         (License): Use LGPL, not GPL.
41440
41441         link-warning: optimize generation
41442         * modules/link-warning (Makefile.am): Reduce process usage.
41443
41444 2009-12-09  Bruno Haible  <bruno@clisp.org>
41445
41446         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
41447         workaround was added on 2009-11-17.
41448
41449 2009-12-09  Jim Meyering  <meyering@redhat.com>
41450             Bruno Haible  <bruno@clisp.org>
41451
41452         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
41453         * modules/link-warning (Makefile.am): Make the comment-removing sed
41454         command more robust in the face of bootstrap-prepended comment lines.
41455
41456 2009-12-09  Bruno Haible  <bruno@clisp.org>
41457
41458         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
41459         most one group.
41460
41461 2009-12-09  Simon Josefsson <simon@josefsson.org>
41462             Bruno Haible  <bruno@clisp.org>
41463
41464         * build-aux/link-warning.h: Add copyright notice.
41465         * modules/link-warning (Makefile.am): Generate link-warning.h from
41466         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
41467         * NEWS: Mention change in link-warning module.
41468         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
41469         * modules/dirent (Makefile.am): Add dependency to dirent.h.
41470         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
41471         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
41472         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
41473         * modules/math (Makefile.am): Add dependency to math.h.
41474         * modules/search (Makefile.am): Add dependency to search.h.
41475         * modules/signal (Makefile.am): Add dependency to signal.h.
41476         * modules/spawn (Makefile.am): Add dependency to spawn.h.
41477         * modules/stdio (Makefile.am): Add dependency to stdio.h.
41478         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
41479         * modules/string (Makefile.am): Add dependency to string.h.
41480         * modules/strings (Makefile.am): Add dependency to strings.h.
41481         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
41482         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
41483         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
41484         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
41485         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
41486         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
41487         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
41488         * modules/unistd (Makefile.am): Add dependency to unistd.h.
41489         * modules/wchar (Makefile.am): Add dependency to wchar.h.
41490
41491 2009-12-09  Bruno Haible  <bruno@clisp.org>
41492
41493         fchdir: Optimize away rpl_fstat when possible.
41494         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
41495         REPLACE_OPEN_DIRECTORY.
41496         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
41497
41498 2009-12-09  Bruno Haible  <bruno@clisp.org>
41499
41500         * lib/fchdir.c: Update comment.
41501
41502 2009-12-09  Bruno Haible  <bruno@clisp.org>
41503
41504         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
41505
41506 2009-12-08  Eric Blake  <ebb9@byu.net>
41507
41508         fchdir: avoid memory leak on re-registration.
41509         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
41510
41511 2009-12-08  Jim Meyering  <meyering@redhat.com>
41512
41513         init.sh: avoid Solaris 10 /bin/sh portability problem
41514         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
41515         sourced script:
41516           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
41517           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
41518           bar
41519         tests/init.sh relied on that, accepting a --set-path=DIR argument,
41520         and two tests used that idiom.
41521         * tests/init.sh: Update suggested usage comments.
41522         (path_prepend_): New function, to be used in place
41523         of the --src-path=DIR option.
41524         (setup_): Move PATH-prepending code into path_prepend_.
41525         * tests/test-pread.sh: Adapt to new usage.
41526         * tests/test-xalloc-die.sh: Likewise.
41527
41528 2009-12-08  Simon Josefsson  <simon@josefsson.org>
41529
41530         * doc/gnulib.texi (Glibc pty.h): Add.
41531         * doc/glibc-functions/forkpty.texi: Add.
41532         * doc/glibc-functions/openpty.texi: Add.
41533         Suggested by Bruno Haible.
41534
41535 2009-12-08  Eric Blake  <ebb9@byu.net>
41536
41537         fchdir: fix logic bugs
41538         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
41539         * tests/test-fchdir.c (main): Enhance test.
41540         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
41541         is in use.
41542
41543         dup2: fix logic bugs
41544         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
41545         REPLACE_DUP2 to decide when rpl_dup2 is needed.
41546         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
41547         exists.
41548         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
41549
41550 2009-12-07  Eric Blake  <ebb9@byu.net>
41551
41552         unlink: fix m4 detection
41553         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
41554
41555         unistd-safer: add unit test
41556         * modules/unistd-safer-tests: New file.
41557         * tests/test-dup-safer.c: Likewise.
41558         * tests/test-cloexec.c (setmode): Avoid compiler warning.
41559         * tests/test-dup2.c (setmode): Likewise.
41560         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
41561
41562         cloexec: preserve text vs. binary across dup_cloexec
41563         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
41564         mode.
41565         * modules/dup2-tests (Depends-on): Add binary-io.
41566         * modules/cloexec-tests (Depends-on): Likewise.
41567         * tests/test-dup2.c (setmode, is_mode): New helpers.
41568         (main): Add tests that translation mode is preserved.
41569         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
41570         Reported by Bruno Haible.
41571
41572         mgetgroups: reduce duplicate listings
41573         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
41574         resulting array.
41575         * tests/test-chown.h (test_chown): Simplify client.
41576         * tests/test-lchown.h (test_lchown): Likewise.
41577
41578 2009-12-06  Bruno Haible  <bruno@clisp.org>
41579
41580         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
41581         value.
41582
41583 2009-12-06  Bruno Haible  <bruno@clisp.org>
41584
41585         * lib/progname.c: Include stdio.h, stdlib.h.
41586         (set_program_name): Reject a NULL argument.
41587
41588 2009-12-05  Eric Blake  <ebb9@byu.net>
41589
41590         pipe2-safer: new module
41591         * modules/pipe2-safer: New file.
41592         * lib/unistd-safer.h (pipe2_safer): New prototype.
41593         * lib/unistd--.h (pipe2): New wrapper.
41594         * lib/pipe-safer.c (pipe2_safer): New function.
41595         * modules/pipe (Depends-on): Add pipe2-safer.
41596         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
41597
41598         stdlib-safer: preserve cloexec flag for mkostemp[s]
41599         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
41600         fd_safer_flag.
41601
41602         unistd-safer: allow preservation of cloexec status via flag
41603         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
41604         prototypes.
41605         * lib/dup-safer.c (dup_safer_flag): New function.
41606         * lib/fd-safer.c (fd_safer_flag): Likewise.
41607         * modules/cloexec (configure.ac): Set witness.
41608
41609         test-dup2: enhance test
41610         * modules/dup2-tests (Depends-on): Add cloexec.
41611         * tests/test-dup2.c (main): Enhance test.
41612
41613         cloexec: add dup_cloexec
41614         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
41615         header and comments.
41616         * lib/cloexec.c (set_cloexec_flag): Add comments.
41617         (dup_cloexec): New function, with mingw implementation borrowed
41618         from...
41619         * lib/w32spawn.h (dup_noinherit): ...here.
41620         * modules/execute (Depends-on): Add cloexec.
41621         * modules/pipe (Depends-on): Likewise.
41622         * modules/cloexec (Depends-on): Add dup2.
41623         * modules/cloexec-tests (Files): New file.
41624         * tests/test-cloexec.c: Likewise.
41625
41626         test-xalloc-die: fix test for mingw
41627         * modules/xalloc-die-tests (Files): Add tests/init.sh.
41628         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
41629         directory and .exe suffix off argv[0] output.
41630
41631         test-fseeko: fix test for mingw
41632         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
41633         than undefining fseek, so test will pass on mingw.
41634
41635 2009-12-05  Bruno Haible  <bruno@clisp.org>
41636
41637         * lib/progname.h (set_program_name): Clarify specification.
41638         * lib/progname.c (set_program_name): Likewise.
41639         Reported by Jim Meyering.
41640
41641 2009-12-05  Jim Meyering  <meyering@redhat.com>
41642
41643         maint.mk: backslash-escape parens in default regexp
41644         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
41645         backslash-escape the literal parentheses.
41646
41647         maint.mk: news-date-check: use grep -E
41648         * top/maint.mk (today): Define a Make variable, not a...
41649         (news-date-check): ...shell variable.
41650         (news-date-regexp): Use the Make variable.
41651         Use grep's -E option.  Change the failing diagnostic to mention
41652         the variable, $(news-date-regexp).
41653
41654 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
41655
41656         maintainer-makefile: allow customization of NEWS entry format
41657         * top/maint.mk (news-date-regexp): New overridable variable.
41658         (news-date-check): Use it.
41659
41660 2009-12-04  Eric Blake  <ebb9@byu.net>
41661
41662         mgetgroups: add xgetgroups, and avoid ENOSYS failures
41663         * lib/mgetgroups.h (xgetgroups): New prototype.
41664         * lib/mgetgroups.c (xgetgroups): New wrapper.
41665         (mgetgroups): Handle ENOSYS.
41666         * modules/mgetgroups (Depends-on): Add realloc.
41667         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
41668
41669         mgetgroups: avoid argument promotion issues with -1
41670         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
41671         for invalid gid_t.
41672         * tests/test-chown.h (getegid, test_chown): Likewise.
41673         * tests/test-lchown.h (getegid, test_lchown): Likewise.
41674
41675 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
41676
41677         exclude: Fix header file problems.
41678         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
41679
41680 2009-12-01  Jim Meyering  <meyering@redhat.com>
41681
41682         fts: fts_open: do not let an empty string cause immediate failure
41683         This is required in support of GNU rm, for which the command
41684         "rm A '' B" must process and remove both A and B, in spite of
41685         the empty string argument.
41686         * lib/fts.c (fts_open): Do not let the presence of an empty string
41687         cause fts_open to fail immediately.  Most fts-using tools must be
41688         able to process all arguments, in order, and can be expected to
41689         diagnose such arguments themselves.
41690
41691 2009-11-30  Eric Blake  <ebb9@byu.net>
41692
41693         utimens: fix compilation error
41694         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
41695         Declare variable at right scope.
41696
41697 2009-11-29  Jim Meyering  <meyering@redhat.com>
41698
41699         bootstrap: handle perl-5.11's changed --version output
41700         * build-aux/bootstrap (get_version): Handle perl separately,
41701         since perl-5.11's --version output is different.
41702
41703 2009-11-28  Jim Meyering  <meyering@redhat.com>
41704
41705         userspec: depend on the inttostr module, too
41706         * modules/userspec (Depends-on): Add inttostr.
41707
41708         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
41709         * lib/userspec.c (parse_with_separator): Do not accept a user ID
41710         number of MAXUID when it evaluates to (uid_t) -1.
41711         Likewise for group ID.  Reported by Matt McCutchen in
41712         <http://savannah.gnu.org/bugs/?28113>
41713
41714         userspec: reformat to use spaces, not TABs
41715         * lib/userspec.c: Expand TABs to spaces.
41716         Add Emacs' "indent-tabs-mode: nil" hint.
41717
41718 2009-11-27  Eric Blake  <ebb9@byu.net>
41719
41720         getopt-gnu: flush out another BSD bug
41721         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
41722         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
41723         flush out BSD bug.
41724         * tests/test-getopt.h (test_getopt): End lists with NULL.
41725         * tests/test-getopt_long.h (test_getopt_long): Likewise.
41726         (test_getopt_long_posix): Enhance test.
41727         * modules/getopt-posix-tests (Depends-on): Add stdbool.
41728         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
41729         getopt-gnu.
41730         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
41731         Likewise.
41732
41733 2009-11-27  Simon Josefsson  <simon@josefsson.org>
41734
41735         * modules/idpriv-droptemp-tests (Notice): Fix text.
41736
41737 2009-11-27  Jim Meyering  <meyering@redhat.com>
41738
41739         test-xalloc-die: avoid spurious failure due to libtool argv difference
41740         In a libtool-enabled project, this test would fail due to a difference
41741         in the emitted program name, e.g.,
41742         -test-xalloc-die: memory exhausted
41743         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
41744         Use program to avoid that.
41745         * modules/xalloc-die-tests (Depends-on): Add progname.
41746         * tests/test-xalloc-die.c: Include progname.h".
41747         (program_name): Remove decl.
41748         (main): Call set_program_name.
41749         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
41750
41751 2009-11-26  Richard Jones  <rjones@redhat.com>
41752
41753         w32sock: leave win32 error in place.
41754         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
41755
41756 2009-11-26  Eric Blake  <ebb9@byu.net>
41757
41758         init.sh: suggest to use skip_ and fail_ functions in comments
41759         * tests/init.sh: Add a sentence.
41760
41761 2009-11-25  Bruno Haible  <bruno@clisp.org>
41762
41763         init.sh: add documentation in comments
41764         * tests/init.sh: Add some developer and user documentation.
41765
41766 2009-11-26  Jim Meyering  <meyering@redhat.com>
41767
41768         init.sh: accommodate even those who specify bogus srcdir manually
41769         * tests/init.sh: Normally, srcdir is guaranteed by automake and
41770         configure-time tests to be sanitized, so that there is no need to
41771         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
41772         (with no double quotes) suffices.  However, since tests may be
41773         invoked manually, and since you may explicitly set srcdir to the
41774         name of a directory containing spaces, do quote its uses here.
41775         * tests/test-pread.sh: Likewise.
41776         Suggested by Bruno Haible.
41777
41778         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
41779         * tests/test-pread.sh: Write no data into the pipe, because
41780         test-pread actually reads none.  This avoids a diagnostic,
41781         "bash: echo: write error: Broken pipe", that arises in the unusual
41782         event something is ignoring SIGPIPE, and might be interpreted
41783         as some sort of failure.  Reported by Bruno Haible.
41784
41785 2009-11-25  Jim Meyering  <meyering@redhat.com>
41786
41787         test-pread: cover failure with ESPIPE and EINVAL
41788         * tests/test-pread.c (main): Test for failure, too.
41789         * tests/test-pread.sh: Invoke with stdin on a pipe.
41790         Suggested by Eric Blake.
41791
41792         pread: improvement and fix
41793         * modules/pread (Depends-on): Depend on lseek, for portability to
41794         e.g., mingw.  Suggested by Eric Blake.
41795         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
41796
41797         unistd.in.h: correct declaration of pread
41798         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
41799         Reported by Richard W.M. Jones.
41800
41801         test-pread.sh: distribute the test script
41802         * modules/pread-tests (Files): Include test-pread.sh.
41803
41804         test-pread.sh: clean up
41805         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
41806         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
41807         That is unnecessary, since it's always ".".
41808         Suggestion from Eric Blake.
41809
41810         test-pread.sh: make executable
41811         * tests/test-pread.sh: Set executable bit.
41812         Reported by Eric Blake.
41813
41814         correct typo in test-pread.sh
41815         * tests/test-pread.sh: Add #! line.
41816
41817         test pread
41818         * tests/test-pread.c: New file.
41819         * tests/test-pread.sh: Likewise.
41820         * modules/pread-tests: Likewise.
41821
41822         pread: new module
41823         * modules/pread: New file.
41824         * lib/unistd.in.h (pread): Define/declare.
41825         * lib/pread.c (pread): New file.
41826         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
41827         * modules/unistd (Makefile.am): Substitute witnesses.
41828         * doc/posix-functions/pread.texi (pread): Update.
41829         * MODULES.html.sh: Add pread.
41830
41831 2009-11-25  Jim Meyering  <meyering@redhat.com>
41832
41833         tests/init.sh: new file to be used via most *.sh tests
41834         * tests/init.sh: New file.
41835
41836 2009-11-25  Eric Blake  <ebb9@byu.net>
41837
41838         utimens: work around older Linux failure with symlinks
41839         * lib/utimens.c (lutimensat_works_really): New variable.
41840         (fdutimens, lutimens): Use it to manage kernels that support
41841         nanosecond times on files, but not on symlinks.
41842         Reported by Ondřej Vašík.
41843
41844         utimes: fix configure grammar
41845         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
41846
41847 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
41848
41849         regex: Fix fastmap for multibyte character ranges.
41850         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
41851         characters when a multibyte character range is included.
41852
41853 2009-11-22  Andy Wingo  <wingo@pobox.com>
41854
41855         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
41856         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
41857
41858 2009-11-24  Bruno Haible  <bruno@clisp.org>
41859
41860         doc: Most *_l functions exist in MacOS X 10.5.
41861         * doc/posix-functions/duplocale.texi: Update platforms list.
41862         * doc/posix-functions/freelocale.texi: Likewise.
41863         * doc/posix-functions/newlocale.texi: Likewise.
41864         * doc/posix-functions/uselocale.texi: Likewise.
41865         * doc/posix-functions/isalnum_l.texi: Likewise.
41866         * doc/posix-functions/isalpha_l.texi: Likewise.
41867         * doc/posix-functions/isblank_l.texi: Likewise.
41868         * doc/posix-functions/iscntrl_l.texi: Likewise.
41869         * doc/posix-functions/isdigit_l.texi: Likewise.
41870         * doc/posix-functions/isgraph_l.texi: Likewise.
41871         * doc/posix-functions/islower_l.texi: Likewise.
41872         * doc/posix-functions/isprint_l.texi: Likewise.
41873         * doc/posix-functions/ispunct_l.texi: Likewise.
41874         * doc/posix-functions/isspace_l.texi: Likewise.
41875         * doc/posix-functions/isupper_l.texi: Likewise.
41876         * doc/posix-functions/iswalnum_l.texi: Likewise.
41877         * doc/posix-functions/iswalpha_l.texi: Likewise.
41878         * doc/posix-functions/iswblank_l.texi: Likewise.
41879         * doc/posix-functions/iswcntrl_l.texi: Likewise.
41880         * doc/posix-functions/iswctype_l.texi: Likewise.
41881         * doc/posix-functions/iswdigit_l.texi: Likewise.
41882         * doc/posix-functions/iswgraph_l.texi: Likewise.
41883         * doc/posix-functions/iswlower_l.texi: Likewise.
41884         * doc/posix-functions/iswprint_l.texi: Likewise.
41885         * doc/posix-functions/iswpunct_l.texi: Likewise.
41886         * doc/posix-functions/iswspace_l.texi: Likewise.
41887         * doc/posix-functions/iswupper_l.texi: Likewise.
41888         * doc/posix-functions/iswxdigit_l.texi: Likewise.
41889         * doc/posix-functions/isxdigit_l.texi: Likewise.
41890         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
41891         * doc/posix-functions/strcasecmp_l.texi: Likewise.
41892         * doc/posix-functions/strcoll_l.texi: Likewise.
41893         * doc/posix-functions/strfmon_l.texi: Likewise.
41894         * doc/posix-functions/strftime_l.texi: Likewise.
41895         * doc/posix-functions/strncasecmp_l.texi: Likewise.
41896         * doc/posix-functions/strxfrm_l.texi: Likewise.
41897         * doc/posix-functions/tolower_l.texi: Likewise.
41898         * doc/posix-functions/toupper_l.texi: Likewise.
41899         * doc/posix-functions/towctrans_l.texi: Likewise.
41900         * doc/posix-functions/towlower_l.texi: Likewise.
41901         * doc/posix-functions/towupper_l.texi: Likewise.
41902         * doc/posix-functions/wcscoll_l.texi: Likewise.
41903         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
41904         * doc/posix-functions/wctrans_l.texi: Likewise.
41905         * doc/posix-functions/wctype_l.texi: Likewise.
41906         * doc/glibc-functions/strptime_l.texi: Likewise.
41907         * doc/glibc-functions/strtod_l.texi: Likewise.
41908         * doc/glibc-functions/strtof_l.texi: Likewise.
41909         * doc/glibc-functions/strtol_l.texi: Likewise.
41910         * doc/glibc-functions/strtold_l.texi: Likewise.
41911         * doc/glibc-functions/strtoll_l.texi: Likewise.
41912         * doc/glibc-functions/strtoul_l.texi: Likewise.
41913         * doc/glibc-functions/strtoull_l.texi: Likewise.
41914         * doc/glibc-functions/wcsftime_l.texi: Likewise.
41915         * doc/glibc-functions/wcstod_l.texi: Likewise.
41916         * doc/glibc-functions/wcstof_l.texi: Likewise.
41917         * doc/glibc-functions/wcstol_l.texi: Likewise.
41918         * doc/glibc-functions/wcstold_l.texi: Likewise.
41919         * doc/glibc-functions/wcstoll_l.texi: Likewise.
41920         * doc/glibc-functions/wcstoul_l.texi: Likewise.
41921         * doc/glibc-functions/wcstoull_l.texi: Likewise.
41922
41923 2009-11-24  Bruno Haible  <bruno@clisp.org>
41924
41925         duplocale: Fix logic bug.
41926         * lib/duplocale.c: Don't include <langinfo.h>.
41927         (_NL_LOCALE_NAME): Remove macro.
41928         (rpl_duplocale): Use setlocale instead of nl_langinfo.
41929         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
41930
41931 2009-11-23  Jim Meyering  <meyering@redhat.com>
41932
41933         test-update-copyright: don't hard-code /usr/bin/perl
41934         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
41935         perl to print the current year.  Gilles Espinasse reported that
41936         the replaced use of perl was hard-coded as /usr/bin/perl.
41937
41938 2009-11-23  Bruno Haible  <bruno@clisp.org>
41939
41940         duplocale: Add support for glibc 2.3.x.
41941         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
41942
41943 2009-11-22  Bruno Haible  <bruno@clisp.org>
41944
41945         vasnprintf: Tiny optimization.
41946         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
41947         MacOS X.
41948
41949 2009-11-22  Bruno Haible  <bruno@clisp.org>
41950
41951         Tests for module 'duplocale'.
41952         * modules/duplocale-tests: New file.
41953         * tests/test-duplocale.c: New file.
41954
41955         New module 'duplocale'.
41956         * m4/duplocale.m4: New file.
41957         * lib/locale.in.h (duplocale): New declaration.
41958         * lib/duplocale.c: New file.
41959         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
41960         gl_LOCALE_H_DEFAULTS): New macros.
41961         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
41962         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
41963         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
41964         REPLACE_DUPLOCALE.
41965         * modules/duplocale: New file.
41966         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
41967
41968 2009-11-22  Bruno Haible  <bruno@clisp.org>
41969
41970         * modules/locale-tests (configure.ac): Test for newlocale function.
41971         * tests/test-locale.c: When the system has extended locale functions,
41972         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
41973
41974         locale: Make locale_t available when possible.
41975         * lib/locale.in.h: Include <xlocale.h> when it exists.
41976         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
41977         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
41978         * modules/locale (Depends-on): Add extensions.
41979         (Makefile.am): Also substitute HAVE_XLOCALE_H.
41980         * doc/posix-headers/locale.texi: Document the problem with locale_t.
41981
41982 2009-11-22  Bruno Haible  <bruno@clisp.org>
41983
41984         Add comments.
41985         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
41986         invocation.
41987         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
41988         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
41989         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
41990
41991 2009-11-22  Bruno Haible  <bruno@clisp.org>
41992
41993         error: account for the possibility of freopen (stdout).
41994         * lib/error.c: Include <unistd.h>.
41995         (flush_stdout): New function, extracted from error and error_at_line.
41996         Determine stdout's fd dynamically.
41997         (error, error_at_line): Invoke flush_stdout.
41998         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
41999         * modules/error (Depends-on): Add unistd.
42000
42001 2009-11-22  Bruno Haible  <bruno@clisp.org>
42002
42003         diffseq: Add comment.
42004         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
42005
42006 2009-11-22  Jim Meyering  <meyering@redhat.com>
42007
42008         c-stack: avoid defining an unused static function
42009         * lib/c-stack.c (find_stack_direction): Do not define this function
42010         when it will not be used.
42011
42012         diffseq: avoid spurious gcc warnings
42013         * lib/diffseq.h (IF_LINT2): Define.
42014         (compareseq): Use it to initialize two members of "part".
42015         This avoids two used-uninitialized warnings.
42016
42017 2009-11-21  Jim Meyering  <meyering@redhat.com>
42018
42019         c-stack: avoid "ignoring return value of `write'" warning
42020         * lib/c-stack.c: Include "ignore-value.h".
42021         (die): Explicitly ignore each write return value.
42022         * modules/c-stack (Depends-on): Add ignore-value.
42023
42024 2009-11-21  Bruno Haible  <bruno@clisp.org>
42025
42026         diffseq: reduce scope of variable 'best'.
42027         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
42028         variable, earlier used for two different purposes.
42029
42030 2009-11-21  Jim Meyering  <meyering@redhat.com>
42031
42032         diffseq: remove useless assignment to "best"
42033         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
42034         assignment.  At that point "best" is already guaranteed to be zero.
42035
42036 2009-11-20  Eric Blake  <ebb9@byu.net>
42037
42038         build: mention ftp redirector in release announcements
42039         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
42040         values that used to come from cfg.mk; mention FTP redirect URL.
42041         * build-aux/announce-gen: Mention the mirror list.
42042         Suggested by Karl Berry.
42043
42044         nanosleep: improve port to mingw
42045         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
42046         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
42047         LIB_NANOSLEEP, but only when needed.
42048         * modules/select (Link): Document LIBSOCKET.
42049         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
42050         enough.
42051
42052         nanosleep: work around cygwin bug
42053         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
42054         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
42055         bug.
42056         (getnow): Delete, not needed.
42057         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
42058         LIB_CLOCK_GETTIME.
42059         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
42060         clock-time, gettime.
42061         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
42062         bug.
42063         * modules/nanosleep-tests: New test.
42064         * tests/test-nanosleep.c: New file.
42065
42066         sleep: work around cygwin bug
42067         * lib/sleep.c (rpl_sleep): Work around the bug.
42068         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
42069         (gl_PREREQ_SLEEP): Delete unused macro.
42070         * modules/sleep (Depends-on): Add verify.
42071         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
42072         * modules/unistd (Makefile.am): Substitute witness.
42073         * lib/unistd.in.h (sleep): Update prototype.
42074         * doc/posix-functions/sleep.texi (sleep): Document the bug.
42075         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
42076         * modules/sleep-tests (Depends-on): Check for alarm.
42077
42078 2009-11-20  Jim Meyering  <meyering@redhat.com>
42079
42080         maint.mk: improve sc_prohibit_magic_number_exit
42081         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
42082         so it does not match uses like System.exit(1).
42083         Add comments showing how to correct all offenders.
42084
42085 2009-11-19  Eric Blake  <ebb9@byu.net>
42086
42087         xalloc-die-tests: add missing library
42088         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
42089
42090         test-xvasprintf: silence compiler warnings
42091         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
42092         empty string from gcc.
42093
42094 2009-11-19  Jim Meyering  <meyering@redhat.com>
42095
42096         xfreopen: new module, from coreutils
42097         * modules/xfreopen: New module.
42098         * lib/xfreopen.c: New file.
42099         * lib/xfreopen.h: New file.
42100         * MODULES.html.sh (File stream based Input/Output"): Add it.
42101
42102 2009-11-19  Eric Blake  <ebb9@byu.net>
42103
42104         manywarnings: depend on warnings
42105         * modules/manywarnings (Depends-on): Add warnings.
42106
42107         build: avoid compiler warnings
42108         * lib/select.c (rpl_select): Delete unused variable.
42109         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
42110
42111 2009-11-18  Eric Blake  <ebb9@byu.net>
42112
42113         tests: avoid false negative with --with-packager
42114         * tests/test-version-etc.sh: Discard packager information.
42115         * tests/test-argp-version-etc-1.sh: Likewise.
42116         Reported by Mike Frysinger.
42117
42118         utimens: fix regression on Solaris
42119         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
42120         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
42121         can only change fd timestamps via futimesat.  Instead, use an
42122         additional witness macro to avoid BSD bug.
42123         Reported by Jim Meyering.
42124
42125 2009-11-17  Eric Blake  <ebb9@byu.net>
42126
42127         usleep: use it to simplify tests
42128         * modules/stat-time-tests (Depends-on): Add usleep.
42129         (configure.ac): Drop usleep check.
42130         * modules/chown-tests (Depends-on, configure.ac): Likewise.
42131         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
42132         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
42133         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
42134         * modules/openat-tests (Depends-on, configure.ac): Likewise.
42135         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
42136         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
42137         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
42138         Likewise.
42139         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
42140         * tests/test-lchown.h (nap): Likewise.
42141         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
42142         * tests/test-stat-time.c (nap): Likewise.
42143         * tests/test-utimens-common.h (nap): Update comments.
42144
42145         usleep: new module
42146         * modules/usleep: New file.
42147         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
42148         * lib/usleep.c (usleep): Likewise.
42149         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
42150         * modules/unistd (Makefile.am): Substitute witnesses.
42151         * lib/unistd.in.h (usleep): Add declaration.
42152         * doc/pastposix-functions/usleep.texi (usleep): Document this.
42153         * MODULES.html.sh (Date and time): Likewise.
42154         * modules/usleep-tests (Depends-on): New test.
42155         * tests/test-usleep.c: New file.
42156
42157         chown: work around OpenBSD bug
42158         * lib/chown.c (rpl_chown): Work around the bug.
42159         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
42160         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
42161         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
42162         * modules/chown (Depends-on): Add stdbool.
42163         * modules/lchown (Depends-on): Likewise.
42164         * doc/posix-functions/chown.texi (chown): Document the bug.
42165         * doc/posix-functions/lchown.texi (lchown): Likewise.
42166         * tests/test-lchown.h (test_chown): Relax test.
42167
42168         mkstemp: avoid conflict with C++ keyword template
42169         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
42170         * lib/mkostemp.c (mkostemp): Likewise.
42171         * lib/mkostemps.c (mkostemps): Likewise.
42172         * lib/mkstemp.c (mkstemp): Likewise.
42173         * lib/mkstemps.c (mkstemps): Likewise.
42174
42175         xalloc-die-tests: optimize
42176         * tests/test-xalloc-die.sh: Reduce number of processes.
42177
42178 2009-11-17  Simon Josefsson  <simon@josefsson.org>
42179
42180         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
42181         patch from ludo@gnu.org (Ludovic Courtès).
42182
42183 2009-11-17  Jim Meyering  <meyering@redhat.com>
42184
42185         version-etc: use proper license string
42186         * modules/version-etc (License): Use LGPL, not LGPLv3+.
42187         * modules/version-etc-fsf: Likewise.
42188
42189 2009-11-17  Simon Josefsson  <simon@josefsson.org>
42190
42191         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
42192         printed to stdout.  Deal with EOL differences.
42193
42194 2009-11-17  Eric Blake  <ebb9@byu.net>
42195
42196         unsetenv: work around Solaris bug
42197         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
42198         * lib/unsetenv.c (rpl_unsetenv): Work around it.
42199         Reported by Jim Meyering.
42200
42201         vasnprintf: avoid compiler warnings
42202         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
42203         variables.
42204         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
42205
42206 2009-11-17  Simon Josefsson  <simon@josefsson.org>
42207
42208         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
42209         settings since xalloc-die is no longer the self test,
42210         xalloc-die.sh is.
42211
42212 2009-11-17  Jim Meyering  <meyering@redhat.com>
42213
42214         test-xalloc-die.sh: make the code agree with the commit log
42215         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
42216         at the end, just in case you happen to have a test-xalloc-die
42217         program in some other PATH directory.
42218
42219         test-xalloc-die.sh: fix a portability bug
42220         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
42221         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
42222         Otherwise, argv[0] (as often seen in diagnostics) would be too
42223         system-dependent, sometimes with, and sometimes without the leading "./".
42224
42225         version-etc-fsf: relax license to LGPLv3+
42226         * modules/version-etc-fsf (License): Relax license.
42227
42228 2009-11-16  Eric Blake  <ebb9@byu.net>
42229
42230         xalloc-die-tests: avoid printing null pointer
42231         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
42232         shell script.
42233         * tests/test-xalloc-die.c (program_name): Declare.
42234         * tests/test-xalloc-die.sh (tmpfiles): New file.
42235
42236         setenv, unsetenv: work around various bugs
42237         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
42238         (setenv) [HAVE_SETENV]: Work around bugs.
42239         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
42240         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
42241         for bugs.
42242         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
42243         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
42244         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
42245         * modules/stdlib (Makefile.am): Update substitutions.
42246         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
42247         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
42248         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
42249         * modules/setenv-tests: New test.
42250         * modules/unsetenv-tests: Likewise.
42251         * tests/test-setenv.c: New file.
42252         * tests/test-unsetenv.c: Likewise.
42253
42254 2009-11-16  Jim Meyering  <meyering@redhat.com>
42255
42256         version-etc: relax license to LGPLv3+
42257         * modules/version-etc (License): Relax license.
42258
42259         better AC_REQUIRE expanded-before-required-warning avoidance
42260         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
42261         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
42262         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
42263         which is no longer needed.
42264
42265 2009-11-16  Eric Blake  <ebb9@byu.net>
42266
42267         test-freading: clean up temporary file
42268         * tests/test-freading.c (main): Remove file on success, and use
42269         ASSERT more liberally.
42270         Reported by Jim Meyering.
42271
42272 2009-11-16  Jim Meyering  <meyering@redhat.com>
42273
42274         avoid new AC_REQUIRE expanded-before-required warnings
42275         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
42276         merely using it.
42277         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
42278         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
42279
42280 2009-11-15  Simon Josefsson  <simon@josefsson.org>
42281
42282         * tests/test-xalloc-die.c: New file.
42283         * modules/xalloc-die-tests: New file.
42284         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
42285         XFAIL_TESTS so it can be appended by modules.
42286
42287 2009-11-15  Simon Josefsson  <simon@josefsson.org>
42288
42289         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
42290         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
42291
42292 2009-11-14  Eric Blake  <ebb9@byu.net>
42293
42294         fnmatch: avoid compiler warning
42295         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
42296         to silence compiler warning about mismatch signedness in ?:.
42297         Reported by Robert Millan.
42298
42299         intprops: add double-inclusion guard
42300         * lib/intprops.h: Allow idempotent includes.
42301         Suggested by Bruce Korb.
42302
42303         openat: detect Solaris fchownat bug
42304         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
42305         penalizing glibc chownat when only lchownat is broken.
42306         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
42307         trailing slash bugs.
42308         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
42309         * modules/openat-tests (Files): Include more files.
42310         (Depends-on): Add mgetgroups, sleep, stat-time.
42311         (configure.ac): Add additional checks.
42312         (Makefile.am): Build new test.
42313         * tests/test-fchownat.c: New file.
42314
42315         lchown: detect Solaris and FreeBSD bug
42316         * lib/lchown.c (rpl_lchown): Work around bug.
42317         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
42318         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42319         * modules/unistd (Makefile.am): Populate it.
42320         * lib/unistd.in.h (lchown): Update declaration.
42321         * doc/posix-functions/lchown.texi (lchown): Document the bug.
42322         * modules/lchown-tests: New file.
42323         * tests/test-lchown.h (test_lchown): Likewise.
42324         * tests/test-lchown.c (main): Likewise.
42325
42326         chown: detect Solaris and FreeBSD bug
42327         * lib/chown.c (rpl_chown): Work around bug.
42328         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
42329         (gl_PREREQ_CHOWN): Delete.
42330         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42331         * modules/unistd (Makefile.am): Populate it.
42332         * lib/unistd.in.h (chown): Update declaration.
42333         * lib/lchown.c (chown): Update client.
42334         * modules/lchown (Depends-on): Add lstat.
42335         * doc/posix-functions/chown.texi (chown): Document the bug.
42336         * doc/posix-functions/getgroups.texi (getgroups): Document
42337         getgroups pitfall.
42338         * modules/chown-tests: New file.
42339         * tests/test-chown.h (test_chown): Likewise.
42340         * tests/test-chown.c (main): Likewise.
42341
42342 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
42343
42344         gnulib-tool: correctly detect absence of m4 directories
42345         * gnulib-tool: Avoid extra newline on data passed to wc -l.
42346
42347 2009-11-14  Jim Meyering  <meyering@redhat.com>
42348
42349         maint.mk: Prohibit inclusion of "xalloc.h" without use.
42350         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
42351
42352 2009-11-14  John W. Eaton  <jwe@gnu.org>
42353
42354         strftime.h: wrap function declaration in extern "C" block
42355         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
42356
42357 2009-11-13  Eric Blake  <ebb9@byu.net>
42358
42359         getgroups: avoid compiler warning
42360         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
42361
42362         getgroups: work around FreeBSD bug
42363         * lib/getgroups.c (rpl_getgroups): Work around the bug.
42364         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
42365         * doc/posix-functions/getgroups.texi (getgroups): Document it.
42366         * tests/test-getgroups.c (main): Fix buffer overrun.
42367
42368         getgroups: avoid compilation failure
42369         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
42370         * modules/getgroups (Depends-on): Add stdint.
42371
42372 2009-11-13  Jim Meyering  <meyering@redhat.com>
42373
42374         test-getgroups: avoid compilation failure
42375         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
42376
42377 2009-11-13  Eric Blake  <ebb9@byu.net>
42378
42379         mgetgroups: new module, taken from coreutils
42380         * modules/mgetgroups: New file.
42381         * lib/mgetgroups.h: Likewise.
42382         * lib/mgetgroups.c (mgetgroups): Likewise.
42383         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
42384         * MODULES.html.sh (Users and groups): Mention it.
42385
42386         getgroups: don't expose GETGROUPS_T to user
42387         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
42388         an element at a time if GETGROUPS_T is wrong size.
42389         * lib/getugroups.h (getugroups): Change signature.
42390         * lib/unistd.in.h (getgroups): Likewise.
42391         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
42392         signature needs fixing.
42393         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
42394         AC_TYPE_GETGROUPS.
42395         * modules/group-member (Depends-on): Add getgroups.
42396         * lib/group-member.c (group_info, get_group_info): Use gid_t.
42397         (group_member): Rely on getgroups replacement.
42398         * lib/getugroups.c (getugroups): Use gid_t.
42399         * tests/test-getgroups.c (main): Likewise.
42400         * NEWS: Mention the signature change.
42401         * doc/posix-functions/getgroups.texi (getgroups): Mention the
42402         problem with signature.
42403         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
42404         GETGROUPS_T is still useful for setgroups.
42405
42406         getgroups, getugroups: provide stubs for mingw
42407         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
42408         * lib/getugroups.c (getugroups): Likewise.
42409         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
42410         function.  Modernize replacement scheme.
42411         (gl_PREREQ_GETGROUPS): Delete.
42412         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
42413         * modules/getgroups (configure.ac): Declare witness.
42414         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
42415         * modules/unistd (Depends-on): Substitute witness.
42416         * lib/unistd.in.h (getgroups): Declare replacement.
42417
42418         getgroups: avoid calling exit
42419         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
42420         drop xalloc.
42421         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
42422         dependencies.
42423         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
42424         exiting, in the rare case of malloc failure.
42425
42426         getgroups: fix logic error
42427         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
42428         has more than 20 groups.
42429         * modules/getgroups-tests: New test.
42430         * tests/test-getgroups.c: New file.
42431
42432 2009-11-13  Simon Josefsson  <simon@josefsson.org>
42433
42434         * tests/test-base64.c: Improve.
42435
42436 2009-11-13  Simon Josefsson  <simon@josefsson.org>
42437
42438         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
42439         Blake <ebb9@byu.net>.
42440
42441 2009-11-13  Simon Josefsson  <simon@josefsson.org>
42442
42443         * tests/test-xvasprintf.c: Add %s%s related checks.
42444
42445 2009-11-12  Eric Blake  <ebb9@byu.net>
42446
42447         version-etc: match standards.texi style
42448         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
42449         and use <> only for URLs.
42450
42451 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
42452
42453         fts: do not fail on a submount during traversal
42454         * lib/fts.c (fts_build): Read the stat info again after opening
42455         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
42456         Original report at http://bugzilla.redhat.com/501848.
42457
42458 2009-11-12  Jim Meyering  <meyering@redhat.com>
42459
42460         bootstrap: sync from coreutils
42461         * build-aux/bootstrap (bootstrap_epilogue): New function.
42462         Use git_modules_config in one more place.  This make bootstrap's
42463         --gnulib-srcdir option more useful for testing.
42464
42465         bootstrap: generalize autoheader check
42466         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
42467         AC_CONFIG_HEADERS.
42468
42469 2009-11-11  Eric Blake  <ebb9@byu.net>
42470
42471         mkfifoat: use new modules for Solaris and BSD bugs
42472         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
42473         * lib/mkfifoat.c (mknodat): Split...
42474         * lib/mknodat.c (mknodat): ...into new file.
42475         * modules/mkfifoat (Files): Ship new file.
42476         (Depends-on): Add mkfifo, mknod.
42477         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
42478         (Depends-on): Add symlink.
42479         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
42480         redundant with test_mkfifo.h.
42481         (do_mkfifoat, do_mknodat): New helpers.
42482
42483         mknod: new module
42484         * modules/mknod: New file.
42485         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
42486         * lib/mknod.c (mknod): Likewise.
42487         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
42488         defaults.
42489         * modules/sys_stat (Makefile.am): Substitute them.
42490         * lib/sys_stat.in.h (mknod): Declare replacement.
42491         * MODULES.html.sh (Support for systems lacking POSIX:2008):
42492         Document it.
42493         * doc/posix-functions/mknod.texi (mknod): Likewise.
42494         * modules/mknod-tests: New test.
42495         * tests/test-mknod.c: Likewise.
42496
42497         mkfifo: new module
42498         * modules/mkfifo: New file.
42499         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
42500         * lib/mkfifo.c (mkfifo): Likewise.
42501         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
42502         defaults.
42503         * modules/sys_stat (Makefile.am): Substitute them.
42504         * lib/sys_stat.in.h (mkfifo): Declare replacement.
42505         * MODULES.html.sh (Support for systems lacking POSIX:2008):
42506         Document it.
42507         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
42508         * modules/mkfifo-tests: New test.
42509         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
42510         from test-mkfifoat.c.
42511         * tests/test-mkfifo.c: New file.
42512
42513         readlink: detect FreeBSD bug
42514         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
42515         slash on symlink.
42516         * doc/posix-functions/readlink.texi (readlink): Document the bug.
42517         * tests/test-readlink.h (test_readlink): Enhance test.
42518
42519         symlink: detect FreeBSD bug
42520         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
42521         slash on symlink.
42522         * doc/posix-functions/symlink.texi (symlink): Document the bug.
42523         * tests/test-symlink.h (test_symlink): Enhance test.
42524
42525 2009-11-10  Eric Blake  <ebb9@byu.net>
42526
42527         link: detect FreeBSD bug
42528         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
42529         symlink.
42530         * doc/posix-functions/link.texi (link): Document the bug.
42531         * tests/test-link.h (test_link): Enhance test.
42532         * tests/test-linkat.c (main): Update caller.
42533
42534         unlink, remove: detect FreeBSD bug
42535         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
42536         slash on symlink.
42537         * doc/posix-functions/unlink.texi (unlink): Document the bug.
42538         * doc/posix-functions/remove.texi (remove): Likewise.
42539         * tests/test-unlink.h (test_unlink): Enhance test.
42540         * tests/test-remove.c (main): Likewise.
42541
42542 2009-11-09  Eric Blake  <ebb9@byu.net>
42543
42544         rename: detect FreeBSD bug
42545         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
42546         slash on symlink.
42547         * modules/renameat-tests (Depends-on): Add filenamecat.
42548         * tests/test-rename.h (test_rename): Allow one more errno.
42549         * tests/test-renameat.c (main): Likewise.
42550         * doc/posix-functions/rename.texi (rename): Document the bug.
42551
42552         open: detect FreeBSD bug
42553         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
42554         symlink.
42555         * doc/posix-functions/open.texi (open): Document the bug.
42556         * doc/posix-functions/utimes.texi (utimes): Likewise.
42557         * tests/test-open.h (test_open): Add parameters, and test symlink
42558         handling.
42559         * tests/test-open.c (main): Adjust caller.
42560         * tests/test-fcntl-safer.c (main): Likewise.
42561         * modules/open-tests (Depends-on): Add stdbool, symlink.
42562         * modules/fcntl-safer-tests (Depends-on): Likewise.
42563         * tests/test-openat.c (main): Add test-open tests.
42564
42565         stat: detect FreeBSD bug
42566         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
42567         symlink.
42568         * doc/posix-functions/stat.texi (stat): Document the bug.
42569         * tests/test-stat.h (test_stat_func): Add argument.
42570         * tests/test-stat.c (main): Adjust caller.
42571         * tests/test-fstatat.c (main): Likewise.
42572         * modules/stat-tests (Depends-on): Add stdbool, symlink.
42573         Reported by Jim Meyering.
42574
42575 2009-11-09  James Youngman  <jay@gnu.org>
42576
42577         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
42578         * lib/strftime.c: Correct placement of #include "ignore-value.h".
42579
42580 2009-11-08  Jim Meyering  <meyering@redhat.com>
42581
42582         utimens: remove invalid futimesat call
42583         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
42584         It used the file descriptor of the target file as the DIR_FD
42585         parameter and NULL as the file name.  That caused failure with
42586         errno == EFAULT on FreeBSD-8.0-rc2
42587
42588 2009-11-07  Eric Blake  <ebb9@byu.net>
42589
42590         fflush, freadseek: use fseeko, not fseek
42591         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
42592         (clear_ungetc_buffer): Avoid potential problems on large files.
42593         * lib/freadseek.c (freadseek): Likewise.
42594         * modules/freadseek (Depends-on): Add fseeko.
42595         * modules/fseek (configure.ac): Set a witness.
42596         * tests/test-fflush.c (main): Use fseeko.
42597         * tests/test-fpurge.c (fseek): Disable link warning.
42598         * tests/test-freadable.c (fseek): Likewise.
42599         * tests/test-freading.c (fseek): Likewise.
42600         * tests/test-fseeko.c (fseek): Likewise.
42601         * tests/test-ftell.c (fseek): Likewise.
42602         * tests/test-ftello.c (fseek): Likewise.
42603         * tests/test-fwritable.c (fseek): Likewise.
42604         * tests/test-fwriting.c (fseek): Likewise.
42605
42606 2009-11-06  Simon Josefsson  <simon@josefsson.org>
42607
42608         * modules/memchr (Depends-on): Drop getpagesize dependency.
42609
42610 2009-11-06  Simon Josefsson  <simon@josefsson.org>
42611
42612         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
42613         Reported by Ludovic Courtès.
42614         * build-aux/pmccabe2html: Improve example usage.
42615         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
42616
42617 2009-11-06  Jim Meyering  <meyering@redhat.com>
42618
42619         do-release-commit-and-tag: New module.
42620         Automate the release-commit and tag process.
42621         * build-aux/do-release-commit-and-tag: New script, from coreutils.
42622         * modules/do-release-commit-and-tag: New file.
42623         * MODULES.html.sh (Support for maintaining and releasing): Add it.
42624
42625 2009-11-06  Simon Josefsson  <simon@josefsson.org>
42626
42627         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
42628         because test-select.c uses inet_pton.
42629
42630 2009-11-06  Simon Josefsson  <simon@josefsson.org>
42631
42632         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
42633         GETADDRINFO_LIB.  Bump serial number.
42634         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
42635         Suggested by Eric Blake <ebb9@byu.net>.
42636
42637 2009-11-05  Eric Blake  <ebb9@byu.net>
42638
42639         strtod: detect darwin bug
42640         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
42641         Reported by Leo Davis.
42642
42643         freopen-safer: new module
42644         * modules/freopen-safer: New module.
42645         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
42646         * lib/freopen-safer.c (freopen_safer): New file.
42647         * lib/stdio-safer.h (freopen_safer): New declaration.
42648         * lib/stdio--.h (freopen): New override.
42649         * MODULES.html.sh (File stream based Input/Output): Mention it.
42650         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
42651         freopen-safer module.
42652         * doc/posix-functions/stderr.texi (stderr): Likewise.
42653         * doc/posix-functions/stdin.texi (stdin): Likewise.
42654         * doc/posix-functions/stdout.texi (stdout): Likewise.
42655         * modules/freopen-safer-tests: New test.
42656         * tests/test-reopen-safer.c: New file.
42657
42658 2009-11-05  Jim Meyering  <meyering@redhat.com>
42659
42660         maint.mk: Prohibit inclusion of "close-stream.h" without use.
42661         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
42662
42663 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42664
42665         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
42666
42667 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42668
42669         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
42670
42671 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42672
42673         Fix link error.
42674         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
42675         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42676
42677 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42678
42679         * tests/test-func.c: Also test value of __func__.
42680
42681 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42682
42683         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
42684         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
42685
42686 2009-11-05  Bruno Haible  <bruno@clisp.org>
42687
42688         Fix link error.
42689         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
42690         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42691         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
42692
42693 2009-11-05  Bruno Haible  <bruno@clisp.org>
42694
42695         Tests for module 'inet_pton'.
42696         * modules/inet_pton-tests: New file.
42697         * tests/test-inet_pton.c: New file.
42698
42699 2009-11-05  Bruno Haible  <bruno@clisp.org>
42700
42701         Tests for module 'inet_ntop'.
42702         * modules/inet_ntop-tests: New file.
42703         * tests/test-inet_ntop.c: New file.
42704
42705 2009-11-04  Eric Blake  <ebb9@byu.net>
42706
42707         stdlib-safer: wrap all mkstemp variants
42708         * modules/mkostemp (configure.ac): Set witness.
42709         * modules/mkostemps (configure.ac): Likewise.
42710         * modules/mkstemps (configure.ac): Likewise.
42711         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
42712         (mkstemps_safer): Wrap more functions.
42713         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
42714         wrapping.
42715         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
42716         (mkstemps_safer): Implement the wrappers.
42717
42718         mkstemps, mkostemps: new modules
42719         * modules/mkostemps: New module.
42720         * modules/mkstemps: Likewise.
42721         * lib/mkostemps.c (mkostemps): New file.
42722         * lib/mkstemps.c (mkstemps): Likewise.
42723         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
42724         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
42725         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
42726         * modules/stdlib (Makefile.am): Substitute them.
42727         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
42728         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
42729         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
42730         * doc/gnulib.texi (Glibc stdlib.h): Include them.
42731         * MODULES.html.sh (File system functions): Mention them.
42732
42733         tempname: resync from glibc
42734         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
42735         same values for __GT_FILE as glibc.  Abort even when assertions
42736         are disabled.
42737         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
42738         match its value otherwise.  Allow idempotent inclusion.
42739         * lib/mkdtemp.c (mkdtemp): Adjust caller.
42740         * lib/mkostemp.c (mkostemp): Likewise.
42741         * lib/mkstemp.c (mkstemp): Likewise.
42742         * lib/tmpfile.c (tmpfile): Likewise.
42743         * NEWS: Document this.
42744
42745         utimens: fix use of futimens on older Linux
42746         * lib/utimens.c (fdutimens): Use updated, rather than original,
42747         timespec to avoid bug in older Linux kernel.
42748         Reported by Simon Josefsson.
42749
42750 2009-11-04  Bruno Haible  <bruno@clisp.org>
42751
42752         Make num_processors more flexible and consistent.
42753         * lib/nproc.h (enum nproc_query): New type.
42754         (num_processors): Add a 'query' argument.
42755         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
42756         (num_processors): Add a 'query' argument. Test the value of the
42757         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
42758         mingw, count the number of CPUs available for the current process.
42759         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
42760         Check for sched_getaffinity and sched_getaffinity_np.
42761         * modules/nproc (Depends-on): Add c-ctype, extensions.
42762         * NEWS: Mention the change.
42763
42764 2009-11-03  Bruno Haible  <bruno@clisp.org>
42765
42766         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
42767
42768 2009-11-03  Jim Meyering  <meyering@redhat.com>
42769
42770         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
42771         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
42772         if it is defined.
42773
42774 2009-11-02  Eric Blake  <ebb9@byu.net>
42775
42776         mktime, timegm: share common declaration
42777         * lib/mktime-internal.h: New file.
42778         * lib/mktime.c: Use it rather than open-coding a declaration.
42779         * lib/timegm.c: Likewise.
42780         * modules/mktime (Files): Ship it.
42781         * modules/timegm (Files): Likewise.
42782         Suggested by Bruno Haible.
42783
42784         test-update-copyright: update test to match script changes
42785         * tests/test-update-copyright.sh: Avoid hard-coding perl
42786         location.  Don't update *.bak created by earlier runs.
42787
42788 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
42789             Simon Josefsson  <simon@josefsson.org>
42790             Bruno Haible  <bruno@clisp.org>
42791
42792         Fix link error on Solaris 8.
42793         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
42794         also in libnsl. Define also INET_PTON_LIB.
42795         * modules/inet_pton (Link): New section.
42796
42797 2009-11-02  Simon Josefsson  <simon@josefsson.org>
42798             Bruno Haible  <bruno@clisp.org>
42799
42800         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
42801         * modules/inet_ntop (Link): New section.
42802         Reported by Boyan Kasarov <bkasarov@gmail.com>.
42803
42804 2009-11-02  Eric Blake  <ebb9@byu.net>
42805
42806         maint: avoid compiler warnings in m4 macros
42807         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
42808         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
42809
42810 2009-11-02  Simon Josefsson  <simon@josefsson.org>
42811
42812         * m4/pmccabe2html.m4: Remove file.
42813         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
42814         function.  Change maintainer.
42815         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
42816         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
42817         Courtès).
42818
42819 2009-10-31  Eric Blake  <ebb9@byu.net>
42820
42821         fseeko: fix m4 regression
42822         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
42823         regression from 2009-10-27.
42824         Reported by Ralf Wildenhues.
42825
42826 2009-10-31  Jim Meyering  <meyering@redhat.com>
42827
42828         inttostr: aesthetics and improved (compile-time) safety
42829         Define inttype_is_signed rather than inttype_is_unsigned,
42830         since the sole use is via "#if inttype_is_signed".
42831         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
42832         inttype_is_unsigned.
42833         * lib/offtostr.c (inttype_is_signed): Likewise.
42834         * lib/uinttostr.c (inttype_is_signed): Likewise.
42835         * lib/umaxtostr.c (inttype_is_signed): Likewise.
42836         * lib/inttostr.c (inttostr): Use verify to cross-check the
42837         inttype_is_signed value and the signedness of the actual type.
42838         * modules/inttostr (Depends-on): Add verify.
42839
42840 2009-10-30  Eric Blake  <ebb9@byu.net>
42841
42842         build: avoid compiler warnings
42843         * lib/fchmodat.c (lchmod): Mark unused variables.
42844         * lib/getopt.c (_getopt_initialize): Likewise.
42845         * lib/mktime.c (__mktime_internal): Provide prototype.
42846         * lib/inttostr.c (inttostr): Avoid compiler warning even with
42847         older gcc that do not understand #pragma GCC diagnostic.
42848         * lib/uinttostr.c (inttype_is_unsigned): Define.
42849         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
42850
42851 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
42852
42853         stat: fix compilation on AIX
42854         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
42855         only see struct stat64.
42856
42857 2009-10-30  Eric Blake  <ebb9@byu.net>
42858
42859         exclude: make more robust
42860         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
42861         rather than masking a coding bug.
42862         Suggested by Bruno Haible.
42863
42864 2009-10-30  Jim Meyering  <meyering@redhat.com>
42865
42866         perl scripts: remove #!/usr/bin/perl in favor of more portable...
42867         Rather than putting #!/usr/bin/perl on the first line,
42868         start with a variant of what's recommended by "man perlrun" that
42869         invokes the first "perl" program from your shell's search path.
42870         * build-aux/gitlog-to-changelog: Replace #!... as above.
42871         Add a "Local Variables" perl mode setting.
42872         Prompted by a patch from Ludovic Courtès.
42873         Improved by Eric Blake.
42874         * build-aux/useless-if-before-free: Likewise.
42875         * build-aux/announce-gen: Likewise.
42876         * build-aux/update-copyright: Likewise.
42877
42878 2009-10-29  Eric Blake  <ebb9@byu.net>
42879
42880         filenamecat-lgpl: adjust clients
42881         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
42882         filenamecat.
42883         * modules/renameat (Depends-on): Likewise.
42884
42885         filenamecat: split into filenamecat-lgpl
42886         * modules/filenamecat-lgpl: New module.
42887         * modules/filenamecat (Files): Move library-safe files into
42888         filenamecat-lgpl.
42889         (Depends-on): Add filenamecat-lgpl.
42890         (configure.ac): Declare witness.
42891         * lib/filenamecat.h (file_name_concat): Only declare when using
42892         GPL module.
42893         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
42894         Move...
42895         * lib/filenamecat-lgpl.c: ...into new file.
42896         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
42897         (gl_FILE_NAME_CONCAT): Use it.
42898         * MODULES.html.sh (File system functions): Mention new module.
42899
42900         argp: avoid memory leak
42901         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
42902         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
42903         base_name, since the latter malloc()s and can call exit().
42904         Leak introduced 2006-07-03.
42905
42906         dirname-lgpl: adjust clients that don't need full dirname
42907         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
42908         * modules/filenamecat (Depends-on): Likewise.
42909         * modules/linkat (Depends-on): Likewise.
42910         * modules/mkancesdirs (Depends-on): Likewise.
42911         * modules/mkdir (Depends-on): Likewise.
42912         * modules/openat (Depends-on): Likewise.
42913         * modules/savewd (Depends-on): Likewise.
42914         * modules/rename (Depends-on): Likewise.
42915         (License): Relax license.
42916         * modules/mkdir-tests (Depends-on): Drop progname.
42917         (Makefile.am): Delete unneeded LDADD.
42918         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
42919
42920         dirname: split into dirname-lgpl
42921         * modules/dirname-lgpl: New module.
42922         * modules/dirname (Files): Move library-safe files into
42923         dirname-lgpl.
42924         (Depends-on): Add dirname-lgpl.
42925         (configure.ac): Declare witness.
42926         * modules/double-slash-root (License): Relax license.
42927         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
42928         module.
42929         * lib/dirname.c (dir_len, mdir_name): Move...
42930         * lib/dirname-lgpl.c: ...into new file.
42931         * lib/basename.c (last_component, base_len): Move...
42932         * lib/basename-lgpl.c: ...into new file.
42933         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
42934         (gl_DIRNAME): Use it.
42935         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
42936         Mention new module.
42937         * modules/dirname-tests (Depends-on): Add progname.
42938         * tests/test-dirname.c (program_name): Delete.
42939
42940         mkdir: make safe for libraries
42941         * modules/mkdir (Depends-on): Drop xalloc.
42942         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
42943         exit.
42944
42945         tests: avoid some compiler warnings
42946         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
42947         literals.
42948         * tests/test-memchr.c (main): Avoid type mismatch.
42949         * tests/test-arpa_inet.c (main): Avoid unused parameters.
42950         * tests/test-base64.c (main): Likewise.
42951         * tests/test-getdelim.c (main): Likewise.
42952         * tests/test-gethostname.c (main): Likewise.
42953         * tests/test-getline.c (main): Likewise.
42954         * tests/test-netinet_in.c (main): Likewise.
42955         * tests/test-select.c (open_server_socket, main): Likewise.
42956         * tests/test-select-stdin.c (main): Likewise.
42957         * tests/test-sockets.c (main): Likewise.
42958         * tests/test-strsignal.c (main): Likewise.
42959         * tests/test-sys_select.c (main): Likewise.
42960         * tests/test-sys_socket.c (main): Likewise.
42961         * tests/test-u64.c (main): Likewise.
42962         * tests/test-xfprintf-posix.c (main): Likewise.
42963         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
42964
42965         sockets: avoid compiler warning
42966         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
42967
42968         maint: detect usage(1) and other suspicious exits
42969         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
42970
42971 2009-10-29  Jim Meyering  <meyering@redhat.com>
42972
42973         timespec: long-to-int truncation could make timespec_cmp malfunction
42974         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
42975         a multiple of 2^32 nanoseconds as no difference.
42976
42977 2009-10-28  Jim Meyering  <meyering@redhat.com>
42978
42979         fprintftime: wrap macro code argument in "do {...} while(0)"
42980         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
42981         cpy macro must be a statement that can be followed by a semicolon.
42982         Now that the else clause contains a comment and is hence longer
42983         than one line, I require curly braces.  That in turn requires
42984         that we wrap this code block in the standard do...while(0).
42985
42986         fprintftime: remove stray semicolon from previous change
42987         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
42988
42989         fprintftime: avoid a warning about ignored fwrite return value
42990         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
42991         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
42992         that is unsafe.
42993         * modules/fprintftime (Depends-on): Add ignore-value.
42994
42995         exclude: avoid an unwarranted warning
42996         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
42997
42998 2009-10-27  Eric Blake  <ebb9@byu.net>
42999
43000         fseek: avoid compilation failure when fflush is replaced
43001         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
43002         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
43003         module is in use.
43004         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
43005         module is not in use; since REPLACE_FSEEK worked otherwise.
43006         (GNULIB_FTELLO): Likewise for ftell.
43007         Reported by Ian Beckwith and others.
43008
43009 2009-10-27  Bruno Haible  <bruno@clisp.org>
43010
43011         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
43012         Reported by Jim Meyering.
43013
43014 2009-10-27  Jim Meyering  <jim@meyering.net>
43015             Bruno Haible  <bruno@clisp.org>
43016
43017         Avoid warning despite dropping the return value of fwrite.
43018         * lib/unicodeio.c: Include ignore-value.h.
43019         (fwrite_success_callback): Explicitly ignore fwrite's return value.
43020         * modules/unicodeio (Depends-on): Add ignore-value.
43021
43022 2009-10-26  Eric Blake  <ebb9@byu.net>
43023
43024         areadlinkat: fix fallback path
43025         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
43026         pointer and zero.
43027
43028 2009-10-22  Pádraig Brady  <P@draigBrady.com>
43029
43030         Use a better IO block size for modern systems
43031         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
43032         * lib/md2.c: Likewise.
43033         * lib/md4.c: Likewise.
43034         * lib/md5.c: Likewise.
43035         * lib/sha1.c: Likewise.
43036         * lib/sha256.c: Likewise.
43037         * lib/sha512.c: Likewise.
43038
43039 2009-10-22  Eric Blake  <ebb9@byu.net>
43040
43041         tests: avoid several compiler warnings
43042         * tests/test-getcwd.c (main): Avoid buffer underflow.
43043         * tests/test-getdate.c (main): String literals are not safe with
43044         putenv, so use setenv.  Declare unused argument.
43045         * modules/getdate-tests (Depends-on): Add setenv.
43046         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
43047         problems with string literals in char *.
43048         * tests/test-hash.c (main): Avoid shadowing declaration.
43049         (insert_new): Treat string literals as char const *.
43050         * tests/test-getopt.h (test_getopt): Likewise.
43051         (getopt_loop): Alter types to minimize casting elsewhere.
43052         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
43053         (test_getopt_long_posix): Likewise.
43054         (do_getopt_long): Add wrapper to minimize casting.
43055         * tests/test-atexit.c (clear_temp_file): Use void.
43056         * tests/test-areadlink-with-size.c (main): Declare unused
43057         arguments.
43058         * tests/test-areadlink.c (main): Likewise.
43059         * tests/test-areadlinkat-with-size.c (main): Likewise.
43060         * tests/test-areadlinkat.c (main): Likewise.
43061         * tests/test-canonicalize-lgpl.c (main): Likewise.
43062         * tests/test-canonicalize.c (main): Likewise.
43063         * tests/test-dirent-safer.c (main): Likewise.
43064         * tests/test-dirname.c (main): Likewise.
43065         * tests/test-dup2.c (main): Likewise.
43066         * tests/test-fchdir.c (main): Likewise.
43067         * tests/test-fcntl-h.c (main): Likewise.
43068         * tests/test-fcntl-safer.c (main): Likewise.
43069         * tests/test-fdopendir.c (main): Likewise.
43070         * tests/test-fdutimensat.c (main): Likewise.
43071         * tests/test-fflush.c (main): Likewise.
43072         * tests/test-filenamecat.c (main): Likewise.
43073         * tests/test-filevercmp.c (main): Likewise.
43074         * tests/test-fopen-safer.c (main): Likewise.
43075         * tests/test-fopen.c (main): Likewise.
43076         * tests/test-fpending.c (main): Likewise.
43077         * tests/test-fpurge.c (main): Likewise.
43078         * tests/test-freading.c (main): Likewise.
43079         * tests/test-fstatat.c (main): Likewise.
43080         * tests/test-fsync.c (main): Likewise.
43081         * tests/test-futimens.c (main): Likewise.
43082         * tests/test-getndelim2.c (main): Likewise.
43083         * tests/test-gettimeofday.c (main): Likewise.
43084         * tests/test-getopt.c (main): Likewise.
43085         * tests/test-i-ring.c (main): Likewise.
43086         * tests/test-inttypes.c (main): Likewise.
43087         * tests/test-link.c (main): Likewise.
43088         * tests/test-lstat.c (main): Likewise.
43089         * tests/test-math.c (main): Likewise.
43090         * tests/test-md5.c (main): Likewise.
43091         * tests/test-memchr2.c (main): Likewise.
43092         * tests/test-memrchr.c (main): Likewise.
43093         * tests/test-mkdir.c (main): Likewise.
43094         * tests/test-mkdirat.c (main): Likewise.
43095         * tests/test-mkfifoat.c (main): Likewise.
43096         * tests/test-open.c (main): Likewise.
43097         * tests/test-openat-safer.c (main): Likewise.
43098         * tests/test-openat.c (main): Likewise.
43099         * tests/test-quotearg.c (main): Likewise.
43100         * tests/test-rawmemchr.c (main): Likewise.
43101         * tests/test-readlink.c (main): Likewise.
43102         * tests/test-remove.c (main): Likewise.
43103         * tests/test-rename.c (main): Likewise.
43104         * tests/test-renameat.c (main): Likewise.
43105         * tests/test-rmdir.c (main): Likewise.
43106         * tests/test-sha1.c (main): Likewise.
43107         * tests/test-signal.c (main): Likewise.
43108         * tests/test-sigaction.c (main): Likewise.
43109         * tests/test-stat.c (main): Likewise.
43110         * tests/test-stat-time.c (main): Likewise.
43111         * tests/test-stddef.c (main): Likewise.
43112         * tests/test-stdint.c (main): Likewise.
43113         * tests/test-stdio.c (main): Likewise.
43114         * tests/test-stdlib.c (main): Likewise.
43115         * tests/test-strchrnul.c (main): Likewise.
43116         * tests/test-strerror.c (main): Likewise.
43117         * tests/test-string.c (main): Likewise.
43118         * tests/test-strtod.c (main): Likewise.
43119         * tests/test-strverscmp.c (main): Likewise.
43120         * tests/test-symlink.c (main): Likewise.
43121         * tests/test-symlinkat.c (main): Likewise.
43122         * tests/test-sys_stat.c (main): Likewise.
43123         * tests/test-sys_time.c (main): Likewise.
43124         * tests/test-time.c (main): Likewise.
43125         * tests/test-unistd.c (main): Likewise.
43126         * tests/test-unlink.c (main): Likewise.
43127         * tests/test-unlinkat.c (main): Likewise.
43128         * tests/test-utimens.c (main): Likewise.
43129         * tests/test-utimensat.c (main): Likewise.
43130         * tests/test-version-etc.c (main): Likewise.
43131         * tests/test-wchar.c (main): Likewise.
43132         * tests/test-wctype.c (main): Likewise.
43133         * tests/test-xprintf-posix.c (main): Likewise.
43134         * tests/test-posixtm.c (main): Likewise.
43135         (STREQ): Delete unused macro.
43136         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
43137         shadowed variables.
43138         * tests/test-memchr.c (main): Likewise.
43139
43140 2009-10-21  Eric Blake  <ebb9@byu.net>
43141
43142         areadlinkat: avoid failure on older glibc
43143         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
43144         rather than mis-comparing 0 against FUNC_RESULT of char*.
43145
43146 2009-10-21  Bruno Haible  <bruno@clisp.org>
43147
43148         * modules/stpncpy (License): Relicense under LGPLv2+.
43149         Reported by David Lutterkort <lutter@redhat.com>.
43150
43151 2009-10-20  Eric Blake  <ebb9@byu.net>
43152
43153         utimensat: work around Solaris 9 bug
43154         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
43155         has trailing slash bugs.
43156         * tests/test-lutimens.h (test_lutimens): Enhance test.
43157         * tests/test-utimens.h (test_utimens): Likewise.
43158         * doc/posix-functions/utime.texi (utime): Enhance documentation.
43159         * doc/posix-functions/utimes.texi (utimes): Likewise.
43160         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
43161         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
43162         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
43163         * doc/posix-functions/futimens.texi (futimens): Likewise.
43164
43165         fdutimensat: new module
43166         * modules/fdutimensat: New file.
43167         * lib/fdutimensat.c (fdutimensat): Likewise.
43168         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
43169         * MODULES.html.sh (File system functions): Mention module.
43170         * modules/fdutimensat-tests: New test.
43171         * tests/test-fdutimensat.c: Likewise.
43172
43173         doc: regenerate INSTALL
43174         * doc/INSTALL: Reflect recent autoconf update.
43175         * doc/INSTALL.ISO: Likewise.
43176         * doc/INSTALL.UTF-8: Likewise.
43177
43178 2009-10-20  Pádraig Brady  <P@draigBrady.com>
43179
43180         acl: warn if ACL support is not detected
43181         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
43182
43183 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
43184
43185         * lib/nproc.h: Add extern "C" block for C++.
43186
43187 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
43188             Bruno Haible  <bruno@clisp.org>
43189
43190         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
43191         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
43192         * doc/posix-functions/isalpha.texi: Likewise.
43193         * doc/posix-functions/isblank.texi: Likewise.
43194         * doc/posix-functions/iscntrl.texi: Likewise.
43195         * doc/posix-functions/isdigit.texi: Likewise.
43196         * doc/posix-functions/isgraph.texi: Likewise.
43197         * doc/posix-functions/islower.texi: Likewise.
43198         * doc/posix-functions/isprint.texi: Likewise.
43199         * doc/posix-functions/ispunct.texi: Likewise.
43200         * doc/posix-functions/isspace.texi: Likewise.
43201         * doc/posix-functions/isupper.texi: Likewise.
43202         * doc/posix-functions/isxdigit.texi: Likewise.
43203
43204 2009-10-18  Bruno Haible  <bruno@clisp.org>
43205
43206         Tests for module 'isblank'.
43207         * modules/isblank-tests: New file.
43208         * tests/test-isblank.c: New file.
43209
43210         New module 'isblank'.
43211         * lib/isblank.c: New file.
43212         * m4/isblank.m4: New file.
43213         * modules/isblank: New file.
43214         * doc/posix-functions/isblank.texi: Mention the new module.
43215
43216 2009-10-18  Bruno Haible  <bruno@clisp.org>
43217
43218         New module 'ctype'.
43219         * lib/ctype.in.h: New file.
43220         * m4/ctype.m4: New file.
43221         * modules/ctype: New file.
43222         * doc/posix-headers/ctype.texi: Mention the new module.
43223
43224 2009-10-18  Jim Meyering  <meyering@redhat.com>
43225
43226         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
43227         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
43228         right after its initialization, rather than farther down.
43229         Keeping these in close proximity makes it easier to ensure
43230         that each such variable is initialized.  E.g.,
43231
43232             LIB_CLOCK_GETTIME=
43233             AC_SUBST([LIB_CLOCK_GETTIME])
43234
43235         This change also increments these serial numbers.
43236         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
43237         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
43238         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
43239
43240 2009-10-18  Bruno Haible  <bruno@clisp.org>
43241
43242         Don't let environment variables perturb build.
43243         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
43244         (gl_PREREQ_GETHRXTIME): ... not here.
43245
43246 2009-10-18  Bruno Haible  <bruno@clisp.org>
43247
43248         Avoid symlink attack in localcharset module.
43249         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
43250         (O_NOFOLLOW): Define fallback.
43251         (get_charset_aliases): Don't open the file if it is a symbolic link.
43252         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
43253         gl_FCNTL_H.
43254         (gl_FCNTL_H): Require it.
43255         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
43256         * modules/localcharset (Files): Add m4/fcntl_h.m4.
43257         Reported by Fergal Glynn <fglynn@veracode.com>.
43258
43259 2009-10-18  Bruno Haible  <bruno@clisp.org>
43260
43261         Implement nproc for mingw.
43262         * lib/nproc.c: Include <windows.h>
43263         (num_processors): On native Windows platforms, try GetSystemInfo.
43264
43265 2009-10-18  Bruno Haible  <bruno@clisp.org>
43266
43267         Implement nproc for IRIX.
43268         * lib/nproc.c: Include <sys/sysmp.h>.
43269         (num_processors): On IRIX systems, try sysmp.
43270         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
43271
43272 2009-10-18  Bruno Haible  <bruno@clisp.org>
43273
43274         Implement nproc for HP-UX.
43275         * lib/nproc.c: Include <sys/pstat.h>
43276         (num_processors): On HP-UX systems, try pstat_getdynamic.
43277         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
43278         pstat_getdynamic.
43279
43280 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
43281             Bruno Haible  <bruno@clisp.org>
43282
43283         Implement nproc for NetBSD, OpenBSD.
43284         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
43285         (ARRAY_SIZE): New macro.
43286         (num_processors): On BSD systems, try sysctl of HW_NCPU.
43287         * m4/nproc.m4: New file.
43288         * modules/nproc (Files): Add m4/nproc.m4.
43289         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
43290         (Makefile.am): Instead, augment lib_SOURCES.
43291
43292 2009-10-18  Bruno Haible  <bruno@clisp.org>
43293
43294         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
43295         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
43296         sys/param.h.
43297
43298 2009-10-16  Eric Blake  <ebb9@byu.net>
43299
43300         utimensat: new module
43301         * modules/utimensat: New file.
43302         * lib/utimensat.c (utimensat): Likewise.
43303         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
43304         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
43305         so we can work around Linux bugs.
43306         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
43307         * modules/sys_stat (Makefile.am): Substitute them.
43308         * lib/sys_stat.in.h (utimensat): Declare it.
43309         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43310         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
43311         * modules/utimensat-tests: New test.
43312         * tests/test-utimensat.c: Likewise.
43313
43314         utimens: let lutimens work on non-symlinks
43315         * lib/utimens.c (lutimens): Fall back to utimens rather than
43316         failing with ENOSYS, when file is not a symlink.
43317         (utimens): Reduce redirection.
43318         * tests/test-lutimens.h (test_lutimens): Update test to cover
43319         non-symlinks.
43320         * tests/test-utimens.h (test_utimens): Update test to cover
43321         symlinks.
43322         * tests/test-utimens.c (main): Update caller.
43323
43324         utimens: cache whether utimensat syscall works
43325         * lib/utimens.c (utimensat_works_really): New cache variable.
43326         (fdutimens, lutimens): Use it to avoid failing syscall.
43327
43328         test-stat-time, test-utimens: improve portability
43329         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
43330         ext4 on alpha, and for cygwin.
43331         * tests/test-utimens-common.h: New file.
43332         (nap): Factor delays into single function.
43333         * tests/test-lutimens.h (test_lutimens): Use new header.
43334         * tests/test-futimens.h (test_futimens): Likewise.
43335         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
43336         timestamps to occur from same machine, as was done previously for
43337         test_utimens.
43338         * modules/utimens-tests (Files): Ship new file.
43339         * modules/futimens-tests (Files): Likewise.
43340         Reported in part by Jim Meyering.
43341
43342         sys_stat: sort replacement declarations
43343         * lib/sys_stat.in.h: Sort declarations.
43344         * lib/futimens.c (futimens): Fix typo.
43345
43346 2009-10-15  Jim Meyering  <meyering@redhat.com>
43347
43348         don't let environment settings perturb build
43349         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
43350         could cause a configure-time and/or build-time malfunction.
43351         Typically, a configure-time function-in-library test is performed
43352         via code like this:
43353
43354           LIB_VAR=
43355           AC_SUBST([LIB_VAR])
43356           prefix_saved_LIBS=$LIBS
43357             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
43358                        [test "$ac_cv_search_FUNC" = "none required" ||
43359                         LIB_VAR=$ac_cv_search_FUNC])
43360           LIBS=$prefix_saved_LIBS
43361
43362         However, in each of the files affected by this change, the LIB_VAR=
43363         initialization was omitted.  Thus, when set in the environment, its
43364         value would propagate into generated Makefiles when FUNC is not found
43365         in LIB_NAME.
43366         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
43367         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
43368         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
43369
43370 2009-10-14  Eric Blake  <ebb9@byu.net>
43371
43372         fchdir: avoid infinite recursion in mingw
43373         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
43374         recursing.
43375
43376         test-stat-time: port to mingw
43377         * tests/test-stat-time.c (force_unlink): Return a value.
43378         (test_ctime) [W32]: Fix compilation error.
43379         (nap): Don't call usleep with too large an argument.  Use
43380         force_unlink.
43381         * doc/pastposix-functions/usleep.texi (usleep): Document the
43382         portability issue.
43383
43384 2009-10-13  Jim Meyering  <meyering@redhat.com>
43385
43386         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
43387         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
43388         * modules/pipe-filter-ii: Likewise.
43389         * modules/sys_socket-tests: Likewise.
43390         * modules/tsearch-tests: Likewise.
43391         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
43392         (check): Depend on it.
43393
43394 2009-10-12  Eric Blake  <ebb9@byu.net>
43395
43396         utimens-tests: port to NFS file systems
43397         * tests/test-utimens.h (test_utimens): Refactor utimecmp
43398         comparisons to avoid spurious failures from timestamp drift
43399         between NFS machines.
43400
43401 2009-10-12  Eric Blake  <ebb9@byu.net>
43402
43403         stat-time-tests: minor cleanups
43404         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
43405         * tests/test-stat-time.c (nap): Separate assignment from call.
43406         Suggested by Paolo Bonzini and Bruno Haible.
43407
43408         sys_stat: guarantee struct timespec
43409         * lib/sys_stat.in.h (includes): Always include <time.h>
43410         * modules/sys_stat (Depends-on): Add time.
43411         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
43412         mode_t permission values.
43413         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
43414         get at subsecond timestamps.
43415
43416 2009-10-10  Eric Blake  <ebb9@byu.net>
43417
43418         futimens: new module
43419         * modules/futimens: New file.
43420         * lib/futimens.c (futimens): Likewise.
43421         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
43422         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
43423         we can work around Linux bugs.
43424         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
43425         * modules/sys_stat (Makefile.am): Substitute them.
43426         * lib/sys_stat.in.h (futimens): Declare it.
43427         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43428         * doc/posix-functions/futimens.texi (futimens): Likewise.
43429         * modules/futimens-tests: New test.
43430         * tests/test-futimens.c: Likewise.
43431
43432         utimens: introduce fdutimens
43433         * lib/utimens.h (fdutimens): New prototype.
43434         * lib/utimens.c (gl_futimens): Move guts...
43435         (fdutimens): ...to new interface.
43436         * tests/test-utimens.c (do_fdutimens): Use it.
43437
43438         utimens: add UTIME_NOW and UTIME_OMIT support
43439         * lib/utimens.c (validate_timespec, update_timespec): New helper
43440         functions.
43441         (gl_futimens, lutimens): Use them.
43442         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
43443         stdbool, sys_stat.
43444         (Link): Mention resulting library dependency.
43445         * modules/utimecmp (Link): Likewise.
43446         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
43447         (Makefile.am): Pick up library dependency.
43448         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
43449         definition.
43450         * tests/test-sys_stat.c: Test the definitions.
43451         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
43452         * NEWS: Document library dependency.
43453
43454         utimecmp: support symlink timestamps
43455         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
43456         hashing when possible.  Use pathconf when available.
43457         (SYSCALL_RESOLUTION): Recognize tighter resolution.
43458         * modules/utimecmp (Depends-on): Add lstat.
43459
43460         utimens: add lutimens interface
43461         * lib/utimens.c (lutimens): New function.
43462         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
43463         * lib/utimens.h (lutimens): Declare new interface.
43464         * tests/test-utimens.c (main): Enhance test.
43465         * tests/test-lutimens.h (test_lutimens): New file.
43466         * modules/utimens-tests (Files): Distribute it.
43467         (Depends-on): Add symlink.
43468         (configure.ac): Check for usleep.
43469
43470         utimens: validate futimens usage
43471         * lib/utimens.c (gl_futimens): Require valid fd up front, using
43472         fewer syscalls on failure later on.  Avoid compiler warning on
43473         mingw.
43474         * modules/utimens (Depends-on): Add dup2.
43475
43476         utimens: add test
43477         * modules/utimens-tests: New test.
43478         * tests/test-utimens.h: New file.
43479         * tests/test-futimens.h: Likewise.
43480         * tests/test-utimens.c: Likewise.
43481
43482         doc: mention timestamp portability issues
43483         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
43484         instead.
43485         * doc/posix-functions/utime.texi (utime): Likewise.
43486         * doc/posix-functions/utimes.texi (utimes): Likewise.
43487         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
43488         instead.
43489         * doc/posix-functions/futimens.texi (futimens): Mention utimens
43490         module.
43491         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
43492         Mention weakness with symlink timestamps.
43493         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
43494         to utimensat/futimens instead.
43495         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
43496
43497         test-dup2: enhance test
43498         * tests/test-dup2.c (main): Also check AT_FDCWD.
43499
43500         test-stat-time: avoid more spurious failures
43501         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
43502         xfs; and avoid race if the two timestamps cross quantization edge.
43503
43504         relocatable: prefer 'file system' over 'filesystem'
43505         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
43506         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
43507         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
43508         * doc/relocatable.texi (Enabling Relocatability): Likewise.
43509         * lib/relocatable.c (compute_curr_prefix): Likewise.
43510
43511 2009-10-10  Jim Meyering  <meyering@redhat.com>
43512
43513         stat-time-tests: check for the usleep function
43514         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
43515
43516 2009-10-10  Bruno Haible  <bruno@clisp.org>
43517
43518         * modules/xnanosleep: Put the Link section after the Include section.
43519
43520 2009-10-09  Eric Blake  <ebb9@byu.net>
43521
43522         dup2: work around FreeBSD 6.1 bug
43523         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
43524         * doc/posix-functions/dup2.texi (dup2): Document it.
43525         Reported by Nelson H. F. Beebe and Jim Meyering.
43526
43527         test-stat-time: port to buggy NFS clients
43528         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
43529         (test_ctime): Also skip test if mtime and ctime are skewed.
43530
43531         maint: prefer 'file system' over 'filesystem'
43532         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
43533         * doc/posix-functions/lstat.texi (lstat): Likewise.
43534         * lib/file-has-acl.c (file_has_acl): Likewise.
43535         * lib/fwriteerror.c [TEST]: Likewise.
43536         * tests/test-areadlink.h (test_areadlink): Likewise.
43537         * tests/test-areadlinkat-with-size.c (main): Likewise.
43538         * tests/test-areadlinkat.c (main): Likewise.
43539         * tests/test-canonicalize-lgpl.c (main): Likewise.
43540         * tests/test-canonicalize.c (main): Likewise.
43541         * tests/test-fstatat.c (main): Likewise.
43542         * tests/test-linkat.c (main): Likewise.
43543         * tests/test-lstat.h (test_lstat_func): Likewise.
43544         * tests/test-mkdir.h (test_mkdir): Likewise.
43545         * tests/test-readlink.h (test_readlink): Likewise.
43546         * tests/test-remove.c (main): Likewise.
43547         * tests/test-rename.h (test_rename): Likewise.
43548         * tests/test-renameat.c (main): Likewise.
43549         * tests/test-rmdir.h (test_rmdir_func): Likewise.
43550         * tests/test-symlink.h (test_symlink): Likewise.
43551         * tests/test-symlinkat.c (main): Likewise.
43552         * tests/test-unlink.h (test_unlink_func): Likewise.
43553         * tests/test-unlinkat.c (main): Likewise.
43554
43555         maint: make realtime library usage explicit
43556         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
43557         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
43558         * modules/settime (Link): Likewise.
43559         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
43560
43561         test-stat-time: speed up execution
43562         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
43563         warning on mingw.
43564         (nap): New helper function.
43565         (prepare_test): Use it to reduce sleep time.
43566         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
43567         execution.
43568         * modules/stat-time-tests (configure.ac): Check for usleep.
43569
43570 2009-10-09  Jim Meyering  <meyering@redhat.com>
43571
43572         selinux-h: always use getfilecon wrappers
43573         * lib/getfilecon.c: New file.
43574         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
43575         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
43576         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
43577         (fgetfilecon): Provide a stub.
43578         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
43579         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
43580         file unconditionally.
43581         When <selinux/selinux.h> is found, arrange to use wrappers.
43582         * modules/selinux-h (Files): Add getfilecon.c.
43583         (Makefile.am): Substitute include-next-related bits
43584         into the now-always-generated selinux/selinux.h file.
43585         * doc/glibc-functions/lgetfilecon.texi: New file.
43586         * doc/glibc-functions/fgetfilecon.texi: New file.
43587         * doc/glibc-functions/getfilecon.texi: New file.
43588         * doc/glibc-functions/getfilecon-desc.texi: New file.
43589         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
43590         which to pull in the new files.
43591         * MODULES.html.sh (Misc): Add selinux-h.
43592
43593 2009-10-08  Jim Meyering  <meyering@redhat.com>
43594
43595         unistd: fix comment typo
43596         * lib/unistd.in.h (euidaccess): Fix a comment typo.
43597
43598 2009-10-08  Eric Blake  <ebb9@byu.net>
43599
43600         areadlink: use SIZE_MAX consistently
43601         * modules/areadlink (Depends-on): Add stdint.
43602         * modules/areadlink-with-size (Depends-on): Likewise.
43603         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
43604         gives NULL; drop sys/types, since unistd gives size_t; and add
43605         stdint for SIZE_MAX.
43606         (SIZE_MAX): Rely on headers.
43607         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
43608         and add stdint.
43609         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
43610         (SIZE_MAX): Likewise.
43611         (INITIAL_BUF_SIZE): Turn into enum.
43612         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
43613
43614 2009-10-08  Jim Meyering  <meyering@redhat.com>
43615
43616         areadlinkat: avoid compilation failure
43617         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
43618         Fix typo in comment.
43619
43620 2009-10-07  Eric Blake  <ebb9@byu.net>
43621
43622         areadlinkat-with-size: new module
43623         * modules/areadlinkat-with-size: New module.
43624         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
43625         * lib/areadlink.h (areadlinkat): Declare it.
43626         * MODULES.html.sh (File system functions): Mention it.
43627         * modules/areadlinkat-with-size-tests: New test.
43628         * tests/test-areadlinkat-with-size.c: New file.
43629
43630         xreadlinkat: new module
43631         * modules/xreadlinkat: New module.
43632         * lib/xreadlinkat.c (xreadlinkat): New file.
43633         * lib/xreadlink.h (xreadlinkat): Declare it.
43634         * MODULES.html.sh (File system functions): Mention it.
43635
43636         areadlinkat: new module
43637         * lib/at-func.c (FUNC_FAIL): New define.
43638         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
43639         * modules/areadlinkat: New module.
43640         * lib/linkat.c (areadlinkat): Move...
43641         * lib/areadlinkat.c (areadlinkat): ...to new file.
43642         * lib/areadlink.h (areadlinkat): Declare it.
43643         * modules/linkat (Depends-on): Add areadlinkat.
43644         * MODULES.html.sh (File system functions): Mention it.
43645         * modules/areadlinkat-tests: New test.
43646         * tests/test-areadlinkat.c: New file.
43647
43648         areadlink, areadlink-with-size: add tests
43649         * modules/areadlink-tests: New test.
43650         * modules/areadlink-with-size-tests: Likewise.
43651         * tests/test-areadlink.h: New file.
43652         * tests/test-areadlink.c: Likewise.
43653         * tests/test-areadlink-with-size.c: Likewise.
43654
43655         maint: minor cleanups
43656         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
43657         _UNUSED_PARAMETER_ instead.
43658         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
43659         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
43660         * modules/linkat-tests (Files): Distribute test-link.h.
43661
43662         openat, utimens: whitespace cleanup
43663         * lib/openat.c: Prefer space throughout, rather than mix of 8
43664         spaces vs. tabs.
43665         * lib/at-func.c: Likewise.
43666         * lib/utimens.c: Likewise.
43667
43668         openat: avoid using wrong fd
43669         * lib/openat.c (openat_permissive): Reject user's fd if saving the
43670         working directory chooses same fd.
43671         * lib/at-func.c (AT_FUNC_NAME): Likewise.
43672
43673         mkdir, mkdirat: fix cygwin 1.5.x bug
43674         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
43675         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
43676         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
43677         bug.
43678         (gl_PREREQ_MKDIR): Delete unused macro.
43679         * modules/mkdir (Files): Track file rename.
43680         (configure.ac): Update macro name.
43681         * modules/openat (Depends-on): Add mkdir.
43682         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
43683
43684         mkdir, mkdirat: add tests
43685         * modules/mkdir-tests: New test.
43686         * tests/test-mkdir.h: New file.
43687         * tests/test-mkdir.c: Likewise.
43688         * tests/test-mkdirat.c: Likewise.
43689         * modules/openat-tests (Files): Add new files.
43690         (Makefile.am): Run new test.
43691
43692 2009-10-06  Eric Blake  <ebb9@byu.net>
43693
43694         doc: tweak *at function documentation
43695         * doc/posix-functions/faccessat.texi (faccessat): Mention
43696         known issue with replacement.
43697         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
43698         * doc/posix-functions/linkat.texi (linkat): Likewise.
43699         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
43700         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
43701         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
43702         * doc/posix-functions/renameat.texi (renameat): Likewise.
43703         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
43704
43705         openat: fix GNU/Hurd bug in unlinkat
43706         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
43707         broken.
43708         * doc/posix-functions/unlink.texi (unlink): Document this.
43709         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
43710
43711         fdopendir: fix GNU/Hurd bug
43712         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
43713         allowing non-directory fds.
43714         * lib/fdopendir.c (rpl_fdopendir): Work around it.
43715         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
43716         * modules/dirent (Makefile.am): Substitute it.
43717         * lib/dirent.in.h (fdopendir): Declare replacement.
43718         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
43719         * tests/test-fdopendir.c (main): Test something other than
43720         /dev/null, since on Hurd that behaves like a directory.
43721
43722         test-symlink: port to GNU/Hurd
43723         * tests/test-symlink.h (test_symlink): Relax expected errno.
43724
43725         doc: tweak more cygwin information
43726         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
43727         now compatible with glibc.
43728         * doc/posix-functions/getopt.texi (getopt): Likewise.
43729
43730         getopt-gnu: add another test
43731         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
43732         guarantee behavior relied on by m4.
43733         * tests/test-getopt.c (main): Use it.
43734         * modules/getopt-posix-tests (Depends-on): Add setenv.
43735         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
43736
43737         getopt: fix compilation on darwin
43738         * lib/getopt.in.h (includes): Leave breadcrumbs during system
43739         include.
43740         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
43741         Reported by Ludovic Courtès.
43742
43743 2009-10-06  Bruno Haible  <bruno@clisp.org>
43744
43745         * modules/size_max (Description): Discourage its use.
43746         Reported by Simon Josefsson.
43747
43748 2009-10-06  Jim Meyering  <meyering@redhat.com>
43749
43750         linkat: avoid compilation failure
43751         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
43752
43753 2009-10-05  Eric Blake  <ebb9@byu.net>
43754
43755         linkat: support Linux 2.6.17
43756         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
43757         linkat on Linux, but allow cache variable override.
43758         * lib/linkat.c (rpl_linkat): Define override.
43759         * modules/linkat (Depends-on): Add symlinkat.
43760         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
43761         * modules/unistd (Makefile.am): Substitute it.
43762         * lib/unistd.in.h (linkat): Declare replacement.
43763         Reported by Pádraig Brady.
43764
43765         quotearg: port test to systems with C.UTF-8 locale
43766         * tests/test-quotearg.c (struct result_strings): Add another
43767         member, differentiating between C.ASCII and C.UTF-8 handling.
43768         (compare_strings): Add parameter.
43769         (main): Adjust all callers.
43770
43771         getopt: avoid clash with FreeBSD _getopt_internal
43772         * lib/getopt.in.h (_getopt_internal): Override the name.
43773         * lib/getopt_int.h (includes): Pick up any overrides.
43774         Reported by Reuben Thomas.
43775
43776         hash: allow C89 compilation
43777         * lib/hash.c (check_tuning): Move declaration before statement.
43778         Reported by Reuben Thomas.
43779
43780 2009-10-05  Karl Berry  <karl@gnu.org>
43781
43782         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
43783
43784 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
43785             Bruno Haible  <bruno@clisp.org>
43786
43787         * lib/uname.c (uname): Use a table-driven algorithm to compute
43788         Windows NT versions.
43789
43790 2009-10-04  Bruno Haible  <bruno@clisp.org>
43791
43792         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
43793         program_invocation_short_name.
43794         * modules/progname (configure.ac): Test for presence of
43795         program_invocation_short_name.
43796         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
43797
43798 2009-10-04  Bruno Haible  <bruno@clisp.org>
43799
43800         * lib/progname.c (set_program_name): Fix comment.
43801         Reported by Jim Meyering.
43802
43803 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
43804             Bruno Haible  <bruno@clisp.org>
43805
43806         * lib/uname.c: Include <string.h>.
43807         (uname): Do only one call to GetVersionEx in the common case.
43808
43809 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
43810             Bruno Haible  <bruno@clisp.org>
43811
43812         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
43813         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
43814         (uname): Add support for Windows CE and various non-x86 CPU types.
43815
43816 2009-10-03  Bruno Haible  <bruno@clisp.org>
43817
43818         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
43819         invocation to tests/configure.ac.
43820         Reported by Ian Beckwith <ianb@erislabs.net>.
43821
43822 2009-10-02  Eric Blake  <ebb9@byu.net>
43823
43824         fchdir: avoid compiler warning
43825         * lib/fchdir.c (canonicalize_file_name)
43826         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
43827
43828         test-open: support mingw errno values
43829         * tests/test-open.h (test_open): Relax test.
43830         * tests/test-fopen.h (test_fopen): Likewise.
43831         * tests/test-openat-safer.c (main): Likewise.
43832
43833         open: fix opening directory on mingw
43834         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
43835
43836         test-open: on GNU/Hurd, /dev/null is a directory
43837         * tests/test-fopen.h (main): Rename...
43838         (test_fopen): ...to this.  Use a guaranteed non-directory when
43839         confirming open behavior on trailing slash.
43840         * tests/test-openat-safer.c (main): Likewise.
43841         * tests/test-open.h (main): Likewise....
43842         (test_open): ...to this.
43843         * tests/test-fopen.c (main): Adjust caller.
43844         * tests/test-fopen-safer.c (main): Likewise.
43845         * tests/test-open.c (main): Likewise.
43846         * tests/test-fcntl-safer.c (main): Likewise.
43847         Reported by Samuel Thibault.
43848
43849         rename, fchdir: don't ignore chdir failure
43850         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
43851         * lib/rename.c (rpl_rename) [W32]: Likewise.
43852         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
43853         an empty destination directory if source cannot be renamed,
43854         although there is still possibility for failure.
43855         * doc/posix-functions/rename.texi (rename): Document the race.
43856         Reported by Jim Meyering.
43857
43858         maint: cleanup whitespace in recent commits
43859         * lib/rename.c (rpl_rename): Remove tabs.
43860         * tests/test-link.h (test_link): Likewise.
43861         * lib/fchdir.c (get_name): Likewise.
43862         Reported by Jim Meyering.
43863
43864 2009-10-02  Ben Pfaff  <blp@gnu.org>
43865
43866         relocatable-prog-wrapper: Add missing dependency on
43867         double-slash-root.
43868         * modules/relocatable-prog-wrapper: Add dependency.
43869         Reported by Ian Beckwith <ianb@erislabs.net>.
43870
43871 2009-10-02  Eric Blake  <ebb9@byu.net>
43872
43873         renameat: fix Solaris bugs
43874         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
43875         needed fixing.
43876         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
43877         * modules/stdio (Makefile.am): Substitute it.
43878         * lib/stdio.in.h (renameat): Declare replacement.
43879         * lib/renameat.c (rpl_renameat): Implement fix.
43880
43881         renameat: new module
43882         * modules/renameat: New file.
43883         * lib/renameat.c (renameat): Likewise.
43884         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
43885         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
43886         * modules/stdio (Makefile.am): Substitute them.
43887         * lib/stdio.in.h (renameat): Declare it.
43888         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43889         * doc/posix-functions/renameat.texi (renameat): Likewise.
43890         * modules/renameat-tests: New test.
43891         * tests/test-renameat.c: Likewise.
43892
43893         rename: fix mingw bugs
43894         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
43895         directory overwrite bugs.
43896
43897         rename: fix another cygwin 1.5 bug
43898         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
43899         checks.
43900         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
43901         unnecessary cygwin workarounds.  Also work around bug with moving
43902         full directory onto an empty one.
43903         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
43904
43905         rename-dest-slash: merge into rename module
43906         * modules/rename-dest-slash (Status): Mark obsolete.
43907         (Depends-on): Add rename.
43908         (Files): Let rename do it all.
43909         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
43910         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
43911         * m4/rename-dest-slash.m4: ...so this file can be deleted.
43912         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
43913         * lib/rename.c (rpl_rename): Update comments.
43914
43915         rename: fix cygwin 1.5.x bugs
43916         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
43917         * lib/rename.c (rpl_rename): Work around them.
43918         * modules/rename (Depends-on): Add same-inode.
43919
43920         rename: fix Solaris 10 bug
43921         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
43922         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
43923         was the only bug.
43924
43925         rename: fix Solaris 9 bug
43926         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
43927         on non-directory.  Avoid calling exit.
43928         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
43929         strdup.
43930         * modules/rename-tests (Depends-on): Drop lstat.
43931         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
43932         (gl_PREREQ_RENAME): Delete unused macro.
43933
43934         rename-dest-slash: fix NetBSD bug
43935         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
43936         links.
43937         * modules/rename-dest-slash (Depends-on): Add same-inode.
43938
43939         rename-tests: new test, exposes several platform bugs
43940         * modules/rename-tests: New file.
43941         * tests/test-rename.h: Likewise.
43942         * tests/test-rename.c: Likewise.
43943         * doc/posix-functions/rename.texi (rename): Improve documentation,
43944         including bugs that will eventually be fixed in gnulib.
43945
43946 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
43947
43948         * lib/uname.c: Include <stdlib.h>
43949         (uname): Assume version info is available.
43950
43951 2009-10-02  Jim Meyering  <meyering@redhat.com>
43952
43953         gnu-web-doc-update: correct --help output
43954         * build-aux/gnu-web-doc-update: Make --help output relevant.
43955
43956         gnu-web-doc-update: add standard options
43957         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
43958
43959         gnu-web-doc-update: New module.
43960         Use this script to automatically update the on-line web documentation
43961         for your GNU project at http://www.gnu.org/software/$pkg/manual/
43962         * modules/gnu-web-doc-update: New file, from coreutils.
43963         * build-aux/gnu-web-doc-update: New script.
43964
43965 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
43966
43967         link: LoadLibrary is not needed.
43968         * lib/link.c: Use GetModuleHandle.
43969
43970 2009-10-01  Eric Blake  <ebb9@byu.net>
43971
43972         getopt: bump serial number
43973         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
43974         change.
43975
43976         tests: tighten link, rmdir, and remove tests
43977         * tests/test-link.h (includes): No need to use <config.h> here.
43978         Clean up if directory hard link was created, otherwise test for
43979         trailing '.'.
43980         * tests/test-linkat.c (main): Simplify.
43981         * tests/test-remove.c (main): Enhance test for trailing '.'.
43982         * tests/test-rmdir.h (test_rmdir_func): Likewise.
43983
43984 2009-10-01  Jim Meyering  <meyering@redhat.com>
43985
43986         maint.mk: requiring "make major" was annoying, for a "minor" release.
43987         What is intended is "stable", to contrast with alpha and beta,
43988         so require "make stable", not "make major".
43989         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
43990         (get_tool_versions): Likewise.
43991         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
43992
43993 2009-09-30  Ben Pfaff  <blp@gnu.org>
43994
43995         Fix broken build of replacement for Windows tmpfile().
43996         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
43997         flags argument added along with the 'mkostemp' module.
43998
43999 2009-09-28  Bruno Haible  <bruno@clisp.org>
44000
44001         Avoid identifier clash with POSIX function 'remove' defined as a macro.
44002         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
44003         to 'remove_elt'.
44004         (gl_list_remove): Update.
44005         * lib/gl_list.c (gl_list_remove): Update.
44006         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
44007         to 'remove_elt'.
44008         (gl_oset_remove): Update.
44009         * lib/gl_list.c (gl_oset_remove): Update.
44010         Reported by Eric Blake.
44011
44012 2009-09-28  Eric Blake  <ebb9@byu.net>
44013
44014         doc: mention yet more cygwin 1.7 status
44015         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
44016         cygwin.
44017         * doc/glibc-functions/execvpe.texi (execvpe): New file.
44018         * doc/gnulib.texi (Glibc unistd.h): Mention it.
44019
44020         argp: fix test failure
44021         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
44022         that are not upper-case.  Pass correct range to tolower.
44023
44024 2009-09-27  Jim Meyering  <meyering@redhat.com>
44025
44026         test-yesno: work around sparc-dash here-document infelicity
44027         Without this change, the literal \177 byte in a here document
44028         would make dash 0.5.5.1-3 access uninitialized memory.
44029         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
44030         Instead, use a marker, "@", and filter through tr to create the desired
44031         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
44032
44033 2009-09-27  Bruno Haible  <bruno@clisp.org>
44034
44035         Disable untested support for new flavours of ACLs on AIX.
44036         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
44037         progress.
44038         * lib/set-mode-acl.c (qset_acl): Likewise.
44039
44040 2008-12-07  Bruno Haible  <bruno@clisp.org>
44041
44042         Add support for new flavours of ACLs on AIX. (Untested.)
44043         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
44044         (file_has_acl): Add support for newer AIX.
44045         * lib/set-mode-acl.c (qset_acl): Likewise.
44046         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
44047         Rainer Tammer <tammer@tammer.net>.
44048
44049 2009-09-26  Eric Blake  <ebb9@byu.net>
44050
44051         argp: fix compilation of getopt
44052         * lib/getopt.in.h (includes): Use different guard than glibc.
44053         Reported by Sergey Poznyakoff.
44054
44055         doc: mention more cygwin 1.7 status
44056         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
44057         bug.
44058         * doc/posix-functions/execl.texi (execl): Likewise.
44059         * doc/posix-functions/execle.texi (execle): Likewise.
44060         * doc/posix-functions/execlp.texi (execlp): Likewise.
44061         * doc/posix-functions/execv.texi (execv): Likewise.
44062         * doc/posix-functions/execve.texi (execve): Likewise.
44063         * doc/posix-functions/execvp.texi (execvp): Likewise.
44064         * doc/glibc-functions/canonicalize_file_name.texi
44065         (canonicalize_file_name): Cygwin 1.7 now provides this.
44066         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
44067         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
44068         on AT_SYMLINK_NOFOLLOW.
44069
44070 2009-09-24  Eric Blake  <ebb9@byu.net>
44071
44072         test-linkat: make test more robust
44073         * tests/test-linkat.c (main): Avoid collision with EEXIST.
44074
44075         getopt: fix inclusion guards for cygwin
44076         * modules/getopt-posix (Depends-on): Add include-next.
44077         (Makefile.am): Substitute more items in replacement header.
44078         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
44079         <getopt.h>.
44080         * lib/getopt.in.h (includes): Use split inclusion guard, and
44081         prefer <getopt.h> over include <unistd.h> when one is present.
44082         (option): Also override name of 'struct option'.
44083
44084         same-inode: revert prior change; it is not yet ready
44085         * NEWS: Undo mention of this change.
44086         * lib/same-inode.h (same-inode.h): Undo tri-state change.
44087         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
44088         * lib/cycle-check.c (cycle_check): Likewise.
44089         * lib/same.c (same_name): Likewise.
44090         * lib/at-func2.c (at_func2): Likewise.
44091
44092 2009-09-23  Eric Blake  <ebb9@byu.net>
44093
44094         linkat: new module
44095         * modules/linkat: New file.
44096         * lib/at-func2.c (at_func2): Likewise.
44097         * lib/linkat.c (linkat): Likewise.
44098         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
44099         * lib/openat-priv.h (at_func2): Add declaration.
44100         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
44101         * modules/unistd (Makefile.am): Substitute them.
44102         * lib/unistd.in.h (linkat): Declare it.
44103         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44104         * doc/posix-functions/linkat.texi (linkat): Likewise.
44105         * doc/posix-functions/link.texi (link): Tweak wording.
44106         * tests/test-link.c (main): Move guts...
44107         * tests/test-link.h (test_link): ...into new file.
44108         * modules/linkat-tests: New test.
44109         * tests/test-linkat.c: Likewise.
44110         * modules/link-tests (Files): Ship new file.
44111         (Depends-on): Add stdbool.
44112
44113         dirname: add library-safe mdir_name
44114         * lib/dirname.h (mdir_name): New prototype.
44115         * lib/dirname.c (dir_name): Move guts...
44116         (mdir_name): ...to new function that avoids xalloc_die.
44117
44118         fchdir: another mingw fix
44119         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
44120         * lib/fchdir.c (get_name): New helper method; skips canonicalize
44121         on mingw (where it has not yet been ported), and make it optional
44122         elsewhere.
44123         (_gl_register_fd): Use it.
44124
44125         same-inode: make SAME_INODE tri-state, to port to mingw
44126         * NEWS: Mention this change.
44127         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
44128         st_ino always being 0.
44129         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
44130         * lib/cycle-check.c (cycle_check): Likewise.
44131         * lib/same.c (same_name): Likewise.
44132
44133         lstat: avoid mingw compilation error
44134         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
44135         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
44136         lstat ourselves.
44137         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
44138         was adequate.
44139         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
44140         the checks for lstat.
44141         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
44142
44143         link: fix test failure on Solaris 9
44144         * lib/link.c (rpl_link): Don't assume link will catch bogus
44145         trailing slash on source.
44146
44147         test-symlinkat: enhance test
44148         * tests/test-readlink.c (main): Move guts...
44149         * tests/test-readlink.h (test_readlink): ...into new file.
44150         * tests/test-symlink.c (main): Move guts...
44151         * tests/test-symlink.h (test_symlink): ...into new file.
44152         * tests/test-symlinkat.c (main): Use new files for further
44153         coverage.
44154         (do_symlink, do_readlink): New helper functions.
44155         * modules/symlink-tests (Files): Ship new file.
44156         (Depends-on): Add stdbool.
44157         * modules/readlink-tests (Files): Ship new file.
44158         (Depends-on): Add stdbool.
44159         * modules/symlinkat-tests (Files): Use new files.
44160
44161 2009-09-23  Eric Blake  <ebb9@byu.net>
44162
44163         readlink: document portability issue with symlink length
44164         * doc/posix-functions/lstat.texi (lstat): Mention that some file
44165         systems have bogus st_size on symlinks, and mention the
44166         areadlink-with-size module.
44167         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
44168         * doc/posix-functions/readlink.texi (readlink): Mention the
44169         areadlink module, and ERANGE failure.
44170         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
44171         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
44172
44173         readlink: fix Solaris 9 bug with trailing slash
44174         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
44175         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
44176         * doc/posix-functions/readlink.texi (readlink): Document this.
44177         * modules/readlink-tests: New test.
44178         * tests/test-readlink.c: Likewise.
44179
44180         readlink: fix cygwin 1.5.x bug with return type
44181         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
44182         * lib/unistd.in.h (readlink): Use ssize_t.
44183         * lib/readlink.c (readlink): Likewise.
44184         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44185         * modules/unistd (Makefile.am): Substitute it.
44186         * lib/unistd.in.h (readlink): Declare replacement.
44187         * doc/posix-functions/readlink.texi (readlink): Document this.
44188
44189         symlink: use throughout gnulib
44190         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
44191         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
44192         symlink is not used.
44193         * modules/symlinkat (Depends-on): Add symlink.
44194         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
44195         * modules/canonicalize-tests (Depends-on): Likewise.
44196         * modules/lstat-tests (Depends-on): Likewise.
44197         * modules/openat-tests (Depends-on): Likewise.
44198         * modules/remove-tests (Depends-on): Likewise.
44199         * modules/rmdir-tests (Depends-on): Likewise.
44200         * modules/unlink-tests (Depends-on): Likewise.
44201         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
44202         * tests/test-canonicalize.c (symlink): Likewise.
44203         * tests/test-fstatat.c (symlink): Likewise.
44204         * tests/test-lstat.c (symlink): Likewise.
44205         * tests/test-remove.c (symlink): Likewise.
44206         * tests/test-rmdir.c (symlink): Likewise.
44207         * tests/test-unlink.c (symlink): Likewise.
44208         * tests/test-unlinkat.c (symlink): Likewise.
44209
44210         symlink: new module, for Solaris 9 bug
44211         * modules/symlink: New file.
44212         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
44213         * lib/symlink.c: Likewise.
44214         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
44215         * modules/unistd (Makefile.am): Substitute them.
44216         * lib/unistd.in.h (symlink): Declare replacement.
44217         * MODULES.html.sh (File system functions): Mention it.
44218         * doc/posix-functions/symlink.texi (symlink): Likewise.
44219         * modules/symlink-tests: New test.
44220         * tests/test-symlink.c: Likewise.
44221
44222 2009-09-23  Bruno Haible  <bruno@clisp.org>
44223
44224         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
44225         when needed.
44226         Test case: gnulib-tool --import --with-tests atexit inttypes.
44227         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
44228
44229 2009-09-23  Bruno Haible  <bruno@clisp.org>
44230
44231         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
44232         subcommand, not in a subshell.
44233
44234 2009-09-22  Eric Blake  <ebb9@byu.net>
44235
44236         unistd: sort replacement declarations
44237         * lib/unistd.in.h: Sort declarations.
44238
44239         open, openat: minor optimization
44240         * lib/open.c (open): If open succeeded, len is non-zero.
44241         * lib/openat.c (rpl_openat): Likewise.
44242
44243         link-follow: ensure correct result
44244         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
44245         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
44246         distinguish between possible failures.
44247
44248 2009-09-21  Eric Blake  <ebb9@byu.net>
44249
44250         fts: avoid compiler warning
44251         * lib/fts.c (dirent_inode_sort_may_be_useful)
44252         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
44253
44254 2009-09-19  Bruno Haible  <bruno@clisp.org>
44255
44256         * lib/progreloc.c (canonicalize_file_name): New declaration.
44257
44258 2009-09-19  Eric Blake  <ebb9@byu.net>
44259
44260         link: fix quoting
44261         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
44262
44263         openat: fix openat bugs on Solaris 9
44264         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
44265         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
44266         * modules/openat (Depends-on): Add open.
44267         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
44268         * modules/fcntl-h (Makefile.am): Substitute it.
44269         * lib/fcntl.in.h (openat): Declare replacement.
44270         * doc/posix-functions/openat.texi (openat): Document this.
44271
44272         openat: move fstatat and unlinkat into correct files
44273         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
44274         compiled.
44275         * lib/openat.c (fstatat, unlinkat): Move...
44276         * lib/fstatat.c (fstatat): ...into correct files.
44277         * lib/unlinkat.c (unlinkat): Likewise.
44278
44279         openat: fix unlinkat bugs on Solaris 9
44280         * lib/unlinkat.c (unlinkat): New file.
44281         * modules/openat (Depends-on): Add unlink.
44282         (Files): Distribute it.
44283         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
44284         trailing slash behavior is broken.
44285         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44286         * modules/unistd (Makefile.am): Substitute it.
44287         * lib/unistd.in.h (unlinkat): Declare replacement.
44288         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
44289
44290         openat: fix fstatat bugs on Solaris 9
44291         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
44292         stat.
44293         * doc/posix-functions/fstatat.texi (fstatat): Document this.
44294
44295         test-unlinkat: enhance test, to expose Solaris 9 bug
44296         * tests/test-unlink.c (main): Factor guts...
44297         * tests/test-unlink.h (test_rmdir_func): ...into new file.
44298         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
44299         * tests/test-rmdir.c (main): Adjust caller.
44300         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
44301         (unlinker): New helper function.
44302         (rmdirat): Enhance check.
44303         * modules/rmdir-tests (Depends-on): Add stdbool.
44304         * modules/unlink-tests (Depends-on): Likewise.
44305         (Files): Add test-unlink.h.
44306         * modules/openat-tests (Files): Likewise.
44307         (Depends-on): Add unlinkdir.
44308
44309         test-fstatat: new test, to expose Solaris 9 bugs
44310         * tests/test-stat.c (main): Factor guts...
44311         * tests/test-stat.h (test_stat_func): ...into new file.
44312         * tests/test-lstat.c (main): Factor guts...
44313         * tests/test-lstat.h (test_lstat_func): ...into new file.
44314         * tests/test-fstatat.c: New file.
44315         * modules/stat-tests (Files): Add test-stat.h.
44316         * modules/lstat-tests (Files): Add test-lstat.h.
44317         (Depends-on): Add stdbool.
44318         * modules/openat-tests (Depends-on): Add pathmax.
44319         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
44320         (Makefile.am): Run new test.
44321
44322         remove: new module, for mingw and Solaris 9 bugs
44323         * modules/remove: New file.
44324         * lib/remove.c: Likewise.
44325         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
44326         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
44327         * modules/stdio (Makefile.am): Use them.
44328         * lib/stdio.in.h (remove): Declare replacement.
44329         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44330         * doc/posix-functions/remove.texi (remove): Likewise.
44331         * modules/remove-tests: New test.
44332         * tests/test-remove.c: Likewise.
44333
44334         unlink: new module, for Solaris 9 bug
44335         * modules/unlink: New file.
44336         * lib/unlink.c: Likewise.
44337         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
44338         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
44339         * modules/unistd (Makefile.am): Use them.
44340         * lib/unistd.in.h (stat): Declare replacement.
44341         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44342         * doc/posix-functions/unlink.texi (unlink): Likewise.
44343         * modules/unlink-tests: New test.
44344         * tests/test-unlink.c: Likewise.
44345
44346         lstat: fix Solaris 9 bug
44347         * lib/lstat.c (lstat): Also check for trailing slash on
44348         non-symlink, non-directories.  Use stat module to simplify logic.
44349         * doc/posix-functions/lstat.texi (lstat): Document it.
44350         * modules/lstat-tests (Depends-on): Add errno, same-inode.
44351         (configure.ac): Check for symlink.
44352         * tests/test-lstat.c (main): Add more tests.
44353
44354         stat: add as dependency to other modules
44355         * modules/chown (Depends-on): Add stat.
44356         * modules/euidaccess (Depends-on): Likewise.
44357         * modules/fchdir (Depends-on): Likewise.
44358         * modules/isdir (Depends-on): Likewise.
44359         * modules/link (Depends-on): Likewise.
44360         * modules/lstat (Depends-on): Likewise.
44361         * modules/mkdir-p (Depends-on): Likewise.
44362         * modules/modechange (Depends-on): Likewise.
44363         * modules/open (Depends-on): Likewise.
44364         * modules/readlink (Depends-on): Likewise.
44365         * modules/same (Depends-on): Likewise.
44366
44367         stat: fix Solaris 9 bug
44368         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
44369         slash.
44370         * lib/stat.c (rpl_stat): Work around it.
44371         * doc/posix-functions/stat.texi (stat): Update documentation.
44372
44373         stat: new module, for mingw bug
44374         * modules/stat: New file.
44375         * lib/stat.c: Likewise.
44376         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
44377         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
44378         * modules/sys_stat (Makefile.am): Use them.
44379         * lib/sys_stat.in.h (stat): Declare replacement.
44380         * lib/openat.c (fstatat): Deal with lstat and stat being function
44381         macros.
44382         * modules/openat (Depends-on): Add inline.
44383         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44384         * doc/posix-functions/stat.texi (stat): Likewise.
44385         * modules/stat-tests: New test.
44386         * tests/test-stat.c: Likewise.
44387
44388 2009-09-19  Jim Meyering  <meyering@redhat.com>
44389
44390         syntax-check: detect unnecessary inclusion of canonicalize.h
44391         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
44392
44393 2009-09-19  Eric Blake  <ebb9@byu.net>
44394
44395         canonicalize-lgpl: adjust clients to use correct header
44396         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
44397         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
44398         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
44399         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
44400         * lib/progreloc.c (includes): Likewise.
44401
44402 2009-09-19  Jim Meyering  <meyering@redhat.com>
44403
44404         test-posixtm.c: correct a comment
44405         * tests/test-posixtm.c: Correct first-line comment.
44406         Spotted by Eric Blake.
44407
44408 2009-09-16  Jim Meyering  <meyering@redhat.com>
44409
44410         posixtm-tests: make T const-correct; add a test case
44411         * tests/test-posixtm.c (T): Declare const.
44412         Add a test for -(2^31+1).
44413         Remove useless can-succeed-only-in-2002 test.
44414
44415         posixtm-tests: adjust the sole failing test
44416         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
44417         expected output matches what mktime now produces.  Cross-checked via
44418         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
44419
44420         posixtm: move #ifdef'd tests into a new module
44421         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
44422         * tests/test-posixtm.c: ... this new file.
44423         * modules/posixtm-tests: New module.
44424
44425 2009-09-19  Eric Blake  <ebb9@byu.net>
44426
44427         openat: simplify use of at-func.c
44428         * lib/at-func.c (includes): Include prerequisites here, to
44429         simplify requirements on client files.
44430         * lib/openat-priv.h: Add double-inclusion guard.
44431         * lib/faccessat.c (includes): Simplify.
44432         * lib/fchmodat.c (includes): Likewise.
44433         * lib/fchownat.c (includes): Likewise.
44434         * lib/mkdirat.c (includes): Likewise.
44435         * lib/mkfifoat.c (includes): Likewise.
44436         * lib/symlinkat.c (includes): Likewise.
44437
44438         openat: allow return of fd 0
44439         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
44440         * modules/save-cwd (Depends-on): Replace fcntl-safer with
44441         unistd-safer.
44442         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
44443         <fcntl.h>; this module does not leak fds.
44444         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
44445         must be allowed to return 0, leaving openat_safer to add the
44446         safety.
44447         (openat_permissive): Avoid writing to just-opened fd 2 if
44448         restoring the current directory fails.
44449         * lib/openat-die.c (openat_restore_fail): Add comment.
44450         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
44451         (save_cwd): Guarantee safe fd, but without use of open_safer.
44452         * tests/test-openat.c: New test.
44453         * modules/openat-tests (Files, Makefile.am): Distribute and build
44454         new file.
44455
44456         relocatable-prog-wrapper: fix build
44457         * modules/relocatable-prog-wrapper (Files): Update name of
44458         canonicalize m4 file, broken on 2009-09-17.
44459         Reported by emad hajjar <aleppos@hotmail.com>.
44460
44461 2009-09-19  Bruno Haible  <bruno@clisp.org>
44462
44463         * lib/safe-alloc.h: Use the standard header with GPL copyright.
44464         * lib/safe-alloc.c: Likewise.
44465         Reported by Ian Beckwith <ianb@erislabs.net>.
44466
44467 2009-09-18  Bruno Haible  <bruno@clisp.org>
44468
44469         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
44470         Reported by <erobles@sensacd.com.mx>.
44471
44472 2009-09-17  Eric Blake  <ebb9@byu.net>
44473
44474         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
44475         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
44476         slashes when checking if last component is missing.
44477         * tests/test-canonicalize.c (main): Test this.
44478
44479         canonicalize, canonicalize-lgpl: honor // if distinct from /
44480         * modules/canonicalize (Files): Add double-slash-root.m4.
44481         * modules/canonicalize-lgpl (Files): Likewise.
44482         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
44483         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
44484         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
44485         fallback definition.
44486         (canonicalize_filename_mode): Use it to protect //.
44487         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
44488         (__realpath): Likewise.
44489         * tests/test-canonicalize.c (main): Test this.
44490         * tests/test-canonicalize-lgpl.c (main): Likewise.
44491         * modules/canonicalize-tests (Depends-on): Add same-inode.
44492         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
44493
44494         canonicalize-lgpl: fix glibc bug with trailing slash
44495         * m4/canonicalize-lgpl.m4: Move contents...
44496         * m4/canonicalize.m4: ...here.
44497         (gl_CANONICALIZE_LGPL): Factor realpath check...
44498         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
44499         glibc 2.3.5 bug, fixed 2005-04-27.
44500         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
44501         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
44502         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
44503         * modules/canonicalize-lgpl (Files): Manage file rename.
44504         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
44505         * modules/stdlib (Makefile.am): Substitute witness.
44506         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
44507         is needed.
44508         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
44509         replacement is required.
44510         * lib/canonicalize.c (canonicalize_file_name): Likewise.
44511         * doc/glibc-functions/canonicalize_file_name.texi
44512         (canonicalize_file_name): Document this.
44513         * doc/posix-functions/realpath.texi (realpath): Likewise.
44514
44515         canonicalize-lgpl: reject non-directory with trailing slash
44516         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
44517         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
44518         catches failures in glibc 2.3.5.
44519         * tests/test-canonicalize.c (main): Likewise.
44520
44521         canonicalize-lgpl: use native realpath if it works
44522         * lib/canonicalize-lgpl.c (realpath): Guard with
44523         FUNC_REALPATH_WORKS.
44524         * lib/stdlib.in.h (realpath): Make declaration optional based on
44525         HAVE_REALPATH.
44526         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
44527         native realpath works.
44528         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
44529         * modules/stdlib (Makefile.am): Substitute witness.
44530
44531         canonicalize, canonicalize-lgpl: use <stdlib.h>
44532         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
44533         (Include): Mention <stdlib.h>.
44534         (configure.ac): Mention functions we provide.
44535         * modules/canonicalize (configure.ac): Likewise.
44536         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
44537         realpath if canonicalize_file_name is missing.
44538         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
44539         * modules/stdlib (Makefile.am): Substitute witnesses.
44540         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
44541         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
44542         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
44543         * NEWS: Document this.
44544         * doc/glibc-functions/canonicalize_file_name.texi
44545         (canonicalize_file_name): Likewise.
44546         * doc/posix-functions/realpath.texi (realpath): Likewise.
44547         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
44548
44549         test-canonicalize: consolidate into single C program
44550         * tests/test-canonicalize.sh: Delete; move setup into...
44551         * tests/test-canonicalize.c (main): ...the program, making it
44552         easier to run in debugger.  Add some tests.
44553         * modules/canonicalize-tests (Files): Remove unused file.
44554         (Depends-on): Add progname.
44555         (configure.ac, Makefile.am): Simplify.
44556
44557         test-canonicalize-lgpl: consolidate into single C program
44558         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
44559         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
44560         easier to run in debugger.  Add some tests.
44561         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
44562         (configure.ac, Makefile.am): Simplify.
44563
44564         canonicalize: avoid resolvepath
44565         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
44566         unnecessary checks.
44567         * lib/canonicalize.c (includes): Simplify.
44568         (canonicalize_file_name): Drop resolvepath implementation.
44569         * modules/canonicalize (Depends-on): Drop filenamecat.
44570
44571         canonicalize: don't lose errno
44572         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
44573         over calls to free.
44574
44575         canonicalize: simplify errno handling
44576         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
44577         assignment.
44578
44579         canonicalize, canonicalize-lgpl: update module dependencies
44580         * modules/canonicalize (Depends-on): Add extensions, lstat,
44581         pathmax, stdlib.
44582         (Files): Drop pathmax.h.
44583         (configure.ac): Adjust macro name.
44584         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
44585         lstat, stdlib, sys_stat.
44586         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
44587         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
44588         extensions.
44589         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
44590         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
44591         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
44592         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
44593         declaration, if available.
44594         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
44595         we can rely on the readlink module.
44596         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
44597         (includes): Use <unistd.h> unconditionally.
44598
44599 2009-09-17  Eric Blake  <ebb9@byu.net>
44600
44601         maint: make Include sections of modules consistent
44602         * modules/alloca: Use only header name; no need to list #include.
44603         * modules/alloca-opt: Likewise.
44604         * modules/arpa_inet: Likewise.
44605         * modules/canon-host: Likewise.
44606         * modules/configmake: Likewise.
44607         * modules/dirent: Likewise.
44608         * modules/eealloc: Likewise.
44609         * modules/environ: Likewise.
44610         * modules/fchdir: Likewise.
44611         * modules/fcntl: Likewise.
44612         * modules/fcntl-h: Likewise.
44613         * modules/gethrxtime: Likewise.
44614         * modules/gettime: Likewise.
44615         * modules/ignore-value: Likewise.
44616         * modules/inet_ntop: Likewise.
44617         * modules/inet_pton: Likewise.
44618         * modules/inttypes: Likewise.
44619         * modules/isnand-nolibm: Likewise.
44620         * modules/isnanf-nolibm: Likewise.
44621         * modules/mbchar: Likewise.
44622         * modules/mbfile: Likewise.
44623         * modules/mbiter: Likewise.
44624         * modules/mbuiter: Likewise.
44625         * modules/netdb: Likewise.
44626         * modules/netinet_in: Likewise.
44627         * modules/nproc: Likewise.
44628         * modules/pagealign_alloc: Likewise.
44629         * modules/poll: Likewise.
44630         * modules/printf-frexp: Likewise.
44631         * modules/pthread: Likewise.
44632         * modules/putenv: Likewise.
44633         * modules/random_r: Likewise.
44634         * modules/relocatable-prog: Likewise.
44635         * modules/search: Likewise.
44636         * modules/select: Likewise.
44637         * modules/selinux-h: Likewise.
44638         * modules/settime: Likewise.
44639         * modules/signal: Likewise.
44640         * modules/size_max: Likewise.
44641         * modules/socklen: Likewise.
44642         * modules/ssize_t: Likewise.
44643         * modules/stdarg: Likewise.
44644         * modules/stdbool: Likewise.
44645         * modules/stddef: Likewise.
44646         * modules/stdint: Likewise.
44647         * modules/stdio: Likewise.
44648         * modules/stdlib: Likewise.
44649         * modules/string: Likewise.
44650         * modules/strings: Likewise.
44651         * modules/sys_file: Likewise.
44652         * modules/sys_ioctl: Likewise.
44653         * modules/sys_select: Likewise.
44654         * modules/sys_socket: Likewise.
44655         * modules/sys_stat: Likewise.
44656         * modules/sys_time: Likewise.
44657         * modules/sys_times: Likewise.
44658         * modules/sys_utsname: Likewise.
44659         * modules/sys_wait: Likewise.
44660         * modules/sysexits: Likewise.
44661         * modules/time: Likewise.
44662         * modules/times: Likewise.
44663         * modules/tmpfile: Likewise.
44664         * modules/trim: Likewise.
44665         * modules/unistd: Likewise.
44666         * modules/wchar: Likewise.
44667         * modules/wctype: Likewise.
44668
44669 2009-09-17  Bruno Haible  <bruno@clisp.org>
44670
44671         Make getdate.y compile on QNX and NetBSD 5 / i386.
44672         * m4/getdate.m4 (gl_GETDATE): Conditionally define
44673         TIME_T_FITS_IN_LONG_INT.
44674         * lib/getdate.y (long_time_t): New type.
44675         (relative_time): Change type of 'seconds' field to long_time_t.
44676         (get_date): Update types of local variables. Check against overflow
44677         during conversion from long_time_t to time_t.
44678         Reported by Matt Kraai <kraai@ftbfs.org>
44679         and Hasso Tepper <hasso@netbsd.org>.
44680
44681 2009-09-17  Bruno Haible  <bruno@clisp.org>
44682
44683         * modules/COPYING: Update copyright years.
44684         * modules/README: Likeiwse.
44685         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
44686         Reported by Ian Beckwith <ianb@erislabs.net>.
44687
44688 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
44689
44690         * users.txt: Update references for gnuit package.
44691
44692 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
44693
44694         * m4/getdelim.m4: Fix typo in copyright line.
44695
44696 2009-09-17  Bruno Haible  <bruno@clisp.org>
44697
44698         * lib/atoll.c: Use the standard header with GPL copyright.
44699         * lib/argz.in.h: Likewise.
44700         * lib/glob.c: Likewise.
44701         * lib/glob-libc.h: Likewise.
44702         * lib/random_r.c: Likewise.
44703         * lib/siglist.h: Likewise.
44704         * lib/strsignal.c: Likewise.
44705         Reported by Ian Beckwith <ianb@erislabs.net>.
44706
44707 2009-09-17  Eric Blake  <ebb9@byu.net>
44708
44709         rmdir: ensure correct dependency order
44710         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
44711
44712 2009-09-17  Bruno Haible  <bruno@clisp.org>
44713
44714         Disable assertion that fails on NetBSD 5 / i386.
44715         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
44716         Reported by Sam Steingold <sds@gnu.org>
44717         and Hasso Tepper <hasso@netbsd.org>.
44718
44719 2009-09-16  Eric Blake  <ebb9@byu.net>
44720
44721         unlinkdir: port to mingw
44722         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
44723         on which no one can unlink a directory.
44724
44725         stdlib: sort witness names
44726         * modules/stdlib (Makefile.am): Sort replacements.
44727         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
44728         * lib/stdlib.in.h: Likewise.
44729
44730         parse-duration-tests: avoid link failure
44731         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
44732         LIBINTL.
44733         Reported by Tom G. Christensen.
44734
44735         openat-tests: ensure unlinkat behaves like rmdir
44736         * tests/test-rmdir.c (main): Factor guts...
44737         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
44738         * modules/rmdir-tests (Files): Ship new file.
44739         * modules/openat-tests: New test.
44740         * tests/test-unlinkat.c: Likewise.
44741
44742         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
44743         * modules/rmdir-errno (Status, Notice): Now obsolete.
44744
44745         rmdir: work around cygwin 1.5.x and mingw bugs
44746         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
44747         * lib/rmdir.c (rmdir): Work around it.
44748         * modules/rmdir (Status, Notice): No longer obsolete.
44749         (Files): Add dos.m4.
44750         (Depends-on): Add unistd.
44751         (configure.ac): Set witnesses.
44752         (License): Relax to LGPLv2+.
44753         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
44754         * modules/unistd (Makefile.am): Substitute witnesses.
44755         * lib/unistd.in.h (rmdir): Declare replacement.
44756         * doc/posix-functions/rmdir.texi (rmdir): Document this.
44757         * modules/rmdir-tests: New tests.
44758         * tests/test-rmdir.c: Likewise.
44759
44760 2009-09-15  Eric Blake  <ebb9@byu.net>
44761
44762         fchdir: improve use of replacement functions
44763         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
44764         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
44765         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
44766         REPLACE_CLOSEDIR.
44767         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
44768         * modules/sys_stat (Makefile.am): Substitute correct witness.
44769         * modules/dirent (Makefile.am): Likewise.
44770         * modules/unistd (Makefile.am): Likewise.
44771         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
44772         * lib/unistd.in.h (dup): Likewise.
44773         * lib/sys_stat.in.h (fstat): Likewise.
44774
44775         maint: ignore gnulib-tool temp files
44776         * .gitignore: Ignore files created during gnulib-tool --test.
44777
44778 2009-09-13  Jim Meyering  <meyering@redhat.com>
44779
44780         posixtm: don't reject a time that specify "60" as the number of seconds
44781         * lib/posixtm.c (posixtime): The code to reject invalid dates
44782         would also reject a time specified with the .60 suffix.
44783         But POSIX allows that, in order to accommodate leap seconds.
44784         So don't reject it.
44785         (main): Adjust tests accordingly.
44786         * modules/posixtm (Depends-on): Add stpcpy.
44787
44788 2009-09-11  Jim Meyering  <meyering@redhat.com>
44789
44790         announce-gen: include [$release_type] in emitted Subject:
44791         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
44792         e.g., [stable] in the emitted Subject: line.
44793
44794 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44795
44796         Remove obsolete macros from several modules.
44797         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
44798         obsolete Autoconf macros with their modern counterparts.
44799         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
44800         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
44801         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
44802         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
44803         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
44804         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
44805         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
44806         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
44807         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
44808         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
44809         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
44810         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
44811         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
44812         * m4/sockets.m4 (gl_SOCKETS): Likewise.
44813         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
44814         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
44815         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
44816         * m4/time_r.m4 (gl_TIME_R): Likewise.
44817         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
44818         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
44819         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
44820
44821         Fix copyright header in build-aux scripts.
44822         * build-aux/git-version-gen: Fix copyright header to match GPLv3
44823         recommendation.
44824         * build-aux/ncftpput-ftp: Likewise.
44825         * build-aux/update-copyright: Likewise.
44826
44827 2009-09-09  Eric Blake  <ebb9@byu.net>
44828
44829         test-link: allow Linux choice of errno
44830         * tests/test-link.c (main): Relax test for alternate error.
44831
44832         strndup: fix improper m4 caching
44833         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
44834         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
44835         (gl_PREREQ_STRNDUP): Delete.
44836         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
44837         * modules/string (Makefile.am): Substitute it.
44838         * lib/string.in.h (strndup): Modernize prototype.
44839
44840         getcwd: port to mingw
44841         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
44842         different from the POSIX assumptions made throughout the getcwd
44843         module; fortunately, the mingw getcwd does not need replacement.
44844         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
44845         * modules/getcwd-tests: New test.
44846         * tests/test-getcwd.c: Likewise.
44847
44848         link: fix platform bugs
44849         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
44850         * lib/link.c (link): Work around them.  Fix related mingw bug.
44851         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
44852         * modules/unistd (Makefile.am): Substitute it.
44853         * lib/unistd.in.h (link): Declare replacement.
44854         * doc/posix-functions/link.texi (link): Document this.
44855         * modules/link (Depends-on): Add strdup-posix, sys_stat.
44856
44857         test-link: consolidate into single C program, test more cases
44858         * tests/test-link.sh: Delete.
44859         * tests/test-link.c: Test more error conditions.  Exposes bugs on
44860         at least Cygwin and Solaris.
44861         * modules/link-tests (Files): Remove unused file.
44862         (Depends-on): Add errno, sys_stat.
44863         (Makefile.am): Simplify.
44864
44865 2009-09-08  Bruno Haible  <bruno@clisp.org>
44866
44867         Work around towlower, towupper bug on mingw.
44868         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
44869         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
44870         * doc/posix-functions/towlower.texi: Mention the mingw bug.
44871         * doc/posix-functions/towupper.texi: Likewise.
44872         Reported by Eric Blake.
44873
44874 2009-09-08  Jim Meyering  <meyering@redhat.com>
44875
44876         build: don't try to run autoheader if we don't use it
44877         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
44878         is not used in configure.ac.
44879
44880 2009-09-08  Eric Blake  <ebb9@byu.net>
44881
44882         euidaccess: fix compilation error
44883         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
44884
44885         rawmemchr: relax license
44886         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
44887         okay.
44888         Reported by Jim Meyering.
44889
44890         mkfifoat: new module
44891         * modules/mkfifoat: New file.
44892         * lib/mkfifoat.c: Likewise.
44893         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
44894         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
44895         * modules/sys_stat (Makefile.am): Use them.
44896         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
44897         * MODULES.html.sh (File system functions): Mention module.
44898         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
44899         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
44900         * modules/mkfifoat-tests: New test.
44901         * tests/test-mkfifoat.c: Likewise.
44902
44903         strchrnul: relax license
44904         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
44905         okay.
44906         Reported by Jim Meyering.
44907
44908 2009-09-08  Eric Blake  <ebb9@byu.net>
44909
44910         fstatat: fix compilation on Solaris
44911         * lib/fstatat.c (includes): Add fcntl.h.
44912         Reported by Pádraig Brady.
44913
44914 2009-09-07  Eric Blake  <ebb9@byu.net>
44915
44916         rename: modernize replacement
44917         * modules/rename (Depends-on): Add stdio.
44918         (configure.ac): Declare witness.
44919         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
44920         stdio take care of replacement.
44921         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
44922         * modules/stdio (Makefile.am): Substitute them.
44923         * lib/stdio.in.h (rename): Declare replacement.
44924         * lib/rename.c (includes): Allow cross-compilation to non-windows
44925         machines.
44926         * doc/posix-functions/rename.texi (rename): Improve
44927         documentation.
44928
44929         stdio: sort witness names
44930         * modules/stdio (Makefile.am): Sort replacements.
44931         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
44932         * lib/stdio.in.h: Likewise.
44933
44934         getcwd: minor cleanups
44935         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
44936         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
44937
44938         openat: provide more convenience names
44939         * modules/faccessat (configure.ac): Add C witness.
44940         * lib/unistd.in.h (readlinkat): Fix typo.
44941         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
44942         convenience wrappers.
44943         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
44944         wrappers in syntax checks.
44945
44946 2009-09-06  Eric Blake  <ebb9@byu.net>
44947
44948         doc: fix comments in recent patches
44949         * lib/faccessat.c: Mention correct function.
44950         * lib/fchmodat.c: Likewise.
44951         * lib/fchownat.c: Likewise.
44952         * lib/symlinkat.c: Likewise.
44953         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
44954         constants.
44955
44956         faccessat, symlinkat: continue cleanup of previous patch
44957         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
44958         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
44959         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
44960         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
44961         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
44962         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
44963         set.
44964
44965 2009-09-06  Bruno Haible  <bruno@clisp.org>
44966
44967         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
44968         (fstatat): Declare if GNULIB_FSTATAT is set.
44969         (mkdirat): Declare if GNULIB_MKDIRAT is set.
44970         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
44971         (unlinkat): Declare if GNULIB_UNLINKAT is set.
44972         * modules/fcntl-h (Files): Remove m4/openat.m4.
44973         * modules/sys_stat (Files): Remove m4/openat.m4.
44974         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
44975         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
44976         * modules/unistd (Files): Remove m4/openat.m4.
44977         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
44978         GNULIB_OPENAT.
44979         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
44980         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
44981         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
44982         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
44983         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
44984         gl_OPENAT_DEFAULTS.
44985         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
44986         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
44987         Don't require gl_OPENAT_DEFAULTS.
44988         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
44989         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
44990         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
44991         (gl_OPENAT_DEFAULTS): Remove macro.
44992
44993 2009-09-06  Bruno Haible  <bruno@clisp.org>
44994
44995         * modules/openat (configure.ac): Remove unneeded witness.
44996
44997 2009-09-06  Bruno Haible  <bruno@clisp.org>
44998
44999         Set errno to ENOSYS when a function is entirely unsupported.
45000         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
45001         EOPNOTSUPP.
45002         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
45003         * modules/chown (Depends-on): Remove errno.
45004
45005 2009-09-06  Bruno Haible  <bruno@clisp.org>
45006
45007         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
45008
45009 2009-09-06  Bruno Haible  <bruno@clisp.org>
45010
45011         * lib/sys_stat.in.h: Fix preprocessor command indentation.
45012
45013 2009-09-06  Ben Pfaff  <blp@gnu.org>
45014             Bruno Haible  <bruno@clisp.org>
45015
45016         Work around a glibc bug in strtok_r.
45017         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
45018         Undefine if UNDEFINE_STRTOK_R is set.
45019         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
45020         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45021         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
45022         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
45023         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
45024         UNDEFINE_STRTOK_R.
45025         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
45026
45027 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
45028
45029         exclude: minor fix
45030         * lib/exclude.c: Include wctype.h
45031
45032 2009-09-06  Akim Demaille  <demaille@gostai.com>
45033
45034         bootstrap: improve error message
45035         * build-aux/bootstrap (find_tool): Upon failure, report the list
45036         of candidates.
45037         Honor the initial value of the envvar.
45038
45039 2009-09-05  Eric Blake  <ebb9@byu.net>
45040
45041         symlinkat: new module
45042         * modules/symlinkat: New file.
45043         * lib/symlinkat.c: Likewise.
45044         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
45045         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
45046         * modules/unistd (Makefile.am): Use them.
45047         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
45048         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
45049         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
45050         * MODULES.html.sh (File system functions): Mention module.
45051         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
45052         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
45053         * modules/symlinkat-tests: New test.
45054         * tests/test-symlinkat.c: Likewise.
45055
45056         test-openat-safer: add more checks
45057         * tests/test-openat-safer.c (main): Check more code paths.
45058
45059 2009-09-05  Jim Meyering  <meyering@redhat.com>
45060
45061         syntax-check: detect unnecessary inclusion of openat.h
45062         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
45063
45064 2009-09-05  Bruno Haible  <bruno@clisp.org>
45065
45066         Support towlower, towupper.
45067         * doc/posix-functions/towlower.texi: Mention module wctype.
45068         * doc/posix-functions/towupper.texi: Likewise.
45069         * lib/wctype.in.h (towlower, towupper): New functions.
45070         * tests/test-wctype.c: Include stdio.h, stdlib.h.
45071         (ASSERT): New macro.
45072         (e): New variable.
45073         (main): Test also towlower, towupper. Test WEOF argument.
45074         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45075
45076 2009-09-05  Bruno Haible  <bruno@clisp.org>
45077
45078         Fix conversion behaviour when the input is invalid.
45079         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
45080         mark occurring in first pass of indirect conversion.
45081         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
45082         input.
45083         Found by clang's static analyzer.
45084
45085 2009-09-05  Bruno Haible  <bruno@clisp.org>
45086
45087         * tests/test-striconveh.c (main): Test indirect conversion on platforms
45088         where direct conversion is possible.
45089
45090 2009-09-04  Eric Blake  <ebb9@byu.net>
45091
45092         openat: fail with ENOENT on empty name
45093         * lib/openat-proc.c (openat_proc_name): Special-case the empty
45094         buffer.
45095
45096         link-follow: fix logic bug in prior patch
45097         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
45098         reversed sense of yes and no in prior patch.  Avoid confusing
45099         compilation failure with desired semantics.
45100
45101         link-follow: accommodate mingw and cross-compilation
45102         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
45103         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
45104         cross-compilation results to -1, to make linkat easier to
45105         implement when cross-compiling.  Trivially support mingw.
45106         * modules/link-follow (configure.ac): Call new name.
45107         * NEWS: Mention this.
45108
45109 2009-09-03  Eric Blake  <ebb9@byu.net>
45110
45111         faccessat: compile replacement
45112         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
45113         needed.
45114
45115         fts: fix compilation error
45116         * lib/fts.c (includes): Re-add "openat.h", for
45117         openat_needs_fchdir.
45118
45119         faccessat: new module
45120         * modules/faccessat: New file.
45121         * lib/faccessat.c: Likewise.
45122         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
45123         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
45124         * modules/unistd (Makefile.am): Use it.
45125         * lib/unistd.in.h (faccessat): Declare it.
45126         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
45127         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
45128         * MODULES.html.sh (File system functions): Mention it.
45129         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
45130         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
45131
45132         euidaccess: prefer POSIX over non-standard implementation
45133         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
45134         * lib/euidaccess.c (euidaccess): Use it if available.
45135
45136         openat: make template easier to use
45137         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
45138         AT_FUNC_F2 to be undefined.
45139         (VALIDATE_FLAG): New macro; use it to reject bad flags.
45140         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
45141         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
45142         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
45143         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
45144         Likewise.
45145         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
45146         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
45147         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
45148         Likewise.
45149
45150         openat: declare in POSIX headers
45151         * NEWS: Mention this.
45152         * modules/openat (configure.ac): Declare witnesses.
45153         (Depends-on): Add fcntl-h, sys_stat, unistd.
45154         (Include): Mention correct headers.
45155         * modules/fcntl-h (Depends-on): Add link-warning.
45156         (Files): Add openat.m4.
45157         (Makefile.am): Substitute witnesses.
45158         * modules/sys_stat (Files, Makefile.am): Likewise.
45159         * modules/unistd (Files, Makefile.am): Likewise.
45160         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
45161         (gl_OPENAT_DEFAULTS): New macro.
45162         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
45163         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
45164         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
45165         (SYS_STAT_H): Remove unused variable.
45166         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
45167         * lib/fcntl--.h (includes): Remove unneeded header.
45168         * lib/openat-safer.c (includes): Likewise.
45169         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
45170         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
45171         appropriate headers.
45172         (__OPENAT_PREFIX): Delete.
45173         * lib/fcntl.in.h (openat): Provide declaration.
45174         (AT_FDCWD): Fix Solaris bug.
45175         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
45176         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
45177         * lib/fchmodat.c (includes):  Adjust to find declaration.
45178         * lib/fchownat.c (includes): Likewise.
45179         * lib/mkdirat.c (includes): Likewise.
45180         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
45181         still visible.
45182
45183 2009-09-02  Eric Blake  <ebb9@byu.net>
45184
45185         errno: use consistently
45186         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
45187         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
45188         * lib/canonicalize.c (ELOOP): Likewise.
45189         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
45190         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
45191         * lib/lchown.c (EOPNOTSUPP): Likewise.
45192         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
45193         * lib/savewd.c (ESTALE): Likewise.
45194         * lib/settime.c (ENOSYS): Likewise.
45195         * lib/utimens.c (ENOSYS): Likewise.
45196         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
45197         * lib/chdir-safer.c (ELOOP): Likewise.
45198         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
45199         * modules/c-stack (Depends-on): Add errno.
45200         * modules/canonicalize (Depends-on): Likewise.
45201         * modules/chdir-safer (Depends-on): Likewise.
45202         * modules/fdopendir (Depends-on): Likewise.
45203         * modules/inet_ntop (Depends-on): Likewise.
45204         * modules/inet_pton (Depends-on): Likewise.
45205         * modules/lchown (Depends-on): Likewise.
45206         * modules/openat (Depends-on): Likewise.
45207         * modules/savewd (Depends-on): Likewise.
45208         * modules/settime (Depends-on): Likewise.
45209         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
45210
45211         fts: avoid leaking fds
45212         * modules/fts (Depends-on): Add cloexec.
45213         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
45214         flag.
45215
45216         fts: make directory fds more robust
45217         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
45218         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
45219
45220         backupfile, chdir-long, fts, savedir: make safer
45221         * lib/backupfile.c (includes): Use "dirent--.h", since
45222         numbered_backup can write to stderr during readdir.
45223         * lib/savedir.c (includes): Likewise.
45224         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
45225         emulation can write to stderr on failure.
45226         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
45227         * lib/getcwd.c: Document why opendir_safer is unused.
45228         * lib/glob.c: Likewise.
45229         * lib/scandir.c: Likewise.
45230         * lib/openat-proc.c: Likewise, for open_safer.
45231         * modules/backupfile (Depends-on): Add dirent-safer.
45232         * modules/savedir (Depends-on): Likewise.
45233         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
45234         * modules/chdir-long (Depends-on): Add openat-safer.
45235
45236         openat-safer: new module
45237         * modules/openat-safer: New file.
45238         * lib/openat-safer.c: Likewise.
45239         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
45240         * lib/fcntl-safer.h (openat_safer): Declare.
45241         * lib/fcntl--.h (openat): Override.
45242         * MODULES.html.sh (File descriptor based I/O): Mention it.
45243         * lib/openat.h: Add double-inclusion guards.
45244         * lib/openat.c (includes): Only include "fcntl-safer.h", not
45245         "fcntl--.h", so we can implement openat.
45246         * modules/openat-safer-tests: New test.
45247         * tests/test-openat-safer.c: New file.
45248
45249         dirent-safer: new module
45250         * modules/dirent-safer: New file.
45251         * lib/dirent--.h: Likewise.
45252         * lib/dirent-safer.h: Likewise.
45253         * lib/opendir-safer.c: Likewise.
45254         * m4/dirent-safer.m4: Likewise.
45255         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
45256         * modules/dirent-safer-tests: New test.
45257         * tests/test-dirent-safer.c: New file.
45258         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
45259
45260         fdopendir: optimize on mingw
45261         * lib/unistd.in.h (_gl_directory_name): New prototype.
45262         * lib/fchdir.c (_gl_directory_name): Implement it.
45263         (fchdir): Use it to simplify implementation.
45264         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
45265         fchdir, when available, to avoid calling [f]chdir().
45266
45267         fdopendir: split into its own module
45268         * lib/openat.c (fdopendir): Move...
45269         * lib/fdopendir.c: ...into new file.
45270         * modules/fdopendir: New module.
45271         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
45272         * modules/openat (Depends-on): Add fdopendir.
45273         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
45274         fdopendir here.
45275         * modules/savedir (Depends-on): Only need fdopendir, not full
45276         openat.
45277         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
45278         * lib/openat.h (fdopendir): Drop prototype.
45279         * lib/dirent.in.h (fdopendir): Provide prototype.
45280         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
45281         * modules/dirent (Makefile.am): Substitute them.
45282         * MODULES.html.sh (File system functions): Mention it.
45283         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
45284         * modules/fdopendir-tests: New file.
45285         * tests/test-fdopendir.c: Likewise.
45286
45287         fchdir: use more consistent macro convention
45288         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
45289         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
45290         REPLACE_FCHDIR, rather than relying on config.h macros.
45291         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
45292         inside a single make-time REPLACE_FCHDIR block, rather than using
45293         the config.h FCHDIR_REPLACEMENT.
45294         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
45295         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
45296         Manage fstat replacement.
45297         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
45298         REPLACE_FCHDIR.
45299         * modules/sys_stat (Files): Add m4/unistd_h.m4.
45300         (Makefile.am): Substitute REPLACE_FCHDIR.
45301         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
45302         FCHDIR_REPLACEMENT.
45303         * lib/dup-safer.c (dup_safer): Likewise.
45304         * lib/dup2.c (rpl_dup2): Likewise.
45305         * lib/dup3.c (rpl_dup3): Likewise.
45306         * lib/open.c (rpl_open): Likewise.
45307
45308         fchdir: simplify error handling, and support dup3
45309         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
45310         stdbool, malloc-posix, realloc-posix.
45311         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
45312         (ensure_dirs_slot): Return false on allocation failure.
45313         (rpl_dup2): Delete.
45314         (_gl_register_dup): New function.
45315         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
45316         (_gl_register_fd): Close fd on allocation failure.
45317         * lib/fcntl.in.h (_gl_register_fd): Update signature.
45318         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
45319         prototype.
45320         (rpl_dup2_fchdir): Delete prototype.
45321         * lib/open.c (open): Update caller.
45322         * lib/dup2.c (dup2): Track fchdir metadata.
45323         * lib/dup3.c (dup3): Likewise.
45324         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
45325         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
45326
45327 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45328
45329         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
45330         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
45331         don't pass arguments to AC_OUTPUT.
45332
45333 2009-09-02  Bruno Haible  <bruno@clisp.org>
45334
45335         * modules/mkdtemp (License): Relicense under LGPLv2+.
45336         Reported by Paolo Bonzini.
45337
45338 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45339
45340         Replace uses of obsolete autoconf macros in Jim's modules.
45341         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
45342         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
45343         can evoke a warning from autoconf when run with -Wobsolete
45344         enabled.  They were declared obsolete for good reasons (see
45345         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
45346         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
45347         should not continue using the deprecated macros.
45348         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
45349         obsolete Autoconf macros with modern counterparts.
45350         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
45351         * m4/dos.m4 (gl_AC_DOS): Likewise.
45352         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
45353         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
45354         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
45355         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
45356         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
45357         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
45358         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
45359         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
45360         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
45361         Likewise.
45362         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
45363         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
45364         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
45365         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
45366         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
45367         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
45368
45369 2009-09-01  Eric Blake  <ebb9@byu.net>
45370
45371         fchdir: fix off-by-one bug in previous patch
45372         * lib/fchdir.c (rpl_fstat): Use correct bounds.
45373         (_gl_unregister_fd): Delete useless if.
45374
45375 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
45376
45377         maint.mk: sort the list of syntax-check rules
45378         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
45379         easier to get a sense of progress when the rules are run sequentially
45380         and take a long time.
45381
45382 2009-09-01  Simon Josefsson  <simon@josefsson.org>
45383
45384         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
45385         * modules/netinet_in: Likewise.
45386         * modules/sys_file: Likewise.
45387         * modules/sys_ioctl: Likewise.
45388         * modules/sys_select: Likewise.
45389         * modules/sys_socket: Likewise.
45390         * modules/sys_stat: Likewise.
45391         * modules/sys_time: Likewise.
45392         * modules/sys_times: Likewise.
45393         * modules/sys_utsname: Likewise.
45394         * modules/sys_wait: Likewise.
45395
45396 2009-09-01  Jim Meyering  <meyering@redhat.com>
45397
45398         fts: help ensure that return values are not ignored
45399         * lib/fts_.h (__GNUC_PREREQ): Define.
45400         (__attribute_warn_unused_result__): Define.
45401         (fts_children, fts_close, fts_open, fts_read): Declare with
45402         __attribute_warn_unused_result__.
45403
45404         fts: fts_close now fails also when closing a dir file descriptor fails
45405         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
45406         and propagate to caller, along with errno.
45407
45408         announce-gen: correct formatting in --help output
45409         * build-aux/announce-gen (usage): Move the one-line description in
45410         --help output "up", to where it belongs, just after Usage:.
45411
45412 2009-08-31  Eric Blake  <ebb9@byu.net>
45413
45414         fchdir: port to mingw
45415         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
45416         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
45417         opened, then use a substitute.
45418         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
45419         replacement.
45420         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
45421         (_gl_register_fd): No need to check stat if open already filters
45422         all directories.
45423         (fchdir): Fix error condition to match POSIX.
45424         * modules/fchdir (Depends-on): Add sys_stat.
45425         * doc/posix-functions/open.texi (open): Document the limitation.
45426         * modules/fchdir-tests: New file.
45427         * tests/test-fchdir.c: Likewise.
45428
45429         canonicalize: allow cross-testing from cygwin to mingw
45430         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
45431         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
45432         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
45433         Likewise.
45434         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
45435         target does not support symlinks.
45436         * tests/test-canonicalize-lgpl.sh: Likewise.
45437
45438         chown: avoid compilation warning on mingw
45439         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
45440         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
45441         mingw.
45442         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
45443         * modules/chown (Depends-on): Add errno.
45444
45445 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
45446
45447         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
45448         command.
45449
45450 2009-08-31  Jim Meyering  <meyering@redhat.com>
45451
45452         canonicalize: remove useless initialization
45453         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
45454         initialization of local, "end".
45455
45456 2009-08-30  Bruno Haible  <bruno@clisp.org>
45457
45458         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
45459         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
45460         ENOSYS.
45461
45462 2009-08-30  Bruno Haible  <bruno@clisp.org>
45463
45464         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
45465         /usr/xpg4/bin/tr when it exists.
45466         * tests/test-pipe-filter-gi1.sh: Likewise.
45467
45468 2009-08-30  Bruno Haible  <bruno@clisp.org>
45469
45470         Work around deficient /usr/bin/id program on Solaris.
45471         * tests/test-file-has-acl.sh (ID): New variable.
45472         * tests/test-set-mode-acl.sh (ID): Likewise.
45473         * tests/test-copy-acl.sh (ID): Likewise.
45474         * tests/test-copy-file.sh (ID): Likewise.
45475
45476 2009-08-30  Bruno Haible  <bruno@clisp.org>
45477
45478         New module 'xstriconveh'.
45479         * lib/xstriconveh.h: New file.
45480         * lib/xstriconveh.c: New file.
45481         * modules/xstriconveh: New file.
45482
45483 2009-08-30  Bruno Haible  <bruno@clisp.org>
45484
45485         Make it easier to use mem_cd_iconveh.
45486         * lib/striconveh.h (iconveh_t): New type.
45487         (iconveh_open, iconveh_close): New declarations.
45488         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
45489         with a single 'const iconveh_t *' argument.
45490         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
45491         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
45492         with a single 'const iconveh_t *' argument.
45493         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
45494         * tests/test-striconveh.c (main): Update.
45495         * NEWS: Mention the change.
45496
45497 2009-08-30  Bruno Haible  <bruno@clisp.org>
45498
45499         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
45500         problem.
45501
45502 2009-08-30  Bruno Haible  <bruno@clisp.org>
45503
45504         Work around iconv_open problem on Solaris.
45505         * lib/iconv_open-solaris.gperf: New file.
45506         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
45507         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
45508         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
45509         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
45510         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
45511         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
45512
45513 2009-08-29  Jim Meyering  <meyering@redhat.com>
45514
45515         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
45516         * top/maint.mk (cvs-check): Remove target; it was just an alias
45517         to the better-named vc-diff-check.
45518         (maintainer-distcheck): Remove rule.  It was used only from
45519         the (alpha/beta/major) target, and all of its commands but one
45520         were coreutils-specific.
45521         (vc-dist): Remove rule.
45522         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
45523         Run vc-diff-check, not vc-dist.
45524         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
45525
45526 2009-08-27  Bruno Haible  <bruno@clisp.org>
45527
45528         * tests/test-bitrotate.c (main): Remove test that uses a shift count
45529         of 0.
45530
45531 2009-08-27  Bruno Haible  <bruno@clisp.org>
45532
45533         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
45534         compilers.
45535         * doc/func.texi: Document the SunPRO C bug.
45536
45537 2009-08-27  Bruno Haible  <bruno@clisp.org>
45538
45539         Fix link error on Solaris.
45540         * tests/test-parse-duration.c (xstrdup): Remove function.
45541
45542 2009-08-26  Pádraig Brady  <P@draigbrady.com>
45543
45544         ignore-value: handle pointer types, too
45545         * lib/ignore-value.h (__attribute__): Remove definition.
45546         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
45547         of a more concise and more-often effective "(void) i" statement.
45548         (ignore_ptr): New function to suppress warnings from functions that
45549         return pointers, and to make it explicit that one function doesn't
45550         handle all cases.
45551
45552 2009-08-25  Bruno Haible  <bruno@clisp.org>
45553
45554         dup2: work around a Linux bug.
45555         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
45556         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
45557         * doc/posix-functions/dup2.texi: Mention the Linux bug.
45558         Reported by Simon Josefsson.
45559
45560 2009-08-25  Jim Meyering  <meyering@redhat.com>
45561
45562         libguestfs uses gnulib
45563         * users.txt: Add libguestfs.
45564
45565 2009-08-24  Eric Blake  <ebb9@byu.net>
45566
45567         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
45568         * lib/pipe2.c (includes): Add binary-io.h.
45569         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
45570
45571 2009-08-24  Bruno Haible  <bruno@clisp.org>
45572
45573         Tolerate declared but missing accept4 syscall.
45574         * lib/accept4.c (accept4): Invoke original accept4 function first, if
45575         available.
45576         * lib/sys_socket.in.h (accept4): If the function is already present,
45577         override it.
45578         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
45579         * modules/accept4 (Makefile.am): Compile accept4.c always.
45580         Reported by Paolo Bonzini and Eric Blake.
45581
45582 2009-08-23  Bruno Haible  <bruno@clisp.org>
45583
45584         New module 'accept4'.
45585         * lib/sys_socket.in.h (accept4): New declaration.
45586         * lib/accept4.c: New file.
45587         * m4/accept4.m4: New file.
45588         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
45589         GNULIB_ACCEPT4, HAVE_ACCEPT4.
45590         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
45591         HAVE_ACCEPT4.
45592         * modules/accept4: New file.
45593         * doc/glibc-functions/accept4.texi: Mention the new module.
45594
45595 2009-08-24  Jim Meyering  <meyering@redhat.com>
45596
45597         progname: also set global program_invocation_name, when possible
45598         Before this change, a libtool-enabled program that calls glibc's
45599         error function would report the program name as
45600         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
45601         * modules/progname (configure.ac): Check for a declaration of
45602         program_invocation_name.
45603         * lib/progname.c:  Include <errno.h>.
45604         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
45605         Set program_invocation_name.
45606
45607 2009-08-23  Bruno Haible  <bruno@clisp.org>
45608
45609         * lib/dup3.c: Include <string.h>.
45610
45611 2009-08-23  Bruno Haible  <bruno@clisp.org>
45612
45613         * lib/dup3.c (dup3): Test only once whether the system actually exists.
45614         * lib/pipe2.c (pipe2): Likewise.
45615         Suggested by Eric Blake.
45616
45617 2009-08-23  Bruno Haible  <bruno@clisp.org>
45618
45619         Tolerate declared but missing dup3 syscall.
45620         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
45621         * lib/unistd.in.h (dup3): If the function is already present,
45622         override it.
45623         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
45624         * modules/dup3 (Makefile.am): Compile dup3.c always.
45625         Reported by Paolo Bonzini.
45626
45627 2009-08-23  Bruno Haible  <bruno@clisp.org>
45628
45629         Tolerate declared but missing pipe2 syscall.
45630         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
45631         available.
45632         * lib/unistd.in.h (pipe2): If the function is already present,
45633         override it.
45634         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
45635         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
45636         Reported by Paolo Bonzini.
45637
45638 2009-08-23  Bruno Haible  <bruno@clisp.org>
45639
45640         * lib/pipe2.c (pipe2): Move #ifs inside function.
45641
45642 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
45643
45644         quotearg: document limitations of quote_these_too
45645         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
45646         those limitations are created.
45647         * lib/quotearg.h (set_char_quoting): Document that digits and
45648         letters that are special after backslash are not permitted.
45649         (quotearg_char): Cross-reference set_char_quoting documentation.
45650
45651 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
45652
45653         quotearg: implement custom_quoting_style
45654         * lib/quotearg.c: (struct quoting_options): Add left_quote and
45655         right_quote fields.
45656         (set_custom_quoting): New public function.
45657         (quotearg_buffer_restyled): Add left_quote and right_quote
45658         arguments, handle them very much like locale quoting, and update
45659         all uses.
45660         (quotearg_n_custom): New public function.
45661         (quotearg_n_custom_mem): New public function.
45662         (quotearg_custom): New public function.
45663         (quotearg_custom_mem): New public function.
45664         * lib/quotearg.h: Prototype and document new public functions.
45665         (enum quoting_style): For escape_quoting_style and
45666         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
45667         ignored even though they're otherwise like c_quoting_style.
45668         Add custom_quoting_style member and document with comparison to
45669         clocale_quoting_style.
45670         * tests/test-quotearg.c (custom_quotes): New array.
45671         (custom_results): New array.
45672         (main): Extend to test custom quoting.
45673
45674 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
45675
45676         quotearg: fix right quote escaping when it's in quote_these_too
45677         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
45678         quote, be sure to prepend only one backslash.
45679         * tests/test-quotearg.c (use_quote_double_quotes): New function.
45680         (main): Test it.
45681
45682 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
45683
45684         quotearg-tests: test escaping of embedded locale quotes
45685         * tests/test-quotearg.c (struct result_strings): Add member for
45686         new input.
45687         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
45688         (inputs): Add new input.
45689         (results_g): Add expected results.
45690         (flag_results): Likewise.
45691         (locale_results): Likewise.
45692         (compare_strings): Check those.
45693
45694 2009-08-23  Bruno Haible  <bruno@clisp.org>
45695
45696         Tests for module 'dup3'.
45697         * modules/dup3-tests: New file.
45698         * tests/test-dup3.c: New file.
45699
45700         New module 'dup3'.
45701         * lib/unistd.in.h (dup3): New declaration.
45702         * lib/dup3.c: New file.
45703         * m4/dup3.m4: New file.
45704         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
45705         HAVE_DUP3.
45706         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
45707         * modules/dup3: New file.
45708         * doc/glibc-functions/dup3.texi: Mention the new module.
45709
45710 2009-08-23  Bruno Haible  <bruno@clisp.org>
45711
45712         Tweak the dup2 test.
45713         * tests/test-dup2.c (main): Create the test file empty. Verify that an
45714         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
45715         the test file is still empty. Fix argument order of lseek.
45716
45717 2009-08-23  Bruno Haible  <bruno@clisp.org>
45718
45719         Avoid test link errors when the modules getopt-gnu, gettext are used.
45720         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
45721         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45722
45723 2009-08-23  Bruno Haible  <bruno@clisp.org>
45724
45725         Fix getdtablesize() on mingw.
45726         * lib/getdtablesize.c (getdtablesize): Implement differently.
45727         * lib/unistd.in.h (getdtablesize): Improve comment.
45728
45729 2009-08-23  Bruno Haible  <bruno@clisp.org>
45730
45731         New module 'mkostemp'.
45732         Based on Ulrich Drepper's 2007-08-10 change in glibc.
45733         * lib/stdlib.in.h (mksotemp): New declaration.
45734         * lib/mkostemp.c: New file, from glibc with modifications.
45735         * lib/tempname.h (GT_FILE): Remove outdated comment.
45736         (gen_tempname): Add flags argument.
45737         * lib/tempname.c (__GT_BIGFILE): Remove macro.
45738         (__GT_FILE): Map to 1.
45739         (small_open, large_open): Remove macros.
45740         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
45741         * lib/mkstemp.c (mkstemp): Update.
45742         * lib/mkdtemp.c (mkdtemp): Likewise.
45743         * m4/mkostemp.m4: New file.
45744         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
45745         HAVE_MKOSTEMP.
45746         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
45747         HAVE_MKOSTEMP.
45748         * modules/mkostemp: New file, based on modules/mkstemp.
45749         * doc/glibc-functions/mkostemp.texi: Mention the new module.
45750         * NEWS: Mention the change.
45751
45752 2009-08-23  Bruno Haible  <bruno@clisp.org>
45753
45754         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
45755         Reported by Eric Blake.
45756
45757 2009-08-23  Bruno Haible  <bruno@clisp.org>
45758
45759         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
45760         Reported by Eric Blake.
45761
45762 2009-08-23  Bruno Haible  <bruno@clisp.org>
45763
45764         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
45765         * modules/pipe2 (Depends-on): Likewise.
45766
45767 2009-08-23  Eric Blake  <ebb9@byu.net>
45768
45769         fcntl-h: add O_TTY_INIT support
45770         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
45771         * tests/test-fcntl-h.c (o): Test it.
45772         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
45773
45774         fcntl-h: rename from fcntl, in preparation for fcntl(2)
45775         * modules/fcntl: Move <fcntl.h> header replacement...
45776         * modules/fcntl-h: ...to new name, so as not to collide with
45777         like-named function.
45778         * tests/test-fcntl.c: Rename...
45779         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
45780         * modules/fcntl-tests: Rename...
45781         * modules/fcntl-h-tests: ...to this.  Update test file name.
45782         * modules/chdir-long (Depends-on): Update clients.
45783         * modules/chdir-safer (Depends-on): Likewise.
45784         * modules/fcntl-safer (Depends-on): Likewise.
45785         * modules/fts (Depends-on): Likewise.
45786         * modules/mkancesdirs (Depends-on): Likewise.
45787         * modules/mkdir-p (Depends-on): Likewise.
45788         * modules/open (Depends-on): Likewise.
45789         * modules/savewd (Depends-on): Likewise.
45790         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
45791         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
45792
45793 2009-08-22  Bruno Haible  <bruno@clisp.org>
45794
45795         * modules/binary-io (License): Relicense under LGPL.
45796         * modules/pipe2 (License): Likewise.
45797
45798 2009-08-22  Bruno Haible  <bruno@clisp.org>
45799
45800         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
45801         return value.
45802         * lib/pipe-filter-gi.c (filter_init): Likewise.
45803         Reported by Eric Blake.
45804
45805 2009-08-22  Bruno Haible  <bruno@clisp.org>
45806
45807         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
45808         * modules/pipe (Depends-on): Add pipe2.
45809
45810 2009-08-22  Bruno Haible  <bruno@clisp.org>
45811
45812         Tests for module 'pipe2'.
45813         * modules/pipe2-tests: New file.
45814         * tests/test-pipe2.c: New file.
45815
45816         New module 'pipe2'.
45817         * lib/unistd.in.h (pipe2): New declaration.
45818         * lib/pipe2.c: New file.
45819         * m4/pipe2.m4: New file.
45820         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
45821         HAVE_PIPE2.
45822         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
45823         * modules/pipe2: New file.
45824         * doc/glibc-functions/pipe2.texi: Mention the new module.
45825
45826 2009-08-22  Bruno Haible  <bruno@clisp.org>
45827
45828         Reference some new glibc functions.
45829         * doc/glibc-functions/accept4.texi: New file.
45830         * doc/glibc-functions/dup3.texi: New file.
45831         * doc/glibc-functions/mkostemp.texi: New file.
45832         * doc/glibc-functions/pipe2.texi: New file.
45833         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
45834         (Glibc sys/socket.h): Refer to accept4.
45835         (Glibc unistd.h): Refer to dup3, pipe2.
45836         Reported by Eric Blake.
45837
45838 2009-08-22  Jim Meyering  <meyering@redhat.com>
45839             Bruno Haible  <bruno@clisp.org>
45840
45841         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
45842         This makes it so packages using automake-1.11's silent-rules option
45843         can print e.g., a single "GEN    configmake.h" line, rather than
45844         the 30+ statements that perform the job.  If you want to see the
45845         actual commands, you can still run "make V=1".
45846         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
45847         so that make output is abbreviated when those variables are defined
45848         appropriately.
45849         * modules/argz: Likewise.
45850         * modules/arpa_inet: Likewise.
45851         * modules/byteswap: Likewise.
45852         * modules/configmake: Likewise.
45853         * modules/dirent: Likewise.
45854         * modules/errno: Likewise.
45855         * modules/fcntl: Likewise.
45856         * modules/float: Likewise.
45857         * modules/fnmatch: Likewise.
45858         * modules/getopt-posix: Likewise.
45859         * modules/glob: Likewise.
45860         * modules/iconv_open: Likewise.
45861         * modules/inttypes: Likewise.
45862         * modules/localcharset: Likewise.
45863         * modules/locale: Likewise.
45864         * modules/math: Likewise.
45865         * modules/netdb: Likewise.
45866         * modules/netinet_in: Likewise.
45867         * modules/poll: Likewise.
45868         * modules/posix_spawnp-tests: Likewise.
45869         * modules/sched: Likewise.
45870         * modules/search: Likewise.
45871         * modules/selinux-h: Likewise.
45872         * modules/signal: Likewise.
45873         * modules/spawn: Likewise.
45874         * modules/stdarg: Likewise.
45875         * modules/stdbool: Likewise.
45876         * modules/stddef: Likewise.
45877         * modules/stdint: Likewise.
45878         * modules/stdio: Likewise.
45879         * modules/stdlib: Likewise.
45880         * modules/string: Likewise.
45881         * modules/strings: Likewise.
45882         * modules/sys_file: Likewise.
45883         * modules/sys_ioctl: Likewise.
45884         * modules/sys_select: Likewise.
45885         * modules/sys_socket: Likewise.
45886         * modules/sys_stat: Likewise.
45887         * modules/sys_time: Likewise.
45888         * modules/sys_times: Likewise.
45889         * modules/sys_utsname: Likewise.
45890         * modules/sys_wait: Likewise.
45891         * modules/sysexits: Likewise.
45892         * modules/time: Likewise.
45893         * modules/unistd: Likewise.
45894         * modules/wchar: Likewise.
45895         * modules/wctype: Likewise.
45896
45897 2009-08-22  Jim Meyering  <meyering@redhat.com>
45898
45899         announce-gen: detect write failure
45900         * build-aux/announce-gen: Add Coda at end.
45901         Remove equivalent-but-more-verbose block at top.
45902
45903 2009-08-19  Akim Demaille  <demaille@gostai.com>
45904
45905         bootstrap: --help to stdout.
45906         * bootstrap (usage): Don't send --help to stderr.
45907         Use a here doc instead of a long string.
45908
45909 2009-08-21  Eric Blake  <ebb9@byu.net>
45910
45911         test-popen-safer: split from test-popen
45912         * tests/test-popen.c (main): Move...
45913         * tests/test-popen.h: ...into new file.
45914         * tests/test-popen-safer2.c: New file.
45915         * modules/popen-tests (Files): Add test-popen.h.
45916         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
45917         Suggested by Bruno Haible.
45918
45919         test-fcntl-safer: split from test-open
45920         * tests/test-open.c (main): Move...
45921         * tests/test-open.h: ...into new file.
45922         * tests/test-fcntl-safer.c: New file.
45923         * modules/open-tests (Files): Add test-open.h.
45924         * modules/fcntl-safer-tests: New file.
45925         Suggested by Bruno Haible.
45926
45927         test-fopen-safer: split from test-fopen
45928         * tests/test-fopen.c (main): Move...
45929         * tests/test-fopen.h: ...into new file.
45930         * tests/test-fopen-safer.c: New file.
45931         * modules/fopen-tests (Files): Add test-fopen.h.
45932         * modules/fopen-safer-tests: New file.
45933         Suggested by Bruno Haible.
45934
45935 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
45936
45937         popen-safer: test O_CLOEXEC at run-time.
45938         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
45939
45940 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
45941
45942         fcntl: move more flags to the header
45943         * lib/cloexec.c: Do not define FD_CLOEXEC here.
45944         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
45945         * lib/fcntl.in.h: Do both things here.
45946
45947 2009-08-21  Jim Meyering  <meyering@redhat.com>
45948
45949         consistently remove $@-t before redirecting to it
45950         * modules/argz: Remove $@-t and $@ before redirecting to the former.
45951         * modules/alloca-opt: Likewise.
45952         * modules/byteswap: Likewise.
45953         * modules/fnmatch: Likewise.
45954         * modules/getopt-posix: Likewise.
45955         * modules/glob: Likewise.
45956         * modules/poll: Likewise.
45957         * modules/posix_spawnp-tests: Likewise.
45958         * modules/sys_socket: Likewise.
45959         * modules/sysexits: Likewise.
45960
45961 2009-08-21  Eric Blake  <ebb9@byu.net>
45962
45963         popen: simplify access to original popen
45964         * lib/popen.c (rpl_popen): No need to worry about popen being a
45965         macro.
45966         Reported by Bruno Haible.
45967
45968 2009-08-20  Eric Blake  <ebb9@byu.net>
45969
45970         build: avoid some compiler warnings
45971         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
45972         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
45973         type.
45974         (new_exclude_segment, excluded_file_pattern_p)
45975         (excluded_file_name_p): Reduce scope.
45976         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
45977         old-style declaration.
45978
45979 2009-08-20  Simon Josefsson  <simon@josefsson.org>
45980
45981         * tests/test-exclude1.sh: Handle Windows EOL.
45982         * tests/test-exclude2.sh: Likewise.
45983         * tests/test-exclude3.sh: Likewise.
45984         * tests/test-exclude4.sh: Likewise.
45985         * tests/test-exclude5.sh: Likewise.
45986         * tests/test-exclude6.sh: Likewise.
45987         * tests/test-exclude7.sh: Likewise.
45988
45989 2009-08-19  Akim Demaille  <demaille@gostai.com>
45990
45991         bootstrap: find sha1sum when named gsha1sum.
45992         * bootstrap (find_tool): New.
45993         ($SHA1SUM): New.
45994         Use it.
45995
45996 2009-08-20  Jim Meyering  <meyering@redhat.com>
45997
45998         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
45999         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
46000         expression that converts "." in a file name to "\." in the resulting
46001         regexp.  Start with a dummy statement, so that prior shell variable
46002         definitions are expanded portably.  Reported by Simon Josefsson.
46003
46004 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
46005
46006         Fix polling for writeability of a screen buffer.
46007         * lib/poll.c: Distinguish input and screen buffers for the
46008         Win32 implementation.
46009         * lib/select.c: Likewise.
46010
46011 2009-08-19  Eric Blake  <ebb9@byu.net>
46012
46013         popen-safer: prevent popen from clobbering std descriptors
46014         * modules/popen-safer: New file.
46015         * lib/popen-safer.c: Likewise.
46016         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
46017         * lib/stdio--.h (popen): Provide override.
46018         * lib/stdio-safer.h (popen_safer): Provide declaration.
46019         * tests/test-popen.c (includes): Partially test this.
46020         * modules/popen-safer-tests: New file, for more tests.
46021         * tests/test-popen-safer.c: Likewise.
46022         * MODULES.html.sh (file stream based Input/Output): Mention it.
46023
46024         tests: test some of the *-safer modules
46025         * modules/fopen-safer (Depends-on): Add fopen.
46026         * modules/fcntl-safer (Depends-on): Add fcntl.
46027         * modules/stdlib-safer (Depends-on): Add stdlib.
46028         (configure.ac): Set indicator.
46029         * modules/unistd-safer (configure.ac): Likewise.
46030         * modules/tmpfile-safer (configure.ac): Likewise.
46031         (Depends-on): Add tmpfile.
46032         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
46033         active.
46034         * tests/test-fopen.c (includes): Test safer versions when they are
46035         in use.
46036         * tests/test-open.c (includes): Likewise.
46037
46038         popen: fix cygwin 1.5 bug when stdin closed
46039         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
46040         * modules/popen: New file.
46041         * modules/popen-tests: Likewise.
46042         * tests/test-popen.c: Likewise.
46043         * m4/popen.m4: Likewise.
46044         * lib/popen.c: Likewise.
46045         * lib/stdio.in.h (popen): New declaration.
46046         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
46047         * modules/stdio (Makefile.am): Likewise.
46048         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
46049
46050 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
46051
46052         maint.mk: give full control over update-copyright exclusions
46053         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
46054         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
46055         (update-copyright): Don't force inclusion of top-level
46056         ChangeLog.  Don't force exclusion of all COPYING files, but make
46057         them the default exclusion instead.
46058
46059 2009-08-16  Bruno Haible  <bruno@clisp.org>
46060
46061         Fix test failures on Solaris 10.
46062         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
46063         tests when Solaris iconv() is used.
46064         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
46065         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
46066         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
46067         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
46068         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
46069
46070 2009-08-16  Bruno Haible  <bruno@clisp.org>
46071
46072         Fix test failures on Solaris 10.
46073         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
46074         'tr' program and pass it as first argument.
46075         * tests/test-pipe-filter-gi1.sh: Likewise.
46076         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
46077         program as first argument.
46078         * tests/test-pipe-filter-gi1.c (main): Likewise.
46079
46080 2009-08-16  Eric Blake  <ebb9@byu.net>
46081
46082         fpurge: fix previous commits
46083         * modules/fpurge (Makefile.am): Make replacement conditional,
46084         partially reverting 2007-04-29 change; missed in previous
46085         attempt.
46086         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
46087         is missing.
46088
46089 2009-08-16  Bruno Haible  <bruno@clisp.org>
46090
46091         Clarify fpurge's effect on the file position.
46092         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
46093         * tests/test-fpurge.c (main): Make a second pass for checking the file
46094         position.
46095
46096 2009-08-16  Bruno Haible  <bruno@clisp.org>
46097
46098         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
46099         declaration of fpurge is missing.
46100         * tests/test-fpurge.c (main): Check that the file has not more contents
46101         than expected. Close the file before removing it.
46102
46103 2009-08-15  Eric Blake  <ebb9@byu.net>
46104
46105         fpurge: don't wrap working cygwin implementation
46106         * lib/fpurge.c (fpurge): Fix comment typo.
46107         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
46108         1.7 to avoid replacement.
46109         * tests/test-fpurge.c (main): Enhance test.
46110
46111 2009-08-15  Eric Blake  <ebb9@byu.net>
46112         and Jim Meyering  <meyering@redhat.com>
46113
46114         test-update-copyright: skip if perl is insufficient
46115         * tests/test-update-copyright.sh: Failure to run maintainer tool
46116         should not cause testsuite failure on cygwin 1.5.
46117
46118 2009-08-14  Eric Blake  <ebb9@byu.net>
46119
46120         doc: mention more functions added in cygwin 1.7.0
46121         * doc/posix-headers/limits.texi (limits.h): Update for recent
46122         cygwin additions.
46123         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
46124         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
46125         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
46126         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
46127         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
46128
46129 2009-08-14  Eric Blake  <ebb9@byu.net>
46130
46131         maint.mk: simplify update-copyright rule
46132         * top/maint.mk (update-copyright-local): Delete, and document how
46133         to do it in cfg.mk instead.
46134         (update-copyright-exclude-regexp): Delete, and document how to do
46135         it in .x-update-copyright instead.
46136         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
46137         exclude ChangeLog.
46138
46139 2009-08-14  Bruno Haible  <bruno@clisp.org>
46140
46141         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
46142
46143 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
46144
46145         maint.mk: support update-copyright-env
46146         * top/maint.mk (update-copyright-env): Define place-holder.
46147         (update-copyright): Expand $(update-copyright-env) before
46148         invoking update-copyright.
46149
46150 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
46151
46152         update-copyright: implement forced reformatting
46153         * build-aux/update-copyright: Implement and document
46154         UPDATE_COPYRIGHT_FORCE.
46155         * tests/test-update-copyright.sh: Test it.
46156
46157 2009-08-14  Eric Blake  <ebb9@byu.net>
46158         and Bruno Haible  <bruno@clisp.org>
46159
46160         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
46161         * tests/test-locale.c: Revert previous patch related to NULL.
46162         * tests/test-stdio.c: Likewise.
46163         * tests/test-stdlib.c: Likewise.
46164         * tests/test-string.c: Likewise.
46165         * tests/test-unistd.c: Likewise.
46166         * modules/time-tests (Depends-on): Add verify.
46167         * modules/wchar-tests (Depends-on): Likewise.
46168         * tests/test-time.c: Test for NULL compliance.
46169         * tests/test-wchar.c: Likewise.
46170         * modules/locale (Depends-on): Add stddef.
46171         * modules/stdio (Depends-on): Likewise.
46172         * modules/stdlib (Depends-on): Likewise.
46173         * modules/string (Depends-on): Likewise.
46174         * modules/time (Depends-on): Likewise.
46175         * modules/unistd (Depends-on): Likewise.
46176         * modules/wchar (Depends-on): Likewise.
46177         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
46178         * lib/stdlib.in.h (includes): Likewise.
46179         * lib/string.in.h (includes): Likewise.
46180         * lib/time.in.h (includes): Likewise.
46181         * lib/unistd.in.h (includes): Likewise.
46182         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
46183         replaced.
46184         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
46185         * m4/stddef_h.m4: New file.
46186         * modules/stddef: Likewise.
46187         * lib/stddef.in.h: Likewise.
46188         * modules/stddef-tests: Likewise.
46189         * tests/test-stddef.c: Likewise.
46190         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
46191         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
46192         * doc/posix-headers/locale.texi (locale.h): Likewise.
46193         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
46194         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
46195         * doc/posix-headers/string.texi (string.h): Likewise.
46196         * doc/posix-headers/time.texi (time.h): Likewise.
46197         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
46198         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
46199
46200 2009-08-14  Eric Blake  <ebb9@byu.net>
46201
46202         doc: improve git diff of texinfo files
46203         * .gitattributes: Add rule for *.texi files, with hint on how to
46204         use it.
46205         Copied from m4, and based on a report by Bruno Haible.
46206
46207 2009-08-14  Bruno Haible  <bruno@clisp.org>
46208
46209         Disable multithread support by default on Cygwin 1.5.x for real.
46210         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
46211
46212 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
46213
46214         update-copyright: much ado about intervals
46215         * build-aux/update-copyright: Implement and document
46216         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
46217         of copyright year intervals.
46218         Also, document UPDATE_COPYRIGHT_YEAR.
46219         * tests/test-update-copyright.sh: Test it.
46220
46221         update-copyright: convert 2-digit to 4-digit years
46222         * build-aux/update-copyright: Implement and document.
46223         * tests/test-update-copyright.sh: Update.
46224
46225 2009-08-14  Jim Meyering  <meyering@redhat.com>
46226
46227         test-exclude: avoid coreutils "make check" failure
46228         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
46229         just as in test-argmatch.c.
46230
46231 2009-08-13  Eric Blake  <ebb9@byu.net>
46232
46233         test-dup2: fix bad assumption
46234         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
46235         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
46236
46237         test-version-etc: fix CRLF portability issue
46238         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
46239         recognize \r.
46240         * tests/test-argp-version-etc-1.sh: Likewise.
46241
46242         getopt: update client modules
46243         * modules/argp (Depends-on): Use getopt-gnu.
46244         * modules/git-merge-changelog (Depends-on): Likewise.
46245         * modules/long-options (Depends-on): Likewise.
46246         * modules/xstrtol (Depends-on): Likewise.
46247
46248 2009-08-13  Simon Josefsson  <simon@josefsson.org>
46249
46250         * tests/test-version-etc.sh: Don't fail on different
46251         project/version.  Don't fail on CRLF differences.  Rewrite to use
46252         multiple -e instead of multiple sed forks, suggested by Eric Blake
46253         <ebb9@byu.net>.
46254         * tests/test-argp-version-etc-1.sh: Likewise.
46255
46256 2009-08-13  Simon Josefsson  <simon@josefsson.org>
46257
46258         * tests/test-version-etc.sh: Don't fail on different
46259         project/version.
46260
46261 2009-08-12  Bruno Haible  <bruno@clisp.org>
46262
46263         Tests for modules 'getopt-posix', 'getopt-gnu'.
46264         * modules/getopt-posix-tests: New file.
46265         * tests/test-getopt.c: New file.
46266         * tests/test-getopt.h: New file.
46267         * tests/test-getopt_long.h: New file.
46268
46269         New modules 'getopt-posix', 'getopt-gnu'.
46270         * modules/getopt-gnu: New file, renamed from modules/getopt.
46271         * modules/getopt-posix: New file.
46272         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
46273         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
46274         (gl_GETOPT): Remove macro.
46275         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
46276         Disable the test against BSD systems that declare optreset. Test
46277         against mingw bug. Test against lack of support of optional arguments
46278         on many platforms.
46279         * doc/glibc-headers/getopt.texi: Update module name and list of
46280         relevant platforms.
46281         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
46282         'getopt-gnu' and more portability problems.
46283         * NEWS: Mention the changes.
46284
46285 2009-08-12  Bruno Haible  <bruno@clisp.org>
46286
46287         Ensure that optarg etc. get declared by <unistd.h>.
46288         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
46289         AC_USE_SYSTEM_EXTENSIONS.
46290         * modules/getopt (Depends-on): Add 'extensions'.
46291
46292 2009-08-12  Bruno Haible  <bruno@clisp.org>
46293
46294         Avoid test link errors.
46295         * modules/pipe-filter-ii-tests (Makefile.am): Define
46296         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
46297         * modules/pipe-filter-gi-tests (Makefile.am): Define
46298         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
46299         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46300
46301 2009-08-12  Bruno Haible  <bruno@clisp.org>
46302
46303         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
46304         gl_GETOPT_SUBSTITUTE before.
46305         (gl_GETOPT): Use it.
46306         * m4/argp.m4 (gl_ARGP): Update.
46307         Reported by Sergey Poznyakoff.
46308
46309         * m4/getopt.m4: Reorder macros.
46310         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
46311         (gl_GETOPT_SUBSTITUTE): Remove macro.
46312
46313 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
46314
46315         Minor improvement in gitlog-to-changelog
46316
46317         * build-aux/gitlog-to-changelog: New option `--format' makes
46318         output format string configurable.
46319
46320 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
46321
46322         Optimize exclude: use hash tables for non-wildcard patterns.
46323
46324         * lib/exclude.c: Include hash.h and mbuiter.h
46325         (struct exclude_pattern, exclude_segment): New data types.
46326         (struct exclude): Rewrite.
46327         (fnmatch_pattern_has_wildcards): New function.
46328         (new_exclude_segment, free_exclude_segment): New functions.
46329         (excluded_file_pattern_p, excluded_file_name_p): New functions.
46330         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
46331         * lib/exclude.h (is_fnmatch_pattern): New prototype.
46332         * modules/exclude: Depend on hash and mbuiter.
46333
46334         * modules/exclude-tests: New file.
46335         * tests/test-exclude.c: New file.
46336         * tests/test-exclude1.sh: New file.
46337         * tests/test-exclude2.sh: New file.
46338         * tests/test-exclude3.sh: New file.
46339         * tests/test-exclude4.sh: New file.
46340         * tests/test-exclude5.sh: New file.
46341         * tests/test-exclude6.sh: New file.
46342         * tests/test-exclude7.sh: New file.
46343
46344 2009-08-12  Bruno Haible  <bruno@clisp.org>
46345
46346         Ensure that getopt() gets declared by <unistd.h>.
46347         * lib/unistd.in.h: Conditionally include getopt.h.
46348         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
46349         Set GNULIB_UNISTD_H_GETOPT.
46350         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46351         GNULIB_UNISTD_H_GETOPT.
46352         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
46353
46354 2009-08-12  Bruno Haible  <bruno@clisp.org>
46355
46356         Clarify logic.
46357         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
46358         gl_replace_getopt instead of GETOPT_H.
46359
46360 2009-08-12  Bruno Haible  <bruno@clisp.org>
46361
46362         * m4/getopt.m4: Add comments.
46363
46364 2009-08-12  Bruno Haible  <bruno@clisp.org>
46365
46366         Disable multithread support by default on Cygwin 1.5.x.
46367         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
46368         set gl_use_threads=no if not specified otherwise.
46369
46370 2009-08-11  Bruno Haible  <bruno@clisp.org>
46371
46372         Avoid compilation error on NetBSD 5.0.
46373         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
46374         * tests/test-stdio.c: Likewise.
46375         * tests/test-stdlib.c: Likewise.
46376         * tests/test-string.c: Likewise.
46377         * tests/test-unistd.c: Likewise.
46378         Reported by Greg Troxel <gdt@ir.bbn.com>
46379         at <https://savannah.gnu.org/support/?106973>.
46380
46381 2009-08-11  Bruno Haible  <bruno@clisp.org>
46382
46383         * modules/dup2-tests (Depends-on): Remove close.
46384
46385         Undo 2009-07-19 commit.
46386         * modules/acl-tests (Depends-on): Remove close.
46387         * modules/binary-io-tests (Depends-on): Likewise.
46388         * modules/closein-tests (Depends-on): Likewise.
46389         * modules/flock-tests (Depends-on): Likewise.
46390         * modules/fsync-tests (Depends-on): Likewise.
46391         * modules/lseek-tests (Depends-on): Likewise.
46392         * modules/pipe-tests (Depends-on): Likewise.
46393         * modules/posix_spawn-tests (Depends-on): Likewise.
46394         * modules/posix_spawnp-tests (Depends-on): Likewise.
46395         * modules/stat-time-tests (Depends-on): Likewise.
46396         * modules/yesno-tests (Depends-on): Likewise.
46397
46398 2009-08-10  Bruno Haible  <bruno@clisp.org>
46399
46400         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
46401
46402 2009-08-10  Bruno Haible  <bruno@clisp.org>
46403
46404         Fix a gcc warning.
46405         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
46406
46407 2009-08-10  Bruno Haible  <bruno@clisp.org>
46408
46409         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
46410         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
46411         not only the first time.
46412         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
46413         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
46414         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
46415         is 1, not only the the first time.
46416
46417 2009-08-10  Bruno Haible  <bruno@clisp.org>
46418
46419         Make it possible to use module 'gethostname' without module 'close'.
46420         * lib/unistd.in.h (close): Evoke a link error only if
46421         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
46422         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46423         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46424         * modules/unistd (Makefile.am): Substitute
46425         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46426         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
46427         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
46428         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
46429         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46430         * modules/sys_ioctl (Makefile.am): Substitute
46431         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46432         * modules/socket (configure.ac): On native Windows, set
46433         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
46434         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46435         Reported by Sam Steingold <sds@gnu.org>.
46436
46437 2009-08-10  Bruno Haible  <bruno@clisp.org>
46438
46439         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
46440         * modules/ioctl (configure.ac): Likewise.
46441
46442 2009-08-10  Bruno Haible  <bruno@clisp.org>
46443
46444         Avoid collision between gnulib wrapper and libintl wrapper.
46445         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
46446         already defined in intl/printf.c.
46447         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
46448         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
46449
46450 2009-08-09  Bruno Haible  <bruno@clisp.org>
46451
46452         Make <sys/select.h> really self-contained, also on Solaris 10.
46453         * lib/sys_select.in.h: Include <string.h>.
46454         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
46455         Solaris 10 problem.
46456         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
46457         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
46458         Reported by Jim Meyering.
46459
46460 2009-08-09  Bruno Haible  <bruno@clisp.org>
46461
46462         Avoid warnings from 'aclocal' that are due to a use of macro name
46463         AM_XGETTEXT_OPTION that is not defined in automake.
46464         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
46465         automake.
46466         * modules/error (configure.ac): Likewise.
46467         * modules/propername (configure.ac): Likewise.
46468         * modules/vasprintf (configure.ac): Likewise.
46469         * modules/verror (configure.ac): Likewise.
46470         * modules/xprintf (configure.ac): Likewise.
46471         * modules/xvasprintf (configure.ac): Likewise.
46472
46473 2009-08-08  Bruno Haible  <bruno@clisp.org>
46474
46475         Avoid compilation error in C++ mode.
46476         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
46477         Reported by Sam Steingold <sds@gnu.org>.
46478
46479 2009-08-08  Bruno Haible  <bruno@clisp.org>
46480
46481         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
46482         for the various Unix platforms.
46483         * doc/posix-headers/limits.texi: Update platforms list regarding
46484         HOST_NAME_MAX.
46485         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46486
46487 2009-08-07  Jim Meyering  <meyering@redhat.com>
46488
46489         selinux-at: fix typo in a comment
46490         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
46491         Spotted by Paolo Bonzini.
46492
46493         selinux-at: remove redundant m4 code, add documentation
46494         * modules/selinux-at (configure.ac): Remove redundant code.
46495         LIB_SELINUX is already set via the dependent module, selinux-h.
46496         (Include): Add quotes around selinux-at.h.
46497         * lib/selinux-at.h: Add documentation.
46498         Reported by Bruno Haible in
46499         http://marc.info/?l=gnulib-bug&m=124958988300749
46500
46501 2009-08-07  Bruno Haible  <bruno@clisp.org>
46502
46503         Avoid link error on MacOS X 10.3 and 10.4.
46504         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
46505         on non-ELF systems.
46506         * lib/argp-pv.c (argp_program_version): Likewise.
46507         Reported by Simon Josefsson.
46508
46509 2009-08-07  Simon Josefsson  <simon@josefsson.org>
46510
46511         * tests/test-version-etc.sh: Use $EXEEXT.
46512
46513 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
46514
46515         update-copyright: update documentation to point to maint.mk
46516         * build-aux/update-copyright: Here.
46517
46518 2009-08-06  Jim Meyering  <meyering@redhat.com>
46519
46520         maint.mk: support update-copyright-local
46521         * top/maint.mk (update-copyright-local): Define place-holder.
46522         (update-copyright): Depend on $(update-copyright-local).
46523
46524 2009-08-06  Jim Meyering  <meyering@redhat.com>
46525
46526         selinux-at: new module
46527         Initially written for coreutils, this module will soon be
46528         used by findutils, too.
46529         * MODULES.html.sh [Misc]: Add selinux-at.
46530         * lib/selinux-at.h: New file, from coreutils.
46531         * lib/selinux-at.c: Likewise.
46532         * modules/selinux-at: Likewise.
46533         (License): Change from LGPL to GPL, since it depends
46534         on the GPL'd openat module.
46535
46536         doc: update README
46537         * README: Remove references to cogito.
46538         Remove cvs-repo-updating instructions from 2007.
46539         Don't imply that CVS is better if you have limited disk space.
46540
46541 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46542
46543         update-copyright: support C-style comments
46544         * build-aux/update-copyright: Implement and document.
46545         * tests/test-update-copyright.sh: Test.
46546
46547 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46548
46549         update-copyright: support omitted "(C)"
46550         * build-aux/update-copyright: Implement and document.  Also,
46551         allow variable whitespace before "(C)".
46552         * tests/test-update-copyright.sh: Test.
46553
46554 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46555
46556         update-copyright: don't trip on non-FSF copyright statements
46557         * build-aux/update-copyright: Fix so that the first correctly
46558         formatted FSF copyright statement is recognized no matter what
46559         appears before it.  Update documentation.
46560         * tests/test-update-copyright.sh: Test that.
46561
46562 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46563
46564         update-copyright: clean up code a little
46565         * build-aux/update-copyright: Append "_re" to the name of any
46566         variable holding a regular expression.
46567         Replace "old" and "new" with "stmt" in variable names.
46568         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
46569         handled correctly.
46570         Format code more consistently.
46571
46572 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46573
46574         update-copyright-tests: improve portability
46575         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
46576         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
46577
46578 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
46579
46580         update-copyright: support @copyright{} and &copy;
46581         * build-aux/update-copyright: Implement and document.
46582         * tests/test-update-copyright.sh: Test.
46583
46584 2009-08-04  Jim Meyering  <meyering@redhat.com>
46585
46586         update-copyright-tests: correctly test EOL=\r\n handling
46587         * tests/test-update-copyright.sh: Put \r at the end of some lines
46588         for the dos-eol tests.  Based on a patch by Joel E. Denny.
46589
46590         maint.mk: make update-copyright exclusion list more configurable
46591         * top/maint.mk (update-copyright): Default to excluding COPYING,
46592         but allow an override, in case someone does want to update that file.
46593
46594         maint.mk: don't update copyright date in COPYING
46595         * top/maint.mk (update-copyright): Exclude COPYING.
46596
46597         maint.mk: add a copyright-updating rule
46598         * top/maint.mk (update-copyright): New rule.
46599         Derived from coreutils/Makefile.am.
46600
46601         update-copyright: rename some variables
46602         * build-aux/update-copyright: Rename a few variables for clarity.
46603         Tweak syntax.  List Joel E. Denny as coauthor.
46604
46605 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
46606
46607         update-copyright: fix bug for 2-digit last year and add tests
46608         * build-aux/update-copyright: Fix bug.
46609         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
46610         specified.
46611         * modules/update-copyright-tests: New
46612         * tests/test-update-copyright.sh: New.
46613
46614 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
46615
46616         update-copyright: handle leading tabs in line prefix
46617         * build-aux/update-copyright: Count leading tabs as 8 spaces
46618         when computing margin.  This helps with the formatting of
46619         ChangeLogs, for example.
46620         Fix documentation a little.
46621
46622 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
46623
46624         update-copyright: support EOL=\r\n
46625         * build-aux/update-copyright: Implement that.
46626
46627 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
46628
46629         update-copyright: automatically format copyright statements
46630         * build-aux/update-copyright: Implement that.
46631         Also, be a little more predictable and safer by always failing
46632         when the full copyright format is not perfectly recognized as an
46633         unbroken whole.  Discussed at
46634         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
46635         Rewrite documentation.
46636
46637 2009-08-03  Bruno Haible  <bruno@clisp.org>
46638
46639         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
46640
46641 2009-08-02  Bruno Haible  <bruno@clisp.org>
46642
46643         Tests for module 'uname'.
46644         * modules/uname-tests: New file.
46645         * tests/test-uname.c: New file.
46646
46647         New module 'uname'.
46648         * lib/uname.c: New file.
46649         * m4/uname.m4: New file.
46650         * modules/uname: New file.
46651         * doc/posix-functions/uname.texi: Mention the new module.
46652
46653 2009-08-02  Bruno Haible  <bruno@clisp.org>
46654
46655         Tests for module 'sys_utsname'.
46656         * modules/sys_utsname-tests: New file.
46657         * tests/test-sys_utsname.c: New file.
46658
46659         New module 'sys_utsname'.
46660         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
46661         * m4/sys_utsname_h.m4: New file.
46662         * modules/sys_utsname: New file.
46663         * doc/posix-headers/sys_utsname.texi: Mention the new module.
46664
46665 2009-08-02  Bruno Haible  <bruno@clisp.org>
46666
46667         Implicitly initialize the sockets library.
46668         * lib/gethostname.c: Include sockets.h.
46669         (rpl_gethostname): Invoke gl_sockets_startup.
46670         * lib/socket.c: Include sockets.h.
46671         (rpl_socket): Invoke gl_sockets_startup.
46672         * modules/gethostname (Depends-on): Add sockets.
46673         * modules/socket (Depends-on): Likewise.
46674         * tests/test-poll.c: Don't include sockets.h.
46675         (main): Don't invoke gl_sockets_startup.
46676         * tests/test-select.c: Don't include sockets.h.
46677         (main): Don't invoke gl_sockets_startup.
46678
46679 2009-08-02  Bruno Haible  <bruno@clisp.org>
46680
46681         Allow multiple calls to gl_sockets_startup.
46682         * lib/sockets.c (initialized_sockets_version): New variable.
46683         (gl_sockets_startup): Do nothing if already called for this or a higher
46684         version.
46685         (gl_sockets_cleanup): Reset initialized_sockets_version.
46686
46687 2009-08-03  Simon Josefsson  <simon@josefsson.org>
46688
46689         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
46690         different project/version.
46691
46692 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
46693             Bruno Haible  <bruno@clisp.org>
46694
46695         Tests for module 'pipe-filter-gi'.
46696         * modules/pipe-filter-gi-tests: New file.
46697         * tests/test-pipe-filter-gi1.sh: New file.
46698         * tests/test-pipe-filter-gi1.c: New file.
46699         * tests/test-pipe-filter-gi2.sh: New file.
46700         * tests/test-pipe-filter-gi2-main.c: New file.
46701         * tests/test-pipe-filter-gi2-child.c: New file.
46702
46703         New module 'pipe-filter-gi'.
46704         * lib/pipe-filter-gi.c: New file.
46705         * modules/pipe-filter-gi: New file.
46706
46707 2009-08-02  Bruno Haible  <bruno@clisp.org>
46708             Paolo Bonzini  <bonzini@gnu.org>
46709
46710         Tests for module 'pipe-filter-ii'.
46711         * modules/pipe-filter-ii-tests: New file.
46712         * tests/test-pipe-filter-ii1.sh: New file.
46713         * tests/test-pipe-filter-ii1.c: New file.
46714         * tests/test-pipe-filter-ii2.sh: New file.
46715         * tests/test-pipe-filter-ii2-main.c: New file.
46716         * tests/test-pipe-filter-ii2-child.c: New file.
46717
46718         New module 'pipe-filter-ii'.
46719         * lib/pipe-filter.h: New file.
46720         * lib/pipe-filter-ii.c: New file.
46721         * lib/pipe-filter-aux.h: New file.
46722         * modules/pipe-filter-ii: New file.
46723
46724 2009-08-02  Simon Josefsson  <simon@josefsson.org>
46725
46726         * lib/gc-libgcrypt.c: Change copyright to FSF.
46727         * lib/gc-gnulib.c: Likewise.
46728
46729 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
46730
46731         * lib/gethostname.c: Include limits.h.
46732
46733 2009-08-02  Simon Josefsson  <simon@josefsson.org>
46734             Bruno Haible  <bruno@clisp.org>
46735
46736         Ensure HOST_NAME_MAX as part of the gethostname module.
46737         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
46738         define also HOST_NAME_MAX.
46739         * tests/test-gethostname.c: Include <limits.h>.
46740         (main): Check also HOST_NAME_MAX.
46741         * doc/posix-headers/limits.texi: Document the mingw problem.
46742
46743 2009-08-02  Bruno Haible  <bruno@clisp.org>
46744
46745         * lib/gethostname.c (gethostname): Fix handling of large len argument.
46746         Add comments.
46747
46748 2009-03-31  Simon Josefsson  <simon@josefsson.org>
46749
46750         * lib/gethostname.c: Add Windows wrapper.
46751         * m4/gethostname.m4: Look for gethostname in -lws2_32.
46752         * modules/gethostname: Depend on sys_socket & errno, for also
46753         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
46754         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
46755
46756 2009-07-31  Jim Meyering  <meyering@redhat.com>
46757
46758         getloadavg: fix symbol name in comment
46759         * lib/getloadavg.c: Correct a typo I introduced when adding
46760         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
46761         Matt Kraai spotted the problem.
46762
46763 2009-07-29  Matt Kraai  <mkraai@beckman.com>
46764
46765         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
46766         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
46767         code also if ! defined N_NAME_POINTER.
46768         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
46769         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
46770         but the n_name member is a 12-byte array.
46771
46772 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
46773
46774         update-copyright: generalize comment handling
46775         * build-aux/update-copyright: Handle copyright statements
46776         within more comment styles.
46777         Document usage.
46778         Report any file with an external copyright holder or parse failure.
46779
46780 2009-07-29  Jim Meyering  <meyering@redhat.com>
46781
46782         mktime: correct setting of REPLACE_MKTIME
46783         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
46784
46785         update-copyright: new module
46786         * modules/update-copyright: New file.
46787         * build-aux/update-copyright: New file.
46788         * MODULES.html.sh (maint+release support): Add update-copyright.
46789
46790 2009-07-27  Bruno Haible  <bruno@clisp.org>
46791
46792         Fix compilation error when <ctime> is used and mktime is replaced.
46793         * lib/time.in.h (mktime): New declaration.
46794         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
46795         REPLACE_MKTIME instead of defining mktime in config.h.
46796         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
46797         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
46798         Reported by Ross McFarland <rwmcfa1@neces.com>.
46799
46800 2009-07-27  Bruno Haible  <bruno@clisp.org>
46801
46802         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
46803         Reported by Matt Kraai <mkraai@beckman.com>.
46804
46805 2009-07-25  Jim Meyering  <meyering@redhat.com>
46806
46807         maint.mk: avoid warnings about missing files
46808         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
46809         diagnostic when .prev-version does not exist.
46810         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
46811         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
46812         nonexistent cfg.mk.
46813         Suggestions from Simon Josefsson.
46814
46815 2009-07-25  Bruno Haible  <bruno@clisp.org>
46816
46817         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
46818         defined as macros. Needed on QNX 6.4.1.
46819         Reported by Matt Kraai <mkraai@beckman.com>.
46820
46821 2009-07-23  Jim Meyering  <meyering@redhat.com>
46822
46823         maint.mk: invoke "make dist" with a working value of XZ_OPT
46824         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
46825
46826 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
46827
46828         Make fseeko.c compile on QNX.
46829         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
46830
46831 2009-07-22  Peter Simons  <simons@cryp.to>
46832
46833         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
46834         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
46835         * lib/md4.h: Likewise.
46836         * lib/md5.h: Likewise.
46837         * lib/sha1.h: Likewise.
46838         * lib/sha256.h: Likewise.
46839         * lib/sha512.h: Likewise.
46840
46841         tests-sha1: don't assign literal string to 'char *' variable
46842         * tests/test-sha1.c (main): Declare locals with "const" to match
46843         attributes of the right hand side.
46844
46845 2009-07-21  Eric Blake  <ebb9@byu.net>
46846
46847         dup2: fix more mingw problems
46848         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
46849         fd to itself.
46850         * doc/posix-functions/dup2.texi (dup2): Document the bug.
46851         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
46852         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
46853         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
46854         care of mingw bugs.
46855
46856 2009-07-21  Jim Meyering  <meyering@redhat.com>
46857
46858         vc-list-files: avoid failure when /bin/sh is dash
46859         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
46860         On some Debian based systems, /bin/sh is a symlink to dash, and running
46861         this command would omit the "/" following each 'tests' prefix:
46862           dash -x build-aux/vc-list-files -C . tests
46863         That is because bash and dash work differently:
46864           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
46865           bash ok
46866           dash odd
46867
46868 2009-07-21  Eric Blake  <ebb9@byu.net>
46869
46870         dup2-tests: test previous patch
46871         * modules/dup2-tests: New file.
46872         * tests/test-dup2.c: Likewise.
46873         * tests/test-open.c (main): Avoid unspecified behavior.
46874         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
46875         test.
46876
46877         dup2: work around mingw and cygwin 1.5 bug
46878         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
46879         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
46880         * modules/unistd (Makefile.am): Substitute it.
46881         * lib/unistd.in.h (dup2): Declare the replacement.
46882         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
46883         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
46884         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
46885         * modules/execute (Depends-on): Add dup2.
46886         * modules/fseterr (Depends-on): Likewise.
46887         * modules/pipe (Depends-on): Likewise.
46888         * modules/posix_spawn-internal (Depends-on): Likewise.
46889
46890 2009-07-21  Bruno Haible  <bruno@clisp.org>
46891
46892         * modules/.gitattributes: New file.
46893
46894 2009-07-20  Bruno Haible  <bruno@clisp.org>
46895
46896         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
46897         (main): Use it.
46898
46899 2009-07-20  Eric Blake  <ebb9@byu.net>
46900
46901         test-pipe: make a bit more robust.
46902         * tests/test-pipe.c (myerr): Allow error messages regardless of
46903         what we do to stderr.
46904         (test_pipe): Rearrange to avoid deadlock.
46905         (child_main): Try a larger read, to ensure we avoided deadlock.
46906         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
46907         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
46908         if misused.
46909
46910 2009-07-19  Jim Meyering  <meyering@redhat.com>
46911
46912         fts: avoid false-positive cycle-detection
46913         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
46914         for each new command line argument.
46915
46916 2009-07-19  Bruno Haible  <bruno@clisp.org>
46917
46918         Fix build error on mingw with the modules sys_select and unistd.
46919         * modules/acl-tests (Depends-on): Add close.
46920         * modules/binary-io-tests (Depends-on): Likewise.
46921         * modules/closein-tests (Depends-on): Likewise.
46922         * modules/flock-tests (Depends-on): Likewise.
46923         * modules/fsync-tests (Depends-on): Likewise.
46924         * modules/lseek-tests (Depends-on): Likewise.
46925         * modules/pipe-tests (Depends-on): Likewise.
46926         * modules/posix_spawn-tests (Depends-on): Likewise.
46927         * modules/posix_spawnp-tests (Depends-on): Likewise.
46928         * modules/stat-time-tests (Depends-on): Likewise.
46929         * modules/yesno-tests (Depends-on): Likewise.
46930
46931 2009-07-19  Bruno Haible  <bruno@clisp.org>
46932
46933         Unify conditionals.
46934         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
46935         macros, not at the compiler macros.
46936         * lib/pipe.c: Likewise.
46937         * lib/execute.c: Likewise.
46938         * lib/spawni.c: Likewise.
46939
46940 2009-07-19  Bruno Haible  <bruno@clisp.org>
46941
46942         Fix handling of closed stdin/stdout/stderr on mingw.
46943         * lib/w32spawn.h: Include unistd.h.
46944         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
46945         file descriptor with O_NOINHERIT flag.
46946         (fd_safer_noinherit): New function, based on fd-safer.c.
46947         (dup_safer_noinherit): New function, based on dup-safer.c.
46948         (undup_safer_noinherit): New function.
46949         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
46950         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
46951         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
46952         instead of fd_safer.
46953         * tests/test-pipe.c: Include <windows.h>.
46954         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
46955         result.
46956
46957         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
46958         from main.
46959         (test_pipe): Pass an extra argument for disambiguation.
46960         (main): Invoke parent_main or child_main.
46961
46962         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
46963         consistently.
46964
46965 2009-07-18  Eric Blake  <ebb9@byu.net>
46966
46967         test-pipe: fix mingw build
46968         * tests/test-pipe.c (main): Avoid fcntl on mingw.
46969
46970 2009-07-18  Bruno Haible  <bruno@clisp.org>
46971
46972         * modules/pipe-tests (Makefile.am): Fix typo.
46973
46974 2009-07-18  Eric Blake  <ebb9@byu.net>
46975
46976         error: fix mingw build
46977         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
46978         Reported by Bruno Haible.
46979
46980         error: avoid undefined use of stdout
46981         * lib/error.c (error, error_at_line): Check that fd 1 is open
46982         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
46983         is handling faults and the close_stdout module wants to report the
46984         detection of closed stdout as an error.
46985
46986 2009-07-17  Eric Blake  <ebb9@byu.net>
46987
46988         pipe: be robust in face of closed fds
46989         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
46990         should cause child to misbehave.
46991         * modules/pipe-tests: New module.
46992         * tests/test-pipe.c: New file.
46993         * tests/test-pipe.sh: New file.
46994         Reported by Akim Demaille.
46995
46996 2009-07-14  Bruno Haible  <bruno@clisp.org>
46997
46998         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
46999         Reported by anonymous kc.
47000
47001 2009-07-07  Jim Meyering  <meyering@redhat.com>
47002
47003         maint.mk: don't look for translatable strings in *.m4 or *.mk
47004         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
47005         when searching for translatable strings.
47006
47007 2009-07-05  Jim Meyering  <meyering@redhat.com>
47008
47009         remove superfluous parentheses in STREQ definition
47010         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
47011         * lib/getugroups.c (STREQ): Likewise.
47012         * lib/fnmatch.c (STREQ): Likewise.
47013         Spotted by Bruno Haible.
47014
47015 2009-07-04  Jim Meyering  <meyering@redhat.com>
47016
47017         argv-iter: new module
47018         * MODULES.html.sh: Add argv-iter.
47019         * lib/argv-iter.c, lib/argv-iter.h: New files.
47020         * modules/argv-iter: New file.
47021         * modules/argv-iter-tests: New file.
47022         * tests/test-argv-iter.c: Test it.
47023
47024 2009-07-04  Bruno Haible  <bruno@clisp.org>
47025
47026         Fix assertion.
47027         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
47028         contains more exact copies of a given entry than file2, leave the extra
47029         copies unpaired rather than aborting.
47030         Reported by Eric Blake.
47031
47032 2009-07-02  Bruno Haible  <bruno@clisp.org>
47033
47034         Speedup git-merge-changelog for git cherry-pick.
47035         * lib/git-merge-changelog.c (struct entries_mapping): New type.
47036         (entries_mapping_get): New function, extracted from compute_mapping.
47037         (entries_mapping_reverse_get): New function.
47038         (compute_mapping): Add a 'full' argument. Return the result in a
47039         'struct entries_mapping'.
47040         (main): Update. Access the mappings through entries_mapping_get.
47041         Reported by Eric Blake.
47042
47043 2009-07-02  Bruno Haible  <bruno@clisp.org>
47044
47045         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
47046         best_i.
47047
47048 2009-07-02  Bruno Haible  <bruno@clisp.org>
47049
47050         Speed up approximate search for matching ChangeLog entries.
47051         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
47052         argument. Call fstrcmp_bounded instead of fstrcmp.
47053         (compute_mapping, try_split_merged_entry, main): Update callers.
47054
47055 2009-07-02  Bruno Haible  <bruno@clisp.org>
47056
47057         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
47058
47059 2009-06-30  Bruno Haible  <bruno@clisp.org>
47060
47061         Reduce the number of uc_is_cased calls.
47062         * lib/unicase.h (casing_suffix_context_t): Add
47063         'first_char_except_ignorable' field.
47064         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
47065         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
47066         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
47067         Update initializer.
47068         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
47069         case-ignorable characters.
47070         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
47071         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
47072         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
47073         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
47074         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
47075
47076 2009-06-30  Bruno Haible  <bruno@clisp.org>
47077
47078         Tests for module 'unicase/ignorable'.
47079         * modules/unicase/ignorable-tests: New file.
47080         * tests/unicase/test-ignorable.c: New file, generated by
47081         gen-uni-tables.
47082
47083         Tests for module 'unicase/cased'.
47084         * modules/unicase/cased-tests: New file.
47085         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
47086         * tests/unicase/test-predicate-part1.h: New file, derived from
47087         tests/unictype/test-predicate-part1.h.
47088         * tests/unicase/test-predicate-part2.h: New file, same as
47089         tests/unictype/test-predicate-part2.h.
47090
47091         Fix evaluation of "Before C" condition of FINAL_SIGMA.
47092         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
47093         (output_casing_properties): New function.
47094         (main): Call it.
47095         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
47096         * lib/unicase/cased.c: Include unictype/bitmap.h.
47097         (uc_is_cased): Define through a bitmap lookup.
47098         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
47099         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
47100         (uc_is_case_ignorable): Define through a bitmap lookup.
47101         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
47102         lib/unictype/bitmap.h.
47103         (Depends-on): Add inline. Clean up.
47104         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
47105         lib/unictype/bitmap.h.
47106         (Depends-on): Add inline. Clean up.
47107         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
47108         recognition.
47109         * tests/unicase/test-u16-tolower.c (main): Likewise.
47110         * tests/unicase/test-u32-tolower.c (main): Likewise.
47111
47112 2009-06-30  Bruno Haible  <bruno@clisp.org>
47113
47114         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
47115         * lib/unicase/u16-casemap.c: Likewise.
47116         * lib/unicase/u32-casemap.c: Likewise.
47117
47118 2009-06-29  Bruno Haible  <bruno@clisp.org>
47119
47120         Define u32_casefold as a wrapper around u32_ct_casefold.
47121         * lib/unicase/u32-casefold.c: Update.
47122         * modules/unicase/u32-casefold (Depends-on): Add
47123         unicase/u32-ct-casefold, unicase/empty-prefix-context,
47124         unicase/empty-suffix-context. Clean up.
47125
47126         Define u16_casefold as a wrapper around u16_ct_casefold.
47127         * lib/unicase/u16-casefold.c: Update.
47128         * modules/unicase/u16-casefold (Depends-on): Add
47129         unicase/u16-ct-casefold, unicase/empty-prefix-context,
47130         unicase/empty-suffix-context. Clean up.
47131
47132         Define u8_casefold as a wrapper around u8_ct_casefold.
47133         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
47134         * lib/unicase/u8-casefold.c: Update.
47135         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
47136         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
47137
47138         Define u32_totitle as a wrapper around u32_ct_totitle.
47139         * lib/unicase/u32-totitle.c: Update.
47140         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
47141         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
47142
47143         Define u16_totitle as a wrapper around u16_ct_totitle.
47144         * lib/unicase/u16-totitle.c: Update.
47145         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
47146         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
47147
47148         Define u8_totitle as a wrapper around u8_ct_totitle.
47149         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
47150         functions.
47151         (FUNC): Delegate to U_CT_TOTITLE.
47152         * lib/unicase/u8-totitle.c: Update.
47153         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
47154         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
47155
47156         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
47157         invocation.
47158         * modules/unicase/u32-tolower (Depends-on): Add
47159         unicase/empty-prefix-context, unicase/empty-suffix-context.
47160
47161         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
47162         invocation.
47163         * modules/unicase/u16-tolower (Depends-on): Add
47164         unicase/empty-prefix-context, unicase/empty-suffix-context.
47165
47166         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
47167         * modules/unicase/u8-tolower (Depends-on): Add
47168         unicase/empty-prefix-context, unicase/empty-suffix-context.
47169
47170         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
47171         invocation.
47172         * modules/unicase/u32-toupper (Depends-on): Add
47173         unicase/empty-prefix-context, unicase/empty-suffix-context.
47174
47175         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
47176         invocation.
47177         * modules/unicase/u16-toupper (Depends-on): Add
47178         unicase/empty-prefix-context, unicase/empty-suffix-context.
47179
47180         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
47181         * modules/unicase/u8-toupper (Depends-on): Add
47182         unicase/empty-prefix-context, unicase/empty-suffix-context.
47183
47184         New module 'unicase/u32-ct-casefold'.
47185         * lib/unicase/u32-ct-casefold.c: New file.
47186         * modules/unicase/u32-ct-casefold: New file.
47187
47188         New module 'unicase/u16-ct-casefold'.
47189         * lib/unicase/u16-ct-casefold.c: New file.
47190         * modules/unicase/u16-ct-casefold: New file.
47191
47192         New module 'unicase/u8-ct-casefold'.
47193         * lib/unicase/u8-ct-casefold.c: New file.
47194         * lib/unicase/u-ct-casefold.h: New file, derived from
47195         lib/unicase/u-casefold.h.
47196         * modules/unicase/u8-ct-casefold: New file.
47197
47198         New module 'unicase/u32-ct-totitle'.
47199         * lib/unicase/u32-ct-totitle.c: New file.
47200         * modules/unicase/u32-ct-totitle: New file.
47201
47202         New module 'unicase/u16-ct-totitle'.
47203         * lib/unicase/u16-ct-totitle.c: New file.
47204         * modules/unicase/u16-ct-totitle: New file.
47205
47206         New module 'unicase/u8-ct-totitle'.
47207         * lib/unicase/u8-ct-totitle.c: New file.
47208         * lib/unicase/u-ct-totitle.h: New file, derived from
47209         lib/unicase/u-totitle.h.
47210         * modules/unicase/u8-ct-totitle: New file.
47211
47212         New module 'unicase/u32-ct-tolower'.
47213         * lib/unicase/u32-ct-tolower.c: New file.
47214         * modules/unicase/u32-ct-tolower: New file.
47215
47216         New module 'unicase/u16-ct-tolower'.
47217         * lib/unicase/u16-ct-tolower.c: New file.
47218         * modules/unicase/u16-ct-tolower: New file.
47219
47220         New module 'unicase/u8-ct-tolower'.
47221         * lib/unicase/u8-ct-tolower.c: New file.
47222         * modules/unicase/u8-ct-tolower: New file.
47223
47224         New module 'unicase/u32-ct-toupper'.
47225         * lib/unicase/u32-ct-toupper.c: New file.
47226         * modules/unicase/u32-ct-toupper: New file.
47227
47228         New module 'unicase/u16-ct-toupper'.
47229         * lib/unicase/u16-ct-toupper.c: New file.
47230         * modules/unicase/u16-ct-toupper: New file.
47231
47232         New module 'unicase/u8-ct-toupper'.
47233         * lib/unicase/u8-ct-toupper.c: New file.
47234         * modules/unicase/u8-ct-toupper: New file.
47235
47236         Add context arguments to u*_casemap functions.
47237         * lib/unicase/unicasemap.h: Include unicase.h.
47238         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
47239         suffix_context arguments.
47240         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
47241         functions.
47242         (FUNC): Add prefix_context and suffix_context arguments. Use
47243         uc_is_cased and uc_is_case_ignorable.
47244         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
47245         * lib/unicase/u16-casemap.c: Likewise.
47246         * lib/unicase/u32-casemap.c: Likewise.
47247         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
47248         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
47249         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
47250         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
47251         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
47252         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
47253
47254         New module 'unicase/u32-suffix-context'.
47255         * lib/unicase/u32-suffix-context.c: New file.
47256         * modules/unicase/u32-suffix-context: New file.
47257
47258         New module 'unicase/u16-suffix-context'.
47259         * lib/unicase/u16-suffix-context.c: New file.
47260         * modules/unicase/u16-suffix-context: New file.
47261
47262         New module 'unicase/u8-suffix-context'.
47263         * lib/unicase/u8-suffix-context.c: New file.
47264         * lib/unicase/u-suffix-context.h: New file.
47265         * modules/unicase/u8-suffix-context: New file.
47266
47267         New module 'unicase/empty-suffix-context'.
47268         * lib/unicase/empty-suffix-context.c: New file.
47269         * modules/unicase/empty-suffix-context: New file.
47270
47271         New module 'unicase/u32-prefix-context'.
47272         * lib/unicase/u32-prefix-context.c: New file.
47273         * modules/unicase/u32-prefix-context: New file.
47274
47275         New module 'unicase/u16-prefix-context'.
47276         * lib/unicase/u16-prefix-context.c: New file.
47277         * modules/unicase/u16-prefix-context: New file.
47278
47279         New module 'unicase/u8-prefix-context'.
47280         * lib/unicase/u8-prefix-context.c: New file.
47281         * lib/unicase/u-prefix-context.h: New file.
47282         * lib/unicase/context.h: New file.
47283         * modules/unicase/u8-prefix-context: New file.
47284
47285         New module 'unicase/empty-prefix-context'.
47286         * lib/unicase/empty-prefix-context.c: New file.
47287         * modules/unicase/empty-prefix-context: New file.
47288
47289         New module 'unicase/ignorable'.
47290         * lib/unicase/ignorable.c: New file.
47291         * modules/unicase/ignorable: New file.
47292
47293         New module 'unicase/cased'.
47294         * lib/unicase/caseprop.h: New file.
47295         * lib/unicase/cased.c: New file.
47296         * modules/unicase/cased: New file.
47297
47298         New functions for case mapping of substrings.
47299         * lib/unicase.h (casing_prefix_context_t): New type.
47300         (unicase_empty_prefix_context): New variable.
47301         (u8_casing_prefix_context, u16_casing_prefix_context,
47302         u32_casing_prefix_context, u8_casing_prefixes_context,
47303         u16_casing_prefixes_context, u32_casing_prefixes_context): New
47304         declarations.
47305         (casing_suffix_context_t): New type.
47306         (unicase_empty_suffix_context): New variable.
47307         (u8_casing_suffix_context, u16_casing_suffix_context,
47308         u32_casing_suffix_context, u8_casing_suffixes_context,
47309         u16_casing_suffixes_context, u32_casing_suffixes_context,
47310         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
47311         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
47312         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
47313         declarations.
47314
47315 2009-06-28  Jim Meyering  <meyering@redhat.com>
47316
47317         boostrap: indent only with spaces
47318         * build-aux/bootstrap: Indent only with spaces, never TABs.
47319
47320         bootstrap: split long lines
47321         * build-aux/bootstrap: Keep line length < 80.
47322
47323         bootstrap: sync from coreutils
47324         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
47325         just as autoreconf does.  Verify a list of prerequisite
47326         package-name,version-number pairs if defined in bootstrap.conf.
47327         Refer to README-prereq, if prerequisites are not satisfied.
47328
47329 2009-06-27  Eric Blake  <ebb9@byu.net>
47330
47331         tests: add test for bogus NULL definition
47332         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
47333         * tests/test-stdlib.c: Likewise.
47334         * tests/test-string.c: Likewise.
47335         * tests/test-locale.c: Likewise.
47336         * tests/test-unistd.c: Likewise.
47337         * modules/stdio-tests (Depends-on): Add verify.
47338         * modules/stdlib-tests (Depends-on): Likewise.
47339         * modules/string-tests (Depends-on): Likewise.
47340         * modules/locale-tests (Depends-on): Likewise.
47341         * modules/unistd-tests (Depends-on): Likewise.
47342
47343 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
47344
47345         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
47346         self-explaining comment.
47347         * m4/selinux-selinux-h: Update serial.
47348         (gl_LIBSELINUX): New macro, adding a warning for missing development
47349         packages to code extracted from...
47350         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
47351         Add warning for missing development packages here, too.
47352
47353 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
47354
47355         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
47356
47357 2009-06-25  Eric Blake  <ebb9@byu.net>
47358
47359         version-etc: fix regression
47360         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
47361         gcc.
47362         (version_etc): Use it, to catch bugs with trailing NULL.
47363         * lib/version-etc.c (version_etc_arn): Delete unused argument.
47364         (version_etc_va): Fix logic bug.
47365         * modules/version-etc-tests: Add test.
47366         * tests/test-version-etc.c: New file.
47367         * tests/test-version-etc.sh: Likewise.
47368
47369 2009-06-25  Sam Steingold  <sds@gnu.org>
47370
47371         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
47372         mbtowc declaration.
47373
47374 2009-06-25  Eric Blake  <ebb9@byu.net>
47375
47376         fpurge: migrate into <stdio.h>
47377         * lib/fpurge.h: Delete...
47378         * lib/stdio.in.h (fpurge): ...and declare here, instead.
47379         * lib/fpurge.c (fpurge): Change declaring header.
47380         * modules/fpurge (Files): Drop deleted file.
47381         (Depends-on): Add stdio.
47382         (configure.ac): Set witness.
47383         * modules/stdio (Makefile.am): Support fpurge macros.
47384         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
47385         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
47386         * lib/fflush.c: Update client.
47387         * tests/test-fpurge.c: Likewise.
47388         * NEWS: Mention the change.
47389
47390 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47391
47392         * lib/argp-version-etc.c (program_authors): Add const
47393         qualifier.
47394         * lib/version-etc.c: Fix typos in the comments.
47395         * modules/argp-version-etc: Depends on version-etc.
47396
47397 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47398
47399         argp-version-etc: new module.
47400
47401         * lib/argp-version-etc.c: New file.
47402         * lib/argp-version-etc.h: New file.
47403         * modules/argp-version-etc: New file.
47404         * modules/argp-version-etc-tests: New file.
47405         * tests/test-argp-version-etc.c: New test.
47406         * tests/test-argp-version-etc-1.sh: New test.
47407
47408 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47409
47410         Provide additional interfaces and documentation for version-etc
47411         module.
47412
47413         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
47414         interfaces.
47415         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
47416         prototypes.
47417
47418 2009-06-24  Bruno Haible  <bruno@clisp.org>
47419
47420         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
47421         HAVE_LIB${NAME} macro.
47422         Reported by Sam Steingold <sds@gnu.org>.
47423
47424 2009-06-23  Simon Josefsson  <simon@josefsson.org>
47425
47426         * modules/hash-tests (test_hash_LDADD): Link to libintl when
47427         needed.
47428
47429 2009-06-21  Bruno Haible  <bruno@clisp.org>
47430
47431         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
47432         work.
47433         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
47434         together with LIB${NAME}, LTLIB${NAME}.
47435         Reported by Sam Steingold <sds@gnu.org>.
47436
47437 2009-06-20  Jim Meyering  <meyering@redhat.com>
47438
47439         tests: make sc_require_test_exit_idiom more generic
47440         * top/maint.mk (Exit_witness_file): New overridable variable.
47441         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
47442         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
47443
47444 2009-06-19  Jim Meyering  <meyering@redhat.com>
47445
47446         hash: reverse order of src/dst parameters in an internal interface
47447         * lib/hash.c (transfer_entries): Reverse order of parameters to
47448         put DST before SRC.  Adjust callers.
47449
47450         tests: test-hash: avoid wholesale duplication
47451         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
47452         Instead, use a loop and add a single conditional.
47453
47454         tests: test-hash: allow seed selection via a command line argument
47455         * tests/test-hash.c (get_seed): New function.
47456         (main): Use it.
47457
47458 2009-06-19  Eric Blake  <ebb9@byu.net>
47459
47460         hash: avoid memory leak on allocation failure
47461         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
47462         failure.  Factor repeated algorithm...
47463         (transfer_entries): ...into new helper routine.
47464         (hash_delete): React to hash_rehash return value.
47465
47466         hash: reduce memory pressure in hash_rehash no-op case
47467         * lib/hash.c (next_prime): Avoid overflow.
47468         (hash_initialize): Factor bucket size computation...
47469         (compute_bucket_size): ...into new helper function.
47470         (hash_rehash): Use new function and open coding to reduce memory
47471         pressure, and avoid a memory leak in USE_OBSTACK code.
47472         Reported by Jim Meyering.
47473
47474 2009-06-18  Eric Blake  <ebb9@byu.net>
47475
47476         hash: make rotation more obvious
47477         * modules/hash (Depends-on): Add bitrotate and stdint.
47478         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
47479         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
47480         (SIZE_MAX): Rely on headers for definition.
47481         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
47482         (raw_hasher): Use rotr_sz.
47483         Suggested by Jim Meyering.
47484
47485         hash: fix memory leak in last patch
47486         * lib/hash.c (hash_rehash): Avoid memory leak.
47487
47488         hash: avoid no-op rehashing
47489         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
47490
47491         hash: provide default callback functions
47492         * lib/hash.c (raw_hasher, raw_comparator): New functions.
47493         (hash_initialize): Use them as defaults.
47494         * tests/test-hash.c (main): Test this.
47495
47496         hash: minor optimization
47497         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
47498         when possible.
47499         (hash_initialize): Document this promise.
47500         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
47501         * tests/test-hash.c (hash_compare_strings): Test this.
47502
47503 2009-06-18  Bruno Haible  <bruno@clisp.org>
47504
47505         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
47506         going to be replaced anyway.
47507
47508 2009-06-18  Bruno Haible  <bruno@clisp.org>
47509
47510         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
47511         in one place.
47512         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
47513         be replaced anyway.
47514
47515 2009-06-18  Eric Blake  <ebb9@byu.net>
47516
47517         hash: check for resize before insertion
47518         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
47519         threshold before insertion, so that a pathological hash_rehash
47520         that fills every bucket can still trigger another rehash.
47521
47522 2009-06-18  Jim Meyering  <meyering@redhat.com>
47523
47524         hash-tests: add a loop around the small tests
47525         * tests/test-hash.c (main): Repeat small tests with selected
47526         small initial table sizes.
47527
47528 2009-06-17  Eric Blake  <ebb9@byu.net>
47529
47530         hash: minor cleanups
47531         * lib/hash.h (hash_entry): Make opaque, by moving...
47532         * lib/hash.c (hash_entry): ...here.
47533         (hash_insert): Clarify restrictions on what can be inserted.
47534         (hash_get_next): Clarify when it is safe to remove an element
47535         during traversal.
47536         (check_tuning): Skip verification when tuning is known safe.
47537         (hash_initialize): Clarify restrictions on tuning.
47538
47539 2009-06-17  Jim Meyering  <jim@meyering.net>
47540         and Eric Blake  <ebb9@byu.net>
47541
47542         hash-tests: new module
47543         * modules/hash-tests: New file.
47544         * tests/test-hash.c: New file.
47545
47546 2009-06-17  Eric Blake  <ebb9@byu.net>
47547
47548         strstr-simple: document new module
47549         * MODULES.html.sh: Document new module.
47550
47551         strstr, strcasestr: replace on platforms with broken memchr
47552         * modules/strstr: Split into...
47553         * modules/strstr-simple: ...new module that does not care about
47554         performance, but does care about glibc bug.
47555         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
47556         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
47557         if platform memchr is broken, per Debian bug 521737.
47558         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
47559         memchr.
47560         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
47561         * doc/posix-functions/strstr.texi (strstr): Document the fix.
47562         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
47563         * modules/mountlist (Depends-on): Add strstr-simple.
47564         * modules/gen-uni-tables (Depends-on): Likewise.
47565         * modules/argz (Depends-on): Add strstr.
47566
47567 2009-06-17  Bruno Haible  <bruno@clisp.org>
47568
47569         * modules/posix_spawn-internal (Depends-on): Add errno.
47570
47571 2009-06-17  Bruno Haible  <bruno@clisp.org>
47572
47573         Define missing ESTALE on Interix 3.5.
47574         * lib/errno.in.h (ESTALE): Assign a value if missing.
47575         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
47576         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
47577         missing.
47578         * doc/posix-headers/errno.texi: Mention the Interix bug.
47579         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
47580
47581 2009-06-15  Eric Blake  <ebb9@byu.net>
47582
47583         memchr, memchr2: add valgrind exception
47584         * lib/memchr.valgrind: New file.
47585         * lib/memchr2.valgrind: New file.
47586         * modules/memchr (Files): Distribute valgrind file.
47587         * modules/memchr2 (Files): Likewise.
47588
47589         docs: memchr is no longer obsolete
47590         * MODULES.html.sh: Move memchr from obsolete to string.h section.
47591         * lib/string.in.h (memchr): Simplify logic.
47592
47593 2009-06-14  Jim Meyering  <meyering@redhat.com>
47594
47595         link-follow: fix the "checking..." message to not mention trailing slash
47596         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
47597         never considered trailing slashes.
47598
47599 2009-06-14  Bruno Haible  <bruno@clisp.org>
47600
47601         * m4/memchr.m4: Mention also the bug on IA-64.
47602         * doc/posix-functions/memchr.texi: Likewise.
47603
47604 2009-06-12  Eric Blake  <ebb9@byu.net>
47605
47606         memchr: detect broken x86_64 and alpha implementations
47607         * modules/memchr-tests (Depends-on): Move mmap detection...
47608         * modules/memchr (Depends-on): ...here.
47609         (configure.ac): Set indicator.
47610         * lib/string.in.h (memchr): Declare replacement.
47611         * modules/string (Makefile.am): Trigger replacement.
47612         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
47613         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
47614         bugs.
47615         * doc/posix-functions/memchr.texi (memchr): Document the bug.
47616         * modules/getpagesize (License): Relax license.
47617
47618 2009-06-11  Bruno Haible  <bruno@clisp.org>
47619
47620         * lib/idpriv.h: Add more references.
47621
47622 2009-06-08  Bruno Haible  <bruno@clisp.org>
47623
47624         Tests for module 'idpriv-droptemp'.
47625         * modules/idpriv-droptemp-tests: New file.
47626         * tests/test-idpriv-droptemp.sh: New file.
47627         * tests/test-idpriv-droptemp.su.sh: New file.
47628         * tests/test-idpriv-droptemp.c: New file.
47629
47630         New module 'idpriv-droptemp'.
47631         * lib/idpriv-droptemp.c: New file.
47632         * modules/idpriv-droptemp: New file.
47633
47634 2009-06-08  Bruno Haible  <bruno@clisp.org>
47635
47636         Tests for module 'idpriv-drop'.
47637         * modules/idpriv-drop-tests: New file.
47638         * tests/test-idpriv-drop.sh: New file.
47639         * tests/test-idpriv-drop.su.sh: New file.
47640         * tests/test-idpriv-drop.c: New file.
47641
47642         New module 'idpriv-drop'.
47643         * lib/idpriv.h: New file.
47644         * lib-idpriv-drop.c: New file.
47645         * m4/idpriv.m4: New file.
47646         * modules/idpriv-drop: New file.
47647
47648 2009-06-08  Bruno Haible  <bruno@clisp.org>
47649
47650         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
47651         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47652         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47653         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47654         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47655         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47656         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47657
47658 2009-06-08  Eric Blake  <ebb9@byu.net>
47659
47660         test-strstr: use memory fence, when possible
47661         * tests/test-strstr.c (main): Use memory fence, in order to be
47662         more likely to trigger Debian bug 521737.
47663         * modules/strstr-tests (Files): Pull in additional files.
47664
47665         memchr: no longer obsolete, for wider field testing
47666         * modules/memchr (Status, Notice): Delete, this module is no
47667         longer obsolete.
47668         * modules/vasnprintf (Depends-on): Add memchr.
47669
47670 2009-06-07  Jim Meyering  <meyering@redhat.com>
47671
47672         hash: declare some functions with the warn_unused_result attribute
47673         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
47674
47675 2009-06-07  Bruno Haible  <bruno@clisp.org>
47676
47677         * tests/test-alignof.c: Don't test int64_t if it does not exist.
47678         Reported by Eric Blake.
47679
47680 2009-06-06  Eric Blake  <ebb9@byu.net>
47681
47682         test-alignof: fix typo with long double
47683         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
47684         compiler error.
47685
47686 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
47687
47688         Escape non-texinfo { and }s.
47689         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
47690         markup error.
47691
47692 2009-06-04  Jim Meyering  <meyering@redhat.com>
47693
47694         gitlog-to-changelog: don't infloop on an empty commit log
47695         * build-aux/gitlog-to-changelog: Warn about an empty log message.
47696         Reported by Boris Petersen <transacid@centerim.org>.
47697
47698 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
47699
47700         version-etc: extend for packagers
47701         Add three new configure options, intended for packagers:
47702           --with-packager="packager name"
47703           --with-packager-version="packager-specific version"
47704           --with-packager-bug-reports="packager bug reporting"
47705         An example with coreutils:
47706           $ ./configure \
47707             --with-packager=Gentoo \
47708             --with-packager-bug-report=http://bugs.gentoo.org/ \
47709             --with-packager-version="patchset 1.6"
47710           $ ./src/ls --version | head -n2
47711           ls (GNU coreutils) 7.1-dirty
47712           Packaged by Gentoo (patchset 1.6)
47713         Note that the bug reporting info via --help doesn't show up because
47714         coreutils uses its own custom emit_bug_reporting_address() implementation
47715         in src/system.h.  If it didn't, it'd look like:
47716           $ ./src/ls --help | tail -n4
47717           Report bugs to <bug-coreutils@gnu.org>.
47718           Report Gentoo bugs to <http://bugs.gentoo.org/>.
47719           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
47720           General help using GNU software: <http://www.gnu.org/gethelp/>.
47721         * lib/version-etc.c: Print new information, if provided.
47722         * m4/version-etc.m4: New file.
47723         * modules/version-etc (Files): Add m4/version-etc.m4.
47724         (configure.ac): Add gl_VERSION_ETC.
47725
47726 2009-05-31  Bruno Haible  <bruno@clisp.org>
47727
47728         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
47729         and 'int64_t'.
47730         * modules/alignof-tests (Dependencies): Add stdint.
47731         Reported by Eric Blake.
47732
47733 2009-05-31  Bruno Haible  <bruno@clisp.org>
47734
47735         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
47736         restriction due to compiler bugs.
47737         Reported by Eric Blake.
47738
47739 2009-05-31  Simon Josefsson  <simon@josefsson.org>
47740             Bruno Haible  <bruno@clisp.org>
47741
47742         Fix test-alignof failure.
47743         * lib/alignof.h (alignof_slot): New macro.
47744         (alignof_type): New macro, with the same semantics as the previous
47745         'alignof'.
47746         (alignof): Alias to alignof_slot.
47747         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
47748         check that the results are usable as constant expressions.
47749
47750 2009-05-31  Bruno Haible  <bruno@clisp.org>
47751
47752         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
47753         * tests/test-memchr.c (main): Check that memchr does not read past the
47754         first occurrence of the byte.
47755         * tests/test-strstr.c (main): Update comment.
47756         Suggested by Eric Blake.
47757
47758 2009-05-30  Bruno Haible  <bruno@clisp.org>
47759
47760         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
47761         detail how to use dumpbin.
47762         Reported by David Byron <dbyron@dbyron.com>.
47763
47764 2009-06-02  Simon Josefsson  <simon@josefsson.org>
47765
47766         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
47767
47768 2009-06-02  Simon Josefsson  <simon@josefsson.org>
47769
47770         * m4/manywarnings.m4: Add GCC 4.4 warnings.
47771
47772 2009-05-28  Bruno Haible  <bruno@clisp.org>
47773
47774         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
47775         build-aux/ files.
47776
47777 2009-05-28  Simon Josefsson  <simon@josefsson.org>
47778
47779         * gnulib-tool (func_import): Transform license on build-aux/ files too.
47780
47781 2009-05-27  Simon Josefsson  <simon@josefsson.org>
47782
47783         * gnulib-tool (sed_transform_main_lib_file)
47784         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
47785         regexps.
47786
47787 2009-05-26  Simon Josefsson  <simon@josefsson.org>
47788
47789         * tests/test-strstr.c: Add another self-test.
47790         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
47791         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
47792
47793 2009-05-23  Bruno Haible  <bruno@clisp.org>
47794
47795         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
47796         change.
47797
47798 2009-05-21  Bruno Haible  <bruno@clisp.org>
47799
47800         Simplify use of mode_t varargs.
47801         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
47802         uses 'mode_t' or 'int'.
47803         * lib/openat.c (openat): Likewise.
47804         * lib/open-safer.c (open_safer): Likewise.
47805         * m4/mode_t.m4: New file.
47806         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
47807         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
47808         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
47809         * modules/open (Files): Add m4/mode_t.m4.
47810         * modules/openat (Files): Likewise.
47811         * modules/fcntl-safer (Files): Likewise.
47812         Suggested by Eric Blake.
47813
47814 2009-05-21  Pádraig Brady  <P@draigbrady.com>
47815
47816         * doc/glibc-functions/fallocate.texi: New file.
47817         * doc/gnulib.texi: Include it.
47818
47819 2009-05-21  Eric Blake  <ebb9@byu.net>
47820             Bruno Haible  <bruno@clisp.org>
47821
47822         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
47823         invocations.
47824         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
47825
47826 2009-05-21  Eric Blake  <ebb9@byu.net>
47827             Bruno Haible  <bruno@clisp.org>
47828
47829         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
47830         include_next. Fix of 2008-11-20 commit.
47831         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
47832         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
47833         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
47834         NEXT_MATH_H.
47835         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
47836         instead of NEXT_MATH_H.
47837
47838 2009-05-21  Bruno Haible  <bruno@clisp.org>
47839
47840         Avoid redefinition warnings for SIZE_MAX.
47841         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
47842         Reported by Simon Josefsson.
47843
47844 2009-05-21  Bruno Haible  <bruno@clisp.org>
47845
47846         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
47847         AC_CACHE_VAL.
47848
47849 2009-05-20  Bruno Haible  <bruno@clisp.org>
47850
47851         Make zeroptr.h work on mingw.
47852         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
47853         mprotect.
47854         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
47855         * modules/memchr2-tests (configure.ac): Likewise.
47856         * modules/memcmp-tests (configure.ac): Likewise.
47857         * modules/memmem-tests (configure.ac): Likewise.
47858         * modules/memrchr-tests (configure.ac): Likewise.
47859         Reported by Simon Josefsson.
47860
47861 2009-05-20  Simon Josefsson  <simon@josefsson.org>
47862
47863         * tests/test-glob.c: Include string.h for strcmp prototype.
47864
47865 2009-05-20  Simon Josefsson  <simon@josefsson.org>
47866
47867         * modules/getdelim (Depends-on): Add explicit stdint, although it
47868         was implicitly already pulled in via realloc-posix.
47869         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
47870
47871 2009-05-20  Simon Josefsson  <simon@josefsson.org>
47872
47873         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
47874         G. Christensen" <tgc@jupiterrise.com>.
47875         * m4/sys_socket_h.m4: Check for sa_family_t.
47876         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
47877         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
47878         * tests/test-sys_socket.c: Check that sa_family_t works.
47879
47880 2009-05-18  Eric Blake  <ebb9@byu.net>
47881
47882         maint.mk: allow gnulib_dir in VPATH build
47883         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
47884
47885 2009-05-15  Jim Meyering  <meyering@redhat.com>
47886
47887         maint.mk: Give gnulib_dir a default definition.
47888         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
47889         Thus, most packages no longer need to specify this variable in cfg.mk
47890
47891 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
47892
47893         rename.m4: fix typos that would make non-mingw cross-configure fail
47894         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
47895
47896 2009-05-13  Eric Blake  <ebb9@byu.net>
47897
47898         mmap-anon: avoid out-of-order autoconf expansion
47899         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
47900         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
47901         * modules/memchr-tests (Depends-on): Add extensions.
47902         * modules/memchr2-tests (Depends-on): Add extensions.
47903         * modules/memcmp-tests (Depends-on): Add extensions.
47904         * modules/memmem-tests (Depends-on): Add extensions.
47905         * modules/memrchr-tests (Depends-on): Add extensions.
47906
47907 2009-05-13  Bruno Haible  <bruno@clisp.org>
47908
47909         Make some tests ISO C 99 compliant.
47910         * tests/zerosize-ptr.h: New file.
47911         * tests/test-memchr.c: Include zerosize-ptr.h.
47912         (main): Use a zero-size object pointer instead of NULL.
47913         * tests/test-memchr2.c: Include zerosize-ptr.h.
47914         (main): Use a zero-size object pointer instead of NULL.
47915         * tests/test-memcmp.c: Include zerosize-ptr.h.
47916         (main): Use a zero-size object pointer instead of NULL.
47917         * tests/test-memmem.c: Include zerosize-ptr.h.
47918         (main): Use a zero-size object pointer instead of NULL.
47919         * tests/test-memrchr.c: Include zerosize-ptr.h.
47920         (main): Use a zero-size object pointer instead of NULL.
47921         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
47922         m4/mmap-anon.m4.
47923         (Depends-on): Add getpagesize.
47924         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47925         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
47926         m4/mmap-anon.m4.
47927         (Depends-on): Add getpagesize.
47928         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47929         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
47930         m4/mmap-anon.m4.
47931         (Depends-on): Add getpagesize.
47932         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47933         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
47934         m4/mmap-anon.m4.
47935         (Depends-on): Add getpagesize.
47936         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47937         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
47938         m4/mmap-anon.m4.
47939         (Depends-on): Add getpagesize.
47940         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47941
47942 2009-05-12  Bruno Haible  <bruno@clisp.org>
47943
47944         Tests for module 'alignof'.
47945         * modules/alignof-tests: New file.
47946         * tests/test-alignof.c: New file.
47947
47948 2009-05-12  Bruno Haible  <bruno@clisp.org>
47949
47950         Fix alignof macro.
47951         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
47952         vendor compilers that are always correct.
47953
47954 2009-05-12  Bruno Haible  <bruno@clisp.org>
47955
47956         Make the MAP_ANONYMOUS detection work on HP-UX 11.
47957         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
47958         not whether its fully works.
47959
47960 2009-05-12  Bruno Haible  <bruno@clisp.org>
47961
47962         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
47963
47964 2009-05-12  Jim Meyering  <meyering@redhat.com>
47965
47966         * top/maint.mk: Adjust backslash alignment.
47967
47968 2009-05-11  Simon Josefsson  <simon@josefsson.org>
47969
47970         * top/maint.mk: Make $(srcdir)/build-aux configurable.
47971
47972 2009-05-11  Eric Blake  <ebb9@byu.net>
47973
47974         argp: avoid undefined behavior
47975         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
47976         macros.
47977
47978 2009-05-08  Simon Josefsson  <simon@josefsson.org>
47979
47980         * tests/test-vc-list-files-git.sh: Do git config of user.email and
47981         user.name to prevent git commit from complaining.
47982
47983 2009-05-10  Bruno Haible  <bruno@clisp.org>
47984
47985         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
47986         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
47987         it rewrites every file name only once.
47988         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
47989
47990 2009-05-08  Bruno Haible  <bruno@clisp.org>
47991
47992         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
47993         instead of 'max'.
47994
47995 2009-05-08  Simon Josefsson  <simon@josefsson.org>
47996
47997         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
47998         sockaddr_storage test.
47999
48000 2009-05-07  Simon Josefsson  <simon@josefsson.org>
48001
48002         * modules/sys_socket (Makefile.am): Substitute
48003         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
48004         * m4/sys_socket_h.m4: Check for sockaddr_storage.
48005         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
48006         * tests/test-sys_socket.c: Check sockaddr_storage.
48007
48008 2009-05-08  Bruno Haible  <bruno@clisp.org>
48009
48010         New module 'alignof'.
48011         * lib/alignof.h: New file.
48012         * modules/alignof: New file.
48013
48014 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
48015             Bruno Haible  <bruno@clisp.org>
48016
48017         Fix test-file-has-acl on FreeBSD.
48018         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
48019         mask is implicitly added.
48020         * tests/test-file-has-acl.c: Include <signal.h>.
48021         (main): Terminate the test after 5 seconds.
48022         * modules/acl-tests (configure.ac): Check for alarm function.
48023
48024 2009-05-04  Bruno Haible  <bruno@clisp.org>
48025
48026         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
48027         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
48028         * modules/errno (configure.ac): Drop AC_REQUIRE.
48029         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
48030         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
48031
48032 2009-05-04  Simon Josefsson  <simon@josefsson.org>
48033
48034         * modules/glob-tests: New module.
48035         * tests/test-glob.c: Add.
48036
48037 2009-05-04  Simon Josefsson  <simon@josefsson.org>
48038
48039         * modules/fnmatch-tests: New module.
48040         * tests/test-fnmatch.c: Add.
48041
48042 2009-05-04  Eric Blake  <ebb9@byu.net>
48043
48044         maint: make the new no-submodule-changes rule VPATH-safe
48045         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
48046
48047 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
48048             Bruno Haible  <bruno@clisp.org>
48049
48050         acl: Fix infinite loop on FreeBSD.
48051         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
48052         of return value from acl_get_entry.
48053         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
48054         Likewise.
48055
48056 2009-05-03  Bruno Haible  <bruno@clisp.org>
48057
48058         * lib/acl-internal.h (acl_entries): Clarify return value.
48059         * lib/acl_entries.c (acl_entries): Likewise.
48060
48061 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
48062
48063         Bug fix in acl module.
48064         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
48065
48066 2009-05-03  Bruno Haible  <bruno@clisp.org>
48067
48068         Create gperf-generated file in the source dir, not in the build dir.
48069         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
48070         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
48071         * modules/unicase/locale-language (unicase/locale-languages.h):
48072         Likewise.
48073         * modules/unicase/special-casing (unicase/special-casing-table.h):
48074         Likewise.
48075         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
48076         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
48077         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
48078         Reported by Ralf Wildenhues.
48079
48080 2009-05-03  Bruno Haible  <bruno@clisp.org>
48081
48082         * modules/fnmatch (Description, configure.ac): Taken from
48083         fnmatch-posix.
48084         * modules/fnmatch-posix: Turn into a symbolic reference to the
48085         'fnmatch' module, and deprecate.
48086         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
48087
48088 2009-05-03  Bruno Haible  <bruno@clisp.org>
48089
48090         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
48091         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
48092         Reported by Ralf Wildenhues.
48093
48094 2009-05-04  Simon Josefsson  <simon@josefsson.org>
48095
48096         * m4/fnmatch.m4: Fix fnmatch re-define.
48097
48098 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
48099
48100         priv-set: new module and tests; adapt write-any-file
48101         * lib/priv-set.c: New file.
48102         * lib/priv-set.h: New file.
48103         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
48104         * lib/write-any-file.c: Simplify by using priv-set module.
48105         * m4/priv-set.m4: New file.
48106         * modules/priv-set: New file.
48107         * modules/unlinkdir: Add dependency on priv-set module.
48108         * modules/write-any-file: Likewise.
48109
48110         Tests for module 'priv-set'.
48111         * modules/priv-set-tests: New file.
48112         * tests/test-priv-set.c: New file.
48113
48114 2009-05-03  Jim Meyering  <meyering@redhat.com>
48115             Bruno Haible  <bruno@clisp.org>
48116
48117         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
48118         use the converted UTF-8 variant of the name instead.
48119
48120 2009-05-03  Jim Meyering  <meyering@redhat.com>
48121
48122         tests: tighten some getdate tests
48123         * tests/test-getdate.c (main): Tighten tests: require equality,
48124         not just greater than.  Set TZ envvar to UTC0.
48125
48126 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
48127
48128         getdate: correctly interpret "next monday" when run on a Monday
48129         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
48130         that e.g., "next tues" (when run on a tuesday) results in a date
48131         that is one week in the future, and not today's date.
48132         I.e., add a week when the wday is the same as the current one.
48133         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
48134         and earlier by Martin Bernreuther and Jan Minář.
48135         * tests/test-getdate.c (main): Check that "next DAY" is always in
48136         the future and that "last DAY" is always in the past.
48137
48138 2009-05-02  Jim Meyering  <meyering@redhat.com>
48139
48140         build: ensure that a release build fails when a submodule is unclean
48141         * top/maint.mk (no-submodule-changes): New rule.
48142         (alpha beta major): Depend on it.
48143
48144 2009-05-02  Bruno Haible  <bruno@clisp.org>
48145
48146         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
48147         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
48148         shell variable gl_fnmatch_required to detect which variant is
48149         requested.
48150         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
48151         gl_FUNC_FNMATCH_POSIX.
48152         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
48153         exclude fnmatch-posix.
48154
48155 2009-05-02  Bruno Haible  <bruno@clisp.org>
48156
48157         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
48158         * modules/mbsrtowcs (License): Change to LGPLv2+.
48159         * modules/strnlen1 (License): Likewise.
48160         Reported by Simon Josefsson.
48161
48162 2009-05-02  Bruno Haible  <bruno@clisp.org>
48163
48164         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
48165         "cross".
48166         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
48167         gnulib-tool was called with option --source-base=lib.
48168
48169 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48170
48171         Use automake *-local hooks without commands, for extensibility.
48172         * modules/localcharset (Makefile.am): Rename install-exec-local
48173         rule to install-exec-localcharset, and make it a prerequisite of
48174         install-exec-local.  Likewise, rename the uninstall-local rule to
48175         uninstall-localcharset, and make it a prerequisite of the former.
48176
48177 2009-05-01  Bruno Haible  <bruno@clisp.org>
48178
48179         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
48180         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
48181         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
48182         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
48183         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
48184         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
48185         m4/locale-zh.m4, m4/codeset.m4.
48186
48187         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
48188         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
48189         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
48190         m4/locale-zh.m4.
48191
48192         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
48193         REPLACE_WCRTOMB if mbstate_t must be replaced.
48194         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
48195         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
48196
48197 2009-05-01  Bruno Haible  <bruno@clisp.org>
48198
48199         Avoid compiler warnings when redefining macros defined by <libintl.h>.
48200         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
48201         dngettext, dcngettext, textdomain, bindtextdomain,
48202         bind_textdomain_codeset): Undefine before redefining.
48203
48204 2009-04-30  Bruno Haible  <bruno@clisp.org>
48205
48206         Fix bug introduced on 2009-04-25.
48207         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
48208         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
48209         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
48210         is defined.
48211         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
48212         is defined.
48213         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
48214         is defined.
48215         Reported by Elbert_Pol <elbert.pol@gmail.com>.
48216
48217 2009-04-28  Bruno Haible  <bruno@clisp.org>
48218
48219         Comment tweaks.
48220         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
48221         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
48222         * lib/unicase.h (u*_casexfrm): Likewise.
48223         Reported by Paolo Bonzini.
48224
48225 2009-04-28  Bruno Haible  <bruno@clisp.org>
48226
48227         Fix a compilation error.
48228         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
48229         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
48230         Reported by Jim Meyering.
48231
48232 2009-04-27  Bruno Haible  <bruno@clisp.org>
48233
48234         New module 'libunistring'.
48235         * modules/libunistring: New file.
48236         * m4/libunistring.m4: New file.
48237         * MODULES.html.sh (Unicode string functions): Add it.
48238
48239 2009-04-27  Eric Blake  <ebb9@byu.net>
48240
48241         maint.mk: allow package-specific header to provide <config.h>
48242         * top/maint.mk (sc_require_config_h): New variable.
48243         (sc_require_config_h, sc_require_config_h_first): Use it.
48244
48245 2009-04-27  Simon Josefsson  <simon@josefsson.org>
48246
48247         * top/maint.mk (sc_avoid_if_before_free): Except
48248         useless-if-before-free script.
48249
48250 2009-04-27  Eric Blake  <ebb9@byu.net>
48251
48252         maintainer-makefile: depend on all required helper scripts
48253         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
48254         useless-if-before-free.
48255         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
48256         version, rather than assuming gnulib checkout is available.
48257         Reported by Simen Josefsson.
48258
48259 2009-04-26  Bruno Haible  <bruno@clisp.org>
48260
48261         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
48262         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
48263         "../" or "..".
48264
48265 2009-04-26  Bruno Haible  <bruno@clisp.org>
48266
48267         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
48268         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
48269         AC_LIB_HAVE_LINKFLAGS.
48270
48271 2009-04-26  Bruno Haible  <bruno@clisp.org>
48272
48273         Simplify calling convention of u*_conv_from_encoding.
48274         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
48275         u32_conv_from_encoding): Expect a resultbuf argument and return the
48276         result directly as a pointer.
48277         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
48278         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
48279         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
48280         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
48281         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
48282         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
48283         Update.
48284         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
48285         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
48286         * lib/vasnprintf.c (VASNPRINTF): Update.
48287         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
48288         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
48289         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
48290         * NEWS: Mention the change.
48291
48292 2009-04-26  Bruno Haible  <bruno@clisp.org>
48293
48294         Simplify calling convention of u*_conv_to_encoding.
48295         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
48296         u32_conv_to_encoding): Expect a resultbuf argument and return the
48297         result directly as a pointer.
48298         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
48299         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
48300         freeing scaled_offsets if mem_iconveha failed.
48301         * lib/unicase/u-casexfrm.h (FUNC): Update.
48302         * lib/uninorm/u-normxfrm.h (FUNC): Update.
48303         * lib/vasnprintf.c (VASNPRINTF): Update.
48304         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
48305         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
48306         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
48307         * NEWS: Mention the change.
48308
48309 2009-04-26  Bruno Haible  <bruno@clisp.org>
48310
48311         Avoid test failures on AIX and OSF/1.
48312         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
48313         malloc(0).
48314         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
48315         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
48316         Likewise.
48317         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
48318         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
48319         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
48320         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
48321         * doc/posix-functions/malloc.texi: Document the portability problem
48322         related to malloc(0).
48323
48324 2009-04-26  Bruno Haible  <bruno@clisp.org>
48325
48326         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
48327         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
48328         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
48329
48330 2009-04-25  Bruno Haible  <bruno@clisp.org>
48331
48332         Avoid link error when creating a namespace clean library.
48333         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
48334         as macro with arguments if already defined as an alias.
48335         * lib/signbitf.c (gl_signbitf): Don't undefine.
48336         * lib/signbitd.c (gl_signbitd): Don't undefine.
48337         * lib/signbitl.c (gl_signbitl): Don't undefine.
48338
48339 2009-04-25  Jim Meyering  <meyering@redhat.com>
48340
48341         vc-list-files: fix another quoting bug
48342         * build-aux/vc-list-files: Avoid sed backslash expansion
48343         of pathological directory names.
48344
48345 2009-04-25  Eric Blake  <ebb9@byu.net>
48346
48347         vc-list-files: fix shell quoting error
48348         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
48349         timestamp.
48350
48351 2009-04-25  Jim Meyering  <meyering@redhat.com>
48352
48353         vc-list-files: restore lost functionality with subdir argument
48354         * build-aux/vc-list-files: When given a non-"." sub-directory
48355         argument, substitute the $dir/ prefix back onto each resulting name.
48356         Otherwise, coreutils' root_tests check would fail.
48357
48358 2009-04-24  Eric Blake  <ebb9@byu.net>
48359
48360         vc-list-files: ignore git symlinks
48361         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
48362         than ls-files, to ignore git symlinks.
48363
48364         maint.mk: import improvements from m4
48365         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
48366         (move_if_change): Delete unused macro.
48367         (news-date-check, vc-diff-check): Support VPATH builds.
48368         (announcement): Likewise.  Split --bootstrap-tools list...
48369         (boostrap-tools): ...into separate list, which can be overridden
48370         in cfg.mk.
48371         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
48372         requiring dependency on useless-if-before-free module.
48373         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
48374         Support VPATH builds.
48375
48376 2009-04-24  Jim Meyering  <meyering@redhat.com>
48377
48378         maint.mk: remove coreutils-specific rules and variables
48379         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
48380         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
48381         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
48382
48383         maint.mk: remove obsolete rule
48384         * top/maint.mk (rel-check): Remove rule.
48385         (WGET, WGETFLAGS): Remove now-unused variables.
48386
48387 2009-04-24  Simon Josefsson  <simon@josefsson.org>
48388
48389         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
48390         consistency.
48391
48392         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
48393         '$(PATH_SEPARATOR)' instead of ':'.
48394
48395 2009-04-24  Simon Josefsson  <simon@josefsson.org>
48396
48397         * lib/getopt1.c (main): Use 'const' for static array.
48398
48399 2009-04-24  Simon Josefsson  <simon@josefsson.org>
48400
48401         * top/maint.mk: Sync with coreutils.
48402         * NEWS: Explain incompatibilities.
48403
48404 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48405             Bruno Haible  <bruno@clisp.org>
48406
48407         Fix cross-compilation results.
48408         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
48409         statement, as third argument of AC_TRY_RUN.
48410         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
48411         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
48412         Likewise.
48413         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
48414         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
48415         Likewise.
48416         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
48417         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
48418         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
48419
48420 2009-04-20  Bruno Haible  <bruno@clisp.org>
48421
48422         Avoid test failure on mingw.
48423         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
48424
48425 2009-04-20  Bruno Haible  <bruno@clisp.org>
48426
48427         Avoid compilation error on mingw.
48428         * modules/localename-tests (Depends-on): Add locale.
48429
48430 2009-04-19  Bruno Haible  <bruno@clisp.org>
48431
48432         Support for building a shared library on Windows platforms.
48433         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
48434         (main): Test the presence of UNINORM_NFC here.
48435         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
48436         (main): Test the presence of UNINORM_NFD here.
48437         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
48438         (main): Test the presence of UNINORM_NFKC here.
48439         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
48440         (main): Test the presence of UNINORM_NFKD here.
48441
48442 2009-04-19  Bruno Haible  <bruno@clisp.org>
48443
48444         Avoid a compiler warning.
48445         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
48446         Change type of variable 'sequence'.
48447
48448 2009-04-19  Bruno Haible  <bruno@clisp.org>
48449
48450         * modules/configmake (Makefile.am): When the contents of configmake.h
48451         does not change, arrange to preserve its modification time.
48452
48453 2009-04-17  Simon Josefsson  <simon@josefsson.org>
48454
48455         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
48456         gettext domain.
48457
48458 2009-04-16  Jim Meyering  <meyering@redhat.com>
48459
48460         useless-if-before-free: improve conversion code
48461         * build-aux/useless-if-before-free: Adjust code-in-comment to match
48462         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
48463
48464 2009-04-14  Bruno Haible  <bruno@clisp.org>
48465
48466         * modules/fcntl (Depends-on): Add extensions.
48467         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
48468
48469 2009-04-12  Ben Pfaff  <blp@gnu.org>
48470
48471         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
48472         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
48473
48474 2009-03-20  Ben Pfaff  <blp@gnu.org>
48475
48476         Make rename replace existing destinations on Windows.
48477         * m4/rename.m4: Add test for Mingw.
48478         * lib/rename.c: Add rename replacement that uses MoveFileEx with
48479         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
48480         * doc/posix-functions/rename.texi: Document.
48481
48482 2009-04-10  Bruno Haible  <bruno@clisp.org>
48483
48484         New include file "iconveh.h".
48485         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
48486         * lib/striconveh.h: Include it.
48487         (enum iconv_ilseq_handler): Remove definition.
48488         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
48489         striconveh.h.
48490         * lib/striconveha.c: Include striconveh.h.
48491         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
48492         * modules/striconveh (Files): Add lib/iconveh.h.
48493         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
48494         lib/striconveh.h.
48495
48496 2009-04-10  Bruno Haible  <bruno@clisp.org>
48497
48498         * lib/uniconv.h: Update comment.
48499
48500 2009-04-10  Bruno Haible  <bruno@clisp.org>
48501
48502         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
48503         always.
48504         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
48505         * lib/unistr/u16-mbtouc-aux.c: Likewise.
48506         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
48507         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
48508         "unistring-notinline.h", so that the function gets defined always.
48509         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
48510         * lib/unistr/u8-uctomb.c: Likewise.
48511         * lib/unistr/u16-mbtouc.c: Likewise.
48512         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
48513         * lib/unistr/u16-uctomb.c: Likewise.
48514         * lib/unistr/u32-mbtouc.c: Likewise.
48515         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
48516         * lib/unistr/u32-uctomb.c: Likewise.
48517
48518 2009-04-10  Bruno Haible  <bruno@clisp.org>
48519
48520         Mark 'utime' obsolete.
48521         * modules/utime (Status, Notice): New sections.
48522         Suggested by Jim Meyering.
48523
48524         Fix cross-compile guess for utime test.
48525         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
48526         autoconf.
48527         * doc/posix-functions/utime.texi: Give more precisions.
48528         Reported by Jan <ipif@ymail.com>.
48529
48530 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
48531
48532         filevercmp: correct today's change
48533         * lib/filevercmp.c: Also handle coreutils' test inputs.
48534         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
48535
48536         Fix regression in 'filevercmp' module. Thanks Sven Joachim
48537         for reporting it.
48538         * lib/filevercmp.c: Special handle for "", "." and "..".
48539         * tests/test-filevercmp.c: Enlarge the set suite.
48540
48541 2009-04-07  Jim Meyering  <meyering@redhat.com>
48542
48543         useless-if-before-free: show how to remove braced useless free, too
48544         * build-aux/useless-if-before-free: still only in a comment, though.
48545
48546 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
48547
48548         maint.mk: import changes to syntax-check macros from coreutils
48549         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
48550         Use them in the relevant macros.
48551
48552 2009-04-06  Bruno Haible  <bruno@clisp.org>
48553
48554         Fix unportable use of bit-fields.
48555         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
48556         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
48557         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
48558
48559 2009-04-06  Bruno Haible  <bruno@clisp.org>
48560
48561         Avoid test failures on AIX and OSF/1.
48562         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
48563         that malloc(0) = NULL.
48564         * tests/unicase/test-u8-tolower.c (check): Likewise.
48565         * tests/unicase/test-u8-totitle.c (check): Likewise.
48566         * tests/unicase/test-u8-toupper.c (check): Likewise.
48567         * tests/unicase/test-u16-casefold.c (check): Likewise.
48568         * tests/unicase/test-u16-tolower.c (check): Likewise.
48569         * tests/unicase/test-u16-totitle.c (check): Likewise.
48570         * tests/unicase/test-u16-toupper.c (check): Likewise.
48571         * tests/unicase/test-u32-casefold.c (check): Likewise.
48572         * tests/unicase/test-u32-tolower.c (check): Likewise.
48573         * tests/unicase/test-u32-totitle.c (check): Likewise.
48574         * tests/unicase/test-u32-toupper.c (check): Likewise.
48575         * tests/uninorm/test-u8-nfc.c (check): Likewise.
48576         * tests/uninorm/test-u8-nfd.c (check): Likewise.
48577         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
48578         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
48579         * tests/uninorm/test-u16-nfc.c (check): Likewise.
48580         * tests/uninorm/test-u16-nfd.c (check): Likewise.
48581         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
48582         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
48583         * tests/uninorm/test-u32-nfc.c (check): Likewise.
48584         * tests/uninorm/test-u32-nfd.c (check): Likewise.
48585         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
48586         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
48587
48588 2009-04-05  Bruno Haible  <bruno@clisp.org>
48589
48590         Work around an autoconf limitation.
48591         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
48592         comment line if it would be longer than 3 KB.
48593
48594 2009-04-05  Bruno Haible  <bruno@clisp.org>
48595
48596         Avoid test failure with libiconv-1.13.
48597         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
48598         of the expected test results.
48599
48600 2009-04-05  Bruno Haible  <bruno@clisp.org>
48601
48602         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
48603         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
48604         that it should be installed.
48605
48606 2009-04-05  Bruno Haible  <bruno@clisp.org>
48607
48608         * gnulib-tool: New option --copy-file.
48609         (func_usage): Document it.
48610         (func_dest_tmpfilename): Moved out of func_import.
48611         (func_add_file, func_update_file): New functions, extracted from
48612         func_import.
48613         (func_import): Update.
48614
48615 2009-04-05  Karl Berry  <karl@gnu.org>
48616
48617         * README: prominently mention gnulib-tool.
48618         Rearrange sections so getting the code is near the top.
48619
48620 2009-04-05  Bruno Haible  <bruno@clisp.org>
48621
48622         * lib/unicase.h: Mention u*_cmp2.
48623         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
48624         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
48625         * lib/unicase/ulc-casecmp.c: Likewise.
48626         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
48627         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
48628         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
48629         unistr/u8-cmp.
48630         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
48631         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
48632         unistr/u16-cmp.
48633         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
48634         unistr/u32-cmp.
48635
48636         * lib/uninorm.h: Mention u*_cmp2.
48637         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
48638         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
48639         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
48640         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
48641         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
48642         unistr/u8-cmp.
48643         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
48644         unistr/u16-cmp.
48645         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
48646         unistr/u32-cmp.
48647
48648         New module 'unistr/u32-cmp2'.
48649         * lib/unistr/u32-cmp2.c: New file.
48650         * modules/unistr/u32-cmp2: New file.
48651
48652         New module 'unistr/u16-cmp2'.
48653         * lib/unistr/u16-cmp2.c: New file.
48654         * modules/unistr/u16-cmp2: New file.
48655
48656         New module 'unistr/u8-cmp2'.
48657         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
48658         * lib/unistr/u8-cmp2.c: New file.
48659         * lib/unistr/u-cmp2.h: New file.
48660         * modules/unistr/u8-cmp2: New file.
48661
48662 2009-04-05  Bruno Haible  <bruno@clisp.org>
48663
48664         * lib/unictype.h (uc_property_is_valid): New macro.
48665         * tests/unictype/test-pr_byname.c (main): Use it.
48666
48667         * lib/unistr.h: Doc fixes.
48668         * lib/uniconv.h: Doc fixes.
48669         * lib/unictype.h: Doc fixes.
48670
48671 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
48672
48673         Port coreutils 7.2 to Solaris 8.
48674
48675         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
48676         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
48677         for Solaris 8.  This is a bit of a hack, as it means it's the
48678         caller's responsibility to add -lnsl if needed, but most likely it
48679         won't be needed since only getaddrinfo uses this and getaddrinfo
48680         isn't needed on Solaris 8.
48681
48682         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
48683         problem to Solaris 8 encountered with coreutils 7.2, which
48684         resulted in a message "fnmatch.c:292: warning: passing argument 4
48685         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
48686         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
48687
48688 2009-04-03  Simon Josefsson  <simon@josefsson.org>
48689
48690         * m4/ld-version-script.m4: Add FIXME comment.
48691
48692 2009-04-02  Simon Josefsson  <simon@josefsson.org>
48693
48694         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
48695         SOVERSION variable.
48696
48697 2009-04-02  Bruno Haible  <bruno@clisp.org>
48698
48699         * Makefile (info, html, dvi, pdf): Combine the rules.
48700         Suggested by Jim Meyering.
48701
48702 2009-04-01  Bruno Haible  <bruno@clisp.org>
48703
48704         * Makefile (info, html, dvi, pdf): New targets.
48705         Reported by Reuben Thomas <rrt@sc3d.org>.
48706
48707 2009-04-01  Bruno Haible  <bruno@clisp.org>
48708
48709         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
48710         can be put into PATH.
48711         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
48712
48713 2009-04-01  Bruno Haible  <bruno@clisp.org>
48714
48715         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
48716
48717 2009-04-01  Bruno Haible  <bruno@clisp.org>
48718
48719         Rename module 'visibility'.
48720         * modules/lib-symbol-visibility: Renamed from modules/visibility.
48721         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
48722         * doc/gnulib.texi: Update.
48723         * MODULES.html.sh (Misc): Update.
48724         * NEWS: Mention the change.
48725
48726 2009-04-01  Simon Josefsson  <simon@josefsson.org>
48727
48728         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
48729         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
48730         Eric Blake <ebb9@byu.net> for review.
48731         * MODULES.html.sh: Add lib-msvc-compat.
48732         * doc/gnulib.texi: Link to new section.
48733         * m4/ld-output-def.m4: New file.
48734         * doc/ld-output-def.texi: New file.
48735
48736 2009-04-01  Simon Josefsson  <simon@josefsson.org>
48737
48738         Rename ld-version-script to lib-symbol-versions.  Suggested by
48739         Bruno Haible <bruno@clisp.org>.
48740         * modules/ld-version-script: Renamed to lib-symbol-versions.
48741         * doc/ld-version-script.texi: Fix module name.
48742         * MODULES.html.sh: Add lib-symbol-versions.
48743
48744 2009-03-31  Simon Josefsson  <simon@josefsson.org>
48745
48746         * modules/u64-tests: New file.
48747         * tests/test-u64.c: New file.
48748
48749 2009-03-04  Simon Josefsson  <simon@josefsson.org>
48750
48751         * MODULES.html.sh: Mention u64.
48752         * modules/u64: New module.
48753         * modules/crypto/sha512: Depend on u64 module instead of providing
48754         u64.h.
48755
48756 2009-03-27  Eric Blake  <ebb9@byu.net>
48757
48758         test-strerror: make debugging EAI_SYSTEM easier
48759         * modules/getaddrinfo-tests (Depends-on): Add strerror.
48760         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
48761         failure was EAI_SYSTEM.
48762
48763 2009-03-25  Bruno Haible  <bruno@clisp.org>
48764
48765         Fix a problem with --enable-relocatable on Solaris 7.
48766         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
48767         since 2008-02-24.
48768
48769 2009-03-25  Eric Blake  <ebb9@byu.net>
48770
48771         test-sockets: avoid gcc warning
48772         * tests/test-sockets.c (main): Silence compiler warning.
48773
48774 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
48775
48776         New modules nproc, pthread, contributed by Glen Lenker.
48777
48778         * MODULES.html.sh: Add pthread, nproc.
48779         * lib/nproc.c: New file.
48780         * lib/nproc.h: New file.
48781         * lib/pthread.in.h: New file.
48782         * m4/pthread.m4: New file.
48783         * modules/nproc: New file.
48784         * modules/pthread: New file.
48785
48786 2009-03-24  Simon Josefsson  <simon@josefsson.org>
48787
48788         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
48789         New variable.
48790
48791 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
48792
48793         filevercmp: handle simple~ and numbered.~3~ backup suffixes
48794         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
48795         * tests/test-filevercmp.c: Add tests for backup suffixes.
48796
48797 2009-03-24  Simon Josefsson  <simon@josefsson.org>
48798
48799         * modules/stdlib (Depends-on): Add stdint, needed when defining
48800         struct random_data on, for example, HP-UX 10.20.  Reported by
48801         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48802
48803 2009-03-24  Simon Josefsson  <simon@josefsson.org>
48804
48805         * lib/readline.c (readline): Call fflush on stdout after printing
48806         prompt.
48807
48808 2009-03-20  Bruno Haible  <bruno@clisp.org>
48809
48810         Remove dependency from 'close' module to -lws2_32 on native Windows.
48811         * lib/close-hook.h: New file.
48812         * lib/close-hook.c: New file.
48813         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
48814         w32sock.h.
48815         (_gl_close_fd_maybe_socket): Remove function.
48816         (rpl_close): Invoke execute_all_close_hooks instead of
48817         _gl_close_fd_maybe_socket.
48818         * lib/sockets.c: Include close-hook.h, w32sock.h.
48819         (close_fd_maybe_socket): New function, essentially from lib/close.c.
48820         (close_sockets_hook): New variable.
48821         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
48822         (gl_sockets_cleanup): Unregister it.
48823         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
48824         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
48825         * modules/close-hook: New file.
48826         * modules/close (Files): Remove lib/w32sock.h.
48827         (Depends-on): Add close-hook.
48828         (Link): Remove section.
48829         * modules/sockets (Files): Add lib/w32sock.h.
48830         (Depends-on): Add close-hook.
48831         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
48832         invocation.
48833         * NEWS: Mention that LIB_CLOSE is gone.
48834
48835 2009-03-23  Eric Blake  <ebb9@byu.net>
48836
48837         signal-tests: test previous patch
48838         * tests/test-signal.c: New file.
48839         * modules/signal-tests: Likewise.
48840
48841         signal.h: always support 'volatile sig_atomic_t'
48842         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
48843         (gl_SIGNAL_H_DEFAULTS): Add a default.
48844         * modules/signal (Makefile.am): Substitute if needed.
48845         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
48846         users can blindly add volatile.
48847         * doc/posix-headers/signal.texi (signal.h): Document it.
48848         Reported by Matthew Woehlke.
48849
48850 2009-03-23  Jim Meyering  <meyering@redhat.com>
48851
48852         pathmax: PATH_MAX: use pathconf only when available
48853         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
48854         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
48855         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
48856         This avoids a link failure in a PSP cross-compilation environment
48857         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
48858
48859         * lib/vasnprintf.c (divide): Fix typo in comment.
48860
48861 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48862
48863         * gnulib-tool (func_filter_filelist): Fix comment.
48864
48865 2009-03-20  Bruno Haible  <bruno@clisp.org>
48866
48867         Make sockets.h self-contained.
48868         * lib/sockets.c: Include sockets.h first.
48869         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
48870
48871 2009-03-19  Eric Blake  <ebb9@byu.net>
48872
48873         doc: mention more functions added in cygwin 1.7.0
48874         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
48875         addition.
48876         * doc/posix-functions/log2f.texi: Likewise.
48877
48878 2009-03-19  Jim Meyering  <meyering@redhat.com>
48879
48880         fsusage: avoid syntax error due to statement-before-declaration
48881         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
48882         after all declarations.  Reported by Matthew Woehlke in
48883         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
48884
48885 2009-03-18  Eric Blake  <ebb9@byu.net>
48886
48887         build-aux/compile: sync from automake
48888         * build-aux/compile: New file, from automake.
48889         * config/srclist.txt: Mention build-aux/compile.
48890
48891 2009-03-17  Bruno Haible  <bruno@clisp.org>
48892
48893         * lib/git-merge-changelog.c: Fix typo in comment.
48894         Reported by Reuben Thomas <rrt@sc3d.org>.
48895
48896 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
48897
48898         * m4/regex.m4: update and improve help for
48899         --without-included-regex.
48900
48901 2009-03-17  Simon Josefsson  <simon@josefsson.org>
48902
48903         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
48904         failure on missing include files.
48905
48906 2009-03-17  Eric Blake  <ebb9@byu.net>
48907
48908         doc: mention more functions added in cygwin 1.7.0
48909         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
48910         addition.
48911         * doc/posix-functions/fwscanf.texi: Likewise.
48912         * doc/posix-functions/swprintf.texi: Likewise.
48913         * doc/posix-functions/swscanf.texi: Likewise.
48914         * doc/posix-functions/vfwprintf.texi: Likewise.
48915         * doc/posix-functions/vfwscanf.texi: Likewise.
48916         * doc/posix-functions/vswprintf.texi: Likewise.
48917         * doc/posix-functions/vswscanf.texi: Likewise.
48918         * doc/posix-functions/vwprintf.texi: Likewise.
48919         * doc/posix-functions/vwscanf.texi: Likewise.
48920         * doc/posix-functions/wcscasecmp.texi: Likewise.
48921         * doc/posix-functions/wcsdup.texi: Likewise.
48922         * doc/posix-functions/wcsftime.texi: Likewise.
48923         * doc/posix-functions/wcsncasecmp.texi: Likewise.
48924         * doc/posix-functions/wprintf.texi: Likewise.
48925         * doc/posix-functions/wscanf.texi: Likewise.
48926         * doc/glibc-functions/gethostbyname2.texi: Likewise.
48927
48928 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48929
48930         maint.mk: really add $(AM_MAKEFLAGS)
48931         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
48932         was inadvertently omitted in the last commit.
48933         Spotted by Bruno Haible.
48934
48935         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
48936         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
48937         $(AM_MAKEFLAGS)' rather than plain `make'.
48938
48939         gnulib-tool: execute $MAKE not make
48940         * gnulib-tool: Default $MAKE to 'make'.
48941         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
48942         than make.  Initialize $MAKE in the do-autobuild script.
48943
48944         gnulib-tool: use $MAKE not make in generated files
48945         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
48946         make, in generated files.  Initialize $MAKE in the do-autobuild
48947         script.
48948
48949         * top/GNUmakefile (_have-git-version-gen): Fix typo.
48950
48951         GNUmakefile: disable parallelism only for multiple, recursive targets
48952         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
48953         additions in the Makefile.
48954         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
48955         by Automake.
48956         (.NOTPARALLEL): Only disable parallel builds if multiple targets
48957         are listed on the command line and at least one of them is
48958         listed in $(ALL_RECURSIVE_TARGETS).
48959
48960 2009-03-14  Bruno Haible  <bruno@clisp.org>
48961
48962         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
48963         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
48964         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
48965         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
48966         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
48967         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
48968         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
48969         unistr/u8-uctomb.
48970         * modules/unistr/u8-strchr (Depends-on): Likewise.
48971         * modules/unistr/u8-strrchr (Depends-on): Likewise.
48972         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
48973         unistr/u16-uctomb.
48974         * modules/unistr/u16-strchr (Depends-on): Likewise.
48975         * modules/unistr/u16-strrchr (Depends-on): Likewise.
48976
48977 2009-03-12  Bruno Haible  <bruno@clisp.org>
48978
48979         Work around select() bug on Interix 3.5.
48980         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
48981         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
48982         * m4/select.m4: New file.
48983         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
48984         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
48985         * modules/select (Files): Add m4/select.m4.
48986         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
48987         * modules/nanosleep (Depends-on): Add select.
48988         * modules/poll (Depends-on): Likewise.
48989         * doc/posix-functions/select.texi: Mention the Interix bug.
48990         Reported by Markus Duft <mduft@gentoo.org>.
48991
48992         * lib/select.c: Renamed from lib/winsock-select.c.
48993         * modules/select (Files): Add lib/select.c, remove
48994         lib/winsock-select.c.
48995         (configure.ac): Update.
48996
48997 2009-03-12  Jim Meyering  <meyering@redhat.com>
48998
48999         avoid gcc warnings about unused macro definitions
49000         * lib/readtokens.c (STREQ): Remove unused definition.
49001         * lib/xmalloc.c (SIZE_MAX): Likewise.
49002         * lib/openat-die.c (N_): Likewise.
49003         * lib/mountlist.c (SIZE_MAX): Remove definition.
49004         Instead, include <stdint.h>.
49005         * lib/readutmp.c: Likewise.
49006         * modules/readutmp (Depends-on): Add stdint.
49007         * modules/mountlist (Depends-on): Add stdint.
49008         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
49009
49010 2009-03-10  Bruno Haible  <bruno@clisp.org>
49011
49012         Tests for module 'mbmemcasecoll'.
49013         * modules/mbmemcasecoll-tests: New file.
49014         * tests/test-mbmemcasecoll1.sh: New file.
49015         * tests/test-mbmemcasecoll2.sh: New file.
49016         * tests/test-mbmemcasecoll3.sh: New file.
49017         * tests/test-mbmemcasecoll.c: New file.
49018
49019         New module 'mbmemcasecoll'.
49020         * lib/mbmemcasecoll.h: New file.
49021         * lib/mbmemcasecoll.c: New file.
49022         * modules/mbmemcasecoll: New file.
49023
49024         * tests/test-mbmemcasecmp.h: New file, extracted from
49025         tests/test-mbmemcasecmp.c.
49026         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
49027         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
49028         (main): Update.
49029         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
49030
49031 2009-03-09  Bruno Haible  <bruno@clisp.org>
49032
49033         Tests for module 'mbmemcasecmp'.
49034         * modules/mbmemcasecmp-tests: New file.
49035         * tests/test-mbmemcasecmp1.sh: New file.
49036         * tests/test-mbmemcasecmp2.sh: New file.
49037         * tests/test-mbmemcasecmp3.sh: New file.
49038         * tests/test-mbmemcasecmp.c: New file.
49039
49040         New module 'mbmemcasecmp'.
49041         * lib/mbmemcasecmp.h: New file.
49042         * lib/mbmemcasecmp.c: New file.
49043         * modules/mbmemcasecmp: New file.
49044
49045 2009-03-09  Bruno Haible  <bruno@clisp.org>
49046
49047         Tests for module 'unicase/ulc-casecoll'.
49048         * modules/unicase/ulc-casecoll-tests: New file.
49049         * tests/unicase/test-ulc-casecoll1.sh: New file.
49050         * tests/unicase/test-ulc-casecoll2.sh: New file.
49051         * tests/unicase/test-ulc-casecoll.c: New file.
49052
49053         New module 'unicase/ulc-casecoll'.
49054         * lib/unicase.h (ulc_casecoll): New declaration.
49055         * lib/unicase/ulc-casecoll.c: New file.
49056         * modules/unicase/ulc-casecoll: New file.
49057
49058         New module 'unicase/ulc-casexfrm'.
49059         * lib/unicase.h (ulc_casexfrm): New declaration.
49060         * lib/unicase/ulc-casexfrm.c: New file.
49061         * modules/unicase/ulc-casexfrm: New file.
49062
49063 2009-03-09  Bruno Haible  <bruno@clisp.org>
49064
49065         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
49066         invocations.
49067
49068         * m4/mbscasecmp.m4: Remove file.
49069         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
49070         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
49071
49072         * m4/mbscasestr.m4: Remove file.
49073         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
49074         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
49075
49076         * m4/mbschr.m4: Remove file.
49077         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
49078         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
49079
49080         * m4/mbscspn.m4: Remove file.
49081         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
49082         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
49083
49084         * m4/mbslen.m4: Remove file.
49085         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
49086         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
49087
49088         * m4/mbsncasecmp.m4: Remove file.
49089         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
49090         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
49091
49092         * m4/mbsnlen.m4: Remove file.
49093         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
49094         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
49095
49096         * m4/mbspbrk.m4: Remove file.
49097         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
49098         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
49099
49100         * m4/mbspcasecmp.m4: Remove file.
49101         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
49102         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
49103
49104         * m4/mbsrchr.m4: Remove file.
49105         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
49106         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
49107
49108         * m4/mbssep.m4: Remove file.
49109         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
49110         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
49111
49112         * m4/mbsspn.m4: Remove file.
49113         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
49114         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
49115
49116         * m4/mbsstr.m4: Remove file.
49117         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
49118         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
49119
49120         * m4/mbstok_r.m4: Remove file.
49121         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
49122         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
49123
49124         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
49125
49126         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
49127         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
49128
49129         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
49130
49131 2009-03-08  Bruno Haible  <bruno@clisp.org>
49132
49133         Tests for module 'unicase/ulc-casecmp'.
49134         * modules/unicase/ulc-casecmp-tests: New file.
49135         * tests/unicase/test-ulc-casecmp1.sh: New file.
49136         * tests/unicase/test-ulc-casecmp2.sh: New file.
49137         * tests/unicase/test-ulc-casecmp.c: New file.
49138
49139         New module 'unicase/ulc-casecmp'.
49140         * lib/unicase.h (ulc_casecmp): New declaration.
49141         * lib/unicase/ulc-casecmp.c: New file.
49142         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
49143         'const SRC_UNIT *'.
49144         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
49145         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
49146         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
49147         * modules/unicase/ulc-casecmp: New file.
49148
49149         Tests for module 'unicase/u32-is-cased'.
49150         * modules/unicase/u32-is-cased-tests: New file.
49151         * tests/unicase/test-u32-is-cased.c: New file.
49152
49153         Tests for module 'unicase/u16-is-cased'.
49154         * modules/unicase/u16-is-cased-tests: New file.
49155         * tests/unicase/test-u16-is-cased.c: New file.
49156
49157         Tests for module 'unicase/u8-is-cased'.
49158         * modules/unicase/u8-is-cased-tests: New file.
49159         * tests/unicase/test-u8-is-cased.c: New file.
49160         * tests/unicase/test-is-cased.h: New file.
49161
49162         New module 'unicase/u32-is-cased'.
49163         * lib/unicase/u32-is-cased.c: New file.
49164         * modules/unicase/u32-is-cased: New file.
49165
49166         New module 'unicase/u16-is-cased'.
49167         * lib/unicase/u16-is-cased.c: New file.
49168         * modules/unicase/u16-is-cased: New file.
49169
49170         New module 'unicase/u8-is-cased'.
49171         * lib/unicase/u8-is-cased.c: New file.
49172         * lib/unicase/u-is-cased.h: New file.
49173         * modules/unicase/u8-is-cased: New file.
49174
49175         Tests for module 'unicase/u32-is-casefolded'.
49176         * modules/unicase/u32-is-casefolded-tests: New file.
49177         * tests/unicase/test-u32-is-casefolded.c: New file.
49178
49179         Tests for module 'unicase/u16-is-casefolded'.
49180         * modules/unicase/u16-is-casefolded-tests: New file.
49181         * tests/unicase/test-u16-is-casefolded.c: New file.
49182
49183         Tests for module 'unicase/u8-is-casefolded'.
49184         * modules/unicase/u8-is-casefolded-tests: New file.
49185         * tests/unicase/test-u8-is-casefolded.c: New file.
49186         * tests/unicase/test-is-casefolded.h: New file.
49187
49188         New module 'unicase/u32-is-casefolded'.
49189         * lib/unicase/u32-is-casefolded.c: New file.
49190         * modules/unicase/u32-is-casefolded: New file.
49191
49192         New module 'unicase/u16-is-casefolded'.
49193         * lib/unicase/u16-is-casefolded.c: New file.
49194         * modules/unicase/u16-is-casefolded: New file.
49195
49196         New module 'unicase/u8-is-casefolded'.
49197         * lib/unicase/u8-is-casefolded.c: New file.
49198         * modules/unicase/u8-is-casefolded: New file.
49199
49200         Tests for module 'unicase/u32-is-titlecase'.
49201         * modules/unicase/u32-is-titlecase-tests: New file.
49202         * tests/unicase/test-u32-is-titlecase.c: New file.
49203
49204         Tests for module 'unicase/u16-is-titlecase'.
49205         * modules/unicase/u16-is-titlecase-tests: New file.
49206         * tests/unicase/test-u16-is-titlecase.c: New file.
49207
49208         Tests for module 'unicase/u8-is-titlecase'.
49209         * modules/unicase/u8-is-titlecase-tests: New file.
49210         * tests/unicase/test-u8-is-titlecase.c: New file.
49211         * tests/unicase/test-is-titlecase.h: New file.
49212
49213         New module 'unicase/u32-is-titlecase'.
49214         * lib/unicase/u32-is-titlecase.c: New file.
49215         * modules/unicase/u32-is-titlecase: New file.
49216
49217         New module 'unicase/u16-is-titlecase'.
49218         * lib/unicase/u16-is-titlecase.c: New file.
49219         * modules/unicase/u16-is-titlecase: New file.
49220
49221         New module 'unicase/u8-is-titlecase'.
49222         * lib/unicase/u8-is-titlecase.c: New file.
49223         * modules/unicase/u8-is-titlecase: New file.
49224
49225         Tests for module 'unicase/u32-is-lowercase'.
49226         * modules/unicase/u32-is-lowercase-tests: New file.
49227         * tests/unicase/test-u32-is-lowercase.c: New file.
49228
49229         Tests for module 'unicase/u16-is-lowercase'.
49230         * modules/unicase/u16-is-lowercase-tests: New file.
49231         * tests/unicase/test-u16-is-lowercase.c: New file.
49232
49233         Tests for module 'unicase/u8-is-lowercase'.
49234         * modules/unicase/u8-is-lowercase-tests: New file.
49235         * tests/unicase/test-u8-is-lowercase.c: New file.
49236         * tests/unicase/test-is-lowercase.h: New file.
49237
49238         New module 'unicase/u32-is-lowercase'.
49239         * lib/unicase/u32-is-lowercase.c: New file.
49240         * modules/unicase/u32-is-lowercase: New file.
49241
49242         New module 'unicase/u16-is-lowercase'.
49243         * lib/unicase/u16-is-lowercase.c: New file.
49244         * modules/unicase/u16-is-lowercase: New file.
49245
49246         New module 'unicase/u8-is-lowercase'.
49247         * lib/unicase/u8-is-lowercase.c: New file.
49248         * modules/unicase/u8-is-lowercase: New file.
49249
49250         Tests for module 'unicase/u32-is-uppercase'.
49251         * modules/unicase/u32-is-uppercase-tests: New file.
49252         * tests/unicase/test-u32-is-uppercase.c: New file.
49253
49254         Tests for module 'unicase/u16-is-uppercase'.
49255         * modules/unicase/u16-is-uppercase-tests: New file.
49256         * tests/unicase/test-u16-is-uppercase.c: New file.
49257
49258         Tests for module 'unicase/u8-is-uppercase'.
49259         * modules/unicase/u8-is-uppercase-tests: New file.
49260         * tests/unicase/test-u8-is-uppercase.c: New file.
49261         * tests/unicase/test-is-uppercase.h: New file.
49262
49263         New module 'unicase/u32-is-uppercase'.
49264         * lib/unicase/u32-is-uppercase.c: New file.
49265         * modules/unicase/u32-is-uppercase: New file.
49266
49267         New module 'unicase/u16-is-uppercase'.
49268         * lib/unicase/u16-is-uppercase.c: New file.
49269         * modules/unicase/u16-is-uppercase: New file.
49270
49271         New module 'unicase/u8-is-uppercase'.
49272         * lib/unicase/u8-is-uppercase.c: New file.
49273         * modules/unicase/u8-is-uppercase: New file.
49274
49275         New module 'unicase/u32-is-invariant'.
49276         * lib/unicase/u32-is-invariant.c: New file.
49277         * modules/unicase/u32-is-invariant: New file.
49278
49279         New module 'unicase/u16-is-invariant'.
49280         * lib/unicase/u16-is-invariant.c: New file.
49281         * modules/unicase/u16-is-invariant: New file.
49282
49283         New module 'unicase/u8-is-invariant'.
49284         * lib/unicase/u8-is-invariant.c: New file.
49285         * lib/unicase/invariant.h: New file.
49286         * lib/unicase/u-is-invariant.h: New file.
49287         * modules/unicase/u8-is-invariant: New file.
49288
49289         Tests for module 'unicase/u32-casecoll'.
49290         * modules/unicase/u32-casecoll-tests: New file.
49291         * tests/unicase/test-u32-casecoll.c: New file.
49292
49293         Tests for module 'unicase/u16-casecoll'.
49294         * modules/unicase/u16-casecoll-tests: New file.
49295         * tests/unicase/test-u16-casecoll.c: New file.
49296
49297         Tests for module 'unicase/u8-casecoll'.
49298         * modules/unicase/u8-casecoll-tests: New file.
49299         * tests/unicase/test-u8-casecoll.c: New file.
49300
49301         New module 'unicase/u32-casecoll'.
49302         * lib/unicase/u32-casecoll.c: New file.
49303         * modules/unicase/u32-casecoll: New file.
49304
49305         New module 'unicase/u16-casecoll'.
49306         * lib/unicase/u16-casecoll.c: New file.
49307         * modules/unicase/u16-casecoll: New file.
49308
49309         New module 'unicase/u8-casecoll'.
49310         * lib/unicase/u8-casecoll.c: New file.
49311         * lib/unicase/u-casecoll.h: New file.
49312         * modules/unicase/u8-casecoll: New file.
49313
49314         New module 'unicase/u32-casexfrm'.
49315         * lib/unicase/u32-casexfrm.c: New file.
49316         * modules/unicase/u32-casexfrm: New file.
49317
49318         New module 'unicase/u16-casexfrm'.
49319         * lib/unicase/u16-casexfrm.c: New file.
49320         * modules/unicase/u16-casexfrm: New file.
49321
49322         New module 'unicase/u8-casexfrm'.
49323         * lib/unicase/u8-casexfrm.c: New file.
49324         * lib/unicase/u-casexfrm.h: New file.
49325         * modules/unicase/u8-casexfrm: New file.
49326
49327         Tests for module 'unicase/u32-casecmp'.
49328         * modules/unicase/u32-casecmp-tests: New file.
49329         * tests/unicase/test-u32-casecmp.c: New file.
49330
49331         Tests for module 'unicase/u16-casecmp'.
49332         * modules/unicase/u16-casecmp-tests: New file.
49333         * tests/unicase/test-u16-casecmp.c: New file.
49334
49335         Tests for module 'unicase/u8-casecmp'.
49336         * modules/unicase/u8-casecmp-tests: New file.
49337         * tests/unicase/test-u8-casecmp.c: New file.
49338         * tests/unicase/test-casecmp.h: New file.
49339
49340         New module 'unicase/u32-casecmp'.
49341         * lib/unicase/u32-casecmp.c: New file.
49342         * modules/unicase/u32-casecmp: New file.
49343
49344         New module 'unicase/u16-casecmp'.
49345         * lib/unicase/u16-casecmp.c: New file.
49346         * modules/unicase/u16-casecmp: New file.
49347
49348         New module 'unicase/u8-casecmp'.
49349         * lib/unicase/u8-casecmp.c: New file.
49350         * lib/unicase/u-casecmp.h: New file.
49351         * modules/unicase/u8-casecmp: New file.
49352
49353         Tests for module 'unicase/u32-casefold'.
49354         * modules/unicase/u32-casefold-tests: New file.
49355         * tests/unicase/test-u32-casefold.c: New file.
49356
49357         Tests for module 'unicase/u16-casefold'.
49358         * modules/unicase/u16-casefold-tests: New file.
49359         * tests/unicase/test-u16-casefold.c: New file.
49360
49361         Tests for module 'unicase/u8-casefold'.
49362         * modules/unicase/u8-casefold-tests: New file.
49363         * tests/unicase/test-u8-casefold.c: New file.
49364
49365         New module 'unicase/u32-casefold'.
49366         * lib/unicase/u32-casefold.c: New file.
49367         * modules/unicase/u32-casefold: New file.
49368
49369         New module 'unicase/u16-casefold'.
49370         * lib/unicase/u16-casefold.c: New file.
49371         * modules/unicase/u16-casefold: New file.
49372
49373         New module 'unicase/u8-casefold'.
49374         * lib/unicase/u8-casefold.c: New file.
49375         * lib/unicase/u-casefold.h: New file.
49376         * modules/unicase/u8-casefold: New file.
49377
49378         New module 'unicase/tocasefold'.
49379         * lib/unicase/casefold.h: New file.
49380         * lib/unicase/tocasefold.c: New file.
49381         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
49382         * modules/unicase/tocasefold: New file.
49383
49384         Tests for module 'unicase/u32-totitle'.
49385         * modules/unicase/u32-totitle-tests: New file.
49386         * tests/unicase/test-u32-totitle.c: New file.
49387
49388         Tests for module 'unicase/u16-totitle'.
49389         * modules/unicase/u16-totitle-tests: New file.
49390         * tests/unicase/test-u16-totitle.c: New file.
49391
49392         Tests for module 'unicase/u8-totitle'.
49393         * modules/unicase/u8-totitle-tests: New file.
49394         * tests/unicase/test-u8-totitle.c: New file.
49395
49396         New module 'unicase/u32-totitle'.
49397         * lib/unicase/u32-totitle.c: New file.
49398         * modules/unicase/u32-totitle: New file.
49399
49400         New module 'unicase/u16-totitle'.
49401         * lib/unicase/u16-totitle.c: New file.
49402         * modules/unicase/u16-totitle: New file.
49403
49404         New module 'unicase/u8-totitle'.
49405         * lib/unicase/u8-totitle.c: New file.
49406         * lib/unicase/u-totitle.h: New file.
49407         * modules/unicase/u8-totitle: New file.
49408
49409         Tests for module 'unicase/u32-tolower'.
49410         * modules/unicase/u32-tolower-tests: New file.
49411         * tests/unicase/test-u32-tolower.c: New file.
49412
49413         Tests for module 'unicase/u16-tolower'.
49414         * modules/unicase/u16-tolower-tests: New file.
49415         * tests/unicase/test-u16-tolower.c: New file.
49416
49417         Tests for module 'unicase/u8-tolower'.
49418         * modules/unicase/u8-tolower-tests: New file.
49419         * tests/unicase/test-u8-tolower.c: New file.
49420
49421         New module 'unicase/u32-tolower'.
49422         * lib/unicase/u32-tolower.c: New file.
49423         * modules/unicase/u32-tolower: New file.
49424
49425         New module 'unicase/u16-tolower'.
49426         * lib/unicase/u16-tolower.c: New file.
49427         * modules/unicase/u16-tolower: New file.
49428
49429         New module 'unicase/u8-tolower'.
49430         * lib/unicase/u8-tolower.c: New file.
49431         * modules/unicase/u8-tolower: New file.
49432
49433         Tests for module 'unicase/u32-toupper'.
49434         * modules/unicase/u32-toupper-tests: New file.
49435         * tests/unicase/test-u32-toupper.c: New file.
49436
49437         Tests for module 'unicase/u16-toupper'.
49438         * modules/unicase/u16-toupper-tests: New file.
49439         * tests/unicase/test-u16-toupper.c: New file.
49440
49441         Tests for module 'unicase/u8-toupper'.
49442         * modules/unicase/u8-toupper-tests: New file.
49443         * tests/unicase/test-u8-toupper.c: New file.
49444
49445         New module 'unicase/u32-toupper'.
49446         * lib/unicase/u32-toupper.c: New file.
49447         * modules/unicase/u32-toupper: New file.
49448
49449         New module 'unicase/u16-toupper'.
49450         * lib/unicase/u16-toupper.c: New file.
49451         * modules/unicase/u16-toupper: New file.
49452
49453         New module 'unicase/u8-toupper'.
49454         * lib/unicase/u8-toupper.c: New file.
49455         * modules/unicase/u8-toupper: New file.
49456
49457         New module 'unicase/u32-casemap'.
49458         * lib/unicase/u32-casemap.c: New file.
49459         * modules/unicase/u32-casemap: New file.
49460
49461         New module 'unicase/u16-casemap'.
49462         * lib/unicase/u16-casemap.c: New file.
49463         * modules/unicase/u16-casemap: New file.
49464
49465         New module 'unicase/u8-casemap'.
49466         * lib/unicase/unicasemap.h: New file.
49467         * lib/unicase/u8-casemap.c: New file.
49468         * lib/unicase/u-casemap.h: New file.
49469         * modules/unicase/u8-casemap: New file.
49470
49471         New module 'unicase/special-casing'.
49472         * lib/unicase/special-casing.h: New file.
49473         * lib/unicase/special-casing.c: New file.
49474         * lib/unicase/special-casing-table.gperf: New file, generated by
49475         gen-uni-tables.c.
49476         * modules/unicase/special-casing: New file.
49477
49478         Tests for module 'unicase/locale-language'.
49479         * modules/unicase/locale-language-tests: New file.
49480         * tests/unicase/test-locale-language.sh: New file.
49481         * tests/unicase/test-locale-language.c: New file.
49482
49483         New module 'unicase/locale-language'.
49484         * lib/unicase/locale-language.c: New file.
49485         * lib/unicase/locale-languages.gperf: New file.
49486         * modules/unicase/locale-language: New file.
49487
49488         Generate more tables for case conversion and case folding.
49489         * lib/gen-uni-tables.c (SCC_*): New enum items.
49490         (struct special_casing_rule): New type.
49491         (casing_rules, num_casing_rules, allocated_casing_rules): New
49492         variables.
49493         (add_casing_rule, fill_casing_rules): New functions.
49494         (struct casefold_rule): New type.
49495         (casefolding_rules, num_casefolding_rules,
49496         allocated_casefolding_rules): New variables.
49497         (fill_casefolding_rules): New function.
49498         (unicode_casefold): New variable.
49499         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
49500         sort_casing_rules, output_casing_rules): New functions.
49501         (main): Accept to more arguments: SpecialCasing.txt and
49502         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
49503         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
49504         Output mapping for casefolding.
49505
49506         * lib/unicase.h: Include stdbool.h, uninorm.h.
49507         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
49508         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
49509         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
49510         arguments.
49511         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
49512         resultp arguments.
49513         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
49514         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
49515         resultp arguments.
49516         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
49517         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
49518         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
49519         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
49520         declarations.
49521         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
49522
49523 2009-03-08  Bruno Haible  <bruno@clisp.org>
49524
49525         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
49526         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
49527         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
49528         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
49529
49530 2009-03-07  Bruno Haible  <bruno@clisp.org>
49531
49532         Adjust u*_normcmp, u*_normcoll API.
49533         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
49534         u16_normcoll, u32_normcoll): Change failure conventions.
49535         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
49536         errno and return -1.
49537         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
49538
49539 2009-03-07  Bruno Haible  <bruno@clisp.org>
49540
49541         Tests for module 'uninorm/u32-normcoll'.
49542         * modules/uninorm/u32-normcoll-tests: New file.
49543         * tests/uninorm/test-u32-normcoll.c: New file.
49544
49545         Tests for module 'uninorm/u16-normcoll'.
49546         * modules/uninorm/u16-normcoll-tests: New file.
49547         * tests/uninorm/test-u16-normcoll.c: New file.
49548
49549         Tests for module 'uninorm/u8-normcoll'.
49550         * modules/uninorm/u8-normcoll-tests: New file.
49551         * tests/uninorm/test-u8-normcoll.c: New file.
49552
49553 2009-03-07  Bruno Haible  <bruno@clisp.org>
49554
49555         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
49556         tests/uninorm/test-u32-normcmp.c.
49557         * tests/uninorm/test-u32-normcmp.c: Include it.
49558         (test_nonascii): New function, extracted from main. Add some more
49559         tests.
49560         (main): Invoke test_ascii and test_nonascii.
49561         * modules/uninorm/u32-normcmp-tests (Files): Add
49562         tests/uninorm/test-u32-normcmp.h.
49563         (Depends-on): Remove uninorm/u32-normcmp.
49564
49565         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
49566         tests/uninorm/test-u16-normcmp.c.
49567         * tests/uninorm/test-u16-normcmp.c: Include it.
49568         (test_nonascii): New function, extracted from main. Add some more
49569         tests.
49570         (main): Invoke test_ascii and test_nonascii.
49571         * modules/uninorm/u16-normcmp-tests (Files): Add
49572         tests/uninorm/test-u16-normcmp.h.
49573         (Depends-on): Remove uninorm/u16-normcmp.
49574
49575         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
49576         tests/uninorm/test-u8-normcmp.c.
49577         * tests/uninorm/test-u8-normcmp.c: Include it.
49578         (test_nonascii): New function, extracted from main. Add some more
49579         tests.
49580         (main): Invoke test_ascii and test_nonascii.
49581         * modules/uninorm/u8-normcmp-tests (Files): Add
49582         tests/uninorm/test-u8-normcmp.h.
49583         (Depends-on): Remove uninorm/u8-normcmp.
49584
49585 2009-03-07  Bruno Haible  <bruno@clisp.org>
49586
49587         New module 'uninorm/u32-normcoll'.
49588         * lib/uninorm/u32-normcoll.c: New file.
49589         * modules/uninorm/u32-normcoll: New file.
49590
49591         New module 'uninorm/u16-normcoll'.
49592         * lib/uninorm/u16-normcoll.c: New file.
49593         * modules/uninorm/u16-normcoll: New file.
49594
49595         New module 'uninorm/u8-normcoll'.
49596         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
49597         declarations.
49598         * lib/uninorm/u8-normcoll.c: New file.
49599         * lib/uninorm/u-normcoll.h: New file.
49600         * modules/uninorm/u8-normcoll: New file.
49601
49602         New module 'uninorm/u32-normxfrm'.
49603         * lib/uninorm/u32-normxfrm.c: New file.
49604         * modules/uninorm/u32-normxfrm: New file.
49605
49606         New module 'uninorm/u16-normxfrm'.
49607         * lib/uninorm/u16-normxfrm.c: New file.
49608         * modules/uninorm/u16-normxfrm: New file.
49609
49610         New module 'uninorm/u8-normxfrm'.
49611         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
49612         declarations.
49613         * lib/uninorm/u8-normxfrm.c: New file.
49614         * lib/uninorm/u-normxfrm.h: New file.
49615         * modules/uninorm/u8-normxfrm: New file.
49616
49617 2009-03-07  Bruno Haible  <bruno@clisp.org>
49618
49619         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
49620         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
49621         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
49622
49623 2009-03-07  Bruno Haible  <bruno@clisp.org>
49624
49625         New module 'memxfrm'.
49626         * lib/memxfrm.h: New file.
49627         * lib/memxfrm.c: New file.
49628         * modules/memxfrm: New file.
49629
49630 2009-03-07  Bruno Haible  <bruno@clisp.org>
49631
49632         New module 'memcmp2'.
49633         * lib/memcmp2.h: New file.
49634         * lib/memcmp2.c: New file.
49635         * modules/memcmp2: New file.
49636
49637 2009-03-07  Bruno Haible  <bruno@clisp.org>
49638
49639         Tests for module 'uninorm/decomposing-form'.
49640         * modules/uninorm/decomposing-form-tests: New file.
49641         * tests/uninorm/test-decomposing-form.c: New file.
49642
49643         New module 'uninorm/decomposing-form'.
49644         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
49645         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
49646         Add 'decomposing_variant' field.
49647         * lib/uninorm/decomposing-form.c: New file.
49648         * lib/uninorm/nfc.c (uninorm_nfc): Update.
49649         * lib/uninorm/nfd.c (uninorm_nfd): Update.
49650         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
49651         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
49652         * modules/uninorm/decomposing-form: New file.
49653         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
49654         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
49655
49656 2009-03-07  Bruno Haible  <bruno@clisp.org>
49657
49658         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
49659         strings.
49660
49661 2009-03-06  Bruno Haible  <bruno@clisp.org>
49662
49663         Tests for module 'uninorm/u32-normcmp'.
49664         * tests/uninorm/test-u32-normcmp.c: New file.
49665         * modules/uninorm/u32-normcmp-tests: New file.
49666
49667         Tests for module 'uninorm/u16-normcmp'.
49668         * tests/uninorm/test-u16-normcmp.c: New file.
49669         * modules/uninorm/u16-normcmp-tests: New file.
49670
49671         Tests for module 'uninorm/u8-normcmp'.
49672         * tests/uninorm/test-u8-normcmp.c: New file.
49673         * modules/uninorm/u8-normcmp-tests: New file.
49674
49675         New module 'uninorm/u32-normcmp'.
49676         * lib/uninorm/u32-normcmp.c: New file.
49677         * modules/uninorm/u32-normcmp: New file.
49678
49679         New module 'uninorm/u16-normcmp'.
49680         * lib/uninorm/u16-normcmp.c: New file.
49681         * modules/uninorm/u16-normcmp: New file.
49682
49683         New module 'uninorm/u8-normcmp'.
49684         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
49685         declarations.
49686         * lib/uninorm/u8-normcmp.c: New file.
49687         * lib/uninorm/u-normcmp.h: New file.
49688         * modules/uninorm/u8-normcmp: New file.
49689
49690 2009-03-06  Bruno Haible  <bruno@clisp.org>
49691
49692         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
49693         Reported by Eric Blake.
49694
49695 2009-03-06  Eric Blake  <ebb9@byu.net>
49696             Bruno Haible  <bruno@clisp.org>
49697
49698         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
49699         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
49700         condition.
49701         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
49702         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
49703         condition.
49704         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
49705
49706 2009-03-06  Eric Blake  <ebb9@byu.net>
49707
49708         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
49709         to avoid compiler warnings.
49710         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
49711
49712 2009-03-05  Bruno Haible  <bruno@clisp.org>
49713
49714         * tests/test-ftell.c (main): Disable test beyond end of file on
49715         FreeMiNT.
49716         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
49717
49718 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
49719
49720         * lib/filevercmp.c: Move hidden files up in ordering.
49721         * tests/test-filevercmp.c: Add tests for hidden files.
49722
49723 2009-03-04  Bruno Haible  <bruno@clisp.org>
49724
49725         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
49726         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
49727         AM_CFLAGS.
49728         Reported by Simon Josefsson.
49729
49730 2009-03-03  Bruno Haible  <bruno@clisp.org>
49731
49732         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
49733         Reported by Simon Josefsson.
49734
49735         * doc/ld-version-script.texi: Update node reference.
49736
49737 2009-03-03  Bruno Haible  <bruno@clisp.org>
49738
49739         * modules/visibility (License): Change to 'unlimited'.
49740         Suggested by Simon Josefsson.
49741
49742 2009-03-03  Jim Meyering  <meyering@redhat.com>
49743
49744         unlinkdir: cannot_unlink_dir may modify process state
49745         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
49746         it's neither thread-safe nor appropriate for use in a library.
49747
49748 2009-03-03  Eric Blake  <ebb9@byu.net>
49749
49750         test-closein: silence test under Darwin
49751         * tests/test-closein.sh: Ignore stderr from cat, since we don't
49752         care if it dies from EPIPE or EBADF.
49753
49754 2009-03-03  Bruno Haible  <bruno@clisp.org>
49755
49756         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
49757         earlier.
49758         * doc/visibility.texi: Fix @node and @section.
49759
49760 2009-03-03  Simon Josefsson  <simon@josefsson.org>
49761
49762         * doc/gnulib.texi: Link to sections for ld version script and
49763         visibility.
49764         * doc/visibility.texi: Add @node and @section.
49765         * modules/ld-version-script: New module.
49766         * m4/ld-version-script.m4: New file.
49767         * doc/ld-version-script.texi: New file.
49768
49769 2009-03-02  David Lutterkort  <lutter@redhat.com>
49770
49771         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
49772         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49773
49774 2009-03-02  Bruno Haible  <bruno@clisp.org>
49775
49776         * doc/visibility.texi: Mention libtool's -export-symbols option.
49777
49778 2009-03-02  Jim Meyering  <meyering@redhat.com>
49779
49780         announce-gen: new option: --no-print-checksums
49781         * build-aux/announce-gen (usage): Describe it.
49782         (print_checksums): Print a newline here, not in the [*] footnote.
49783         (main): Honor it.
49784
49785 2009-03-01  Bruno Haible  <bruno@clisp.org>
49786
49787         Use socklen_t in the native Windows replacements prototypes.
49788         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
49789         instead of 'int'.
49790         * lib/getsockopt.c (rpl_getsockopt): Likewise.
49791         * lib/setsockopt.c (rpl_setsockopt): Likewise.
49792         * modules/getsockopt (Depends-on): Add socklen.
49793         * modules/setsockopt (Depends-on): Add socklen.
49794
49795 2009-03-01  Bruno Haible  <bruno@clisp.org>
49796
49797         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
49798         least 4.2.
49799
49800 2009-03-01  Eric Blake  <ebb9@byu.net>
49801             Bruno Haible  <bruno@clisp.org>
49802
49803         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
49804         error messages.
49805         * lib/wait-process.c (wait_subprocess): Omit error message about
49806         deadly signal sent to the child of termsigp != NULL.
49807
49808 2009-03-01  Eric Blake  <ebb9@byu.net>
49809
49810         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
49811
49812 2009-03-01  Bruno Haible  <bruno@clisp.org>
49813
49814         Avoid a gcc warning.
49815         * tests/test-sched.c (b): Make global.
49816         Reported by Eric Blake.
49817
49818 2009-01-19  Martin Lambers  <marlam@marlam.de>
49819
49820         Provide POSIX semantics for socket timeout options on W32.
49821         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
49822         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
49823         * modules/setsockopt: Depend on sys_time module for struct timeval.
49824         * modules/getsockopt: Depend on sys_time module for struct timeval.
49825
49826 2009-03-01  Simon Josefsson  <simon@josefsson.org>
49827
49828         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
49829         __USE_GNU, for consistency with netdb.in.h.
49830         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
49831
49832 2009-03-01  Bruno Haible  <bruno@clisp.org>
49833
49834         More support for FreeMiNT.
49835         * lib/fseeko.c (rpl_fseeko): Complete last commit.
49836         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
49837
49838 2009-03-01  Bruno Haible  <bruno@clisp.org>
49839
49840         More support for FreeMiNT.
49841         * lib/fpurge.c (fpurge): Correct last commit.
49842         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
49843
49844 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49845
49846         Fix unportable awk script in vc-list-files.
49847         * build-aux/vc-list-files: In the replacement awk script, use
49848         substr with a second argument of 1, not zero.
49849         Report by Simon Josefsson.
49850
49851 2009-02-28  Bruno Haible  <bruno@clisp.org>
49852
49853         More support for FreeMiNT.
49854         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
49855         to FreeMiNT today.
49856         * lib/fwriting.c (fwriting): Likewise.
49857         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
49858
49859 2009-02-28  Bruno Haible  <bruno@clisp.org>
49860
49861         * tests/test-freadseek.c (main): Disable test beyond end of file on
49862         FreeMiNT.
49863         * tests/test-ftello.c (main): Likewise.
49864         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
49865
49866 2009-02-28  Bruno Haible  <bruno@clisp.org>
49867
49868         Add tentative support for FreeMiNT.
49869         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
49870         * lib/fpurge.c (fpurge): Likewise.
49871         * lib/freadable.c (freadable): Likewise.
49872         * lib/freading.c (freading): Likewise.
49873         * lib/freadptr.c (freadptr): Likewise.
49874         * lib/freadseek.c (freadptrinc): Likewise.
49875         * lib/fseeko.c (rpl_fseeko): Likewise.
49876         * lib/fseterr.c (fseterr): Likewise.
49877         * lib/fwritable.c (fwritable): Likewise.
49878         * lib/fwriting.c (fwriting): Likewise.
49879         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
49880         Hourihane.
49881         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
49882
49883 2009-02-28  Bruno Haible  <bruno@clisp.org>
49884
49885         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
49886         SIGCHLD.
49887         Reported by Jim Meyering.
49888
49889 2009-02-28  Bruno Haible  <bruno@clisp.org>
49890
49891         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
49892         Mention the results of these tests on various platforms.
49893         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
49894         order.
49895         * doc/posix-functions/printf.texi: Likewise.
49896         * doc/posix-functions/snprintf.texi: Likewise.
49897         * doc/posix-functions/sprintf.texi: Likewise.
49898         * doc/posix-functions/vfprintf.texi: Likewise.
49899         * doc/posix-functions/vprintf.texi: Likewise.
49900         * doc/posix-functions/vsnprintf.texi: Likewise.
49901         * doc/posix-functions/vsprintf.texi: Likewise.
49902         * doc/glibc-functions/obstack_printf.texi: Likewise.
49903         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
49904
49905 2009-02-28  Bruno Haible  <bruno@clisp.org>
49906
49907         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
49908         Reported by Loïc Minier <lool@dooz.org>.
49909
49910 2009-02-27  Bruno Haible  <bruno@clisp.org>
49911
49912         * gnulib-tool (func_import): Make the sed expression used to create the
49913         sed script for updating the .gitignore file POSIX compliant.
49914         Reported by Eric Blake.
49915
49916 2009-02-27  Bruno Haible  <bruno@clisp.org>
49917
49918         * gnulib-tool (sed): Don't alias as "sed --posix".
49919         Reported by Eric Blake.
49920
49921 2009-02-27  Bruno Haible  <bruno@clisp.org>
49922
49923         Avoid test link errors.
49924         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
49925         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
49926         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
49927         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
49928         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49929
49930 2009-02-27  Bruno Haible  <bruno@clisp.org>
49931
49932         Avoid spurious "(cached)" in configure output.
49933         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
49934         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
49935         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
49936         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
49937         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
49938         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
49939         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
49940         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
49941         Reported by Eric Blake.
49942
49943 2009-02-27  Eric Blake  <ebb9@byu.net>
49944
49945         printf: fix regression in previous patch
49946         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
49947
49948 2009-02-27  Bruno Haible  <bruno@clisp.org>
49949
49950         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
49951         value.
49952         * lib/stdint.in.h: Likewise.
49953         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
49954
49955 2009-02-27  Eric Blake  <ebb9@byu.net>
49956
49957         doc: mention more functions added in cygwin 1.7.0
49958         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
49959         addition.
49960         * doc/posix-functions/open_wmemstream.texi: Likewise.
49961         * doc/posix-functions/wcsnlen.texi: Likewise.
49962         * doc/posix-functions/wcsnrtombs.texi: Likewise.
49963         * doc/posix-functions/wcstod.texi: Likewise.
49964         * doc/posix-functions/wcstof.texi: Likewise.
49965         * doc/posix-functions/wcstoimax.texi: Likewise.
49966         * doc/posix-functions/wcstok.texi: Likewise.
49967         * doc/posix-functions/wcstoumax.texi: Likewise.
49968
49969         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
49970         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
49971         * doc/posix-functions/fprintf.texi: Update.
49972         * doc/posix-functions/printf.texi: Update.
49973         * doc/posix-functions/snprintf.texi: Update.
49974         * doc/posix-functions/sprintf.texi: Update.
49975         * doc/posix-functions/vfprintf.texi: Update.
49976         * doc/posix-functions/vprintf.texi: Update.
49977         * doc/posix-functions/vsnprintf.texi: Update.
49978         * doc/posix-functions/vsprintf.texi: Update.
49979         * doc/glibc-functions/obstack_printf.texi: Update.
49980         * doc/glibc-functions/obstack_vprintf.texi: Update.
49981
49982 2009-02-26  Eric Blake  <ebb9@byu.net>
49983
49984         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
49985         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
49986         compilation bug by using runtime conversion.
49987         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
49988         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
49989         * modules/ceill-tests (Files): Use nan.h.
49990         * modules/floorl-tests (Files): Likewise.
49991         * modules/frexpl-tests (Files): Likewise.
49992         * modules/isnanl-tests (Files): Likewise.
49993         * modules/ldexpl-tests (Files): Likewise.
49994         * modules/roundl-tests (Files): Likewise.
49995         * modules/truncl-tests (Files): Likewise.
49996         * tests/test-ceill.c (main): Use a working NaN.
49997         * tests/test-floorl.c (main): Likewise.
49998         * tests/test-frexpl.c (main): Likewise.
49999         * tests/test-isnan.c (test_long_double): Likewise.
50000         * tests/test-isnanl.h (main): Likewise.
50001         * tests/test-ldexpl.h (main): Likewise.
50002         * tests/test-roundl.h (main): Likewise.
50003         * tests/test-truncl.h (main): Likewise.
50004         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
50005
50006 2009-02-26  Eric Blake  <ebb9@byu.net>
50007             Bruno Haible  <bruno@clisp.org>
50008
50009         Work around a *printf bug with %ls on Solaris.
50010         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
50011         precision is specified, sprintf stops converting the wide string
50012         argument when the number of bytes that have been produced by this
50013         conversion equals or exceeds the precision.
50014         * doc/posix-functions/fprintf.texi: Update.
50015         * doc/posix-functions/printf.texi: Update.
50016         * doc/posix-functions/snprintf.texi: Update.
50017         * doc/posix-functions/sprintf.texi: Update.
50018         * doc/posix-functions/vfprintf.texi: Update.
50019         * doc/posix-functions/vprintf.texi: Update.
50020         * doc/posix-functions/vsnprintf.texi: Update.
50021         * doc/posix-functions/vsprintf.texi: Update.
50022         * doc/glibc-functions/obstack_printf.texi: Update.
50023         * doc/glibc-functions/obstack_vprintf.texi: Update.
50024
50025 2009-02-26  Eric Blake  <ebb9@byu.net>
50026
50027         stdlib: favor compiler check of random.h
50028         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
50029         to avoid an ObjC random.h installed by Swarm.
50030
50031 2009-02-26  Bruno Haible  <bruno@clisp.org>
50032
50033         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
50034         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
50035         Reported by Gary V. Vaughan <gary@gnu.org>.
50036
50037 2009-02-26  Bruno Haible  <bruno@clisp.org>
50038
50039         Fix *printf behaviour regarding the %ls directive.
50040         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
50041         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
50042         NEED_PRINTF_DIRECTIVE_LS.
50043         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
50044         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
50045         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50046         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
50047         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
50048         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
50049         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
50050         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50051         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50052         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50053         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50054         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
50055         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50056         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50057         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50058         * doc/posix-functions/fprintf.texi: Update.
50059         * doc/posix-functions/printf.texi: Update.
50060         * doc/posix-functions/snprintf.texi: Update.
50061         * doc/posix-functions/sprintf.texi: Update.
50062         * doc/posix-functions/vfprintf.texi: Update.
50063         * doc/posix-functions/vprintf.texi: Update.
50064         * doc/posix-functions/vsnprintf.texi: Update.
50065         * doc/posix-functions/vsprintf.texi: Update.
50066         * doc/glibc-functions/obstack_printf.texi: Update.
50067         * doc/glibc-functions/obstack_vprintf.texi: Update.
50068         Reported by Eric Blake.
50069
50070 2009-02-25  Bruno Haible  <bruno@clisp.org>
50071
50072         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
50073         with known value.
50074         Reported by Gary V. Vaughan <gary@gnu.org>.
50075
50076 2009-02-25  Bruno Haible  <bruno@clisp.org>
50077
50078         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
50079         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
50080         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
50081         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
50082         Reported by Gary V. Vaughan <gary@gnu.org>.
50083
50084 2009-02-25  Bruno Haible  <bruno@clisp.org>
50085
50086         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
50087         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
50088         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
50089         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
50090         Reported by Gary V. Vaughan <gary@gnu.org>.
50091
50092 2009-02-25  Eric Blake  <ebb9@byu.net>
50093
50094         tests: skip fseek/ftell tests if ungetc is broken
50095         * m4/ungetc.m4: New file.
50096         * modules/fseek-tests: Split test, so ungetc dependency is
50097         separate from rest of test.
50098         * modules/fseeko-tests: Likewise.
50099         * modules/ftell-tests: Likewise.
50100         * modules/ftello-tests: Likewise.
50101         * tests/test-fseek.c (main): Isolate ungetc dependency.
50102         * tests/test-fseeko.c (main): Likewise.
50103         * tests/test-ftell.c (main): Likewise.
50104         * tests/test-ftello.c (main): Likewise.
50105         * tests/test-fseek2.sh: New file.
50106         * tests/test-fseeko2.sh: Likewise.
50107         * tests/test-ftell2.sh: Likewise.
50108         * tests/test-ftello2.sh: Likewise.
50109
50110 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
50111
50112         test-getaddrinfo: fix usage of skip return code 77
50113         * tests/test-gettaddrinfo.c: Return skip code 77 only
50114         for first occurrence of skip (4x77 is not 77)
50115
50116 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
50117
50118         strtod: avoid C99 decl-after-statement
50119         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
50120
50121 2009-02-24  Eric Blake  <ebb9@byu.net>
50122
50123         strtod: detect HP-UX 11.31 bug
50124         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
50125         Reported by Gary V. Vaughan.
50126
50127 2009-02-23  Bruno Haible  <bruno@clisp.org>
50128
50129         Fix invalid read past end of memory block.
50130         * lib/vasnprintf.c (DCHAR_SET): Define.
50131         (local_wcslen): Define only when needed.
50132         (local_strnlen, local_wcsnlen): New functions.
50133         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
50134         directives that involve a conversion ourselves.
50135         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
50136         wcsnlen, mbrtowc, wcrtomb.
50137         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
50138         * tests/test-vasprintf-posix.c (test_function): Likewise.
50139         * tests/test-snprintf-posix.h (test_function): Likewise.
50140         * tests/test-sprintf-posix.h (test_function): Likewise.
50141         Reported by Ben Pfaff <blp@cs.stanford.edu>.
50142
50143 2009-02-22  Bruno Haible  <bruno@clisp.org>
50144
50145         Implement new clarified decomposition of Hangul syllables.
50146         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
50147         of type LTV, return only a pairwise decomposition.
50148         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
50149         Likewise.
50150         * tests/uninorm/test-decomposition.c (main): Updated expected result.
50151         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
50152         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
50153
50154 2009-02-22  Bruno Haible  <bruno@clisp.org>
50155
50156         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
50157         zero-length results and shrink excess allocated memory.
50158         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
50159         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
50160         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
50161         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
50162         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
50163         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
50164         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
50165         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
50166         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
50167         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
50168         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
50169         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
50170
50171 2009-02-21  Bruno Haible  <bruno@clisp.org>
50172
50173         * doc/gnulib.texi: Include safe-alloc.texi earlier.
50174         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
50175         spaces after a period. Put a space between a macro name and its
50176         argument list. Trivial rewordings.
50177         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
50178         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
50179         (main): Return 0 explicitly.
50180
50181 2009-02-21  Bruno Haible  <bruno@clisp.org>
50182
50183         Tests for module 'uninorm/filter'.
50184         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
50185         * modules/uninorm/filter-tests: New file.
50186
50187         New module 'uninorm/filter'.
50188         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
50189         uninorm_filter_flush, uninorm_filter_free): New declarations.
50190         * lib/uninorm/uninorm-filter.c: New file.
50191         * modules/uninorm/filter: New file.
50192
50193 2009-02-21  Bruno Haible  <bruno@clisp.org>
50194
50195         Tests for module 'uninorm/nfkc'.
50196         * tests/uninorm/test-nfkc.c: New file.
50197         * tests/uninorm/test-u8-nfkc.c: New file.
50198         * tests/uninorm/test-u16-nfkc.c: New file.
50199         * tests/uninorm/test-u32-nfkc.c: New file.
50200         * tests/uninorm/test-u32-nfkc-big.sh: New file.
50201         * tests/uninorm/test-u32-nfkc-big.c: New file.
50202         * modules/uninorm/nfkc-tests: New file.
50203
50204         New module 'uninorm/nfkc'.
50205         * lib/uninorm/nfkc.c: New file.
50206         * modules/uninorm/nfkc: New file.
50207
50208         Tests for module 'uninorm/nfkd'.
50209         * tests/uninorm/test-nfkd.c: New file.
50210         * tests/uninorm/test-u8-nfkd.c: New file.
50211         * tests/uninorm/test-u16-nfkd.c: New file.
50212         * tests/uninorm/test-u32-nfkd.c: New file.
50213         * tests/uninorm/test-u32-nfkd-big.sh: New file.
50214         * tests/uninorm/test-u32-nfkd-big.c: New file.
50215         * modules/uninorm/nfkd-tests: New file.
50216
50217         New module 'uninorm/nfkd'.
50218         * lib/uninorm/nfkd.c: New file.
50219         * modules/uninorm/nfkd: New file.
50220
50221         Tests for module 'uninorm/nfc'.
50222         * tests/uninorm/test-nfc.c: New file.
50223         * tests/uninorm/test-u8-nfc.c: New file.
50224         * tests/uninorm/test-u16-nfc.c: New file.
50225         * tests/uninorm/test-u32-nfc.c: New file.
50226         * tests/uninorm/test-u32-nfc-big.sh: New file.
50227         * tests/uninorm/test-u32-nfc-big.c: New file.
50228         * modules/uninorm/nfc-tests: New file.
50229
50230         New module 'uninorm/nfc'.
50231         * lib/uninorm/nfc.c: New file.
50232         * modules/uninorm/nfc: New file.
50233
50234         Tests for module 'uninorm/nfd'.
50235         * tests/uninorm/test-nfd.c: New file.
50236         * tests/uninorm/test-u8-nfd.c: New file.
50237         * tests/uninorm/test-u16-nfd.c: New file.
50238         * tests/uninorm/test-u32-nfd.c: New file.
50239         * tests/uninorm/test-u32-nfd-big.sh: New file.
50240         * tests/uninorm/test-u32-nfd-big.c: New file.
50241         * tests/uninorm/test-u32-normalize-big.h: New file.
50242         * tests/uninorm/test-u32-normalize-big.c: New file.
50243         * tests/uninorm/NormalizationTest.txt: New file, created from
50244         Unicode 5.1.0 NormalizationTest.txt.
50245         * modules/uninorm/nfd-tests: New file.
50246
50247         New module 'uninorm/nfd'.
50248         * lib/uninorm/nfd.c: New file.
50249         * modules/uninorm/nfd: New file.
50250
50251         New module 'uninorm/u32-normalize'.
50252         * lib/uninorm/u32-normalize.c: New file.
50253         * modules/uninorm/u32-normalize: New file.
50254
50255         New module 'uninorm/u16-normalize'.
50256         * lib/uninorm/u16-normalize.c: New file.
50257         * modules/uninorm/u16-normalize: New file.
50258
50259         New module 'uninorm/u8-normalize'.
50260         * lib/uninorm/u8-normalize.c: New file.
50261         * lib/uninorm/normalize-internal.h: New file.
50262         * lib/uninorm/u-normalize-internal.h: New file.
50263         * modules/uninorm/u8-normalize: New file.
50264
50265         New module 'uninorm/decompose-internal'.
50266         * lib/uninorm/decompose-internal.c: New file.
50267         * modules/uninorm/decompose-internal: New file.
50268
50269         Tests for module 'uninorm/composition'.
50270         * tests/uninorm/test-composition.c: New file.
50271         * modules/uninorm/composition-tests: New file.
50272
50273         New module 'uninorm/composition'.
50274         * lib/uninorm/composition.c: New file.
50275         * lib/uninorm/composition-table.gperf: New file, generated by
50276         gen-uni-tables.
50277         * modules/uninorm/composition: New file.
50278
50279         Tests for module 'uninorm/compat-decomposition'.
50280         * tests/uninorm/test-compat-decomposition.c: New file.
50281         * modules/uninorm/compat-decomposition-tests: New file.
50282
50283         New module 'uninorm/compat-decomposition'.
50284         * lib/uninorm/decompose-internal.h: New file.
50285         * lib/uninorm/compat-decomposition.c: New file.
50286         * modules/uninorm/compat-decomposition: New file.
50287
50288         Tests for module 'uninorm/canonical-decomposition'.
50289         * tests/uninorm/test-canonical-decomposition.c: New file.
50290         * modules/uninorm/canonical-decomposition-tests: New file.
50291
50292         New module 'uninorm/canonical-decomposition'.
50293         * lib/uninorm/canonical-decomposition.c: New file.
50294         * modules/uninorm/canonical-decomposition: New file.
50295
50296         Tests for module 'uninorm/decomposition'.
50297         * tests/uninorm/test-decomposition.c: New file.
50298         * modules/uninorm/decomposition-tests: New file.
50299
50300         New module 'uninorm/decomposition'.
50301         * lib/uninorm/decomposition.c: New file.
50302         * modules/uninorm/decomposition: New file.
50303
50304         New module 'uninorm/decomposition-table'.
50305         * lib/uninorm/decomposition-table.h: New file.
50306         * lib/uninorm/decomposition-table.c: New file.
50307         * lib/uninorm/decomposition-table1.h: New file, generated by
50308         gen-uni-tables.
50309         * lib/uninorm/decomposition-table2.h: New file, generated by
50310         gen-uni-tables.
50311         * modules/uninorm/decomposition-table: New file.
50312
50313         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
50314         (UC_DECOMP_*): New enumeration items.
50315         (get_decomposition): New function.
50316         (struct decomp_table): New type.
50317         (output_decomposition, output_decomposition_tables): New functions.
50318         (unicode_composition_exclusions): New variable.
50319         (fill_composition_exclusions, debug_output_composition_tables): New
50320         functions.
50321         (main): Accept one more argument. Invoke fill_composition_exclusions.
50322         Output decomposition and composition tables.
50323
50324         New module 'uninorm/base'.
50325         * lib/uninorm.h: New file.
50326         * lib/unictype.h: Update comment.
50327         * modules/uninorm/base: New file.
50328
50329 2009-02-21  David Lutterkort  <lutter@redhat.com>
50330
50331         Tests for module 'safe-alloc'.
50332         * tests/test-safe-alloc.c: New file.
50333         * modules/safe-alloc-tests: New file.
50334
50335         New module 'safe-alloc'.
50336         * lib/safe-alloc.h: New file.
50337         * lib/safe-alloc.c: New file.
50338         * m4/safe-alloc.m4: New file.
50339         * modules/safe-alloc: New file.
50340         * doc/safe-alloc.texi: New file.
50341         * doc/gnulib.texi: Include it.
50342         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
50343         safe-alloc.
50344
50345 2009-02-18  Bruno Haible  <bruno@clisp.org>
50346
50347         Fix link error on non-glibc systems.
50348         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
50349         variable.
50350         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50351
50352 2009-02-18  Jim Meyering  <meyering@redhat.com>
50353
50354         fts: avoid used-uninitialized error due to recent change
50355         * lib/fts.c (fts_read): Guard uses of the new member,
50356         parent->fts_n_dirs_remaining, since it's not relevant for
50357         the parent of a directory specified on the command-line.
50358
50359 2009-02-17  James Youngman  <jay@gnu.org>
50360             Bruno Haible  <bruno@clisp.org>
50361
50362         * m4/include_next.m4: Reformulate comment.
50363
50364 2009-02-16  Jim Meyering  <meyering@redhat.com>
50365
50366         fts: add #if guards so that the fts_lgpl module still builds
50367         * lib/fts.c: Guard just-added hash-table-using parts with
50368         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
50369         Reported by Simon Josefsson.
50370
50371 2009-02-15  Bruno Haible  <bruno@clisp.org>
50372
50373         * modules/array-mergesort-tests: New file.
50374         * tests/test-array-mergesort.c: New file.
50375
50376         New module 'array-mergesort'.
50377         * modules/array-mergesort: New file.
50378         * lib/array-mergesort.h: New file.
50379
50380 2009-02-15  Bruno Haible  <bruno@clisp.org>
50381
50382         Fix 2009-02-07 commit.
50383         * lib/gen-uni-tables.c (output_predicate, output_category,
50384         output_combclass, output_bidi_category, output_decimal_digit,
50385         output_digit, output_numeric, output_mirror, output_scripts,
50386         output_ident_category, output_simple_mapping): Fix format directives.
50387         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
50388
50389 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
50390
50391         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
50392         fixes are available from IBM.
50393
50394 2009-02-13  Jim Meyering  <meyering@redhat.com>
50395
50396         fts: arrange not to stat non-directories in more cases
50397         This makes GNU find (when it doesn't need to stat each file)
50398         *much* more efficient at traversing reiserfs file systems.
50399         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
50400         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
50401         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
50402         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
50403         (leaf_optimization_applies): New function.
50404         (LCO_hash, LCO_compare): New helper functions.
50405         (link_count_optimize_ok): New function.
50406         (fts_stat): Initialize new member (if dir).
50407         (fts_read): Decrement parent's fts_n_dirs_remaining count if
50408         we've just stat'ed a directory.  Skip the stat call when possible.
50409         ---
50410         Note this AFS-related exchange:
50411         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
50412         and note find's pioctl call in find/fstype.c.
50413         But that is necessary only if you want to enable the
50414         optimization for AFS, and for now, I don't.
50415
50416         fts: move a function definition "up" (no semantic change)
50417         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
50418         "up" to precede upcoming use of a related function.
50419
50420 2009-02-11  Jim Meyering  <meyering@redhat.com>
50421
50422         fts: correct internal computation of nlinks (optimization-related)
50423         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
50424         whether the current entry is a directory, so don't test it.
50425
50426 2009-02-10  Bruno Haible  <bruno@clisp.org>
50427
50428         Tests for module 'uniwbrk/ulc-wordbreaks'.
50429         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
50430         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
50431         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
50432
50433         Tests for module 'uniwbrk/u32-wordbreaks'.
50434         * modules/uniwbrk/u32-wordbreaks-tests: New file.
50435         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
50436
50437         Tests for module 'uniwbrk/u16-wordbreaks'.
50438         * modules/uniwbrk/u16-wordbreaks-tests: New file.
50439         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
50440
50441         Tests for module 'uniwbrk/u8-wordbreaks'.
50442         * modules/uniwbrk/u8-wordbreaks-tests: New file.
50443         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
50444
50445 2009-02-10  Bruno Haible  <bruno@clisp.org>
50446
50447         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
50448         property.
50449         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
50450         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
50451         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
50452
50453 2009-02-10  Simon Josefsson  <simon@josefsson.org>
50454
50455         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
50456         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
50457
50458 2009-02-10  Bruno Haible  <bruno@clisp.org>
50459
50460         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
50461         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
50462         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
50463         * lib/unilbrk/u8-possible-linebreaks.c: Update.
50464         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
50465         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
50466
50467 2009-02-09  Simon Josefsson  <simon@josefsson.org>
50468
50469         * lib/sockets.h (gl_fd_to_handle): New function.
50470
50471         * tests/test-sockets.c: Call gl_fd_to_handle.
50472
50473 2009-02-09  Bruno Haible  <bruno@clisp.org>
50474
50475         * doc/havelib.texi: Document the conventions on bi-arch systems.
50476
50477 2009-02-08  Bruno Haible  <bruno@clisp.org>
50478
50479         Document the AC_LIB_LINKFLAGS macro.
50480         * doc/havelib.texi: New file, mostly written on 2005-05-24.
50481         * doc/gnulib.texi: Include it.
50482
50483 2009-02-08  Bruno Haible  <bruno@clisp.org>
50484
50485         Fix wrong order of sections, compared to TOC.
50486         * doc/gnulib.texi: Include relocatable-maint.texi after the
50487         "Regular expressions" node, not before.
50488
50489 2009-02-08  Bruno Haible  <bruno@clisp.org>
50490
50491         Tests for module 'unicase/totitle'.
50492         * modules/unicase/totitle-tests: New file.
50493
50494         Tests for module 'unicase/tolower'.
50495         * modules/unicase/tolower-tests: New file.
50496
50497         Tests for module 'unicase/toupper'.
50498         * modules/unicase/toupper-tests: New file.
50499         * tests/unicase/test-mapping-part1.h: New file.
50500         * tests/unicase/test-mapping-part2.h: New file.
50501
50502         New module 'unicase/totitle'.
50503         * modules/unicase/totitle: New file.
50504         * lib/unicase/totitle.c: New file.
50505
50506         New module 'unicase/tolower'.
50507         * modules/unicase/tolower: New file.
50508         * lib/unicase/tolower.c: New file.
50509
50510         New module 'unicase/toupper'.
50511         * modules/unicase/toupper: New file.
50512         * lib/unicase/toupper.c: New file.
50513         * lib/unicase/simple-mapping.h: New file.
50514
50515         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
50516         (mapping_table): New structure.
50517         (output_simple_mapping): New function.
50518         (main): Invoke output_simple_mapping_test and output_simple_mapping.
50519         * modules/gen-uni-tables (Description): Update.
50520         * lib/unicase/toupper.h: New file, automatically generated by
50521         gen-uni-tables.
50522         * lib/unicase/tolower.h: New file, automatically generated by
50523         gen-uni-tables.
50524         * lib/unicase/totitle.h: New file, automatically generated by
50525         gen-uni-tables.
50526         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
50527         gen-uni-tables.
50528         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
50529         gen-uni-tables.
50530         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
50531         gen-uni-tables.
50532
50533         New module 'unicase/base'.
50534         * modules/unicase/base: New file.
50535         * lib/unicase.h: New file.
50536
50537 2009-02-08  Bruno Haible  <bruno@clisp.org>
50538
50539         New module 'uniwbrk/ulc-wordbreaks'.
50540         * modules/uniwbrk/ulc-wordbreaks: New file.
50541         * lib/uniwbrk/ulc-wordbreaks.c: New file.
50542
50543         New module 'uniwbrk/u32-wordbreaks'.
50544         * modules/uniwbrk/u32-wordbreaks: New file.
50545         * lib/uniwbrk/u32-wordbreaks.c: New file.
50546
50547         New module 'uniwbrk/u16-wordbreaks'.
50548         * modules/uniwbrk/u16-wordbreaks: New file.
50549         * lib/uniwbrk/u16-wordbreaks.c: New file.
50550
50551         New module 'uniwbrk/u8-wordbreaks'.
50552         * modules/uniwbrk/u8-wordbreaks: New file.
50553         * lib/uniwbrk/u8-wordbreaks.c: New file.
50554         * lib/uniwbrk/u-wordbreaks.h: New file.
50555
50556         New module 'uniwbrk/table'.
50557         * modules/uniwbrk/table: New file.
50558         * lib/uniwbrk/wbrktable.h: New file.
50559         * lib/uniwbrk/wbrktable.c: New file.
50560
50561         New module 'uniwbrk/wordbreak-property'.
50562         * modules/uniwbrk/wordbreak-property: New file.
50563         * lib/uniwbrk/wordbreak-property.c: New file.
50564
50565         * lib/gen-uni-tables.c (WBP_*): New enum items.
50566         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
50567         (unicode_org_wbp): New variable.
50568         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
50569         New functions.
50570         (wbp_table): New structure.
50571         (output_wbp, output_wbrk_tables): New functions.
50572         (main): Accept additional argument. Invoke fill_org_wbp,
50573         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
50574         output_wbrk_tables.
50575         * modules/gen-uni-tables (Description): Update.
50576         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
50577         gen-uni-tables.
50578
50579         New module 'uniwbrk/base'.
50580         * modules/uniwbrk/base: New file.
50581         * lib/uniwbrk.h: New file.
50582
50583 2009-02-08  Bruno Haible  <bruno@clisp.org>
50584
50585         Update to Unicode 5.1.0.
50586         * lib/gen-uni-tables.c (is_property_alphabetic): Include
50587         U+2185..U+2188.
50588         (is_property_default_ignorable_code_point): Don't include characters
50589         of category Cc or Cs and not-a-characters.
50590         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
50591         U+0D79, U+109E, U+109F, U+A60C.
50592         * lib/unictype/bidi_of.h: Regenerated.
50593         * lib/unictype/blocks.h: Regenerated.
50594         * lib/unictype/categ_C.h: Regenerated.
50595         * lib/unictype/categ_Cf.h: Regenerated.
50596         * lib/unictype/categ_Cn.h: Regenerated.
50597         * lib/unictype/categ_L.h: Regenerated.
50598         * lib/unictype/categ_Ll.h: Regenerated.
50599         * lib/unictype/categ_Lm.h: Regenerated.
50600         * lib/unictype/categ_Lo.h: Regenerated.
50601         * lib/unictype/categ_Lu.h: Regenerated.
50602         * lib/unictype/categ_M.h: Regenerated.
50603         * lib/unictype/categ_Mc.h: Regenerated.
50604         * lib/unictype/categ_Me.h: Regenerated.
50605         * lib/unictype/categ_Mn.h: Regenerated.
50606         * lib/unictype/categ_N.h: Regenerated.
50607         * lib/unictype/categ_Nd.h: Regenerated.
50608         * lib/unictype/categ_Nl.h: Regenerated.
50609         * lib/unictype/categ_No.h: Regenerated.
50610         * lib/unictype/categ_P.h: Regenerated.
50611         * lib/unictype/categ_Pd.h: Regenerated.
50612         * lib/unictype/categ_Pe.h: Regenerated.
50613         * lib/unictype/categ_Pf.h: Regenerated.
50614         * lib/unictype/categ_Pi.h: Regenerated.
50615         * lib/unictype/categ_Po.h: Regenerated.
50616         * lib/unictype/categ_Ps.h: Regenerated.
50617         * lib/unictype/categ_S.h: Regenerated.
50618         * lib/unictype/categ_Sk.h: Regenerated.
50619         * lib/unictype/categ_Sm.h: Regenerated.
50620         * lib/unictype/categ_So.h: Regenerated.
50621         * lib/unictype/categ_of.h: Regenerated.
50622         * lib/unictype/combining.h: Regenerated.
50623         * lib/unictype/ctype_alnum.h: Regenerated.
50624         * lib/unictype/ctype_alpha.h: Regenerated.
50625         * lib/unictype/ctype_graph.h: Regenerated.
50626         * lib/unictype/ctype_lower.h: Regenerated.
50627         * lib/unictype/ctype_print.h: Regenerated.
50628         * lib/unictype/ctype_punct.h: Regenerated.
50629         * lib/unictype/ctype_upper.h: Regenerated.
50630         * lib/unictype/decdigit.h: Regenerated.
50631         * lib/unictype/digit.h: Regenerated.
50632         * lib/unictype/mirror.h: Regenerated.
50633         * lib/unictype/numeric.h: Regenerated.
50634         * lib/unictype/pr_alphabetic.h: Regenerated.
50635         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
50636         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
50637         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
50638         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
50639         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
50640         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
50641         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
50642         * lib/unictype/pr_combining.h: Regenerated.
50643         * lib/unictype/pr_dash.h: Regenerated.
50644         * lib/unictype/pr_decimal_digit.h: Regenerated.
50645         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
50646         * lib/unictype/pr_deprecated.h: Regenerated.
50647         * lib/unictype/pr_diacritic.h: Regenerated.
50648         * lib/unictype/pr_extender.h: Regenerated.
50649         * lib/unictype/pr_format_control.h: Regenerated.
50650         * lib/unictype/pr_grapheme_base.h: Regenerated.
50651         * lib/unictype/pr_grapheme_extend.h: Regenerated.
50652         * lib/unictype/pr_grapheme_link.h: Regenerated.
50653         * lib/unictype/pr_id_continue.h: Regenerated.
50654         * lib/unictype/pr_id_start.h: Regenerated.
50655         * lib/unictype/pr_ideographic.h: Regenerated.
50656         * lib/unictype/pr_ignorable_control.h: Regenerated.
50657         * lib/unictype/pr_lowercase.h: Regenerated.
50658         * lib/unictype/pr_math.h: Regenerated.
50659         * lib/unictype/pr_numeric.h: Regenerated.
50660         * lib/unictype/pr_other_alphabetic.h: Regenerated.
50661         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
50662         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
50663         * lib/unictype/pr_other_id_continue.h: Regenerated.
50664         * lib/unictype/pr_other_lowercase.h: Regenerated.
50665         * lib/unictype/pr_other_math.h: Regenerated.
50666         * lib/unictype/pr_punctuation.h: Regenerated.
50667         * lib/unictype/pr_sentence_terminal.h: Regenerated.
50668         * lib/unictype/pr_soft_dotted.h: Regenerated.
50669         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
50670         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
50671         * lib/unictype/pr_unified_ideograph.h: Regenerated.
50672         * lib/unictype/pr_uppercase.h: Regenerated.
50673         * lib/unictype/pr_xid_continue.h: Regenerated.
50674         * lib/unictype/pr_xid_start.h: Regenerated.
50675         * lib/unictype/pr_zero_width.h: Regenerated.
50676         * lib/unictype/scripts.h: Regenerated.
50677         * lib/unictype/scripts_byname.gperf: Regenerated.
50678         * lib/unictype/sy_java_ident.h: Regenerated.
50679         * lib/unilbrk/lbrkprop1.h: Regenerated.
50680         * lib/unilbrk/lbrkprop2.h: Regenerated.
50681         * tests/unictype/test-categ_C.c: Regenerated.
50682         * tests/unictype/test-categ_Cf.c: Regenerated.
50683         * tests/unictype/test-categ_Cn.c: Regenerated.
50684         * tests/unictype/test-categ_L.c: Regenerated.
50685         * tests/unictype/test-categ_Ll.c: Regenerated.
50686         * tests/unictype/test-categ_Lm.c: Regenerated.
50687         * tests/unictype/test-categ_Lo.c: Regenerated.
50688         * tests/unictype/test-categ_Lu.c: Regenerated.
50689         * tests/unictype/test-categ_M.c: Regenerated.
50690         * tests/unictype/test-categ_Mc.c: Regenerated.
50691         * tests/unictype/test-categ_Me.c: Regenerated.
50692         * tests/unictype/test-categ_Mn.c: Regenerated.
50693         * tests/unictype/test-categ_N.c: Regenerated.
50694         * tests/unictype/test-categ_Nd.c: Regenerated.
50695         * tests/unictype/test-categ_Nl.c: Regenerated.
50696         * tests/unictype/test-categ_No.c: Regenerated.
50697         * tests/unictype/test-categ_P.c: Regenerated.
50698         * tests/unictype/test-categ_Pd.c: Regenerated.
50699         * tests/unictype/test-categ_Pe.c: Regenerated.
50700         * tests/unictype/test-categ_Pf.c: Regenerated.
50701         * tests/unictype/test-categ_Pi.c: Regenerated.
50702         * tests/unictype/test-categ_Po.c: Regenerated.
50703         * tests/unictype/test-categ_Ps.c: Regenerated.
50704         * tests/unictype/test-categ_S.c: Regenerated.
50705         * tests/unictype/test-categ_Sk.c: Regenerated.
50706         * tests/unictype/test-categ_Sm.c: Regenerated.
50707         * tests/unictype/test-categ_So.c: Regenerated.
50708         * tests/unictype/test-ctype_alnum.c: Regenerated.
50709         * tests/unictype/test-ctype_alpha.c: Regenerated.
50710         * tests/unictype/test-ctype_graph.c: Regenerated.
50711         * tests/unictype/test-ctype_lower.c: Regenerated.
50712         * tests/unictype/test-ctype_print.c: Regenerated.
50713         * tests/unictype/test-ctype_punct.c: Regenerated.
50714         * tests/unictype/test-ctype_upper.c: Regenerated.
50715         * tests/unictype/test-decdigit.h: Regenerated.
50716         * tests/unictype/test-digit.h: Regenerated.
50717         * tests/unictype/test-numeric.h: Regenerated.
50718         * tests/unictype/test-pr_alphabetic.c: Regenerated.
50719         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
50720         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
50721         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
50722         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
50723         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
50724         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
50725         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
50726         * tests/unictype/test-pr_combining.c: Regenerated.
50727         * tests/unictype/test-pr_dash.c: Regenerated.
50728         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
50729         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
50730         * tests/unictype/test-pr_deprecated.c: Regenerated.
50731         * tests/unictype/test-pr_diacritic.c: Regenerated.
50732         * tests/unictype/test-pr_extender.c: Regenerated.
50733         * tests/unictype/test-pr_format_control.c: Regenerated.
50734         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
50735         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
50736         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
50737         * tests/unictype/test-pr_id_continue.c: Regenerated.
50738         * tests/unictype/test-pr_id_start.c: Regenerated.
50739         * tests/unictype/test-pr_ideographic.c: Regenerated.
50740         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
50741         * tests/unictype/test-pr_lowercase.c: Regenerated.
50742         * tests/unictype/test-pr_math.c: Regenerated.
50743         * tests/unictype/test-pr_numeric.c: Regenerated.
50744         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
50745         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
50746         Regenerated.
50747         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
50748         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
50749         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
50750         * tests/unictype/test-pr_other_math.c: Regenerated.
50751         * tests/unictype/test-pr_punctuation.c: Regenerated.
50752         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
50753         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
50754         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
50755         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
50756         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
50757         * tests/unictype/test-pr_uppercase.c: Regenerated.
50758         * tests/unictype/test-pr_xid_continue.c: Regenerated.
50759         * tests/unictype/test-pr_xid_start.c: Regenerated.
50760         * tests/unictype/test-pr_zero_width.c: Regenerated.
50761
50762         Update to Unicode 5.1.0.
50763         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
50764         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
50765         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
50766         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
50767         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
50768         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
50769         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
50770         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
50771         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
50772         (nonspacing_table_ind): Update.
50773         * tests/uniwidth/test-uc_width2.sh: Update expected result.
50774
50775         Update to Unicode 5.1.0.
50776         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
50777         code transform.
50778         * lib/uniname/uniname.c (unicode_character_name,
50779         unicode_name_character): Add the range 0x1Fxxx to the code transform.
50780         * lib/uniname/uninames.h: Regenerated.
50781         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
50782
50783 2009-02-07  Bruno Haible  <bruno@clisp.org>
50784
50785         Merge gen-ctype and gen-lbrk into a single program.
50786         * lib/gen-uni-tables.c: New file, incorporating
50787         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
50788         Add directory prefixes to the names of the generated files.
50789         * lib/unictype/gen-ctype.c: Remove file.
50790         * lib/unilbrk/gen-lbrk.c: Remove file.
50791         * modules/gen-uni-tables: New file.
50792         * modules/unictype/gen-ctype: Remove file.
50793         * modules/unilbrk/gen-lbrk: Remove file.
50794
50795 2009-02-07  Bruno Haible  <bruno@clisp.org>
50796
50797         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
50798
50799         New module 'unistr/u32-strcoll'.
50800         * modules/unistr/u32-strcoll: New file.
50801         * lib/unistr/u32-strcoll.c: New file.
50802
50803         New module 'unistr/u16-strcoll'.
50804         * modules/unistr/u16-strcoll: New file.
50805         * lib/unistr/u16-strcoll.c: New file.
50806
50807         New module 'unistr/u8-strcoll'.
50808         * modules/unistr/u8-strcoll: New file.
50809         * lib/unistr/u8-strcoll.c: New file.
50810         * lib/unistr/u-strcoll.h: New file.
50811
50812 2009-02-07  Bruno Haible  <bruno@clisp.org>
50813
50814         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
50815         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
50816         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
50817         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
50818         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
50819         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
50820
50821 2009-02-07  Bruno Haible  <bruno@clisp.org>
50822
50823         Make 64-bit clean.
50824         * lib/unictype/gen-ctype.c (output_predicate, output_category,
50825         output_combclass, output_bidi_category, output_decimal_digit,
50826         output_digit, output_numeric, output_mirror, output_scripts,
50827         output_ident_category): Use proper width specifier in format strings.
50828
50829 2009-02-07  Bruno Haible  <bruno@clisp.org>
50830
50831         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
50832         failure behaviour.
50833
50834 2009-02-07  Jim Meyering  <meyering@redhat.com>
50835
50836         regex: avoid compilation failure with upcoming gcc-4.4
50837         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
50838         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
50839         "... error: integer overflow in preprocessor expression".
50840
50841 2009-02-05  Ben Pfaff  <blp@gnu.org>
50842
50843         Fix link errors on Windows when close module is used.
50844         * modules/close: Add $(LIB_CLOSE) to Link section.
50845         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
50846         $(LIB_CLOSE) on Windows.
50847
50848 2009-02-05  Jim Meyering  <meyering@redhat.com>
50849
50850         still avoid unused-parameter warnings, but do it cleanly
50851         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
50852         (get_fs_usage): Cast to void instead.
50853         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
50854         (dev_from_mount_options, read_file_system_list): Cast to void.
50855         Prompted by Bruno Haible.
50856
50857 2009-02-04  Jim Meyering  <meyering@redhat.com>
50858
50859         fsusage.c: correct copyright year
50860         * lib/fsusage.c: Reflect year in which the change is pushed into
50861
50862         avoid misc. warnings
50863         * lib/fsusage.c (UNUSED_PARAM): Define.
50864         (get_fs_usage): Mark parameter "disk" as unused.
50865         * lib/getugroups.c (getgrent): Use "void" in prototype.
50866         * lib/mountlist.c: Mark unused parameters.
50867         (read_file_system_list): Declare a local with "const".
50868         * lib/nanosleep.c (getnow): Declare static.
50869         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
50870
50871         dirfd: set errno upon failure
50872         * lib/dirfd.c: Include <errno.h>.
50873         Set errno to ENOTSUP when returning -1.
50874         * modules/dirfd (Depends-on): Add errno.
50875         Suggested by John Kodis <kodis@comcast.net>.
50876
50877 2009-02-01  Bruno Haible  <bruno@clisp.org>
50878
50879         Don't assume sizeof (long) >= sizeof (void *).
50880         * lib/memcmp.c: Include stdint.h.
50881         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
50882         srcp2 to 'const byte *'.
50883         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
50884         types to uintptr_t.
50885         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
50886         * modules/memcmp (Depends-on): Add stdint.
50887         Reported by Ozkan Sezer <sezeroz@gmail.com>.
50888
50889 2009-01-30  Eric Blake  <ebb9@byu.net>
50890
50891         fix more require-before-expand issues
50892         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
50893         expand, AC_PROG_AWK.
50894         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
50895
50896 2009-01-28  Eric Blake  <ebb9@byu.net>
50897
50898         version-etc: use consistent URL formatting
50899         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
50900         Improve formatting.  Use fputs for string without %.
50901
50902 2009-01-28  Jim Meyering  <meyering@redhat.com>
50903
50904         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
50905         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
50906         "underquoted definition of NAME" from autoconf-2.59.
50907
50908 2009-01-28  Bruno Haible  <bruno@clisp.org>
50909
50910         * doc/gnulib.texi: Add "Obsolete modules" to index.
50911
50912 2009-01-28  Jim Meyering  <meyering@redhat.com>
50913
50914         useless-if-before-free: recognize more variants
50915         * build-aux/useless-if-before-free: Also recognize e.g.,
50916         if (NULL != p) free (p);
50917
50918 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
50919
50920         test-getaddrinfo: skip (don't fail) this test when there's no network
50921         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
50922         on the presumption that it means you lack network access.
50923
50924 2009-01-26  Jim Meyering  <meyering@redhat.com>
50925
50926         fflush: avoid warnings on modern systems
50927         * lib/fflush.c (rpl_fflush): Move declarations of locals,
50928         pos and result, into scopes where they're used.
50929
50930 2009-01-26  Eric Blake  <ebb9@byu.net>
50931
50932         Silence warning reintroduced by recent extensions patch.
50933         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
50934         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
50935         autoconf.
50936
50937         Backport improved autoconf semantics of AC_DEFUN_ONCE.
50938         * m4/00gnulib.m4: New file.
50939         * gnulib-tool (func_get_filelist): Always use it.
50940         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
50941         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
50942
50943 2009-01-25  Bruno Haible  <bruno@clisp.org>
50944
50945         Make test-quotearg work on MacOS X and AIX.
50946         * tests/test-quotearg.sh: New file.
50947         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
50948         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
50949         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
50950         include <libintl.h>.
50951         (fake_locale): Remove variable.
50952         (gettext, dgettext, dcgettext): Remove functions.
50953         (main): Instead of setting a fake locale, set a real locale. Call
50954         textdomain and bindtextdomain.
50955         * modules/quotearg-tests (Files): Add the new files.
50956         (Depends-on): Add gettext, setenv, unsetenv.
50957         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
50958         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
50959         Augment TESTS_ENVIRONMENT.
50960
50961 2009-01-25  Bruno Haible  <bruno@clisp.org>
50962
50963         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
50964         fr_FR.ISO8859-1 locale on MacOS X.
50965         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
50966         ja_JP.eucJP locale on MacOS X.
50967         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
50968         zh_CN.GB18030 locale on MacOS X.
50969
50970 2009-01-25  Bruno Haible  <bruno@clisp.org>
50971
50972         Avoid link errors on MacOS X 10.3.
50973         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
50974         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
50975
50976 2009-01-25  Bruno Haible  <bruno@clisp.org>
50977
50978         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
50979         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
50980         * modules/pipe (Files): Remove m4/posix_spawn.m4.
50981         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
50982         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
50983         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
50984         posix_spawnattr_init, posix_spawnattr_setsigmask,
50985         posix_spawnattr_setflags, posix_spawnattr_destroy.
50986
50987         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
50988         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
50989         * modules/execute (Files): Remove m4/posix_spawn.m4.
50990         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
50991         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
50992         posix_spawnattr_init, posix_spawnattr_setsigmask,
50993         posix_spawnattr_setflags, posix_spawnattr_destroy.
50994
50995 2009-01-25  Bruno Haible  <bruno@clisp.org>
50996
50997         * lib/glthread/threadlib.c: Include <stdlib.h>.
50998
50999 2009-01-25  Bruno Haible  <bruno@clisp.org>
51000
51001         * lib/glthread/threadlib.c (dummy): New declaration.
51002
51003 2009-01-25  Bruno Haible  <bruno@clisp.org>
51004
51005         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
51006         multibyte characters also for the GB18030 encoding. Don't crash when
51007         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
51008
51009 2009-01-25  Bruno Haible  <bruno@clisp.org>
51010
51011         Avoid redefining 'struct random_data' on OSF/1 5.1.
51012         * lib/stdlib.in.h: Include <random.h> if it exists.
51013         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
51014         HAVE_RANDOM_H. Include <random.h> when testing whether
51015         'struct random_data' exists.
51016         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
51017
51018 2009-01-25  Bruno Haible  <bruno@clisp.org>
51019
51020         Don't install charset.alias on MacOS X >= 10.3.
51021         * lib/localcharset.c (DARWIN7): New macro.
51022         (get_charset_aliases): Hardcode the result for Darwin7.
51023         * modules/localcharset (install-exec-local): Don't install
51024         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
51025
51026 2009-01-25  Bruno Haible  <bruno@clisp.org>
51027
51028         Don't install charset.alias on mingw and Cygwin.
51029         * modules/localcharset (install-exec-local): Don't install
51030         charset.alias on mingw and Cygwin, if the file does not yet exist.
51031         The result for these platforms is hardcoded in localcharset.c.
51032
51033 2009-01-25  Bruno Haible  <bruno@clisp.org>
51034
51035         Make it possible again to use AC_GNU_SOURCE together with gnulib.
51036         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
51037         before requiring AC_USE_SYSTEM_EXTENSIONS.
51038
51039 2009-01-25  Jim Meyering  <meyering@redhat.com>
51040
51041         c-strtod: avoid warnings
51042         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
51043         "assignment discards qualifiers from pointer target type" warnings.
51044
51045 2009-01-24  Bruno Haible  <bruno@clisp.org>
51046
51047         Add support for non-UTF-8 locales on MacOS X.
51048         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
51049         canonical encodings. For Darwin 7 and newer, don't map traditional
51050         encodings to UTF-8.
51051         Reported by Vincent Lefevre <vincent@vinc17.org>
51052         at <http://savannah.gnu.org/bugs/?25235>.
51053
51054 2009-01-24  Bruno Haible  <bruno@clisp.org>
51055
51056         * doc/gnulib.texi (Obsolete modules): New section.
51057         Reported by Mike Frysinger <vapier@gentoo.org>.
51058
51059 2009-01-24  Bruno Haible  <bruno@clisp.org>
51060
51061         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
51062         (%.dvi): New rule.
51063
51064 2009-01-24  Bruno Haible  <bruno@clisp.org>
51065
51066         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
51067         Reported by Eric Blake.
51068
51069 2009-01-24  Bruno Haible  <bruno@clisp.org>
51070
51071         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
51072         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
51073         Reported by Gary V. Vaughan <gary@gnu.org>.
51074
51075 2009-01-24  Bruno Haible  <bruno@clisp.org>
51076
51077         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
51078
51079 2009-01-23  Bruno Haible  <bruno@clisp.org>
51080
51081         Make c-strtod, c-strtold usable in libraries.
51082         * lib/c-strtod.c: Include string.h instead of xalloc.h.
51083         (C_STRTOD): Call strdup instead of xstrdup.
51084         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
51085         * modules/c-strtold (Depends-on): Likewise.
51086         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
51087         * NEWS: Mention the change.
51088         Reported by Michael Gold <mgold@ncf.ca>.
51089
51090 2009-01-23  Jim Meyering  <meyering@redhat.com>
51091
51092         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
51093         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
51094         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
51095
51096 2009-01-23  Simon Josefsson  <simon@josefsson.org>
51097
51098         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
51099         GNU CoreUtils.
51100         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
51101         * modules/version-etc (Description): Update.
51102
51103 2009-01-22  Bruno Haible  <bruno@clisp.org>
51104
51105         Cache the C locale object.
51106         * lib/c-strtod.c (c_locale_cache): New variable.
51107         (c_locale): New function.
51108         (C_STRTOD): Use it, and don't call freelocale.
51109         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
51110         Suggested by Paolo Bonzini.
51111
51112 2009-01-21  Bruno Haible  <bruno@clisp.org>
51113
51114         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
51115         conditions other than overflow.
51116
51117 2009-01-21  Bruno Haible  <bruno@clisp.org>
51118
51119         * lib/c-strtod.c: Include errno.h.
51120         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
51121         value from STRTOD_L and STRTOD.
51122
51123 2009-01-21  Bruno Haible  <bruno@clisp.org>
51124         and Jim Meyering  <meyering@redhat.com>
51125
51126         nanosleep: skip configure test (fail it) for apple universal builds
51127         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
51128         universal builds, assume that nanosleep does not work.
51129         * modules/nanosleep (Depends-on): Add multiarch.
51130
51131         mktime: skip configure test (fail it) for apple universal builds
51132         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
51133         universal builds, assume that mktime does not work.
51134         * modules/mktime (Depends-on): Add multiarch.
51135
51136 2009-01-21  Eric Blake  <ebb9@byu.net>
51137
51138         multiarch: avoid expand-before-require warning
51139         * modules/multiarch (configure.ac): Require, rather than expand,
51140         gl_MULTIARCH.
51141         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
51142         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
51143         enforce that all clients require it.  Partial reversion of
51144         2008-12-29 patch.
51145
51146         error: avoid expand-before-require warning
51147         * modules/errno (configure.ac): Require, rather than expand,
51148         gl_HEADER_ERRNO_H.
51149         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
51150         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
51151         enforce that all clients require it.
51152
51153         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
51154         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
51155         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
51156         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
51157
51158 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
51159
51160         Revert:
51161         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
51162
51163         regex: do not depend on obsolete modules.
51164         * modules/regex: Remove memcmp and memmove.
51165
51166 2009-01-20  Bruno Haible  <bruno@clisp.org>
51167
51168         Make the 'link' module link on Windows NT 4.
51169         * lib/link.c (_WIN32_WINNT): Don't define.
51170         (CreateHardLinkFuncType): New type.
51171         (CreateHardLinkFunc, initialized): New variables.
51172         (initialize): New function.
51173         (link): Invoke CreateHardLink indirectly through the function pointer.
51174
51175 2009-01-20  Bruno Haible  <bruno@clisp.org>
51176
51177         Fix compilation failure on mingw.
51178         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
51179
51180 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
51181
51182         * doc/c-strtod.texi: Mention a couple of restrictions.
51183
51184 2009-01-20  Jim Meyering  <meyering@redhat.com>
51185
51186         gettimeofday: move more declarations out of functions
51187         * lib/gettimeofday.c: Move extern declarations of tzset and
51188         gmtime out of containing functions.  Prompted by Bruno Haible.
51189
51190 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
51191
51192         regex: do not depend on obsolete modules.
51193         * modules/regex: Remove memcmp and memmove.
51194
51195 2009-01-19  Bruno Haible  <bruno@clisp.org>
51196
51197         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
51198         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
51199         gl_BIGENDIAN, not AC_C_BIGENDIAN.
51200         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
51201         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
51202
51203 2009-01-19  Bruno Haible  <bruno@clisp.org>
51204
51205         * tests/test-link.c: Include <errno.h>.
51206         (main): Exit with code 77 when a hard link cannot be created due to
51207         the file system.
51208         * tests/test-link.sh: Skip test when a hard link cannot be created due
51209         to the file system.
51210         Suggested by Eric Blake.
51211
51212 2009-01-19  Martin Lambers  <marlam@marlam.de>
51213
51214         * modules/link-tests: New file.
51215         * tests/test-link.sh: New file.
51216         * tests/test-link.c: New file.
51217
51218 2009-01-19  Eric Blake  <ebb9@byu.net>
51219
51220         doc: mention another function added in cygwin 1.7.0
51221         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
51222         Another new function in cygwin 1.7.
51223
51224 2009-01-19  Bruno Haible  <bruno@clisp.org>
51225
51226         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
51227         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
51228         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
51229         gl_BIGENDIAN, not AC_C_BIGENDIAN.
51230         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
51231         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
51232         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
51233         * m4/md4.m4 (gl_MD4): Likewise.
51234         * m4/md5.m4 (gl_MD5): Likewise.
51235         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
51236         * m4/sha1.m4 (gl_SHA1): Likewise.
51237         * m4/sha256.m4 (gl_SHA256): Likewise.
51238         * m4/sha512.m4 (gl_SHA512): Likewise.
51239
51240 2009-01-19  Bruno Haible  <bruno@clisp.org>
51241
51242         * modules/uniname/uniname-tests (Depends-on): Add progname.
51243         * tests/uniname/test-uninames.c: Include progname.h.
51244         (main): Call set_program_name.
51245
51246         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
51247         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
51248         (main): Call set_program_name.
51249
51250         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
51251         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
51252         (main): Call set_program_name.
51253
51254         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
51255         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
51256         (main): Call set_program_name.
51257
51258         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
51259         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
51260         (main): Call set_program_name.
51261
51262         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
51263         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
51264         (main): Call set_program_name.
51265
51266         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
51267         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
51268         (main): Call set_program_name.
51269
51270         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
51271         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
51272         (main): Call set_program_name.
51273
51274         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
51275         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
51276         (main): Call set_program_name.
51277
51278 2009-01-19  Eric Blake  <ebb9@byu.net>
51279
51280         test-unistd: test previous patch
51281         * tests/test-unistd.c: Test *_FILENO macros.
51282
51283         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
51284         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
51285         Guarantee a definition.
51286         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
51287         * modules/unistd-safer (Depends-on): Add dependency on unistd.
51288         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
51289         * lib/dup-safer.c (STDERR_FILENO): Likewise.
51290         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
51291         Likewise.
51292         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
51293         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
51294         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
51295         Likewise.
51296         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
51297         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
51298         (STDERR_FILENO): Likewise.
51299         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
51300         (STDERR_FILENO): Likewise.
51301         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
51302         (STDERR_FILENO): Likewise.
51303         Reported by Elbert Pol.
51304
51305 2009-01-19  Eric Blake  <ebb9@byu.net>
51306
51307         doc: mention more functions added in cygwin 1.7.0
51308         * doc/posix-functions/abort.texi (abort): Update wording related
51309         to cygwin.
51310         * doc/posix-functions/daylight.texi (daylight): Likewise.
51311         * doc/posix-functions/optarg.texi (optarg): Likewise.
51312         * doc/posix-functions/optarg.texi (opterr): Likewise.
51313         * doc/posix-functions/optarg.texi (optind): Likewise.
51314         * doc/posix-functions/optarg.texi (optopt): Likewise.
51315         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
51316         worked in 1.5.x, and was withdrawn in 1.7.
51317         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
51318         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
51319         cygwin versions.
51320         * doc/posix-functions/perror.texi (perror): Likewise.
51321         * doc/posix-functions/printf.texi (printf): Likewise.
51322         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
51323         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
51324         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
51325         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
51326         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
51327         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
51328         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
51329         Likewise.
51330         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
51331         Likewise.
51332         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
51333         this function.
51334         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
51335         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
51336         Likewise.
51337         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
51338         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
51339         * doc/posix-functions/confstr.texi (confstr): Likewise.
51340         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
51341         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
51342         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
51343         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
51344         * doc/posix-functions/fputws.texi (fputws): Likewise.
51345         * doc/posix-functions/fwide.texi (fwide): Likewise.
51346         * doc/posix-functions/getwc.texi (getwc): Likewise.
51347         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
51348         * doc/posix-functions/putwc.texi (putwc): Likewise.
51349         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
51350         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
51351         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
51352         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
51353         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
51354         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
51355         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
51356         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
51357         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
51358         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
51359         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
51360
51361 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
51362
51363         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
51364         * lib/ioctl.c: Include <sys/ioctl.h>.
51365
51366 2009-01-19  Simon Josefsson  <simon@josefsson.org>
51367
51368         * modules/getdate-tests (Depends-on): Add progname.
51369         * tests/test-getdate.c: Use progname module, to avoid link errors
51370         on non-glibc systems.
51371
51372 2009-01-18  Simon Josefsson  <simon@josefsson.org>
51373
51374         * modules/filenamecat-tests (Depends-on): Add progname.
51375         * modules/fstrcmp-tests (Depends-on): Likewise.
51376
51377         * tests/test-filenamecat.c: Use progname module, to avoid link
51378         errors on non-glibc systems.
51379         * tests/test-fstrcmp.c: Likewise.
51380
51381 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
51382
51383         gettimeofday: avoid warning: nested extern declaration of 'localtime'
51384         * lib/gettimeofday.c: Move extern declaration out of function.
51385
51386 2009-01-18  Bruno Haible  <bruno@clisp.org>
51387
51388         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
51389         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
51390         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
51391
51392 2009-01-18  Bruno Haible  <bruno@clisp.org>
51393
51394         * lib/strftime.c (MEMPCPY): Remove unused macro.
51395         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
51396
51397 2009-01-18  Martin Lambers  <marlam@marlam.de>
51398
51399         New module 'link'.
51400         * lib/unistd.in.h (link): New declaration.
51401         * lib/link.c: New file.
51402         * m4/link.m4: New file.
51403         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
51404         HAVE_LINK.
51405         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
51406         * modules/link: New file.
51407         * doc/posix-functions/link.texi: Mention the new module.
51408
51409 2009-01-18  Bruno Haible  <bruno@clisp.org>
51410
51411         * tests/test-avltree_list.c (main): Call set_program_name.
51412         * tests/test-avltree_oset.c (main): Likewise.
51413         * tests/test-obstack-printf.c: Include progname.h.
51414         (main): Call set_program_name.
51415         * tests/test-quotearg.c: Include progname.h.
51416         (main): Call set_program_name.
51417         * tests/test-xmemdup0.c: Include progname.h.
51418         (main): Call set_program_name.
51419
51420 2009-01-18  Bruno Haible  <bruno@clisp.org>
51421
51422         New module 'alphasort'.
51423         * lib/dirent.in.h (alphasort): New declaration.
51424         * lib/alphasort.c: New file, from glibc with modifications.
51425         * m4/alphasort.m4: New file.
51426         * modules/alphasort: New file.
51427         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
51428         HAVE_ALPHASORT.
51429         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
51430         HAVE_ALPHASORT.
51431         * doc/posix-functions/alphasort.texi: Mention the new module and the
51432         portability problems.
51433
51434 2009-01-18  Bruno Haible  <bruno@clisp.org>
51435
51436         New module 'scandir'.
51437         * lib/dirent.in.h (scandir): New declaration.
51438         * lib/scandir.c: New file, from glibc with modifications.
51439         * m4/scandir.m4: New file.
51440         * modules/scandir: New file.
51441         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
51442         HAVE_SCANDIR.
51443         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
51444         HAVE_SCANDIR.
51445         * doc/posix-functions/scandir.texi: Mention the new module and the
51446         portability problems.
51447
51448 2009-01-17  Bruno Haible  <bruno@clisp.org>
51449
51450         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
51451         Update documentation.
51452         (func_remove_suffix): Escape all dots in the suffix. Update
51453         documentation.
51454         (func_filter_filelist): Update documentation.
51455         Reported by Ralf Wildenhues.
51456
51457 2009-01-17  Bruno Haible  <bruno@clisp.org>
51458
51459         * modules/dprintf-posix-tests: New file.
51460         * tests/test-dprintf-posix.sh: New file.
51461         * tests/test-dprintf-posix.c: New file.
51462
51463         New modules 'dprintf', 'dprintf-posix'.
51464         * lib/stdio.in.h (dprintf): New declaration.
51465         * lib/dprintf.c: New file.
51466         * m4/dprintf.m4: New file.
51467         * m4/dprintf-posix.m4: New file.
51468         * modules/dprintf: New file.
51469         * modules/dprintf-posix: New file.
51470         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
51471         HAVE_DPRINTF, REPLACE_DPRINTF.
51472         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
51473         HAVE_DPRINTF, REPLACE_DPRINTF.
51474         * doc/posix-functions/dprintf.texi: Mention the new modules.
51475
51476 2009-01-17  Bruno Haible  <bruno@clisp.org>
51477
51478         * modules/vdprintf-posix-tests: New file.
51479         * tests/test-vdprintf-posix.sh: New file.
51480         * tests/test-vdprintf-posix.c: New file.
51481
51482         New modules 'vdprintf', 'vdprintf-posix'.
51483         * lib/stdio.in.h (vdprintf): New declaration.
51484         * lib/vdprintf.c: New file.
51485         * m4/vdprintf.m4: New file.
51486         * m4/vdprintf-posix.m4: New file.
51487         * modules/vdprintf: New file.
51488         * modules/vdprintf-posix: New file.
51489         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
51490         HAVE_VDPRINTF, REPLACE_VDPRINTF.
51491         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
51492         HAVE_VDPRINTF, REPLACE_VDPRINTF.
51493         * doc/posix-functions/vdprintf.texi: Mention the new modules.
51494
51495 2009-01-17  Bruno Haible  <bruno@clisp.org>
51496
51497         Fix replacement of fopen on mingw.
51498         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
51499         mingw.
51500
51501 2009-01-17  Bruno Haible  <bruno@clisp.org>
51502
51503         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
51504         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
51505
51506 2009-01-17  Bruno Haible  <bruno@clisp.org>
51507
51508         Avoid test-fflush2.sh failure on mingw.
51509         * tests/test-fflush2.c: Include binary-io.h.
51510         (main): Put standard input into binary mode.
51511         * modules/fflush-tests (Depends-on): Add binary-io.
51512
51513 2009-01-17  Bruno Haible  <bruno@clisp.org>
51514
51515         * lib/wchar.in.h: In another particular situation, include only the
51516         system's <wchar.h> file.
51517         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
51518         Reported by Albert Chin-A-Young <china@thewrittenword.com>
51519         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
51520
51521 2009-01-17  Bruno Haible  <bruno@clisp.org>
51522
51523         Support for stripping executables in --enable-relocatable.
51524         * build-aux/install-reloc: Expect one more argument, or an environment
51525         variable RELOC_STRIP_PROG. If set, strip the destination program and
51526         its wrapper.
51527         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
51528         RELOC_STRIP_PROG.
51529         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
51530         to set RELOCATABLE_STRIP.
51531         * NEWS: Mention the new Makefile requirement.
51532
51533 2009-01-17  Bruno Haible  <bruno@clisp.org>
51534
51535         * build-aux/install-reloc: Remove debugging information left over by
51536         C compiler on MacOS X.
51537
51538 2009-01-17  Bruno Haible  <bruno@clisp.org>
51539
51540         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
51541         * lib/progreloc.c (find_executable): Fix type of pointer passed to
51542         _NSGetExecutablePath.
51543
51544 2009-01-16  Jim Meyering  <meyering@redhat.com>
51545
51546         strerror: avoid warnings about discarding "const"
51547         * lib/strerror.c (rpl_strerror): Instead of returning a const
51548         string from each and every "case", use a variable, and add a single
51549         cast after the switch.
51550
51551 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
51552
51553         * lib/arpa_inet.in.h: Add extern "C" block for C++.
51554
51555 2009-01-16  Bruno Haible  <bruno@clisp.org>
51556
51557         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
51558         array initializer syntax that also works in C++ mode.
51559         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51560
51561 2009-01-16  Jim Meyering  <meyering@redhat.com>
51562
51563         poll: suppress a warning
51564         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
51565         to ignore "...unsigned expression < 0 is always false" warnings.
51566
51567 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
51568
51569         poll: remove declarations of unused variables
51570         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
51571         sockbuf and optlen.
51572
51573 2009-01-15  Bruno Haible  <bruno@clisp.org>
51574
51575         Make fflush-after-ungetc POSIX compliant on BSD systems.
51576         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
51577         (clear_ungetc_buffer): Implement also for other systems.
51578         (rpl_fflush): On glibc systems, invoke
51579         clear_ungetc_buffer_preserving_position. Otherwise, invoke
51580         clear_ungetc_buffer after fetching the stream's position, not before.
51581
51582 2009-01-15  Bruno Haible  <bruno@clisp.org>
51583
51584         Make fflush-after-ungetc POSIX compliant on glibc systems.
51585         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
51586         after ungetc.
51587         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
51588         (rpl_fflush): On glibc systems, simply call the system's fflush
51589         function after clearing the ungetc buffer.
51590         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
51591         Instead, lseek only to the end of file, then use the system's fseeko
51592         for the rest. On glibc systems, reset the EOF indicator bit.
51593
51594 2009-01-15  Jim Meyering  <meyering@redhat.com>
51595
51596         openmp.m4: revert quote-adding change, for portability to older autoconf
51597         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
51598         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
51599         Simon Josefsson noticed the problem when using autoconf-2.61.
51600
51601 2009-01-15  Bruno Haible  <bruno@clisp.org>
51602
51603         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
51604         * tests/test-fflush2.c (ASSERT): Always fail.
51605         (main): Add two tests for fflush() after ungetc(), taking into account
51606         the Austin Group's clarification.
51607         Suggested by Eric Blake.
51608
51609 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
51610
51611         mktime.m4: remove K&R-style function prototypes
51612         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
51613         for the Sun C++ compiler.
51614
51615 2009-01-14  Bruno Haible  <bruno@clisp.org>
51616
51617         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
51618         while including <wchar.h>.
51619         * lib/wchar.in.h: In two particular situations on HP-UX, include only
51620         the system's <wchar.h> file.
51621         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51622
51623 2009-01-14  Bruno Haible  <bruno@clisp.org>
51624
51625         * m4/csharp.m4: Don't mention gettext on the serial number line.
51626         * m4/csharpexec.m4: Likewise.
51627         * m4/eaccess.m4: Likewise.
51628         * m4/javaexec.m4: Likewise.
51629         * m4/sig_atomic_t.m4: Likewise.
51630         * m4/tmpdir.m4: Likewise.
51631         * m4/intldir.m4: Bump gettext version.
51632         * m4/lib-ld.m4: Likewise.
51633
51634 2009-01-14  Bruno Haible  <bruno@clisp.org>
51635
51636         * lib/progname.c (set_program_name): Add more comments.
51637         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
51638
51639 2009-01-14  Simon Josefsson  <simon@josefsson.org>
51640
51641         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
51642         were sys/stat.h does not define it.
51643
51644 2009-01-14  Jim Meyering  <meyering@redhat.com>
51645
51646         many *.m4 files: improve m4 quoting
51647         99% of this change was performed by running the following commands:
51648         git ls-files | grep '\.m4$' | xargs perl -pi \
51649           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
51650           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
51651           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
51652           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
51653         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
51654         The remainder were to add Copyright dates, increment serial numbers,
51655         undo some changes in comments, exclude m4/intl.m4, and add quotes
51656         around the "1" in ",1" where the unusual spacing prohibited the
51657         above regexps from doing the job.  For more details, see
51658         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
51659         * m4/acl.m4: Modified.
51660         * m4/afs.m4: Likewise.
51661         * m4/alloca.m4: Likewise.
51662         * m4/argp.m4: Likewise.
51663         * m4/argz.m4: Likewise.
51664         * m4/atexit.m4: Likewise.
51665         * m4/bison-i18n.m4: Likewise.
51666         * m4/bison.m4: Likewise.
51667         * m4/byteswap.m4: Likewise.
51668         * m4/c-stack.m4: Likewise.
51669         * m4/c-strtod.m4: Likewise.
51670         * m4/calloc.m4: Likewise.
51671         * m4/canonicalize-lgpl.m4: Likewise.
51672         * m4/chown.m4: Likewise.
51673         * m4/clock_time.m4: Likewise.
51674         * m4/codeset.m4: Likewise.
51675         * m4/copy-file.m4: Likewise.
51676         * m4/csharp.m4: Likewise.
51677         * m4/csharpcomp.m4: Likewise.
51678         * m4/csharpexec.m4: Likewise.
51679         * m4/d-ino.m4: Likewise.
51680         * m4/d-type.m4: Likewise.
51681         * m4/dirfd.m4: Likewise.
51682         * m4/double-slash-root.m4: Likewise.
51683         * m4/eaccess.m4: Likewise.
51684         * m4/eealloc.m4: Likewise.
51685         * m4/environ.m4: Likewise.
51686         * m4/errno_h.m4: Likewise.
51687         * m4/euidaccess.m4: Likewise.
51688         * m4/execute.m4: Likewise.
51689         * m4/fatal-signal.m4: Likewise.
51690         * m4/fchdir.m4: Likewise.
51691         * m4/fcntl_h.m4: Likewise.
51692         * m4/fileblocks.m4: Likewise.
51693         * m4/filenamecat.m4: Likewise.
51694         * m4/findprog.m4: Likewise.
51695         * m4/flexmember.m4: Likewise.
51696         * m4/fnmatch.m4: Likewise.
51697         * m4/fopen.m4: Likewise.
51698         * m4/fpending.m4: Likewise.
51699         * m4/fprintf-posix.m4: Likewise.
51700         * m4/free.m4: Likewise.
51701         * m4/frexp.m4: Likewise.
51702         * m4/frexpl.m4: Likewise.
51703         * m4/fsusage.m4: Likewise.
51704         * m4/ftruncate.m4: Likewise.
51705         * m4/gc-camellia.m4: Likewise.
51706         * m4/gc-random.m4: Likewise.
51707         * m4/gc.m4: Likewise.
51708         * m4/getaddrinfo.m4: Likewise.
51709         * m4/getcwd-abort-bug.m4: Likewise.
51710         * m4/getcwd-path-max.m4: Likewise.
51711         * m4/getdate.m4: Likewise.
51712         * m4/getdomainname.m4: Likewise.
51713         * m4/getgroups.m4: Likewise.
51714         * m4/gethostname.m4: Likewise.
51715         * m4/gethrxtime.m4: Likewise.
51716         * m4/getline.m4: Likewise.
51717         * m4/getloadavg.m4: Likewise.
51718         * m4/getndelim2.m4: Likewise.
51719         * m4/getpass.m4: Likewise.
51720         * m4/gettext.m4: Likewise.
51721         * m4/gettime.m4: Likewise.
51722         * m4/gettimeofday.m4: Likewise.
51723         * m4/gnulib-common.m4: Likewise.
51724         * m4/group-member.m4: Likewise.
51725         * m4/host-os.m4: Likewise.
51726         * m4/iconv.m4: Likewise.
51727         * m4/iconv_open.m4: Likewise.
51728         * m4/inet_ntop.m4: Likewise.
51729         * m4/inet_pton.m4: Likewise.
51730         * m4/inline.m4: Likewise.
51731         * m4/intldir.m4: Likewise.
51732         * m4/intlmacosx.m4: Likewise.
51733         * m4/intmax.m4: Likewise.
51734         * m4/intmax_t.m4: Likewise.
51735         * m4/inttypes.m4: Likewise.
51736         * m4/inttypes_h.m4: Likewise.
51737         * m4/inttypes-pri.m4: Likewise.
51738         * m4/isapipe.m4: Likewise.
51739         * m4/isnand.m4: Likewise.
51740         * m4/isnanf.m4: Likewise.
51741         * m4/isnanl.m4: Likewise.
51742         * m4/javacomp.m4: Likewise.
51743         * m4/javaexec.m4: Likewise.
51744         * m4/jm-winsz1.m4: Likewise.
51745         * m4/jm-winsz2.m4: Likewise.
51746         * m4/lchown.m4: Likewise.
51747         * m4/lcmessage.m4: Likewise.
51748         * m4/ldexpl.m4: Likewise.
51749         * m4/lib-ld.m4: Likewise.
51750         * m4/lib-link.m4: Likewise.
51751         * m4/libsigsegv.m4: Likewise.
51752         * m4/link-follow.m4: Likewise.
51753         * m4/localcharset.m4: Likewise.
51754         * m4/locale-fr.m4: Likewise.
51755         * m4/locale-ja.m4: Likewise.
51756         * m4/locale-tr.m4: Likewise.
51757         * m4/locale-zh.m4: Likewise.
51758         * m4/lock.m4: Likewise.
51759         * m4/longlong.m4: Likewise.
51760         * m4/ls-mntd-fs.m4: Likewise.
51761         * m4/lstat.m4: Likewise.
51762         * m4/malloc.m4: Likewise.
51763         * m4/mathl.m4: Likewise.
51764         * m4/mbrtowc.m4: Likewise.
51765         * m4/mbstate_t.m4: Likewise.
51766         * m4/mbswidth.m4: Likewise.
51767         * m4/memchr.m4: Likewise.
51768         * m4/memcmp.m4: Likewise.
51769         * m4/memcpy.m4: Likewise.
51770         * m4/memmem.m4: Likewise.
51771         * m4/memmove.m4: Likewise.
51772         * m4/mempcpy.m4: Likewise.
51773         * m4/memrchr.m4: Likewise.
51774         * m4/memset.m4: Likewise.
51775         * m4/minmax.m4: Likewise.
51776         * m4/mkdir-slash.m4: Likewise.
51777         * m4/mkdtemp.m4: Likewise.
51778         * m4/mktime.m4: Likewise.
51779         * m4/mmap-anon.m4: Likewise.
51780         * m4/mountlist.m4: Likewise.
51781         * m4/nanosleep.m4: Likewise.
51782         * m4/nls.m4: Likewise.
51783         * m4/nocrash.m4: Likewise.
51784         * m4/open.m4: Likewise.
51785         * m4/openat.m4: Likewise.
51786         * m4/openmp.m4: Likewise.
51787         * m4/pathmax.m4: Likewise.
51788         * m4/perl.m4: Likewise.
51789         * m4/physmem.m4: Likewise.
51790         * m4/pipe.m4: Likewise.
51791         * m4/po.m4: Likewise.
51792         * m4/poll.m4: Likewise.
51793         * m4/posixtm.m4: Likewise.
51794         * m4/posixver.m4: Likewise.
51795         * m4/printf-frexp.m4: Likewise.
51796         * m4/printf-frexpl.m4: Likewise.
51797         * m4/printf-posix.m4: Likewise.
51798         * m4/printf-posix-rpl.m4: Likewise.
51799         * m4/printf.m4: Likewise.
51800         * m4/progtest.m4: Likewise.
51801         * m4/putenv.m4: Likewise.
51802         * m4/readline.m4: Likewise.
51803         * m4/readlink.m4: Likewise.
51804         * m4/readutmp.m4: Likewise.
51805         * m4/realloc.m4: Likewise.
51806         * m4/regex.m4: Likewise.
51807         * m4/relocatable.m4: Likewise.
51808         * m4/relocatable-lib.m4: Likewise.
51809         * m4/rename-dest-slash.m4: Likewise.
51810         * m4/rename.m4: Likewise.
51811         * m4/rmdir-errno.m4: Likewise.
51812         * m4/rmdir.m4: Likewise.
51813         * m4/roundf.m4: Likewise.
51814         * m4/roundl.m4: Likewise.
51815         * m4/rpmatch.m4: Likewise.
51816         * m4/save-cwd.m4: Likewise.
51817         * m4/selinux-selinux-h.m4: Likewise.
51818         * m4/setenv.m4: Likewise.
51819         * m4/settime.m4: Likewise.
51820         * m4/sig2str.m4: Likewise.
51821         * m4/sig_atomic_t.m4: Likewise.
51822         * m4/signalblocking.m4: Likewise.
51823         * m4/signbit.m4: Likewise.
51824         * m4/sigpipe.m4: Likewise.
51825         * m4/sockets.m4: Likewise.
51826         * m4/sockpfaf.m4: Likewise.
51827         * m4/st_dm_mode.m4: Likewise.
51828         * m4/stat-time.m4: Likewise.
51829         * m4/stdbool.m4: Likewise.
51830         * m4/stdint.m4: Likewise.
51831         * m4/stdint_h.m4: Likewise.
51832         * m4/stpcpy.m4: Likewise.
51833         * m4/stpncpy.m4: Likewise.
51834         * m4/strcase.m4: Likewise.
51835         * m4/strchrnul.m4: Likewise.
51836         * m4/strcspn.m4: Likewise.
51837         * m4/strdup.m4: Likewise.
51838         * m4/strftime.m4: Likewise.
51839         * m4/strndup.m4: Likewise.
51840         * m4/strnlen.m4: Likewise.
51841         * m4/strpbrk.m4: Likewise.
51842         * m4/strptime.m4: Likewise.
51843         * m4/strsep.m4: Likewise.
51844         * m4/strtod.m4: Likewise.
51845         * m4/strtoimax.m4: Likewise.
51846         * m4/strtok_r.m4: Likewise.
51847         * m4/strtol.m4: Likewise.
51848         * m4/strtoll.m4: Likewise.
51849         * m4/strtoul.m4: Likewise.
51850         * m4/strtoull.m4: Likewise.
51851         * m4/strtoumax.m4: Likewise.
51852         * m4/strverscmp.m4: Likewise.
51853         * m4/threadlib.m4: Likewise.
51854         * m4/timegm.m4: Likewise.
51855         * m4/tm_gmtoff.m4: Likewise.
51856         * m4/tmpdir.m4: Likewise.
51857         * m4/tmpfile.m4: Likewise.
51858         * m4/tzset.m4: Likewise.
51859         * m4/uintmax_t.m4: Likewise.
51860         * m4/unlinkdir.m4: Likewise.
51861         * m4/unlocked-io.m4: Likewise.
51862         * m4/uptime.m4: Likewise.
51863         * m4/userspec.m4: Likewise.
51864         * m4/utimbuf.m4: Likewise.
51865         * m4/utime.m4: Likewise.
51866         * m4/utimes-null.m4: Likewise.
51867         * m4/utimes.m4: Likewise.
51868         * m4/vararrays.m4: Likewise.
51869         * m4/vasnprintf.m4: Likewise.
51870         * m4/vfprintf-posix.m4: Likewise.
51871         * m4/vprintf-posix.m4: Likewise.
51872         * m4/wait-process.m4: Likewise.
51873         * m4/wchar_t.m4: Likewise.
51874         * m4/wint_t.m4: Likewise.
51875         * m4/write-any-file.m4: Likewise.
51876         * m4/yield.m4: Likewise.
51877
51878 2009-01-13  Bruno Haible  <bruno@clisp.org>
51879
51880         Avoid test-copy-file.sh failures when ACL support insufficient.
51881         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
51882         TESTS_ENVIRONMENT.
51883         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
51884         Reported by Jim Meyering.
51885
51886 2009-01-13  Bruno Haible  <bruno@clisp.org>
51887
51888         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
51889         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
51890         * modules/unistdio/u8-printf-parse (Files): Likewise.
51891         * modules/unistdio/u32-printf-parse (Files): Likewise.
51892         * modules/unistdio/ulc-printf-parse (Files): Likewise.
51893
51894 2009-01-13  Simon Josefsson  <simon@josefsson.org>
51895
51896         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
51897         and m4/inttypes_h.m4 too.
51898
51899 2009-01-12  Eric Blake  <ebb9@byu.net>
51900
51901         tests: IRIX 6.2 cc can't compile -0.0 into .data
51902         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
51903         rather than at compile-time.
51904         * tests/test-floorl.c (minus_zero): Likewise.
51905         * tests/test-frexpl.c (minus_zero): Likewise.
51906         * tests/test-isnan.c (minus_zerol): Likewise.
51907         * tests/test-isnanl.h (minus_zero): Likewise.
51908         * tests/test-ldexpl.c (minus_zero): Likewise.
51909         * tests/test-roundl.c (minus_zero): Likewise.
51910         * tests/test-signbit.c (minus_zerol): Likewise.
51911         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
51912         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
51913         * tests/test-truncl.c (minus_zero): Likewise.
51914         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
51915         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
51916         Reported by Tom G. Christensen and Nelson H. F. Beebe.
51917
51918 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
51919
51920         regex: fix glibc bug 9697
51921         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
51922         handling.
51923
51924 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
51925
51926         regex: fix glibc bug 697
51927         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
51928         being NULL also if there are no backreferences.
51929
51930 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
51931
51932         regex: merge glibc changes
51933         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
51934         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
51935         re_string_skip_chars, re_string_reconstruct): Likewise.
51936         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
51937
51938 2009-01-07  Jim Meyering  <meyering@redhat.com>
51939
51940         poll: filter through cppi
51941         * lib/poll.c: Indent cpp directives to reflect nesting.
51942
51943 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
51944
51945         poll: don't return uninitialized
51946         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
51947
51948 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
51949
51950         avoid compile failure on AIX 6.1
51951         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
51952         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
51953
51954 2009-01-04  Jim Meyering  <meyering@redhat.com>
51955
51956         remove duplicate inclusion of <stdio.h>
51957         * tests/test-fprintf-posix.c: Likewise.
51958         * tests/test-printf-posix.c: Likewise.
51959         * tests/test-snprintf-posix.c: Likewise.
51960         * tests/test-sprintf-posix.c: Likewise.
51961         * tests/test-vasprintf-posix.c: Likewise.
51962         * tests/test-vfprintf-posix.c: Likewise.
51963         * tests/test-vprintf-posix.c: Likewise.
51964         * tests/test-vsnprintf-posix.c: Likewise.
51965         * tests/test-vsprintf-posix.c: Likewise.
51966
51967 2009-01-03  Jim Meyering  <meyering@redhat.com>
51968
51969         gnulib-tool: fix sed-based filtering
51970         * gnulib-tool (func_filter_filelist): Remove extra backslash
51971         in sed_fff_filter definition.
51972
51973 2009-01-02  Jim Meyering  <meyering@redhat.com>
51974
51975         strftime: avoid compilation failure on Solaris 2.6
51976         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
51977         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
51978         Don't #define mbrlen or mbsinit, since now they're guaranteed to
51979         be available.  Reported by Tom G. Christensen.  Details in
51980         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
51981
51982 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51983             Bruno Haible  <bruno@clisp.org>
51984
51985         Speed up gnulib-tool by doing more string processing through shell
51986         built-ins.
51987         * gnulib-tool (fast_func_append): New variable.
51988         (func_remove_prefix, func_remove_suffix): New functions.
51989         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
51990         (func_filter_filelist): New function.
51991         (func_get_dependencies): Use func_remove_suffix instead of sed.
51992         (func_get_automake_snippet): Use func_filter_filelist instead of a
51993         subshell and sed invocation.
51994
51995 2009-01-01  Bruno Haible  <bruno@clisp.org>
51996
51997         Fix a security bug.
51998         * gnulib-tool (func_import, import, update): Don't allow the characters
51999         '"', '$', '`', '\' in macro arguments that become part of commands that
52000         are evaluated.
52001
52002 2009-01-01  Bruno Haible  <bruno@clisp.org>
52003
52004         * gnulib-tool (func_reset_sigpipe): Add more comments.
52005
52006 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52007
52008         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
52009         func_emit_tests_Makefile_am, func_import): Abort loops early if we
52010         already know the answer.
52011
52012 2009-01-01  Jim Meyering  <meyering@redhat.com>
52013
52014         * lib/version-etc.c (version_etc_va): Update copyright year.
52015
52016 2008-12-30  Bruno Haible  <bruno@clisp.org>
52017
52018         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
52019         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
52020         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
52021
52022 2008-12-29  Eric Blake  <ebb9@byu.net>
52023
52024         multiarch: avoid autoconf AC_REQUIRE bug
52025         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
52026         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
52027         2.63 and older.
52028         Reported by Bruno Haible, and analyzed in
52029         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
52030
52031 2008-12-29  Bruno Haible  <bruno@clisp.org>
52032
52033         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
52034         files in subdirectories correctly.
52035         Reported by Ralf Wildenhues.
52036
52037 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52038
52039         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
52040         rather than 'join FILE -', for Solaris join.
52041
52042 2008-12-29  Bruno Haible  <bruno@clisp.org>
52043
52044         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
52045         quoting.
52046         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
52047         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
52048         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
52049         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
52050         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
52051         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
52052         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
52053         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
52054         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
52055         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
52056         * m4/nls.m4 (AM_NLS): Likewise.
52057         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
52058         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
52059         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
52060         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
52061         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
52062         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
52063         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
52064         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
52065         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
52066         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
52067         * m4/xsize.m4 (gl_XSIZE): Likewise.
52068         Suggested by Jim Meyering.
52069
52070 2008-11-17  Bruce Korb  <bkorb@gnu.org>
52071
52072         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
52073         * lib/parse-duration.c: use a switch instead of cascading if's.
52074
52075 2008-12-29  Eric Blake  <ebb9@byu.net>
52076
52077         wchar.h: supply WEOF on Irix 5.3
52078         * lib/wchar.in.h (wint_t): Also supply WEOF.
52079         * lib/wctype.in.h (wint_t): Likewise.
52080         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
52081         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
52082         Reported by Tom G. Christensen.
52083
52084 2008-12-26  Bruno Haible  <bruno@clisp.org>
52085
52086         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
52087         i486, i586, i686.
52088
52089 2008-12-26  Bruno Haible  <bruno@clisp.org>
52090
52091         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
52092
52093 2008-12-26  Bruno Haible  <bruno@clisp.org>
52094
52095         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
52096         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
52097         not __STDC_CONSTANT_MACROS.
52098         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
52099
52100 2008-12-25  Bruno Haible  <bruno@clisp.org>
52101
52102         Add support for universal builds to vasnprintf.
52103         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
52104         universal builds, guess no.
52105         * modules/vasnprintf-posix (Depends-on): Add multiarch.
52106         * modules/vasprintf-posix (Depends-on): Likewise.
52107         * modules/fprintf-posix (Depends-on): Likewise.
52108         * modules/vfprintf-posix (Depends-on): Likewise.
52109         * modules/snprintf-posix (Depends-on): Likewise.
52110         * modules/vsnprintf-posix (Depends-on): Likewise.
52111         * modules/sprintf-posix (Depends-on): Likewise.
52112         * modules/vsprintf-posix (Depends-on): Likewise.
52113         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52114         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52115         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52116         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52117         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52118         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52119         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52120
52121         Add support for universal builds to <inttypes.h>.
52122         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
52123         _SCNu64_PREFIX): In Apple
52124         universal builds, define directly, using _LP64.
52125         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
52126         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
52127         * modules/inttypes (Depends-on): Add multiarch.
52128         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
52129
52130         Add support for universal builds to <stdint.h>.
52131         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
52132         universal builds, define directly, using _LP64.
52133         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
52134         Apple universal builds, don't test for the size and suffix of ptrdiff_t
52135         and size_t.
52136         * modules/stdint (Depends-on): Add multiarch.
52137         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
52138
52139         New module 'multiarch'.
52140         * modules/multiarch: New file.
52141         * m4/multiarch.m4: New file.
52142
52143 2008-12-25  Bruno Haible  <bruno@clisp.org>
52144
52145         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
52146
52147 2008-12-25  Bruno Haible  <bruno@clisp.org>
52148
52149         * modules/btowc (License): Relicense under LGPLv2+.
52150         * modules/mbsinit (License): Likewise.
52151         * modules/mbrtowc (License): Likewise.
52152         * modules/wcrtomb (License): Likewise.
52153         * modules/streq (License): Likewise.
52154         Reported by David Lutterkort <lutter@redhat.com>.
52155
52156 2008-12-23  Bruno Haible  <bruno@clisp.org>
52157
52158         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
52159
52160 2008-12-23  Bruno Haible  <bruno@clisp.org>
52161
52162         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
52163         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
52164         GETADDRINFO_LIB, not in LIBS.
52165         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
52166         * modules/canon-host (Link): Likewise.
52167         * NEWS: Mention the change.
52168         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
52169         GETADDRINFO_LIB.
52170
52171 2008-12-22  Bruno Haible  <bruno@clisp.org>
52172
52173         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
52174         * doc/posix-functions/iswalpha_l.texi: Likewise.
52175         * doc/posix-functions/iswblank_l.texi: Likewise.
52176         * doc/posix-functions/iswcntrl_l.texi: Likewise.
52177         * doc/posix-functions/iswctype_l.texi: Likewise.
52178         * doc/posix-functions/iswdigit_l.texi: Likewise.
52179         * doc/posix-functions/iswgraph_l.texi: Likewise.
52180         * doc/posix-functions/iswlower_l.texi: Likewise.
52181         * doc/posix-functions/iswprint_l.texi: Likewise.
52182         * doc/posix-functions/iswpunct_l.texi: Likewise.
52183         * doc/posix-functions/iswspace_l.texi: Likewise.
52184         * doc/posix-functions/iswupper_l.texi: Likewise.
52185         * doc/posix-functions/iswxdigit_l.texi: Likewise.
52186         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
52187         * doc/posix-functions/open_wmemstream.texi: Likewise.
52188         * doc/posix-functions/swscanf.texi: Likewise.
52189         * doc/posix-functions/towctrans_l.texi: Likewise.
52190         * doc/posix-functions/towlower.texi: Likewise.
52191         * doc/posix-functions/towlower_l.texi: Likewise.
52192         * doc/posix-functions/towupper.texi: Likewise.
52193         * doc/posix-functions/towupper_l.texi: Likewise.
52194         * doc/posix-functions/vfwprintf.texi: Likewise.
52195         * doc/posix-functions/vfwscanf.texi: Likewise.
52196         * doc/posix-functions/vswscanf.texi: Likewise.
52197         * doc/posix-functions/vwprintf.texi: Likewise.
52198         * doc/posix-functions/vwscanf.texi: Likewise.
52199         * doc/posix-functions/wcpcpy.texi: Likewise.
52200         * doc/posix-functions/wcpncpy.texi: Likewise.
52201         * doc/posix-functions/wcscasecmp.texi: Likewise.
52202         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
52203         * doc/posix-functions/wcscoll_l.texi: Likewise.
52204         * doc/posix-functions/wcsdup.texi: Likewise.
52205         * doc/posix-functions/wcsncasecmp.texi: Likewise.
52206         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
52207         * doc/posix-functions/wcsnlen.texi: Likewise.
52208         * doc/posix-functions/wcsnrtombs.texi: Likewise.
52209         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
52210         * doc/posix-functions/wctrans_l.texi: Likewise.
52211         * doc/posix-functions/wctype_l.texi: Likewise.
52212         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
52213         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
52214         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
52215         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
52216         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
52217         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
52218         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
52219         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
52220         * doc/glibc-functions/wcschrnul.texi: Likewise.
52221         * doc/glibc-functions/wcsftime_l.texi: Likewise.
52222         * doc/glibc-functions/wcstod_l.texi: Likewise.
52223         * doc/glibc-functions/wcstof_l.texi: Likewise.
52224         * doc/glibc-functions/wcstol_l.texi: Likewise.
52225         * doc/glibc-functions/wcstold_l.texi: Likewise.
52226         * doc/glibc-functions/wcstoll_l.texi: Likewise.
52227         * doc/glibc-functions/wcstoq.texi: Likewise.
52228         * doc/glibc-functions/wcstoul_l.texi: Likewise.
52229         * doc/glibc-functions/wcstoull_l.texi: Likewise.
52230         * doc/glibc-functions/wcstouq.texi: Likewise.
52231         * doc/glibc-functions/wmempcpy.texi: Likewise.
52232
52233 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
52234             Eric Blake  <ebb9@byu.net>
52235             Paolo Bonzini  <bonzini@gnu.org>
52236             Bruno Haible  <bruno@clisp.org>
52237
52238         Make c-stack work on Haiku.
52239         * lib/c-stack.c (SA_ONSTACK): Define fallback.
52240         (c_stack_action): Use SA_ONSTACK flag.
52241
52242 2008-12-22  Bruno Haible  <bruno@clisp.org>
52243
52244         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
52245
52246 2008-12-22  Bruno Haible  <bruno@clisp.org>
52247
52248         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
52249         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
52250         being overridden.
52251         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
52252         New macros.
52253         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
52254         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
52255         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
52256         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
52257
52258 2008-12-22  Bruno Haible  <bruno@clisp.org>
52259
52260         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
52261         from test code.
52262
52263 2008-12-22  Eric Blake  <ebb9@byu.net>
52264
52265         Avoid gcc warnings on cygwin.
52266         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
52267         Avoid unused variable.
52268         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
52269         Likewise.
52270
52271 2008-12-22  Bruno Haible  <bruno@clisp.org>
52272
52273         Remove HAVE_MBRTOWC conditionals.
52274         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
52275         (mbscasecmp): Assume mbrtowc function.
52276         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
52277         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
52278         * lib/mbschr.c: Include mbuiter.h unconditionally.
52279         (mbschr): Assume mbrtowc function.
52280         * lib/mbscspn.c: Include mbuiter.h unconditionally.
52281         (mbscspn): Assume mbrtowc function.
52282         * lib/mbslen.c: Include mbuiter.h unconditionally.
52283         (mbslen): Assume mbrtowc function.
52284         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
52285         (mbsncasecmp): Assume mbrtowc function.
52286         * lib/mbsnlen.c: Include mbiter.h unconditionally.
52287         (mbsnlen): Assume mbrtowc function.
52288         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
52289         (mbspbrk): Assume mbrtowc function.
52290         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
52291         (mbspcasecmp): Assume mbrtowc function.
52292         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
52293         (mbsrchr): Assume mbrtowc function.
52294         * lib/mbssep.c: Include mbuiter.h unconditionally.
52295         (mbssep): Assume mbrtowc function.
52296         * lib/mbsspn.c: Include mbuiter.h unconditionally.
52297         (mbsspn): Assume mbrtowc function.
52298         * lib/mbsstr.c: Include mbuiter.h unconditionally.
52299         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
52300         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
52301         (mbstok_r): Assume mbrtowc function.
52302         * lib/propername.c: Include mbuiter.h unconditionally.
52303         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
52304         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
52305         (trim2): Assume mbrtowc function.
52306         * lib/mbswidth.c (mbsinit): Remove fallback definition.
52307         (mbsnwidth): Assume mbrtowc function.
52308         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
52309         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
52310         fallback definitions.
52311         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
52312
52313 2008-12-22  Bruno Haible  <bruno@clisp.org>
52314
52315         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
52316
52317 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
52318
52319         * modules/regex: Request emulations for the mb*/wc* functions we need.
52320         * m4/regex.m4: Don't look for those functions here.
52321         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
52322
52323 2008-12-22  Bruno Haible  <bruno@clisp.org>
52324
52325         * modules/fnmatch (Depends-on): Remove duplicated dependency.
52326
52327 2008-12-21  Bruno Haible  <bruno@clisp.org>
52328
52329         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
52330         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
52331         (Include): Remove conditionalization.
52332         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
52333         (Include): Remove conditionalization.
52334         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
52335         (Include): Remove conditionalization.
52336         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
52337         * m4/mbfile.m4 (gl_MBFILE): Likewise.
52338         * NEWS: Mention the change.
52339         Reported by Alan Hourihane <alanh@fairlite.co.uk>
52340         via Sergey Poznyakoff <gray@gnu.org.ua>.
52341
52342 2008-12-21  Bruno Haible  <bruno@clisp.org>
52343
52344         * MODULES.html.sh (Extended multibyte and wide character utilities
52345         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
52346         wcrtomb, wcsrtombs.
52347         (Support for systems lacking POSIX:2008): Add accept, bind, close,
52348         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
52349         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
52350         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
52351
52352 2008-12-21  Bruno Haible  <bruno@clisp.org>
52353
52354         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
52355
52356 2008-12-21  Bruno Haible  <bruno@clisp.org>
52357
52358         * modules/wcsnrtombs-tests: New file.
52359         * tests/test-wcsnrtombs1.sh: New file.
52360         * tests/test-wcsnrtombs2.sh: New file.
52361         * tests/test-wcsnrtombs3.sh: New file.
52362         * tests/test-wcsnrtombs4.sh: New file.
52363         * tests/test-wcsnrtombs.c: New file.
52364
52365         New module 'wcsnrtombs'.
52366         * lib/wchar.in.h (wcsnrtombs): New declaration.
52367         * lib/wcsnrtombs.c: New file.
52368         * lib/wcsrtombs-state.c: New file.
52369         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
52370         (internal_state): Remove variable.
52371         * m4/wcsnrtombs.m4: New file.
52372         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
52373         compilation units.
52374         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
52375         HAVE_WCSNRTOMBS.
52376         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
52377         HAVE_WCSNRTOMBS.
52378         * modules/wcsnrtombs: New file.
52379         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
52380         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
52381
52382 2008-12-21  Bruno Haible  <bruno@clisp.org>
52383
52384         * modules/wcsrtombs-tests: New file.
52385         * tests/test-wcsrtombs1.sh: New file.
52386         * tests/test-wcsrtombs2.sh: New file.
52387         * tests/test-wcsrtombs3.sh: New file.
52388         * tests/test-wcsrtombs4.sh: New file.
52389         * tests/test-wcsrtombs.c: New file.
52390
52391         New module 'wcsrtombs'.
52392         * lib/wchar.in.h (wcsrtombs): New declaration.
52393         * lib/wcsrtombs.c: New file.
52394         * m4/wcsrtombs.m4: New file.
52395         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
52396         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
52397         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
52398         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
52399         * modules/wcsrtombs: New file.
52400         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
52401         bugs.
52402
52403 2008-12-21  Bruno Haible  <bruno@clisp.org>
52404
52405         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
52406         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
52407         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
52408         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
52409         if not correct.
52410         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
52411         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
52412         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
52413         m4/locale-zh.m4, m4/codeset.m4.
52414         * doc/posix-functions/wcrtomb.texi: Document the bug.
52415
52416 2008-12-21  Bruno Haible  <bruno@clisp.org>
52417
52418         Work around a btowc() bug on IRIX 6.5.
52419         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
52420         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
52421         REPLACE_WTOBC if not.
52422         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
52423         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
52424         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
52425
52426 2008-12-21  Bruno Haible  <bruno@clisp.org>
52427
52428         * modules/wcrtomb-tests: New file.
52429         * tests/test-wcrtomb.sh: New file.
52430         * tests/test-wcrtomb.c: New file.
52431
52432         New module 'wcrtomb'.
52433         * lib/wchar.in.h (wcrtomb): New declaration.
52434         * lib/wcrtomb.c: New file.
52435         * m4/wcrtomb.m4: New file.
52436         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
52437         HAVE_WCRTOMB.
52438         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
52439         HAVE_WCRTOMB.
52440         * modules/wcrtomb: New file.
52441         * doc/posix-functions/wcrtomb.texi: Mention the new module.
52442
52443 2008-12-21  Bruno Haible  <bruno@clisp.org>
52444
52445         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
52446         * modules/mbsrtowcs (Files): Likewise.
52447         * modules/wctob (Files): Likewise.
52448         * modules/c-strcase-tests (Files): Likewise.
52449         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
52450         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
52451         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
52452         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
52453         * modules/vasnprintf-posix-tests (Files): Likewise.
52454
52455 2008-12-21  William Pursell  <bill.pursell@gmail.com>
52456
52457         gitlog-to-changelog: pass all command-line arguments to git-log
52458         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
52459         it is sometimes convenient to filter the commits in various ways.
52460         gitlog-to-changelog only allows --since to specify a start date,
52461         but git-log itself supports many other filtering mechanisms.
52462         At the moment, I want to filter by branch name.  Rather than
52463         adding a --branch option to gitlog-to-changelog, it seems more
52464         flexible to simply pass all options directly to git-log and let
52465         git do the work.  Notice that this effectively makes --since a
52466         redundant option for gitlog-to-changelog, but removing it would
52467         require current usage to change since calls would then require
52468         an additional '--'.
52469
52470 2008-12-21  Bruno Haible  <bruno@clisp.org>
52471
52472         * modules/mbsnrtowcs-tests: New file.
52473         * tests/test-mbsnrtowcs1.sh: New file.
52474         * tests/test-mbsnrtowcs2.sh: New file.
52475         * tests/test-mbsnrtowcs3.sh: New file.
52476         * tests/test-mbsnrtowcs4.sh: New file.
52477         * tests/test-mbsnrtowcs.c: New file.
52478
52479         New module 'mbsnrtowcs'.
52480         * lib/wchar.in.h (mbsnrtowcs): New declaration.
52481         * lib/mbsnrtowcs.c: New file.
52482         * lib/mbsrtowcs-state.c: New file.
52483         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
52484         (internal_state): Remove variable.
52485         * m4/mbsnrtowcs.m4: New file.
52486         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
52487         compilation units.
52488         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
52489         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
52490         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
52491         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
52492         * modules/mbsnrtowcs: New file.
52493         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
52494         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
52495         portability problem.
52496
52497 2008-12-21  Bruno Haible  <bruno@clisp.org>
52498
52499         Work around mbsrtowcs bug.
52500         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
52501         (gl_FUNC_MBSRTOWCS): Invoke it.
52502         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
52503         m4/locale-zh.m4.
52504         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
52505
52506 2008-12-21  Bruno Haible  <bruno@clisp.org>
52507
52508         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
52509
52510 2008-12-21  Bruno Haible  <bruno@clisp.org>
52511
52512         Update doc for AIX.
52513         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
52514         16-bit wchar_t type.
52515         * doc/posix-functions/btowc.texi: Likewise.
52516         * doc/posix-functions/fgetwc.texi: Likewise.
52517         * doc/posix-functions/fgetws.texi: Likewise.
52518         * doc/posix-functions/fputwc.texi: Likewise.
52519         * doc/posix-functions/fputws.texi: Likewise.
52520         * doc/posix-functions/fwide.texi: Likewise.
52521         * doc/posix-functions/fwprintf.texi: Likewise.
52522         * doc/posix-functions/fwscanf.texi: Likewise.
52523         * doc/posix-functions/getwchar.texi: Likewise.
52524         * doc/posix-functions/getwc.texi: Likewise.
52525         * doc/posix-functions/iswalnum.texi: Likewise.
52526         * doc/posix-functions/iswalpha.texi: Likewise.
52527         * doc/posix-functions/iswblank.texi: Likewise.
52528         * doc/posix-functions/iswcntrl.texi: Likewise.
52529         * doc/posix-functions/iswctype.texi: Likewise.
52530         * doc/posix-functions/iswdigit.texi: Likewise.
52531         * doc/posix-functions/iswgraph.texi: Likewise.
52532         * doc/posix-functions/iswlower.texi: Likewise.
52533         * doc/posix-functions/iswprint.texi: Likewise.
52534         * doc/posix-functions/iswpunct.texi: Likewise.
52535         * doc/posix-functions/iswspace.texi: Likewise.
52536         * doc/posix-functions/iswupper.texi: Likewise.
52537         * doc/posix-functions/iswxdigit.texi: Likewise.
52538         * doc/posix-functions/mbrtowc.texi: Likewise.
52539         * doc/posix-functions/mbsrtowcs.texi: Likewise.
52540         * doc/posix-functions/mbstowcs.texi: Likewise.
52541         * doc/posix-functions/mbtowc.texi: Likewise.
52542         * doc/posix-functions/putwchar.texi: Likewise.
52543         * doc/posix-functions/putwc.texi: Likewise.
52544         * doc/posix-functions/swprintf.texi: Likewise.
52545         * doc/posix-functions/tolower.texi: Likewise.
52546         * doc/posix-functions/toupper.texi: Likewise.
52547         * doc/posix-functions/towctrans.texi: Likewise.
52548         * doc/posix-functions/ungetwc.texi: Likewise.
52549         * doc/posix-functions/vswprintf.texi: Likewise.
52550         * doc/posix-functions/wcrtomb.texi: Likewise.
52551         * doc/posix-functions/wcscat.texi: Likewise.
52552         * doc/posix-functions/wcschr.texi: Likewise.
52553         * doc/posix-functions/wcscmp.texi: Likewise.
52554         * doc/posix-functions/wcscoll.texi: Likewise.
52555         * doc/posix-functions/wcscpy.texi: Likewise.
52556         * doc/posix-functions/wcscspn.texi: Likewise.
52557         * doc/posix-functions/wcsftime.texi: Likewise.
52558         * doc/posix-functions/wcslen.texi: Likewise.
52559         * doc/posix-functions/wcsncat.texi: Likewise.
52560         * doc/posix-functions/wcsncmp.texi: Likewise.
52561         * doc/posix-functions/wcsncpy.texi: Likewise.
52562         * doc/posix-functions/wcspbrk.texi: Likewise.
52563         * doc/posix-functions/wcsrchr.texi: Likewise.
52564         * doc/posix-functions/wcsrtombs.texi: Likewise.
52565         * doc/posix-functions/wcsspn.texi: Likewise.
52566         * doc/posix-functions/wcsstr.texi: Likewise.
52567         * doc/posix-functions/wcstod.texi: Likewise.
52568         * doc/posix-functions/wcstof.texi: Likewise.
52569         * doc/posix-functions/wcstoimax.texi: Likewise.
52570         * doc/posix-functions/wcstok.texi: Likewise.
52571         * doc/posix-functions/wcstold.texi: Likewise.
52572         * doc/posix-functions/wcstoll.texi: Likewise.
52573         * doc/posix-functions/wcstol.texi: Likewise.
52574         * doc/posix-functions/wcstombs.texi: Likewise.
52575         * doc/posix-functions/wcstoull.texi: Likewise.
52576         * doc/posix-functions/wcstoul.texi: Likewise.
52577         * doc/posix-functions/wcstoumax.texi: Likewise.
52578         * doc/posix-functions/wcswidth.texi: Likewise.
52579         * doc/posix-functions/wcsxfrm.texi: Likewise.
52580         * doc/posix-functions/wctob.texi: Likewise.
52581         * doc/posix-functions/wctomb.texi: Likewise.
52582         * doc/posix-functions/wctrans.texi: Likewise.
52583         * doc/posix-functions/wctype.texi: Likewise.
52584         * doc/posix-functions/wcwidth.texi: Likewise.
52585         * doc/posix-functions/wmemchr.texi: Likewise.
52586         * doc/posix-functions/wmemcmp.texi: Likewise.
52587         * doc/posix-functions/wmemcpy.texi: Likewise.
52588         * doc/posix-functions/wmemmove.texi: Likewise.
52589         * doc/posix-functions/wmemset.texi: Likewise.
52590         * doc/posix-functions/wprintf.texi: Likewise.
52591         * doc/posix-functions/wscanf.texi: Likewise.
52592
52593 2008-12-21  Bruno Haible  <bruno@clisp.org>
52594
52595         Update doc for HP-UX 11.11.
52596         * doc/posix-functions/btowc.texi: Clarify that the function is missing
52597         in HP-UX version 11.00, not in all versions of HP-UX 11.
52598         * doc/posix-functions/fwide.texi: Likewise.
52599         * doc/posix-functions/fwprintf.texi: Likewise.
52600         * doc/posix-functions/fwscanf.texi: Likewise.
52601         * doc/posix-functions/inet_ntop.texi: Likewise.
52602         * doc/posix-functions/inet_pton.texi: Likewise.
52603         * doc/posix-functions/mbrlen.texi: Likewise.
52604         * doc/posix-functions/mbrtowc.texi: Likewise.
52605         * doc/posix-functions/mbsinit.texi: Likewise.
52606         * doc/posix-functions/mbsrtowcs.texi: Likewise.
52607         * doc/posix-functions/swprintf.texi: Likewise.
52608         * doc/posix-functions/swscanf.texi: Likewise.
52609         * doc/posix-functions/towctrans.texi: Likewise.
52610         * doc/posix-functions/vfwprintf.texi: Likewise.
52611         * doc/posix-functions/vswprintf.texi: Likewise.
52612         * doc/posix-functions/vwprintf.texi: Likewise.
52613         * doc/posix-functions/wcrtomb.texi: Likewise.
52614         * doc/posix-functions/wcsrtombs.texi: Likewise.
52615         * doc/posix-functions/wcsstr.texi: Likewise.
52616         * doc/posix-functions/wctob.texi: Likewise.
52617         * doc/posix-functions/wctrans.texi: Likewise.
52618         * doc/posix-functions/wmemchr.texi: Likewise.
52619         * doc/posix-functions/wmemcmp.texi: Likewise.
52620         * doc/posix-functions/wmemcpy.texi: Likewise.
52621         * doc/posix-functions/wmemmove.texi: Likewise.
52622         * doc/posix-functions/wmemset.texi: Likewise.
52623         * doc/posix-functions/wprintf.texi: Likewise.
52624         * doc/posix-functions/wscanf.texi: Likewise.
52625
52626 2008-12-21  Bruno Haible  <bruno@clisp.org>
52627
52628         Work around a portability problem.
52629         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
52630         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
52631
52632 2008-12-20  Bruno Haible  <bruno@clisp.org>
52633
52634         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
52635         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
52636         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
52637         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
52638         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
52639
52640         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
52641         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
52642         set.
52643         (GNULIB_defined_mbstate_t): New macro.
52644         (mbsinit): Redefine if REPLACE_MBSINIT is set.
52645         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
52646         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
52647         reuses the system's mbrtowc function but works around the bugs.
52648         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
52649         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
52650         macros.
52651         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
52652         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
52653         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
52654         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
52655         REPLACE_MBSINIT if mbsinit needs to be overridden.
52656         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
52657         REPLACE_MBSINIT, REPLACE_MBRTOWC.
52658         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
52659         REPLACE_MBSINIT, REPLACE_MBRTOWC.
52660         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
52661         m4/locale-zh.m4.
52662         (Depends): Add mbsinit.
52663         * modules/mbsinit (Depends): Add mbrtowc.
52664         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
52665
52666 2008-12-20  Bruno Haible  <bruno@clisp.org>
52667
52668         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
52669         so that there are no conversion errors on AIX.
52670         * tests/test-mbsrtowcs.c (main): LIkewise.
52671
52672 2008-12-20  Bruno Haible  <bruno@clisp.org>
52673
52674         Work around wctob bug on Solaris <= 9.
52675         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
52676         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
52677         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
52678         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
52679         * modules/wctob (Files): Add m4/locale-fr.m4.
52680         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
52681
52682 2008-12-20  Bruno Haible  <bruno@clisp.org>
52683
52684         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
52685         /dev/null.
52686         * tests/test-select-in.sh: Likewise.
52687         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52688
52689 2008-12-20  Bruno Haible  <bruno@clisp.org>
52690
52691         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
52692         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
52693         Cygwin 1.5.x.
52694
52695 2008-12-20  Bruno Haible  <bruno@clisp.org>
52696
52697         Ensure mbstate_t is defined on HP-UX 11.11.
52698         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
52699         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
52700         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
52701         AC_USE_SYSTEM_EXTENSIONS.
52702         * modules/fnmatch (Depends-on): Add extensions.
52703         * modules/mbrlen (Depends-on): Likewise.
52704         * modules/mbrtowc (Depends-on): Likewise.
52705         * modules/mbsinit (Depends-on): Likewise.
52706         * modules/mbsrtowcs (Depends-on): Likewise.
52707         * modules/mbswidth (Depends-on): Likewise.
52708         * modules/quotearg (Depends-on): Likewise.
52709         * modules/strftime (Depends-on): Likewise.
52710
52711 2008-12-20  Bruno Haible  <bruno@clisp.org>
52712
52713         Ensure wctob is declared on IRIX 6.5.
52714         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
52715         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
52716         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
52717         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
52718         of HAVE_WCTOB.
52719         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
52720         HAVE_WCTOB.
52721         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
52722
52723 2008-12-19  Bruno Haible  <bruno@clisp.org>
52724
52725         * modules/mbsrtowcs-tests: New file.
52726         * tests/test-mbsrtowcs1.sh: New file.
52727         * tests/test-mbsrtowcs2.sh: New file.
52728         * tests/test-mbsrtowcs3.sh: New file.
52729         * tests/test-mbsrtowcs4.sh: New file.
52730         * tests/test-mbsrtowcs.c: New file.
52731
52732         New module 'mbsrtowcs'.
52733         * lib/wchar.in.h (mbsrtowcs): New declaration.
52734         * lib/mbsrtowcs.c: New file.
52735         * m4/mbsrtowcs.m4: New file.
52736         * modules/mbsrtowcs: New file.
52737         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
52738         HAVE_MBSRTOWCS.
52739         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
52740         HAVE_MBSRTOWCS.
52741         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
52742
52743 2008-12-19  Bruno Haible  <bruno@clisp.org>
52744
52745         New module 'mbrlen'.
52746         * lib/wchar.in.h (mbrlen): New declaration.
52747         * lib/mbrlen.c: New file.
52748         * m4/mbrlen.m4: New file.
52749         * modules/mbrlen: New file.
52750         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
52751         HAVE_MBRLEN.
52752         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
52753         HAVE_MBRLEN.
52754         * doc/posix-functions/mbrlen.texi: Document the new module.
52755
52756 2008-12-19  Bruno Haible  <bruno@clisp.org>
52757
52758         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
52759         * modules/mbrtowc (Depends-on): Add verify.
52760         Suggested by Paul Eggert.
52761
52762 2008-12-18  Bruno Haible  <bruno@clisp.org>
52763
52764         * modules/mbsinit-tests: New file.
52765         * tests/test-mbsinit.sh: New file.
52766         * tests/test-mbsinit.c: New file.
52767
52768 2008-12-18  Bruno Haible  <bruno@clisp.org>
52769
52770         * modules/mbrtowc-tests: New file.
52771         * tests/test-mbrtowc1.sh: New file.
52772         * tests/test-mbrtowc2.sh: New file.
52773         * tests/test-mbrtowc3.sh: New file.
52774         * tests/test-mbrtowc4.sh: New file.
52775         * tests/test-mbrtowc.c: New file.
52776
52777         New module 'mbrtowc'.
52778         * lib/wchar.in.h (mbstate_t): Override when the system does not have
52779         mbsinit and mbrtowc.
52780         (mbrtowc): New declaration.
52781         * lib/mbrtowc.c: New file.
52782         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
52783         * modules/mbrtowc: New file.
52784         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
52785         HAVE_MBRTOWC.
52786         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
52787         HAVE_MBRTOWC.
52788         * doc/posix-functions/mbrtowc.texi: Document the new module.
52789
52790 2008-12-18  Bruno Haible  <bruno@clisp.org>
52791
52792         New module 'wctob'.
52793         * lib/wchar.in.h (wctob): New declaration.
52794         * lib/wctob.c: New file.
52795         * m4/wctob.m4: New file.
52796         * modules/wctob: New file.
52797         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
52798         HAVE_WCTOB.
52799         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
52800         * doc/posix-functions/wctob.texi: Document the new module.
52801
52802 2008-12-18  Bruno Haible  <bruno@clisp.org>
52803
52804         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
52805         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
52806
52807 2008-12-18  Simon Josefsson  <simon@josefsson.org>
52808
52809         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
52810         G. Christensen" <tgc@jupiterrise.com>.
52811
52812         * lib/flock.c: Need to include errno.h.  Reported by "Tom
52813         G. Christensen" <tgc@jupiterrise.com>.
52814
52815         * lib/flock.c: Need to include string.h.  Reported by "Tom
52816         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
52817         <ebb9@byu.net>.
52818
52819 2008-12-18  Bruno Haible  <bruno@clisp.org>
52820
52821         * m4/locale-ja.m4: New file, from GNU gettext.
52822
52823 2008-12-17  Bruno Haible  <bruno@clisp.org>
52824
52825         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
52826         Suggested by Eric Blake.
52827
52828 2008-12-17  Bruno Haible  <bruno@clisp.org>
52829
52830         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
52831
52832 2008-12-17  Bruno Haible  <bruno@clisp.org>
52833
52834         * lib/mbsinit.c: Include verify.h. Verify an assumption.
52835         * modules/mbsinit (Depends-on): Add verify.
52836         Suggested by Paul Eggert.
52837
52838 2008-12-17  Bruno Haible  <bruno@clisp.org>
52839
52840         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
52841         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
52842         gl_FUNC_MBRTOWC.
52843         * m4/mbiter.m4 (gl_MBITER): LIkewise.
52844         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
52845         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
52846         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
52847         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
52848         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
52849         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
52850         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
52851         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
52852         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
52853         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
52854         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
52855         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
52856         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
52857         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
52858         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
52859         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
52860         * modules/trim (configure.ac): Likewise.
52861
52862 2008-12-17  Bruno Haible  <bruno@clisp.org>
52863
52864         * modules/btowc-tests: New file.
52865         * tests/test-btowc1.sh: New file.
52866         * tests/test-btowc2.sh: New file.
52867         * tests/test-btowc.c: New file.
52868
52869         New module 'btowc'.
52870         * lib/wchar.in.h (btowc): New declaration.
52871         * lib/btowc.c: New file.
52872         * m4/btowc.m4: New file.
52873         * modules/btowc: New file.
52874         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
52875         HAVE_BTOWC.
52876         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
52877         * doc/posix-functions/btowc.texi: Document the new module.
52878
52879 2008-12-17  Bruno Haible  <bruno@clisp.org>
52880
52881         New module 'mbsinit'.
52882         * lib/wchar.in.h (mbsinit): New declaration.
52883         * lib/mbsinit.c: New file.
52884         * m4/mbsinit.m4: New file.
52885         * modules/mbsinit: New file.
52886         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
52887         HAVE_MBSINIT.
52888         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
52889         HAVE_MBSINIT.
52890         * doc/posix-functions/mbsinit.texi: Document the new module.
52891
52892 2008-12-16  Bruno Haible  <bruno@clisp.org>
52893
52894         * lib/unistd.in.h: Add comment.
52895         * tests/test-environ.c: Don't include <stdlib.h>.
52896
52897 2008-12-16  Bruno Haible  <bruno@clisp.org>
52898
52899         * lib/parse-duration.h (parse_duration): Document return value
52900         convention.
52901         * lib/parse-duration.c: Include specification header first. Add
52902         comments.
52903         (_): Remove macro.
52904         (parse_year_month_day, parse_hour_minute_second): Move side effects
52905         outside of strchr call.
52906         (parse_non_iso8601): Move side effects outside of isspace call.
52907         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
52908         call.
52909
52910 2008-12-16  Bruno Haible  <bruno@clisp.org>
52911
52912         * tests/test-parse-duration.sh: Produce no output when the test
52913         succeeds.
52914
52915 2008-12-16  Bruno Haible  <bruno@clisp.org>
52916
52917         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
52918         expressions.
52919
52920 2008-12-15  Bruno Haible  <bruno@clisp.org>
52921
52922         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
52923         * doc/glibc-functions/flistxattr.texi: Likewise.
52924         * doc/glibc-functions/fopencookie.texi: Likewise.
52925         * doc/glibc-functions/fremovexattr.texi: Likewise.
52926         * doc/glibc-functions/fsetxattr.texi: Likewise.
52927         * doc/glibc-functions/getxattr.texi: Likewise.
52928         * doc/glibc-functions/lgetxattr.texi: Likewise.
52929         * doc/glibc-functions/listxattr.texi: Likewise.
52930         * doc/glibc-functions/llistxattr.texi: Likewise.
52931         * doc/glibc-functions/lremovexattr.texi: Likewise.
52932         * doc/glibc-functions/lsetxattr.texi: Likewise.
52933         * doc/glibc-functions/removexattr.texi: Likewise.
52934         * doc/glibc-functions/setxattr.texi: Likewise.
52935         * doc/posix-functions/open_memstream.texi: Likewise.
52936
52937 2008-12-15  Eric Blake  <ebb9@byu.net>
52938
52939         Update doc for cygwin 1.7.
52940         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
52941         functions.
52942         * doc/posix-functions/fchmodat.texi: Likewise.
52943         * doc/posix-functions/fchownat.texi: Likewise.
52944         * doc/posix-functions/fdopendir.texi: Likewise.
52945         * doc/posix-functions/fmemopen.texi: Likewise.
52946         * doc/posix-functions/freeaddrinfo.texi: Likewise.
52947         * doc/posix-functions/fstatat.texi: Likewise.
52948         * doc/posix-functions/futimens.texi: Likewise.
52949         * doc/posix-functions/gai_strerror.texi: Likewise.
52950         * doc/posix-functions/getaddrinfo.texi: Likewise.
52951         * doc/posix-functions/getnameinfo.texi: Likewise.
52952         * doc/posix-functions/if_freenameindex.texi: Likewise.
52953         * doc/posix-functions/if_indextoname.texi: Likewise.
52954         * doc/posix-functions/if_nameindex.texi: Likewise.
52955         * doc/posix-functions/if_nametoindex.texi: Likewise.
52956         * doc/posix-functions/insque.texi: Likewise.
52957         * doc/posix-functions/linkat.texi: Likewise.
52958         * doc/posix-functions/llrint.texi: Likewise.
52959         * doc/posix-functions/llrintf.texi: Likewise.
52960         * doc/posix-functions/llrintl.texi: Likewise.
52961         * doc/posix-functions/lockf.texi: Likewise.
52962         * doc/posix-functions/lrintl.texi: Likewise.
52963         * doc/posix-functions/mkdirat.texi: Likewise.
52964         * doc/posix-functions/mkfifoat.texi: Likewise.
52965         * doc/posix-functions/mknodat.texi: Likewise.
52966         * doc/posix-functions/mq_close.texi: Likewise.
52967         * doc/posix-functions/mq_getattr.texi: Likewise.
52968         * doc/posix-functions/mq_notify.texi: Likewise.
52969         * doc/posix-functions/mq_open.texi: Likewise.
52970         * doc/posix-functions/mq_receive.texi: Likewise.
52971         * doc/posix-functions/mq_send.texi: Likewise.
52972         * doc/posix-functions/mq_setattr.texi: Likewise.
52973         * doc/posix-functions/mq_timedreceive.texi: Likewise.
52974         * doc/posix-functions/mq_timedsend.texi: Likewise.
52975         * doc/posix-functions/mq_unlink.texi: Likewise.
52976         * doc/posix-functions/open_memstream.texi: Likewise.
52977         * doc/posix-functions/openat.texi: Likewise.
52978         * doc/posix-functions/posix_fadvise.texi: Likewise.
52979         * doc/posix-functions/posix_fallocate.texi: Likewise.
52980         * doc/posix-functions/posix_madvise.texi: Likewise.
52981         * doc/posix-functions/posix_memalign.texi: Likewise.
52982         * doc/posix-functions/posix_openpt.texi: Likewise.
52983         * doc/posix-functions/readlinkat.texi: Likewise.
52984         * doc/posix-functions/remque.texi: Likewise.
52985         * doc/posix-functions/renameat.texi: Likewise.
52986         * doc/posix-functions/rintl.texi: Likewise.
52987         * doc/posix-functions/sem_unlink.texi: Likewise.
52988         * doc/posix-functions/shm_open.texi: Likewise.
52989         * doc/posix-functions/shm_unlink.texi: Likewise.
52990         * doc/posix-functions/signgam.texi: Likewise.
52991         * doc/posix-functions/sigset.texi: Likewise.
52992         * doc/posix-functions/stpcpy.texi: Likewise.
52993         * doc/posix-functions/stpncpy.texi: Likewise.
52994         * doc/posix-functions/strerror.texi: Likewise.
52995         * doc/posix-functions/strtod.texi: Likewise.
52996         * doc/posix-functions/symlinkat.texi: Likewise.
52997         * doc/posix-functions/unlinkat.texi: Likewise.
52998         * doc/posix-functions/utimensat.texi: Likewise.
52999         * doc/glibc-functions/bindresvport.texi: Likewise.
53000         * doc/glibc-functions/dn_expand.texi: Likewise.
53001         * doc/glibc-functions/exp10.texi: Likewise.
53002         * doc/glibc-functions/exp10f.texi: Likewise.
53003         * doc/glibc-functions/fgetxattr.texi: Likewise.
53004         * doc/glibc-functions/flistxattr.texi: Likewise.
53005         * doc/glibc-functions/fopencookie.texi: Likewise.
53006         * doc/glibc-functions/freeifaddrs.texi: Likewise.
53007         * doc/glibc-functions/fremovexattr.texi: Likewise.
53008         * doc/glibc-functions/fsetxattr.texi: Likewise.
53009         * doc/glibc-functions/getifaddrs.texi: Likewise.
53010         * doc/glibc-functions/getxattr.texi: Likewise.
53011         * doc/glibc-functions/lgetxattr.texi: Likewise.
53012         * doc/glibc-functions/listxattr.texi: Likewise.
53013         * doc/glibc-functions/llistxattr.texi: Likewise.
53014         * doc/glibc-functions/lremovexattr.texi: Likewise.
53015         * doc/glibc-functions/lsetxattr.texi: Likewise.
53016         * doc/glibc-functions/pow10.texi: Likewise.
53017         * doc/glibc-functions/pow10f.texi: Likewise.
53018         * doc/glibc-functions/rcmd_af.texi: Likewise.
53019         * doc/glibc-functions/removexattr.texi: Likewise.
53020         * doc/glibc-functions/res_init.texi: Likewise.
53021         * doc/glibc-functions/res_mkquery.texi: Likewise.
53022         * doc/glibc-functions/res_query.texi: Likewise.
53023         * doc/glibc-functions/res_querydomain.texi: Likewise.
53024         * doc/glibc-functions/res_send.texi: Likewise.
53025         * doc/glibc-functions/rresvport_af.texi: Likewise.
53026         * doc/glibc-functions/setxattr.texi: Likewise.
53027         * doc/glibc-functions/strcasestr.texi: Likewise.
53028
53029 2008-12-15  Bruno Haible  <bruno@clisp.org>
53030
53031         Fix compilation error on OSF/1 4.0.
53032         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
53033         <sys/time.h>, simply delegate to the system header.
53034         Reported by Daniel Richard G. <oss@teragram.com>.
53035
53036 2008-12-15  Bruno Haible  <bruno@clisp.org>
53037
53038         * doc/posix-functions/openat.texi: Mention the 'openat' module.
53039         * doc/posix-functions/fchmodat.texi: Likewise.
53040         * doc/posix-functions/fchownat.texi: Likewise.
53041         * doc/posix-functions/fdopendir.texi: Likewise.
53042         * doc/posix-functions/fstatat.texi: Likewise.
53043         * doc/posix-functions/mkdirat.texi: Likewise.
53044         * doc/posix-functions/unlinkat.texi: Likewise.
53045
53046 2008-12-14  Bruno Haible  <bruno@clisp.org>
53047
53048         Update doc for POSIX:2008.
53049         * doc/posix-functions/faccessat.texi: New file.
53050         * doc/posix-functions/fchmodat.texi: New file.
53051         * doc/posix-functions/fchownat.texi: New file.
53052         * doc/posix-functions/fdopendir.texi: New file.
53053         * doc/posix-functions/fstatat.texi: New file.
53054         * doc/posix-functions/futimens.texi: New file.
53055         * doc/posix-functions/linkat.texi: New file.
53056         * doc/posix-functions/mkdirat.texi: New file.
53057         * doc/posix-functions/mkfifoat.texi: New file.
53058         * doc/posix-functions/mknodat.texi: New file.
53059         * doc/posix-functions/open_wmemstream.texi: New file.
53060         * doc/posix-functions/openat.texi: New file.
53061         * doc/posix-functions/psiginfo.texi: New file.
53062         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
53063         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
53064         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
53065         * doc/posix-functions/readlinkat.texi: New file.
53066         * doc/posix-functions/renameat.texi: New file.
53067         * doc/posix-functions/strerror_l.texi: New file.
53068         * doc/posix-functions/symlinkat.texi: New file.
53069         * doc/posix-functions/unlinkat.texi: New file.
53070         * doc/posix-functions/utimensat.texi: New file.
53071         * doc/gnulib.texi (Function Substitutes): Add these subsections.
53072
53073 2008-12-14  Bruno Haible  <bruno@clisp.org>
53074
53075         Update doc for POSIX:2008.
53076         * doc/posix-functions/alphasort.texi: Renamed from
53077         doc/glibc-functions/alphasort.texi.
53078         * doc/posix-functions/dirfd.texi: Renamed from
53079         doc/glibc-functions/dirfd.texi.
53080         * doc/posix-functions/dprintf.texi: Renamed from
53081         doc/glibc-functions/dprintf.texi.
53082         * doc/posix-functions/duplocale.texi: Renamed from
53083         doc/glibc-functions/duplocale.texi.
53084         * doc/posix-functions/fexecve.texi: Renamed from
53085         doc/glibc-functions/fexecve.texi.
53086         * doc/posix-functions/fmemopen.texi: Renamed from
53087         doc/glibc-functions/fmemopen.texi.
53088         * doc/posix-functions/freelocale.texi: Renamed from
53089         doc/glibc-functions/freelocale.texi.
53090         * doc/posix-functions/getdate_err.texi: Renamed from
53091         doc/glibc-functions/getdate_err.texi.
53092         * doc/posix-functions/isalnum_l.texi: Renamed from
53093         doc/glibc-functions/isalnum_l.texi.
53094         * doc/posix-functions/isalpha_l.texi: Renamed from
53095         doc/glibc-functions/isalpha_l.texi.
53096         * doc/posix-functions/isblank_l.texi: Renamed from
53097         doc/glibc-functions/isblank_l.texi.
53098         * doc/posix-functions/iscntrl_l.texi: Renamed from
53099         doc/glibc-functions/iscntrl_l.texi.
53100         * doc/posix-functions/isdigit_l.texi: Renamed from
53101         doc/glibc-functions/isdigit_l.texi.
53102         * doc/posix-functions/isgraph_l.texi: Renamed from
53103         doc/glibc-functions/isgraph_l.texi.
53104         * doc/posix-functions/islower_l.texi: Renamed from
53105         doc/glibc-functions/islower_l.texi.
53106         * doc/posix-functions/isprint_l.texi: Renamed from
53107         doc/glibc-functions/isprint_l.texi.
53108         * doc/posix-functions/ispunct_l.texi: Renamed from
53109         doc/glibc-functions/ispunct_l.texi.
53110         * doc/posix-functions/isspace_l.texi: Renamed from
53111         doc/glibc-functions/isspace_l.texi.
53112         * doc/posix-functions/isupper_l.texi: Renamed from
53113         doc/glibc-functions/isupper_l.texi.
53114         * doc/posix-functions/iswalnum_l.texi: Renamed from
53115         doc/glibc-functions/iswalnum_l.texi.
53116         * doc/posix-functions/iswalpha_l.texi: Renamed from
53117         doc/glibc-functions/iswalpha_l.texi.
53118         * doc/posix-functions/iswblank_l.texi: Renamed from
53119         doc/glibc-functions/iswblank_l.texi.
53120         * doc/posix-functions/iswcntrl_l.texi: Renamed from
53121         doc/glibc-functions/iswcntrl_l.texi.
53122         * doc/posix-functions/iswctype_l.texi: Renamed from
53123         doc/glibc-functions/iswctype_l.texi.
53124         * doc/posix-functions/iswdigit_l.texi: Renamed from
53125         doc/glibc-functions/iswdigit_l.texi.
53126         * doc/posix-functions/iswgraph_l.texi: Renamed from
53127         doc/glibc-functions/iswgraph_l.texi.
53128         * doc/posix-functions/iswlower_l.texi: Renamed from
53129         doc/glibc-functions/iswlower_l.texi.
53130         * doc/posix-functions/iswprint_l.texi: Renamed from
53131         doc/glibc-functions/iswprint_l.texi.
53132         * doc/posix-functions/iswpunct_l.texi: Renamed from
53133         doc/glibc-functions/iswpunct_l.texi.
53134         * doc/posix-functions/iswspace_l.texi: Renamed from
53135         doc/glibc-functions/iswspace_l.texi.
53136         * doc/posix-functions/iswupper_l.texi: Renamed from
53137         doc/glibc-functions/iswupper_l.texi.
53138         * doc/posix-functions/iswxdigit_l.texi: Renamed from
53139         doc/glibc-functions/iswxdigit_l.texi.
53140         * doc/posix-functions/isxdigit_l.texi: Renamed from
53141         doc/glibc-functions/isxdigit_l.texi.
53142         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
53143         doc/glibc-functions/mbsnrtowcs.texi.
53144         * doc/posix-functions/mkdtemp.texi: Renamed from
53145         doc/glibc-functions/mkdtemp.texi.
53146         * doc/posix-functions/newlocale.texi: Renamed from
53147         doc/glibc-functions/newlocale.texi.
53148         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
53149         doc/glibc-functions/nl_langinfo_l.texi.
53150         * doc/posix-functions/open_memstream.texi: Renamed from
53151         doc/glibc-functions/open_memstream.texi.
53152         * doc/posix-functions/opterr.texi: Renamed from
53153         doc/glibc-functions/opterr.texi.
53154         * doc/posix-functions/optind.texi: Renamed from
53155         doc/glibc-functions/optind.texi.
53156         * doc/posix-functions/optopt.texi: Renamed from
53157         doc/glibc-functions/optopt.texi.
53158         * doc/posix-functions/psignal.texi: Renamed from
53159         doc/glibc-functions/psignal.texi.
53160         * doc/posix-functions/scandir.texi: Renamed from
53161         doc/glibc-functions/scandir.texi.
53162         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
53163         doc/glibc-functions/sched_get_priority_min.texi.
53164         * doc/posix-functions/signgam.texi: Renamed from
53165         doc/glibc-functions/signgam.texi.
53166         * doc/posix-functions/stpcpy.texi: Renamed from
53167         doc/glibc-functions/stpcpy.texi.
53168         * doc/posix-functions/stpncpy.texi: Renamed from
53169         doc/glibc-functions/stpncpy.texi.
53170         * doc/posix-functions/strcasecmp_l.texi: Renamed from
53171         doc/glibc-functions/strcasecmp_l.texi.
53172         * doc/posix-functions/strcoll_l.texi: Renamed from
53173         doc/glibc-functions/strcoll_l.texi.
53174         * doc/posix-functions/strfmon_l.texi: Renamed from
53175         doc/glibc-functions/strfmon_l.texi.
53176         * doc/posix-functions/strftime_l.texi: Renamed from
53177         doc/glibc-functions/strftime_l.texi.
53178         * doc/posix-functions/strncasecmp_l.texi: Renamed from
53179         doc/glibc-functions/strncasecmp_l.texi.
53180         * doc/posix-functions/strndup.texi: Renamed from
53181         doc/glibc-functions/strndup.texi.
53182         * doc/posix-functions/strnlen.texi: Renamed from
53183         doc/glibc-functions/strnlen.texi.
53184         * doc/posix-functions/strsignal.texi: Renamed from
53185         doc/glibc-functions/strsignal.texi.
53186         * doc/posix-functions/strxfrm_l.texi: Renamed from
53187         doc/glibc-functions/strxfrm_l.texi.
53188         * doc/posix-functions/timer_gettime.texi: Renamed from
53189         doc/glibc-functions/timer_gettime.texi.
53190         * doc/posix-functions/tolower_l.texi: Renamed from
53191         doc/glibc-functions/tolower_l.texi.
53192         * doc/posix-functions/toupper_l.texi: Renamed from
53193         doc/glibc-functions/toupper_l.texi.
53194         * doc/posix-functions/towctrans_l.texi: Renamed from
53195         doc/glibc-functions/towctrans_l.texi.
53196         * doc/posix-functions/towlower_l.texi: Renamed from
53197         doc/glibc-functions/towlower_l.texi.
53198         * doc/posix-functions/towupper_l.texi: Renamed from
53199         doc/glibc-functions/towupper_l.texi.
53200         * doc/posix-functions/uselocale.texi: Renamed from
53201         doc/glibc-functions/uselocale.texi.
53202         * doc/posix-functions/vdprintf.texi: Renamed from
53203         doc/glibc-functions/vdprintf.texi.
53204         * doc/posix-functions/wcpcpy.texi:
53205         Renamed from doc/glibc-functions/wcpcpy.texi.
53206         * doc/posix-functions/wcpncpy.texi: Renamed from
53207         doc/glibc-functions/wcpncpy.texi.
53208         * doc/posix-functions/wcscasecmp.texi: Renamed from
53209         doc/glibc-functions/wcscasecmp.texi.
53210         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
53211         doc/glibc-functions/wcscasecmp_l.texi.
53212         * doc/posix-functions/wcscoll_l.texi: Renamed from
53213         doc/glibc-functions/wcscoll_l.texi.
53214         * doc/posix-functions/wcsdup.texi: Renamed from
53215         doc/glibc-functions/wcsdup.texi.
53216         * doc/posix-functions/wcsncasecmp.texi: Renamed from
53217         doc/glibc-functions/wcsncasecmp.texi.
53218         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
53219         doc/glibc-functions/wcsncasecmp_l.texi.
53220         * doc/posix-functions/wcsnlen.texi: Renamed from
53221         doc/glibc-functions/wcsnlen.texi.
53222         * doc/posix-functions/wcsnrtombs.texi: Renamed from
53223         doc/glibc-functions/wcsnrtombs.texi.
53224         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
53225         doc/glibc-functions/wcsxfrm_l.texi.
53226         * doc/posix-functions/wctrans_l.texi: Renamed from
53227         doc/glibc-functions/wctrans_l.texi.
53228         * doc/posix-functions/wctype_l.texi: Renamed from
53229         doc/glibc-functions/wctype_l.texi.
53230         * doc/gnulib.texi (Function Substitutes): Add these subsections.
53231         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
53232         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
53233         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
53234         these subsections.
53235         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
53236         Remove sections.
53237
53238 2008-12-14  Bruno Haible  <bruno@clisp.org>
53239
53240         Update doc for POSIX:2008.
53241         * doc/posix-functions/*.texi: Update URL of POSIX specification.
53242
53243 2008-12-14  Bruno Haible  <bruno@clisp.org>
53244
53245         Update doc for POSIX:2008.
53246         * doc/pastposix-functions/bcmp.texi: Renamed from
53247         doc/posix-functions/bcmp.texi.
53248         * doc/pastposix-functions/bcopy.texi: Renamed from
53249         doc/posix-functions/bcopy.texi.
53250         * doc/pastposix-functions/bsd_signal.texi: Renamed from
53251         doc/posix-functions/bsd_signal.texi.
53252         * doc/pastposix-functions/bzero.texi: Renamed from
53253         doc/posix-functions/bzero.texi.
53254         * doc/pastposix-functions/ecvt.texi: Renamed from
53255         doc/posix-functions/ecvt.texi.
53256         * doc/pastposix-functions/fcvt.texi: Renamed from
53257         doc/posix-functions/fcvt.texi.
53258         * doc/pastposix-functions/ftime.texi: Renamed from
53259         doc/posix-functions/ftime.texi.
53260         * doc/pastposix-functions/gcvt.texi: Renamed from
53261         doc/posix-functions/gcvt.texi.
53262         * doc/pastposix-functions/getcontext.texi: Renamed from
53263         doc/posix-functions/getcontext.texi.
53264         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
53265         doc/posix-functions/gethostbyaddr.texi.
53266         * doc/pastposix-functions/gethostbyname.texi: Renamed from
53267         doc/posix-functions/gethostbyname.texi.
53268         * doc/pastposix-functions/getwd.texi: Renamed from
53269         doc/posix-functions/getwd.texi.
53270         * doc/pastposix-functions/h_errno.texi: Renamed from
53271         doc/posix-functions/h_errno.texi.
53272         * doc/pastposix-functions/index.texi: Renamed from
53273         doc/posix-functions/index.texi.
53274         * doc/pastposix-functions/makecontext.texi: Renamed from
53275         doc/posix-functions/makecontext.texi.
53276         * doc/pastposix-functions/mktemp.texi: Renamed from
53277         doc/posix-functions/mktemp.texi.
53278         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
53279         doc/posix-functions/pthread_attr_getstackaddr.texi.
53280         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
53281         doc/posix-functions/pthread_attr_setstackaddr.texi.
53282         * doc/pastposix-functions/rindex.texi: Renamed from
53283         doc/posix-functions/rindex.texi.
53284         * doc/pastposix-functions/scalb.texi: Renamed from
53285         doc/posix-functions/scalb.texi.
53286         * doc/pastposix-functions/setcontext.texi: Renamed from
53287         doc/posix-functions/setcontext.texi.
53288         * doc/pastposix-functions/swapcontext.texi: Renamed from
53289         doc/posix-functions/swapcontext.texi.
53290         * doc/pastposix-functions/ualarm.texi: Renamed from
53291         doc/posix-functions/ualarm.texi.
53292         * doc/pastposix-functions/usleep.texi: Renamed from
53293         doc/posix-functions/usleep.texi.
53294         * doc/pastposix-functions/vfork.texi: Renamed from
53295         doc/posix-functions/vfork.texi.
53296         * doc/pastposix-functions/wcswcs.texi: Renamed from
53297         doc/posix-functions/wcswcs.texi.
53298         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
53299         (Function Substitutes): Update.
53300
53301 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53302
53303         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
53304         m4/strerror.m4.
53305
53306 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53307             Bruno Haible  <bruno@clisp.org>
53308
53309         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
53310
53311 2008-12-13  Bruno Haible  <bruno@clisp.org>
53312
53313         * modules/strtoull (Depends-on): Remove unistd.
53314
53315 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53316
53317         * modules/strtoull (Depends-on): Add stdlib.
53318
53319 2008-12-11  Simon Josefsson  <simon@josefsson.org>
53320
53321         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
53322
53323 2008-12-10  Jim Meyering  <meyering@redhat.com>
53324
53325         gl_ASSERT: don't say assertions are disabled when they're not
53326         * m4/assert.m4 (gl_ASSERT): Do not make configure report
53327         "checking whether to enable assertions... no", when they are in
53328         fact enabled.  This is solely a bug in the output of configure.
53329         In spite of saying "no", NDEBUG was not defined in that case.
53330         Also, as noted by Eric Blake, leave assertions enabled upon
53331         --enable-assert=INVALID.
53332
53333 2008-12-10  Bruno Haible  <bruno@clisp.org>
53334
53335         Change MODULES.html to refer to POSIX:2008 where possible.
53336         * MODULES.html.sh (POSIX2008_URL): New variable.
53337         (posix_headers): Remove sys/timeb, ucontext.
53338         (posix2001_headers): New variable.
53339         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
53340         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
53341         index, makecontext, mktemp, pthread_attr_getstackaddr,
53342         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
53343         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
53344         (posix2001_functions): New variable.
53345         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
53346         otherwise.
53347
53348 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53349
53350         add missing include to parse-duration.c
53351         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
53352         * modules/parse-duration (Depends-on): Add xalloc.
53353
53354         fix sed script reading maint.mk
53355         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
53356         (syntax-check-rules): Use it.
53357
53358 2008-12-09  Bruno Haible  <bruno@clisp.org>
53359
53360         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
53361         MacOS X 10.4/PowerPC.
53362         Reported by Simon Josefsson.
53363
53364 2008-12-08  Jim Meyering  <meyering@redhat.com>
53365
53366         work around mingw's lack of some S_IF definitions
53367         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
53368         Reported by Simon Josefsson.
53369
53370 2008-12-08  Bruno Haible  <bruno@clisp.org>
53371
53372         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
53373         applied to variables. Needed on MacOS X 10.4/PowerPC.
53374         Reported by Simon Josefsson.
53375
53376 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
53377         and Eric Blake  <ebb9@byu.net>
53378
53379         assert: honor --enable-assert
53380         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
53381         order to honor --enable-assert, rather than treating it as a
53382         synonym for --disable-assert.
53383
53384 2008-12-08  Jim Meyering  <meyering@redhat.com>
53385
53386         * lib/posixtm.c: Remove now-useless declaration of mktime.
53387
53388         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
53389
53390 2008-12-07  Bruno Haible  <bruno@clisp.org>
53391
53392         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
53393         test_once): Mark functions as static.
53394         * tests/test-tls.c (test_tls): Likewise.
53395
53396 2008-12-07  Bruno Haible  <bruno@clisp.org>
53397
53398         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
53399         iconv_register_autodetect.
53400
53401 2008-12-07  Jim Meyering  <meyering@redhat.com>
53402
53403         posixtm.c: avoid a warning
53404         * lib/posixtm.c (posixtime): Don't initialize tm0.
53405         It's no longer needed to placate gcc4's -Wuninitialized,
53406         and the attempt to placate would elicit a new warning.
53407
53408         unicodeio.c: mark unused parameters
53409         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
53410         (fallback_failure_callback): Likewise.
53411
53412 2008-12-07  Bruno Haible  <bruno@clisp.org>
53413
53414         * gnulib-tool (func_create_testdir): When building the tests
53415         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
53416         Reported by Simon Josefsson.
53417
53418 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53419
53420         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
53421
53422 2008-12-06  Bruno Haible  <bruno@clisp.org>
53423
53424         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
53425         Suggested by Eric Blake.
53426
53427 2008-12-06  Bruno Haible  <bruno@clisp.org>
53428
53429         Fix a c-stack test failure on MacOS X.
53430         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
53431         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
53432         handler for SIGBUS as well.
53433         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
53434         install a signal handler for SIGBUS as well.
53435         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
53436
53437 2008-12-06  Bruno Haible  <bruno@clisp.org>
53438
53439         Advocacy documentation.
53440         * doc/gnulib-intro.texi (Benefits): New section.
53441         * doc/gnulib.texi: Update.
53442
53443 2008-12-06  Bruno Haible  <bruno@clisp.org>
53444
53445         Document the 'manywarnings' module.
53446         * doc/manywarnings.texi: New file.
53447         * doc/gnulib.texi: Include it.
53448
53449 2008-12-05  Eric Blake  <ebb9@byu.net>
53450
53451         tests: silence some gcc warnings
53452         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
53453         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
53454         type mismatches.
53455
53456 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53457             Bruno Haible  <bruno@clisp.org>
53458
53459         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
53460
53461 2008-11-29  Jim Meyering  <meyering@redhat.com>
53462
53463         unicodeio.c: mark unused parameters
53464         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
53465         (fallback_failure_callback): Likewise.
53466
53467         fts: fix a thinko
53468         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
53469         (set_stat_type): Return S_IF*-valued "type" directly.
53470         Prompted by James Youngman's spotting a related bug.
53471         Confirmed by further testing through find.
53472
53473         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
53474         * lib/fts.c (D_TYPE): Define.
53475         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
53476         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
53477         (s_ifmt_shift_bits): New function.
53478         (set_stat_type): New function.
53479         (fts_build): When not calling fts_stat, call set_stat_type
53480         to propagate dirent.d_type info to fts_read caller.
53481         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
53482         fts_statp->st_mode type information may be valid.
53483
53484 2008-11-28  Simon Josefsson  <simon@josefsson.org>
53485
53486         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
53487         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
53488         <sds@gnu.org>.
53489
53490 2008-11-20  Bruno Haible  <bruno@clisp.org>
53491
53492         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
53493         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
53494         INCLUDE_NEXT.
53495         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
53496         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
53497         * modules/math (Makefile.am): Substitute
53498         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
53499         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53500
53501 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
53502             Bruno Haible  <bruno@clisp.org>
53503
53504         * lib/stdint.in.h: Define all type macros so that their expansion is
53505         a single typedef'ed token. Fixes a compilation failure in Boost which
53506         does "using ::int8_t;".
53507
53508 2008-11-18  Simon Josefsson  <simon@josefsson.org>
53509
53510         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
53511         gl_MANYWARN_ALL_GCC.
53512         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
53513         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
53514         * modules/manywarnings: New file.
53515         * MODULES.html.sh: Mention manywarnings module.
53516
53517 2008-11-18  Bruno Haible  <bruno@clisp.org>
53518
53519         * doc/gnulib-tool.texi (Unit tests): New section.
53520
53521 2008-11-18  Simon Josefsson  <simon@josefsson.org>
53522
53523         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
53524         paths like 'lib/po/foo.po'.
53525
53526 2008-11-17  Simon Josefsson  <simon@josefsson.org>
53527
53528         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
53529         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
53530
53531 2008-11-17  Simon Josefsson  <simon@josefsson.org>
53532
53533         * m4/warnings.m4: Use CPPFLAGS to really check whether the
53534         parameter works.
53535
53536 2008-11-17  Simon Josefsson  <simon@josefsson.org>
53537
53538         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
53539
53540 2008-11-17  Bruce Korb  <bkorb@gnu.org>
53541
53542         * modules/parse-duration-tests: New file.
53543         * tests/test-parse-duration.sh: New file.
53544         * tests/test-parse-duration.c: New file.
53545
53546         New module 'parse-duration'.
53547         * lib/parse-duration.h: New file.
53548         * lib/parse-duration.c: New file.
53549         * modules/parse-duration: New file.
53550
53551 2008-11-17  Bruno Haible  <bruno@clisp.org>
53552
53553         * tests/test-select-out.sh: Comment out the first pipe test.
53554         Reported by Simon Josefsson.
53555
53556 2008-11-17  Bruno Haible  <bruno@clisp.org>
53557
53558         * modules/getaddrinfo (Depends-on): Add servent, hostent.
53559         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
53560         gl_HOSTENT.
53561
53562 2008-11-17  Bruno Haible  <bruno@clisp.org>
53563
53564         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
53565         -lnetwork and -lnet. Needed for Haiku and BeOS.
53566
53567 2008-11-16  Bruno Haible  <bruno@clisp.org>
53568
53569         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
53570
53571 2008-11-16  Bruno Haible  <bruno@clisp.org>
53572
53573         Avoid test failure on Haiku.
53574         * tests/test-fsync.c: Include <errno.h>.
53575         (main): Don't require that fsync (0) fails.
53576
53577 2008-11-15  Bruno Haible  <bruno@clisp.org>
53578
53579         New module 'hostent'.
53580         * modules/hostent: New file.
53581         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
53582
53583 2008-11-15  Bruno Haible  <bruno@clisp.org>
53584
53585         New module 'servent'.
53586         * modules/servent: New file.
53587         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
53588
53589 2008-11-15  Bruno Haible  <bruno@clisp.org>
53590
53591         Avoid generating same test program with two different rules.
53592         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
53593         test-frexp to test-frexp-nolibm.
53594         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
53595         test-frexpl to test-frexpl-nolibm.
53596
53597 2008-11-15  Bruno Haible  <bruno@clisp.org>
53598
53599         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
53600         $(FREXPL_LIBM).
53601
53602 2008-11-15  Bruno Haible  <bruno@clisp.org>
53603
53604         * lib/netdb.in.h: Activate the definitions also when the system's
53605         <netdb.h> has 'struct addrinfo'.
53606         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
53607         EAI_OVERFLOW or AI_NUMERICSERV.
53608         * doc/posix-headers/netdb.texi: Document the problem.
53609
53610 2008-11-15  Bruno Haible  <bruno@clisp.org>
53611
53612         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
53613
53614         Make the 'sched' module work on platforms where <sched.h> exists but
53615         is incomplete (such as Haiku).
53616         * lib/sched.in.h; Include the system's <sched.h> if it exists.
53617         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
53618         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
53619         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
53620         HAVE_STRUCT_SCHED_PARAM.
53621         * modules/sched (Depends-on): Add include_next.
53622         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
53623         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
53624         * doc/posix-headers/sched.texi: Document the issue.
53625
53626 2008-11-13  Jim Meyering  <meyering@redhat.com>
53627
53628         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
53629         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
53630         test would fail due to the difference in the Report bugs to ...
53631         line.  The expected address is empty, "<>", while the actual
53632         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
53633
53634 2008-11-12  Bruno Haible  <bruno@clisp.org>
53635
53636         lstat: don't compile lstat.c on systems lacking lstat
53637         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
53638         which don't have lstat; this is handled by lib/sys_stat.in.h already.
53639         Reported by Daniel P. Berrange via Jim Meyering.
53640
53641 2008-11-12  Jim Meyering  <meyering@redhat.com>
53642
53643         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
53644
53645 2008-11-12  Simon Josefsson  <simon@josefsson.org>
53646
53647         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
53648         instead.
53649
53650 2008-11-12  Bruno Haible  <bruno@clisp.org>
53651
53652         * lib/unicodeio.c: Include unistr.h.
53653         (utf8_wctomb): Remove function.
53654         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
53655
53656 2008-11-12  Simon Josefsson  <simon@josefsson.org>
53657
53658         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
53659         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
53660         <bruno@clisp.org>.
53661         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
53662
53663 2008-11-12  Simon Josefsson  <simon@josefsson.org>
53664
53665         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
53666         * doc/gnulib.texi: Add section for warnings.
53667
53668 2008-11-11  Bruno Haible  <bruno@clisp.org>
53669
53670         * lib/sockets.h: Add a comment.
53671
53672 2008-11-11  Karl Berry  <karl@gnu.org>
53673
53674         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
53675
53676 2008-11-11  Eric Blake  <ebb9@byu.net>
53677
53678         fdl.texi: avoid git symlinks
53679         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
53680
53681 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
53682
53683         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
53684
53685 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
53686
53687         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
53688         (gl_WARN_ADD): Substitute $2 if literal.
53689
53690 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
53691
53692         * m4/warning.m4: Remove.
53693
53694 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
53695
53696         * m4/warnings.m4: Almost complete rewrite. :-)
53697
53698 2008-11-10  Simon Josefsson  <simon@josefsson.org>
53699
53700         * modules/warnings: New module.
53701         * m4/warnings.m4: New file.
53702         * MODULES.html.sh: Mention warnings module.
53703         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
53704         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53705
53706 2008-11-10  Eric Blake  <ebb9@byu.net>
53707
53708         fdl.texi: make a symlink to the latest version
53709         * doc/standards.texi: Revert today's earlier change.
53710         * doc/fdl-1.2.texi: Rename from old fdl.texi...
53711         * doc/fdl.texi: ...and replace this with a symlink to the newer
53712         fdl-1.3.texi.
53713
53714 2008-11-10  Bruno Haible  <bruno@clisp.org>
53715
53716         * tests/test-select-fd.c (main): Accept the result file name as fourth
53717         argument.
53718         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
53719         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
53720
53721 2008-11-10  Bruno Haible  <bruno@clisp.org>
53722
53723         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
53724         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
53725         as autoconf-substituted macros.
53726         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
53727         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
53728         gl_NETDB_H_DEFAULTS. Set these variables.
53729         * modules/netdb (Makefile.am): Substitute these variables.
53730
53731 2008-11-10  Eric Blake  <ebb9@byu.net>
53732
53733         standards.texi: include correct file for FDL 1.3
53734         * doc/standards.texi (GNU Free Documentation License): Change
53735         include file to pull in FDL 1.3, not 1.2.
53736
53737         fdl.texi: revert accidental change to license
53738         * doc/fdl.texi: This is FDL 1.2, not 1.3.
53739
53740 2008-11-10  Bruno Haible  <bruno@clisp.org>
53741
53742         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
53743         cross-compiling guesses also when the native compile gives no result.
53744
53745 2008-11-10  Bruno Haible  <bruno@clisp.org>
53746
53747         * lib/spawni.c (__spawni): Force variable into the stack.
53748
53749 2008-11-10  Bruno Haible  <bruno@clisp.org>
53750
53751         Add support for Haiku.
53752         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
53753         glibc and BeOS, but also on Haiku.
53754         * lib/fpurge.c (fpurge): Likewise.
53755         * lib/freadable.c (freadable): Likewise.
53756         * lib/freadahead.c (freadahead): Likewise.
53757         * lib/freading.c (freading): Likewise.
53758         * lib/freadptr.c (freadptr): Likewise.
53759         * lib/freadseek.c (freadptrinc): Likewise.
53760         * lib/fseeko.c (rpl_fseeko): Likewise.
53761         * lib/fseterr.c (fseterr): Likewise.
53762         * lib/fwritable.c (fwritable): Likewise.
53763         * lib/fwriting.c (fwriting): Likewise.
53764         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
53765
53766 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
53767
53768         * lib/config.charset: Treat Haiku like BeOS.
53769
53770 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
53771
53772         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
53773         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
53774
53775 2008-11-08  Bruno Haible  <bruno@clisp.org>
53776
53777         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
53778         AC_CACHE_CHECK.
53779
53780 2008-11-08  Bruno Haible  <bruno@clisp.org>
53781
53782         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
53783
53784 2008-11-08  Bruno Haible  <bruno@clisp.org>
53785
53786         * tests/test-select-fd.c: New file.
53787         * tests/test-select-in.sh: New file.
53788         * tests/test-select-out.sh: New file.
53789         * tests/test-select-stdin.c: New file.
53790         * modules/select-tests (Files): Add the new files.
53791         (Depends-on): Add gettimeofday.
53792         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
53793         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
53794         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
53795
53796 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
53797             Bruno Haible  <bruno@clisp.org>
53798
53799         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
53800
53801 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
53802
53803         * build-aux/pmccabe2html: Added support for C++ source files.
53804
53805 2008-11-05  Ben Pfaff  <blp@gnu.org>
53806
53807         Fix lib/close.c build on Windows.
53808         * modules/close (Files): Add lib/w32sock.h.
53809
53810 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
53811
53812         Accept Bison's NEWS format.
53813         * build-aux/announce-gen (print_news_deltas): Tweak
53814         $re_prefix.
53815
53816 2008-11-04  Bruno Haible  <bruno@clisp.org>
53817
53818         * modules/random_r (Maintainer): Add glibc.
53819
53820 2008-11-04  Simon Josefsson  <simon@josefsson.org>
53821
53822         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
53823         by karl@freefriends.org (Karl Berry).
53824         * doc/alloca.texi: Likewise.
53825         * doc/c-ctype.texi: Likewise.
53826         * doc/c-strcase.texi: Likewise.
53827         * doc/c-strcaseeq.texi: Likewise.
53828         * doc/c-strcasestr.texi: Likewise.
53829         * doc/c-strstr.texi: Likewise.
53830         * doc/c-strtod.texi: Likewise.
53831         * doc/c-strtold.texi: Likewise.
53832         * doc/ctime.texi: Likewise.
53833         * doc/error.texi: Likewise.
53834         * doc/fdl.texi: Likewise.
53835         * doc/gcd.texi: Likewise.
53836         * doc/getdate.texi: Likewise.
53837         * doc/gnulib-intro.texi: Likewise.
53838         * doc/gnulib-tool.texi: Likewise.
53839         * doc/gnulib.texi: Likewise.
53840         * doc/inet_ntoa.texi: Likewise.
53841         * doc/maintain.texi: Likewise.
53842         * doc/make-stds.texi: Likewise.
53843         * doc/quote.texi: Likewise.
53844         * doc/regexprops-generic.texi: Likewise.
53845         * doc/standards.texi: Likewise.
53846         * doc/verify.texi: Likewise.
53847         * doc/visibility.texi: Likewise.
53848         * doc/gnulib.texi (GNU Free Documentation License): Include
53849         fdl-1.3.texi instead of fdl.texi.
53850
53851 2008-11-04  Simon Josefsson  <simon@josefsson.org>
53852
53853         * doc/fdl-1.3.texi: New file, from
53854         <http://www.gnu.org/licenses/fdl-1.3.texi>.
53855         * modules/fdl-1.3: Add.
53856         * MODULES.html.sh: Add fdl-1.3.
53857
53858 2008-11-03  Bruno Haible  <bruno@clisp.org>
53859
53860         Make determination of absolute name of header file work with AIX xlc.
53861         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
53862         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
53863         preprocessing.
53864         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
53865         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
53866
53867 2008-11-03  Simon Josefsson  <simon@josefsson.org>
53868
53869         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
53870         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
53871         <ludo@gnu.org>.
53872
53873 2008-11-02  Bruno Haible  <bruno@clisp.org>
53874
53875         Mark 'strpbrk' obsolete.
53876         * modules/strpbrk (Status, Notice): New sections.
53877         * modules/strtok_r (Depends-on): Add strpbrk.
53878
53879 2008-11-02  Bruno Haible  <bruno@clisp.org>
53880
53881         Mark 'strdup' obsolete.
53882         * modules/strdup (Status, Notice): New sections.
53883         * modules/findprog (Depends-on): Add strdup.
53884         * modules/getaddrinfo (Depends-on): Likewise.
53885         * modules/localename (Depends-on): Likewise.
53886         * modules/relocatable-lib (Depends-on): Likewise.
53887         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
53888         * modules/relocatable-prog (Depends-on): Likewise.
53889         * modules/trim (Depends-on): Likewise.
53890         * modules/unictype/gen-ctype (Depends-on): Likewise.
53891         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
53892
53893 2008-11-02  Bruno Haible  <bruno@clisp.org>
53894
53895         Mark 'strcspn' obsolete.
53896         * modules/strcspn (Status, Notice): New sections.
53897
53898 2008-11-02  Bruno Haible  <bruno@clisp.org>
53899
53900         Mark 'rmdir' obsolete.
53901         * modules/rmdir (Status, Notice): New sections.
53902         * modules/clean-temp (Depends-on): Add rmdir.
53903         * modules/openat (Depends-on): Likewise.
53904
53905 2008-11-02  Bruno Haible  <bruno@clisp.org>
53906
53907         Mark 'raise' obsolete.
53908         * modules/raise (Status, Notice): New sections.
53909         (Include): Specify <signal.h>.
53910         * modules/stdio (Depends-on): Add raise.
53911         * modules/write (Depends-on): Likewise.
53912
53913 2008-11-02  Bruno Haible  <bruno@clisp.org>
53914
53915         Mark 'memset' obsolete.
53916         * modules/memset (Status, Notice): New sections.
53917
53918 2008-11-02  Bruno Haible  <bruno@clisp.org>
53919
53920         Mark 'memmove' obsolete.
53921         * modules/memmove (Status, Notice): New sections.
53922         * modules/argp (Depends-on): Add memmove.
53923         * modules/argz (Depends-on): Likewise.
53924         * modules/canonicalize (Depends-on): Likewise.
53925         * modules/canonicalize-lgpl (Depends-on): Likewise.
53926         * modules/fts (Depends-on): Likewise.
53927         * modules/getcwd (Depends-on): Likewise.
53928         * modules/human (Depends-on): Likewise.
53929         * modules/regex (Depends-on): Likewise.
53930         * modules/striconveh (Depends-on): Likewise.
53931         * modules/trim (Depends-on): Likewise.
53932         * modules/unistr/u8-move (Depends-on): Likewise.
53933         * modules/unistr/u16-move (Depends-on): Likewise.
53934         * modules/unistr/u32-move (Depends-on): Likewise.
53935
53936 2008-11-02  Bruno Haible  <bruno@clisp.org>
53937
53938         Mark 'memcpy' obsolete.
53939         * modules/memcpy (Status, Notice): New sections.
53940
53941 2008-11-02  Bruno Haible  <bruno@clisp.org>
53942
53943         Mark 'memcmp' obsolete.
53944         * modules/memcmp (Status, Notice): New sections.
53945         * modules/argmatch (Depends-on): Add memchr.
53946         * modules/backupfile (Depends-on): Likewise.
53947         * modules/c-strcasestr (Depends-on): Likewise.
53948         * modules/crypto/des (Depends-on): Likewise.
53949         * modules/csharpcomp (Depends-on): Likewise.
53950         * modules/fnmatch (Depends-on): Likewise.
53951         * modules/git-merge-changelog (Depends-on): Likewise.
53952         * modules/isnand (Depends-on): Likewise.
53953         * modules/isnand-nolibm (Depends-on): Likewise.
53954         * modules/isnanf (Depends-on): Likewise.
53955         * modules/isnanf-nolibm (Depends-on): Likewise.
53956         * modules/isnanl (Depends-on): Likewise.
53957         * modules/isnanl-nolibm (Depends-on): Likewise.
53958         * modules/mbchar (Depends-on): Likewise.
53959         * modules/memcoll (Depends-on): Likewise.
53960         * modules/quotearg (Depends-on): Likewise.
53961         * modules/regex (Depends-on): Likewise.
53962         * modules/relocatable-prog (Depends-on): Likewise.
53963         * modules/same (Depends-on): Likewise.
53964         * modules/signbit (Depends-on): Likewise.
53965         * modules/strcasestr-simple (Depends-on): Likewise.
53966         * modules/unictype/gen-ctype (Depends-on): Likewise.
53967         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
53968         * modules/uniname/uniname (Depends-on): Likewise.
53969         * modules/unistr/u8-cmp (Depends-on): Likewise.
53970
53971 2008-11-02  Bruno Haible  <bruno@clisp.org>
53972
53973         Mark 'memchr' obsolete.
53974         * modules/memchr (Status, Notice): New sections.
53975         * modules/argp (Depends-on): Add memchr.
53976         * modules/base64 (Depends-on): Likewise.
53977         * modules/c-strcasestr (Depends-on): Likewise.
53978         * modules/chdir-long (Depends-on): Likewise.
53979         * modules/fnmatch (Depends-on): Likewise.
53980         * modules/getsubopt (Depends-on): Likewise.
53981         * modules/git-merge-changelog (Depends-on): Likewise.
53982         * modules/glob (Depends-on): Likewise.
53983         * modules/strcasestr-simple (Depends-on): Likewise.
53984         * modules/strnlen (Depends-on): Likewise.
53985
53986 2008-11-02  Bruno Haible  <bruno@clisp.org>
53987
53988         Mark 'atexit' obsolete.
53989         * modules/atexit (Status, Notice): New sections.
53990         * modules/chdir-long (Depends-on): Add atexit.
53991         * modules/wait-process (Depends-on): Likewise.
53992
53993 2008-11-02  Bruno Haible  <bruno@clisp.org>
53994
53995         * gnulib-tool: New option --with-obsolete.
53996         (func_usage): Document it.
53997         (func_modules_transitive_closure): Drop obsolete dependencies if
53998         incobsolete is not true.
53999         (func_import): Read and save the incobsolete variable to the cache.
54000
54001 2008-11-02  Bruno Haible  <bruno@clisp.org>
54002
54003         * modules/TEMPLATE-EXTENDED: New field 'Status'.
54004         * gnulib-tool: New option --extract-status.
54005         (func_usage): Document it.
54006         (sed_extract_prog): Recognize it.
54007         (func_get_status): New function.
54008
54009 2008-10-30  Simon Josefsson  <simon@josefsson.org>
54010
54011         * modules/sockets (License): Change from LGPL to LGPLv2+.
54012
54013 2008-10-28  Simon Josefsson  <simon@josefsson.org>
54014
54015         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
54016
54017 2008-10-28  Simon Josefsson  <simon@josefsson.org>
54018
54019         * MODULES.html.sh (Support for systems lacking POSIX:2001):
54020         Mention times and sys_times.
54021         * modules/sys_times, modules/sys_times-tests: New modules.
54022         * modules/times, modules/times-tests: Likewise
54023         * m4/sys_times_h.m4: New file.
54024         * lib/sys_times.in.h: Likewise
54025         * lib/times.c: Likewise.
54026         * tests/test-sys_times.c: Likewise.
54027         * tests/test-times.c: Likewise.
54028         * doc/posix-headers/sys_times.texi: Update.
54029         * doc/posix-functions/times.texi: Update.
54030
54031 2008-10-28  Jim Meyering  <meyering@redhat.com>
54032
54033         * modules/tempname (Depends-on): Add lstat.
54034
54035         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
54036
54037 2008-10-28  Simon Josefsson  <simon@josefsson.org>
54038
54039         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
54040         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
54041         using idiom used elsewhere in gnulib.
54042
54043 2008-10-27  Jim Meyering  <meyering@redhat.com>
54044
54045         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
54046
54047 2008-10-27  Simon Josefsson  <simon@josefsson.org>
54048
54049         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
54050         TESTS_ENVIRONMENT, for shell scripts that needs to call built
54051         programs.
54052         * tests/test-argp-2.sh: Use $EXEEXT when needed.
54053
54054 2008-10-27  Simon Josefsson  <simon@josefsson.org>
54055
54056         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
54057
54058 2008-10-27  Bruno Haible  <bruno@clisp.org>
54059
54060         * tests/test-lstat.c: Include <stdio.h>.
54061
54062 2008-10-27  Simon Josefsson  <simon@josefsson.org>
54063
54064         * modules/lstat-tests: New module.
54065         * tests/test-lstat.c: New file.
54066
54067 2008-10-26  Jim Meyering  <meyering@redhat.com>
54068
54069         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
54070
54071 2008-10-26  Simon Josefsson  <simon@josefsson.org>
54072             Bruno Haible  <bruno@clisp.org>
54073
54074         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
54075         * modules/configmake (Include): Add a note that the include must come
54076         after all system headers.
54077         * lib/javaversion.c: Include configmake.h after all other includes.
54078
54079 2008-10-26  Bruno Haible  <bruno@clisp.org>
54080
54081         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
54082         HAVE_STRUCT_RANDOM_DATA to 1.
54083         (gl_STDLIB_H): Simplify.
54084
54085 2008-10-26  Simon Josefsson  <simon@josefsson.org>
54086
54087         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
54088         substitute HAVE_STRUCT_RANDOM_DATA.
54089         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
54090         random_data.
54091         * modules/stdlib (Makefile.am): Substitute
54092         HAVE_STRUCT_RANDOM_DATA.
54093
54094 2008-10-26  Simon Josefsson  <simon@josefsson.org>
54095
54096         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
54097         * doc/gnulib-intro.texi (Copyright): Likewise.
54098
54099 2008-10-26  Simon Josefsson  <simon@josefsson.org>
54100
54101         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
54102         findings.
54103
54104 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
54105             Bruno Haible  <bruno@clisp.org>
54106
54107         * lib/unistd.in.h: Include <winsock2.h>.
54108         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
54109         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
54110         Provide dummy declarations.
54111         (gethostname): Override.
54112         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
54113         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
54114         gl_PREREQ_SYS_H_WINSOCK2.
54115         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
54116         * doc/posix-functions/gethostname.texi: More details.
54117
54118 2008-10-25  Bruno Haible  <bruno@clisp.org>
54119
54120         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
54121         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
54122         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
54123
54124         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
54125         here ...
54126         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
54127         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
54128         gl_UNISTD_H_DEFAULTS.
54129
54130 2008-10-25  Eric Blake  <ebb9@byu.net>
54131
54132         signbit: avoid spurious compiler failure
54133         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
54134         declarations inside function.
54135
54136 2008-10-24  Simon Josefsson  <simon@josefsson.org>
54137             Bruno Haible  <bruno@clisp.org>
54138
54139         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
54140         * modules/random_r (Depends-on): Add stdint.
54141
54142 2008-10-24  Bruno Haible  <bruno@clisp.org>
54143
54144         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
54145         Eggert.
54146         * modules/strerror (License): Likewise.
54147
54148 2008-10-24  Jim Meyering  <meyering@redhat.com>
54149
54150         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
54151         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
54152
54153 2008-10-24  Eric Blake  <ebb9@byu.net>
54154
54155         getgroups: fix compilation when getgroups is available
54156         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
54157         but with <config.h> override of getgroups disabled.
54158
54159 2008-10-24  Simon Josefsson  <simon@josefsson.org>
54160
54161         * doc/gnulib.texi (Header files): Add note about C++ problems.
54162         Explained by Bruno Haible <bruno@clisp.org>.
54163
54164 2008-10-23  Bruno Haible  <bruno@clisp.org>
54165
54166         Define a dummy SA_NODEFER macro on Interix.
54167         * lib/signal.in.h (SA_NODEFER): Define fallback.
54168         Reported by Aleksey Cheusov <cheusov@tut.by> via
54169         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
54170
54171 2008-10-23  Bruno Haible  <bruno@clisp.org>
54172
54173         * modules/freadahead (License): Change to LGPLv2+.
54174         Suggested by Simon Josefsson.
54175
54176 2008-10-23  Jim Meyering  <meyering@redhat.com>
54177
54178         random_r: new module
54179         * modules/random_r: New file.
54180         * m4/random_r.m4: New file.
54181         * lib/random_r.c: New file, from glibc.
54182         * modules/random_r-tests: New file.
54183         * tests/test-random_r.c: New file.
54184         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
54185          Declare.
54186         (RAND_MAX): Define.
54187         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
54188         * modules/stdlib: Substitute them, too.
54189         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
54190         * doc/glibc-functions/initstate_r.texi: Mention the new module.
54191         * doc/glibc-functions/random_r.texi: Likewise.
54192         * doc/glibc-functions/setstate_r.texi: Likewise.
54193         * doc/glibc-functions/srandom_r.texi: Likewise.
54194         * config/srclist.txt: Mention it.
54195
54196 2008-10-23  David Lutterkort  <lutter@redhat.com>
54197
54198         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
54199         link requirement
54200
54201 2008-10-23  Jim Meyering  <meyering@redhat.com>
54202
54203         selinux-h: mark parameters of stub functions as intentionally unused
54204         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
54205         * lib/se-context.in.h: Likewise.
54206
54207 2008-10-22  Simon Josefsson  <simon@josefsson.org>
54208
54209         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
54210
54211 2008-10-22  Simon Josefsson  <simon@josefsson.org>
54212
54213         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
54214
54215 2008-10-22  Eric Blake  <ebb9@byu.net>
54216
54217         glthread/thread: avoid compiler warning
54218         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
54219         Add unreachable abort to silence compiler.
54220
54221 2008-10-22  Eric Blake  <ebb9@byu.net>
54222
54223         netdb: also supply struct addrinfo for cygwin 1.5.x
54224         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
54225         older cygwin.
54226         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
54227         cygwin.
54228         * doc/posix-headers/netdb.texi (netdb.h): Document this.
54229
54230 2008-10-22  Bruno Haible  <bruno@clisp.org>
54231
54232         * users.txt: Update entry about pspp.
54233
54234 2008-10-21  Bruno Haible  <bruno@clisp.org>
54235
54236         Simplification.
54237         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
54238         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
54239
54240         Simplification.
54241         * lib/ioctl.c (ioctl): Don't undefine.
54242         * lib/socket.c (socket): Don't undefine.
54243
54244         Remove unused module indicator macros.
54245         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
54246         GNULIB_$1 as a C macro.
54247
54248         * doc/posix-functions/close.texi: Undo last change.
54249         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
54250         Windows platforms.
54251
54252 2008-10-21  Bruno Haible  <bruno@clisp.org>
54253
54254         Add gethostname() declaration to <unistd.h>.
54255         * lib/unistd.in.h (gethostname): New declaration.
54256         * lib/gethostname.c: Include <unistd.h>.
54257         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
54258         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
54259         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
54260         and HAVE_GETHOSTNAME.
54261         * modules/gethostname (Depends-on): Add unistd.
54262         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54263         (Include): Specify <unistd.h>.
54264         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
54265         HAVE_GETHOSTNAME.
54266         * tests/test-gethostname.c: Include <unistd.h> first.
54267
54268 2008-10-21  Bruno Haible  <bruno@clisp.org>
54269
54270         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
54271         * modules/select-tests (Depends-on): Likewise.
54272         Reported by Simon Josefsson.
54273
54274 2008-10-21  Simon Josefsson  <simon@josefsson.org>
54275
54276         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
54277         * lib/accept.c: New file, based on winsock.c.
54278         * lib/bind.c: New file, based on winsock.c.
54279         * lib/connect.c: New file, based on winsock.c.
54280         * lib/getpeername.c: New file, based on winsock.c.
54281         * lib/getsockname.c: New file, based on winsock.c.
54282         * lib/getsockopt.c: New file, based on winsock.c.
54283         * lib/ioctl.c: New file, based on winsock.c.
54284         * lib/listen.c: New file, based on winsock.c.
54285         * lib/recv.c: New file, based on winsock.c.
54286         * lib/recvfrom.c: New file, based on winsock.c.
54287         * lib/send.c: New file, based on winsock.c.
54288         * lib/sendto.c: New file, based on winsock.c.
54289         * lib/setsockopt.c: New file, based on winsock.c.
54290         * lib/shutdown.c: New file, based on winsock.c.
54291         * lib/socket.c: New file, based on winsock.c.
54292         * lib/w32sock.h: New file, based on winsock.c.
54293         * lib/winsock.c: Remove file.
54294         * modules/accept: Likewise.
54295         * modules/bind: Likewise.
54296         * modules/connect: Likewise.
54297         * modules/getpeername: Likewise.
54298         * modules/getsockname: Likewise.
54299         * modules/getsockopt: Likewise.
54300         * modules/ioctl: Likewise.
54301         * modules/listen: Likewise.
54302         * modules/recv: Likewise.
54303         * modules/recvfrom: Likewise.
54304         * modules/send: Likewise.
54305         * modules/sendto: Likewise.
54306         * modules/setsockopt: Likewise.
54307         * modules/shutdown: Likewise.
54308         * modules/socket: Use socket.c instead of winsock.c.
54309         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
54310         * doc/posix-functions/accept.texi: Doc fix.
54311         * doc/posix-functions/bind.texi: Doc fix.
54312         * doc/posix-functions/close.texi: Doc fix.
54313         * doc/posix-functions/connect.texi: Doc fix.
54314         * doc/posix-functions/getpeername.texi: Doc fix.
54315         * doc/posix-functions/getsockname.texi: Doc fix.
54316         * doc/posix-functions/getsockopt.texi: Doc fix.
54317         * doc/posix-functions/ioctl.texi: Doc fix.
54318         * doc/posix-functions/listen.texi: Doc fix.
54319         * doc/posix-functions/recv.texi: Doc fix.
54320         * doc/posix-functions/recvfrom.texi: Doc fix.
54321         * doc/posix-functions/send.texi: Doc fix.
54322         * doc/posix-functions/sendto.texi: Doc fix.
54323         * doc/posix-functions/setsockopt.texi: Doc fix.
54324         * doc/posix-functions/shutdown.texi: Doc fix.
54325         * doc/posix-functions/socket.texi: Doc fix.
54326
54327 2008-10-20  Bruno Haible  <bruno@clisp.org>
54328
54329         Take into account the role of SIGABRT_COMPAT on Windows 2008.
54330         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
54331         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
54332         as an alias for SIGABRT.
54333         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
54334         (sigaction): Map it to SIGABRT.
54335         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
54336
54337 2008-10-20  Bruno Haible  <bruno@clisp.org>
54338
54339         * lib/fts.c: Don't include lstat.h.
54340         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
54341
54342         Move the lstat() declaration to <sys/stat.h>.
54343         * lib/lstat.h: Remove file.
54344         * lib/sys_stat.in.h: Add special invocation convention.
54345         (lstat): New declaration.
54346         * lib/lstat.c (orig_lstat): New function.
54347         (rpl_lstat): Use orig_lstat instead of lstat.
54348         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
54349         AC_C_INLINE. Set REPLACE_LSTAT.
54350         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
54351         and REPLACE_LSTAT.
54352         * modules/lstat (Files): Remove lib/lstat.h.
54353         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
54354         (Include): Specify <sys/stat.h> instead of lstat.h.
54355         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
54356         REPLACE_LSTAT.
54357         * NEWS: Mention the change.
54358
54359 2008-10-20  Bruno Haible  <bruno@clisp.org>
54360
54361         * modules/posix_spawn-tests: New file.
54362         * tests/test-posix_spawn3.c: New file.
54363
54364 2008-10-20  Bruno Haible  <bruno@clisp.org>
54365
54366         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
54367         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
54368         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
54369         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
54370         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
54371
54372 2008-10-20  Bruno Haible  <bruno@clisp.org>
54373
54374         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
54375         of posix_spawn on AIX 5.3.
54376
54377 2008-10-20  Bruno Haible  <bruno@clisp.org>
54378
54379         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
54380
54381 2008-10-20  Bruno Haible  <bruno@clisp.org>
54382
54383         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
54384         of AC_LANG_PROGRAM.
54385
54386 2008-10-20  Simon Josefsson  <simon@josefsson.org>
54387
54388         * lib/netdb.in.h: Don't define GNU specific constants until they
54389         are supported or needed.  Reported by Bruno Haible
54390         <bruno@clisp.org>.
54391
54392 2008-10-20  Simon Josefsson  <simon@josefsson.org>
54393
54394         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
54395
54396 2008-10-20  Simon Josefsson  <simon@josefsson.org>
54397
54398         * lib/getaddrinfo.h: Remove file.
54399         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
54400         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
54401         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
54402         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
54403         * modules/netdb: Substitute GNULIB_GETADDRINFO.
54404         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
54405         * tests/test-getaddrinfo.c: Likewise.
54406         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
54407         * NEWS: Mention change.
54408
54409 2008-10-19  Bruno Haible  <bruno@clisp.org>
54410
54411         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
54412
54413 2008-10-19  Bruno Haible  <bruno@clisp.org>
54414
54415         * lib/wait-process.c: Include simply <sys/wait.h>.
54416         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
54417         WIFSTOPPED): Remove fallback definitions.
54418         * modules/wait-process (Depends-on): Add sys_wait.
54419
54420         New module 'sys_wait'.
54421         * modules/sys_wait: New file.
54422         * lib/sys_wait.in.h: New file, partially copied from
54423         lib/wait-process.c.
54424         * m4/sys_wait_h.m4: New file.
54425         * doc/posix-headers/sys_wait.texi: Mention the new module.
54426
54427 2008-10-19  Bruno Haible  <bruno@clisp.org>
54428
54429         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
54430
54431 2008-10-19  Bruno Haible  <bruno@clisp.org>
54432
54433         Assume that waitpid() fills an 'int' status, not a 'union wait'.
54434         * lib/wait-process.c (WAIT_T): Remove type.
54435         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
54436         (wait_subprocess): Update.
54437
54438 2008-10-19  Bruno Haible  <bruno@clisp.org>
54439
54440         New module 'atoll'.
54441         * modules/atoll: New file.
54442         * lib/stdlib.in.h (atoll): New declaration.
54443         * lib/atoll.c: New file, from glibc with modifications.
54444         * m4/atoll.m4: New file.
54445         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
54446         HAVE_ATOLL.
54447         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
54448         * doc/posix-functions/atoll.texi: Mention the new module.
54449
54450 2008-10-19  Bruno Haible  <bruno@clisp.org>
54451
54452         Add strtoull() declaration to <stdlib.h>.
54453         * lib/stdlib.in.h (strtoull): New declaration.
54454         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
54455         Set HAVE_STRTOULL.
54456         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
54457         HAVE_STRTOULL.
54458         * modules/strtoull (Depends-on): Add stdlib.
54459         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54460         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
54461         HAVE_STRTOULL.
54462
54463 2008-10-19  Bruno Haible  <bruno@clisp.org>
54464
54465         Add strtoll() declaration to <stdlib.h>.
54466         * lib/stdlib.in.h (strtoll): New declaration.
54467         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
54468         Set HAVE_STRTOLL.
54469         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
54470         HAVE_STRTOLL.
54471         * modules/strtoll (Depends-on): Add stdlib.
54472         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54473         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
54474
54475 2008-10-19  Bruno Haible  <bruno@clisp.org>
54476
54477         * modules/bcopy (Depends-on): Add strings.
54478         (Include): Specify <strings.h>.
54479
54480 2008-10-19  Bruno Haible  <bruno@clisp.org>
54481
54482         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
54483
54484 2008-10-19  Bruno Haible  <bruno@clisp.org>
54485
54486         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
54487         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
54488         mingw.
54489
54490 2008-10-19  Bruno Haible  <bruno@clisp.org>
54491
54492         * lib/atanl.c: Don't include isnanl.h.
54493         * lib/cosl.c: Likewise.
54494         * lib/ldexpl.c: Likewise.
54495         * lib/logl.c: Likewise.
54496         * lib/sinl.c: Likewise.
54497         * lib/sqrtl.c: Likewise.
54498         * lib/tanl.c: Likewise.
54499
54500         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
54501         * lib/isnanf.h: Remove file.
54502         * lib/isnand.h: Remove file.
54503         * lib/isnanl.h: Remove file.
54504         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
54505         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
54506         macros.
54507         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
54508         HAVE_ISNANF, don't define it as a C macro.
54509         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
54510         HAVE_ISNAND, don't define it as a C macro.
54511         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
54512         HAVE_ISNANL, don't define it as a C macro.
54513         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
54514         HAVE_ISNAN[FDL].
54515         * modules/isnanf (Files): Remove lib/isnanf.h.
54516         (Depends-on): Add math.
54517         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
54518         (Include): Specify <math.h> instead of isnanf.h.
54519         * modules/isnand (Files): Remove lib/isnand.h.
54520         (Depends-on): Add math.
54521         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
54522         (Include): Specify <math.h> instead of isnand.h.
54523         * modules/isnanl (Files): Remove lib/isnanl.h.
54524         (Depends-on): Add math.
54525         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
54526         (Include): Specify <math.h> instead of isnanl.h.
54527         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
54528         HAVE_ISNAN[FDL].
54529         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
54530         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
54531         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
54532         * NEWS: Mention the change.
54533
54534 2008-10-18  Bruno Haible  <bruno@clisp.org>
54535
54536         Add getusershell(), setusershell(), endusershell() declarations to
54537         <unistd.h>.
54538         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
54539         declarations.
54540         * lib/getusershell.c: Include unistd.h.
54541         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
54542         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
54543         HAVE_GETUSERSHELL.
54544         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
54545         and HAVE_GETUSERSHELL.
54546         * modules/getusershell (Depends-on): Add unistd, extensions.
54547         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54548         (Include): Specify <unistd.h>.
54549         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
54550         HAVE_GETUSERSHELL.
54551
54552 2008-10-18  Bruno Haible  <bruno@clisp.org>
54553
54554         Add a getloadavg() declaration to <stdlib.h>.
54555         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
54556         getloadavg declaration.
54557         (getloadavg): New declaration.
54558         * lib/getloadavg.c: Include <stdlib.h> first.
54559         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
54560         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
54561         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
54562         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
54563         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
54564         * modules/getloadavg (Depends-on): Add stdlib, extensions.
54565         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54566         (Include): Specify <stdlib.h>.
54567         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
54568         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
54569
54570 2008-10-18  Bruno Haible  <bruno@clisp.org>
54571
54572         * lib/dirchownmod.c: Don't include lchmod.h.
54573
54574         Move the lchmod() declaration to <sys/stat.h>.
54575         * lib/lchmod.h: Remove file.
54576         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
54577         (lchmod): New declaration, moved here from lib/lchown.h.
54578         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
54579         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
54580         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
54581         and HAVE_LCHMOD.
54582         * modules/lchmod (Files): Remove lib/lchmod.h.
54583         (Depends-on): Add sys_stat, extensions.
54584         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
54585         (Include): Specify <sys/stat.h> instead of lchmod.h.
54586         * modules/sys_stat (Depends-on): Add link-warning.
54587         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
54588         definition of GL_LINK_WARNING.
54589         * NEWS: Mention the change.
54590
54591 2008-10-18  Bruno Haible  <bruno@clisp.org>
54592
54593         * lib/fchdir.c: Don't include dirfd.h.
54594         * lib/fts.c: Likewise.
54595         * lib/getcwd.c: Likewise.
54596         * lib/glob.c: Likewise.
54597
54598         Move the dirfd() declaration to <dirent.h>.
54599         * lib/dirfd.h: Remove file.
54600         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
54601         (dirfd): New declaration.
54602         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
54603         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
54604         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
54605         HAVE_DECL_DIRFD.
54606         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
54607         HAVE_DECL_DIRFD.
54608         * modules/dirfd (Files): Remove lib/dirfd.h.
54609         (Depends-on): Add dirent, extensions.
54610         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
54611         (Include): Specify <dirent.h> instead of dirfd.h.
54612         * modules/dirent (Depends-on): Add link-warning.
54613         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
54614         definition of GL_LINK_WARNING.
54615         * NEWS: Mention the change.
54616
54617 2008-10-18  Bruno Haible  <bruno@clisp.org>
54618
54619         Move the euidaccess() declaration to <unistd.h>.
54620         * lib/euidaccess.h: Remove file.
54621         * lib/unistd.in.h (euidaccess): New declaration.
54622         * lib/euidaccess.c: Don't include euidaccess.h.
54623         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
54624         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
54625         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
54626         and HAVE_EUIDACCESS.
54627         * modules/euidaccess (Files): Remove lib/euidaccess.h.
54628         (Depends-on): Add unistd.
54629         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54630         (Include): Specify <unistd.h> instead of euidaccess.h.
54631         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
54632         HAVE_EUIDACCESS.
54633         * NEWS: Mention the change.
54634
54635 2008-10-18  Bruno Haible  <bruno@clisp.org>
54636
54637         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
54638
54639         Move the getdomainname() declaration to <unistd.h>.
54640         * lib/getdomainname.h: Remove file.
54641         * lib/unistd.in.h (getdomainname): New declaration.
54642         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
54643         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
54644         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
54645         HAVE_GETDOMAINNAME.
54646         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54647         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
54648         * modules/getdomainname (Files): Remove lib/getdomainname.h.
54649         (Depends-on): Add unistd, extensions.
54650         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54651         (Includes): Specify <unistd.h> instead of getdomainname.h.
54652         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
54653         HAVE_GETDOMAINNAME.
54654         * NEWS: Mention the change.
54655
54656 2008-10-18  Bruno Haible  <bruno@clisp.org>
54657
54658         * modules/dirent: New file.
54659         * m4/dirent_h.m4: New file.
54660         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
54661         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
54662         * modules/fchdir (Files): Remove lib/dirent.in.h.
54663         (Depends-on): Add dirent.
54664         (Makefile.am): Move rules to modules/dirent.
54665         * doc/posix-headers/dirent.texi: Mention the new module.
54666
54667 2008-10-18  Bruno Haible  <bruno@clisp.org>
54668
54669         Avoid -Wunused-parameter warnings in public gnulib header files.
54670         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
54671         macro.
54672         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
54673
54674 2008-10-18  Bruno Haible  <bruno@clisp.org>
54675
54676         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
54677         * doc/glibc-functions/error.texi: Mention the module 'error'.
54678         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
54679         * doc/glibc-functions/getdomainname.texi: Mention the module
54680         'getdomainname'.
54681         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
54682         * doc/glibc-functions/getpagesize.texi: Mention the module
54683         'getpagesize'.
54684         * doc/glibc-functions/getusershell.texi: Mention the module
54685         'getusershell'.
54686         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
54687         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
54688         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
54689         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
54690         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
54691         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
54692         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
54693         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
54694         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
54695         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
54696         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
54697         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
54698         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
54699         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
54700
54701 2008-10-17  Bruno Haible  <bruno@clisp.org>
54702
54703         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
54704         HP-UX and IRIX, use -0.0L.
54705         * tests/test-ceill.c (minus_zero): Likewise.
54706         * tests/test-floorl.c (minus_zero): Likewise.
54707         * tests/test-frexpl.c (minus_zero): Likewise.
54708         * tests/test-isnan.c (minus_zerol): Likewise.
54709         * tests/test-isnanl.h (minus_zero): Likewise.
54710         * tests/test-ldexpl.c (minus_zero): Likewise.
54711         * tests/test-roundl.c (minus_zero): Likewise.
54712         * tests/test-signbit.c (minus_zerol): Likewise.
54713         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
54714         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
54715         * tests/test-truncl.c (minus_zero): Likewise.
54716         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
54717         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
54718         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
54719         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
54720
54721 2008-10-17  Bruno Haible  <bruno@clisp.org>
54722
54723         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
54724         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
54725         that it gets activated only for gcc >= 3.0.
54726         * lib/dirent.in.h: Likewise.
54727         * lib/errno.in.h: Likewise.
54728         * lib/fcntl.in.h: Likewise.
54729         * lib/float.in.h: Likewise.
54730         * lib/iconv.in.h: Likewise.
54731         * lib/inttypes.in.h: Likewise.
54732         * lib/locale.in.h: Likewise.
54733         * lib/math.in.h: Likewise.
54734         * lib/netdb.in.h: Likewise.
54735         * lib/netinet_in.in.h: Likewise.
54736         * lib/search.in.h: Likewise.
54737         * lib/signal.in.h: Likewise.
54738         * lib/spawn.in.h: Likewise.
54739         * lib/stdarg.in.h: Likewise.
54740         * lib/stdint.in.h: Likewise.
54741         * lib/stdio.in.h: Likewise.
54742         * lib/stdlib.in.h: Likewise.
54743         * lib/string.in.h: Likewise.
54744         * lib/strings.in.h: Likewise.
54745         * lib/sys_file.in.h: Likewise.
54746         * lib/sys_ioctl.in.h: Likewise.
54747         * lib/sys_select.in.h: Likewise.
54748         * lib/sys_socket.in.h: Likewise.
54749         * lib/sys_stat.in.h: Likewise.
54750         * lib/sys_time.in.h: Likewise.
54751         * lib/sysexits.in.h: Likewise.
54752         * lib/time.in.h: Likewise.
54753         * lib/unistd.in.h: Likewise.
54754         * lib/wchar.in.h: Likewise.
54755         * lib/wctype.in.h: Likewise.
54756         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
54757
54758 2008-10-17  Jim Meyering  <meyering@redhat.com>
54759
54760         ignore-value: don't depend on inline module
54761         * modules/ignore-value (Depends-on): Remove 'inline'.
54762         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
54763         Suggestion from Bruno Haible.
54764
54765 2008-10-17  Bruno Haible  <bruno@clisp.org>
54766
54767         New implementation of condition variables for Win32.
54768         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
54769         (gl_linked_waitqueue_t): New type.
54770         (gl_cond_t): Use it.
54771         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
54772         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
54773         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
54774         (glthread_cond_init_func, glthread_cond_wait_func,
54775         glthread_cond_timedwait_func, glthread_cond_signal_func,
54776         glthread_cond_broadcast_func, glthread_cond_destroy_func):
54777         Reimplemented on the basis of gl_linked_waitqueue_t.
54778         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
54779         gl_waitqueue_t.
54780         (gl_rwlock_t): Update.
54781         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
54782
54783 2008-10-17  Simon Josefsson  <simon@josefsson.org>
54784
54785         * modules/recvfrom (Depends-on): Add dependency on getpeername.
54786         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
54787
54788 2008-10-17  Jim Meyering  <meyering@redhat.com>
54789
54790         ignore-value: new module
54791         * modules/ignore-value: New file.
54792         * lib/ignore-value.h: New file.
54793         * MODULES.html.sh (Compiler warning management): New section,
54794         just for this module.  More to come.
54795
54796 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
54797
54798         open-safer.c: avoid 'signed and unsigned in conditional...' warning
54799         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
54800         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
54801
54802 2008-10-16  Jim Meyering  <meyering@redhat.com>
54803
54804         openat-die.c: avoid 'no previous prototype' warning
54805         * lib/openat-die.c: Include "openat.h".
54806         Reported by Reuben Thomas <rrt@sc3d.org>.
54807
54808 2008-10-16  Simon Josefsson  <simon@josefsson.org>
54809
54810         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
54811         * lib/netdb.in.h: Fix typo.
54812         Reported by Bruno Haible  <bruno@clisp.org>
54813
54814         * lib/netdb.in.h: Include sys/socket.h for platforms without
54815         netdb.h, to get structures like hostent on MinGW.
54816         * modules/netdb (Depends-on): Add sys_socket.
54817
54818 2008-10-15  Simon Josefsson  <simon@josefsson.org>
54819
54820         * modules/netdb, modules/netdb-tests: New file.
54821         * m4/netdb_h.m4: New file.
54822         * lib/netdb.in.h: Add, currently just an empty file pending
54823         definitions.
54824         * tests/test-netdb.c: New file.
54825         * doc/posix-headers/netdb.texi: Mention that we replace it if
54826         needed.
54827         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54828         netdb.
54829
54830 2008-10-15  Simon Josefsson  <simon@josefsson.org>
54831
54832         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
54833         with code.
54834
54835 2008-10-13  Bruno Haible  <bruno@clisp.org>
54836
54837         * lib/glthread/cond.c (glthread_cond_wait_func,
54838         glthread_cond_timedwait_func): Add a comment.
54839
54840 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54841
54842         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
54843         * tests/test-select.c: Likewise,
54844
54845 2008-10-13  Bruno Haible  <bruno@clisp.org>
54846
54847         * lib/glthread/cond.c (glthread_cond_wait_func,
54848         glthread_cond_timedwait_func): Fix variable name.
54849         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
54850
54851 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
54852
54853         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
54854         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
54855         struct sockaddr.sa_len.
54856         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
54857
54858 2008-10-13  Simon Josefsson  <simon@josefsson.org>
54859
54860         * build-aux/pmccabe2html: Add css and css_url parameters.
54861
54862 2008-10-12  Bruno Haible  <bruno@clisp.org>
54863
54864         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
54865         calling aclx_get.
54866         Reported by Rainer Tammer <tammer@tammer.net>.
54867
54868 2008-10-12  Bruno Haible  <bruno@clisp.org>
54869
54870         Use msvcrt aware primitives for creation/termination of Win32 threads.
54871         * lib/glthread/thread.c: Include <process.h>.
54872         (glthread_create_func): Use _beginthreadex instead of CreateThread.
54873         (wrapper_func): Update signature.
54874         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
54875
54876 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54877             Bruno Haible  <bruno@clisp.org>
54878
54879         Provide a Win32 implementation of the 'cond' module.
54880         * lib/glthread/cond.h [USE_WIN32]: New implementation.
54881         * lib/glthread/cond.c (glthread_cond_init_func,
54882         glthread_cond_wait_func, glthread_cond_timedwait_func,
54883         glthread_cond_signal_func, glthread_cond_broadcast_func,
54884         glthread_cond_destroy_func) [USE_WIN32]: New functions.
54885         * modules/cond (Dependencies): Add gettimeofday.
54886
54887 2008-10-11  Bruno Haible  <bruno@clisp.org>
54888
54889         Make sleep work on older versions of mingw.
54890         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
54891         only whether it exists.
54892         * doc/posix-functions/sleep.texi: Mention the problem with older
54893         versions of mingw.
54894
54895 2008-10-11  Bruno Haible  <bruno@clisp.org>
54896
54897         New module 'shutdown'.
54898         * modules/shutdown: New file.
54899         * lib/sys_socket.in.h (shutdown): New declaration.
54900         * lib/winsock.c (shutdown): New function.
54901         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
54902         GNULIB_SHUTDOWN.
54903         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
54904         * doc/posix-functions/shutdown.texi: Document the new module.
54905
54906 2008-10-11  Jim Meyering  <meyering@redhat.com>
54907
54908         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
54909
54910 2008-10-11  Bruno Haible  <bruno@clisp.org>
54911
54912         New module 'fclose'.
54913         * modules/fclose: New file.
54914         * lib/stdio.in.h (fclose): New declaration.
54915         * lib/fclose.c: New file.
54916         * m4/fclose.m4: New file.
54917         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
54918         REPLACE_FCLOSE.
54919         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
54920         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
54921         REPLACE_FCLOSE.
54922         * modules/close (Depends-on): fclose.
54923         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
54924
54925 2008-10-11  Bruno Haible  <bruno@clisp.org>
54926
54927         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
54928         set errno and don't call _close.
54929
54930 2008-10-10  Bruno Haible  <bruno@clisp.org>
54931
54932         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
54933         ACL, not afterwards. Fixes test failure on Cygwin.
54934
54935 2008-10-09  Ben Pfaff  <blp@gnu.org>
54936
54937         * build-aux/announce-gen: Fix gnulib version related part of usage
54938         message.  Die with a useful error message if no tarballs are
54939         found.
54940
54941 2008-10-10  Jim Meyering  <meyering@redhat.com>
54942
54943         bootstrap: use git's --depth=N option only if it's supported
54944         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
54945         recognize the --depth option.  Reported by Pádraig Brady.
54946
54947 2008-10-09  Bruno Haible  <bruno@clisp.org>
54948
54949         New module 'ioctl'.
54950         * modules/ioctl: New file.
54951         * lib/sys_socket.in.h (ioctl): Remove declaration.
54952         * lib/winsock.c: Include <sys/ioctl.h>.
54953         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
54954         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
54955         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
54956         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
54957         * doc/posix-functions/ioctl.texi: Mention the new module.
54958
54959 2008-10-09  Bruno Haible  <bruno@clisp.org>
54960
54961         New module 'sys_ioctl'.
54962         * lib/sys_ioctl.in.h: New file.
54963         * m4/sys_ioctl_h.m4: New file.
54964         * modules/sys_ioctl: New file.
54965         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
54966
54967 2008-10-09  Bruno Haible  <bruno@clisp.org>
54968
54969         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
54970         * lib/winsock.c: Include <stdarg.h>.
54971         (rpl_ioctl): Change to second argument 'int' and then varargs.
54972
54973 2008-10-09  Bruno Haible  <bruno@clisp.org>
54974
54975         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
54976         when the sys_socket module is present and the system has <winsock2.h>.
54977
54978 2008-10-09  Bruno Haible  <bruno@clisp.org>
54979
54980         * doc/posix-functions/close.texi: Mention module 'close' instead of
54981         module 'sys_socket'.
54982
54983 2008-10-09  Bruno Haible  <bruno@clisp.org>
54984
54985         * doc/glibc-headers/sys_ioctl.texi: New file.
54986         * doc/gnulib.texi: Include it.
54987
54988 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54989             Bruno Haible  <bruno@clisp.org>
54990
54991         Combine the two replacements of 'close'.
54992         * lib/sys_socket.in.h (close): Define to a reminder to include
54993         <unistd.h>.
54994         (_gl_close_fd_maybe_socket): New declaration.
54995         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
54996         * lib/winsock.c (close): Remove undefinition.
54997         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
54998         needed for the gnulib module 'close'.
54999         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
55000         define to an error symbol or to a warning, if suitable.
55001         * lib/close.c: Include <sys/socket.h>.
55002         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
55003         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
55004         UNISTD_H_HAVE_WINSOCK2_H.
55005         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
55006         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55007         UNISTD_H_HAVE_WINSOCK2_H.
55008         * modules/sys_socket (Files): Add m4/unistd_h.m4.
55009         (configure.ac): Set a module indicator.
55010         (Makefile.am): Substitute GNULIB_CLOSE.
55011         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
55012         * modules/poll-tests (Depends-on): Add close.
55013         * modules/select-tests (Depends-on): Likewise.
55014
55015 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55016             Bruno Haible  <bruno@clisp.org>
55017
55018         New module 'close'.
55019         * modules/close: New file.
55020         * lib/unistd.in.h (close): Move declaration out of the
55021         FCHDIR_REPLACEMENT scope.
55022         (_gl_unregister_fd): New declaration.
55023         * lib/close.c: New file.
55024         * lib/fchdir.c (rpl_close): Remove function.
55025         * m4/close.m4: New file.
55026         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
55027         close.
55028         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
55029         REPLACE_CLOSE.
55030         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
55031         REPLACE_CLOSE.
55032         * modules/fchdir (Depends-on): Add close.
55033
55034 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55035             Bruno Haible  <bruno@clisp.org>
55036
55037         * lib/fcntl.in.h (open): Simplify conditionals.
55038         (_gl_register_fd): New declaration.
55039         * lib/fchdir.c (rpl_open): Remove function.
55040         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
55041         also.
55042         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
55043         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
55044         open.
55045
55046 2008-10-09  Jim Meyering  <meyering@redhat.com>
55047
55048         GNUmakefile: use the more name-space-friendly "_version"
55049         * top/GNUmakefile (_dummy): Update.
55050         (_version): Rename from "version".
55051
55052 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55053             Bruno Haible  <bruno@clisp.org>
55054
55055         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
55056         rpl_close.
55057         (_gl_register_fd): New function, extracted from rpl_open.
55058         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
55059         (rpl_open, rpl_opendir): Use _gl_register_fd.
55060
55061 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55062
55063         Fix organization of 'open' replacement.
55064         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
55065         (gl_FUNC_OPEN): Use it.
55066         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
55067
55068 2008-10-08  Bruno Haible  <bruno@clisp.org>
55069
55070         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
55071
55072 2008-10-08  Simon Josefsson  <simon@josefsson.org>
55073
55074         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
55075         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
55076         listen).
55077
55078 2008-10-08  Eric Blake  <ebb9@byu.net>
55079
55080         GNUmakefile: add 'make version' target
55081         * top/GNUmakefile (_curr-ver): Split version update rules...
55082         (version): ...into a target.
55083
55084 2008-10-07  Bruno Haible  <bruno@clisp.org>
55085
55086         Use a more portable replacement expression for -0.0L.
55087         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
55088         instead of -0.0L. Fix m4 quotation.
55089
55090         * tests/test-signbit.c: Include <float.h>.
55091         (minus_zero): New variable.
55092         (test_signbitl): Use minus_zero instead of -zero.
55093         * modules/signbit-tests (Depends-on): Add float.
55094
55095         * tests/test-ceill.c: Include <float.h>.
55096         (zero): Remove variable.
55097         (minus_zero): New variable.
55098         (main): Use minus_zero instead of -zero.
55099         * modules/ceill-tests (Depends-on): Add float.
55100
55101         * tests/test-floorl.c: Include <float.h>.
55102         (zero): Remove variable.
55103         (minus_zero): New variable.
55104         (main): Use minus_zero instead of -zero.
55105         * modules/floorl-tests (Depends-on): Add float.
55106
55107         * tests/test-roundl.c: Include <float.h>.
55108         (zero): Remove variable.
55109         (minus_zero): New variable.
55110         (main): Use minus_zero instead of -zero.
55111         * modules/roundl-tests (Depends-on): Add float.
55112
55113         * tests/test-truncl.c: Include <float.h>.
55114         (zero): Remove variable.
55115         (minus_zero): New variable.
55116         (main): Use minus_zero instead of -zero.
55117         * modules/truncl-tests (Depends-on): Add float.
55118
55119         * tests/test-frexpl.c (zero): Remove variable.
55120         (minus_zero): New variable.
55121         (main): Use minus_zero instead of -zero.
55122         * modules/frexpl-tests (Depends-on): Add float.
55123
55124         * tests/test-isnan.c (zerol): Remove variable.
55125         (minus_zerol): New variable.
55126         (test_long_double): Use minus_zerol instead of -zerol.
55127         * modules/isnan-tests (Depends-on): Add float.
55128
55129         * tests/test-isnanl.h (zero): Remove variable.
55130         (minus_zero): New variable.
55131         (main): Use minus_zero instead of -zero.
55132         * modules/isnanl-nolibm-tests (Depends-on): Add float.
55133         * modules/isnanl-tests (Depends-on): Add float.
55134
55135         * tests/test-ldexpl.c (zero): Remove variable.
55136         (minus_zero): New variable.
55137         (main): Use minus_zero instead of -zero.
55138         * modules/ldexpl-tests (Depends-on): Add float.
55139
55140         * tests/test-snprintf-posix.h (zerol): Remove variable.
55141         (minus_zerol): New variable.
55142         (test_function): Use minus_zerol instead of -zerol.
55143         * modules/snprintf-posix-tests (Depends-on): Add float.
55144         * modules/vsnprintf-posix-tests (Depends-on): Add float.
55145
55146         * tests/test-sprintf-posix.h (zerol): Remove variable.
55147         (minus_zerol): New variable.
55148         (test_function): Use minus_zerol instead of -zerol.
55149         * modules/sprintf-posix-tests (Depends-on): Add float.
55150         * modules/vsprintf-posix-tests (Depends-on): Add float.
55151
55152         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
55153         (minus_zerol): New variable.
55154         (test_function): Use minus_zerol instead of -zerol.
55155         * modules/vasnprintf-posix-tests (Depends-on): Add float.
55156
55157         * tests/test-vasprintf-posix.c (zerol): Remove variable.
55158         (minus_zerol): New variable.
55159         (test_function): Use minus_zerol instead of -zerol.
55160         * modules/vasprintf-posix-tests (Depends-on): Add float.
55161
55162 2008-10-07  Simon Josefsson  <simon@josefsson.org>
55163
55164         * MODULES.html.sh (Support for building documentation): Mention
55165         pmccabe2html.  Sort entries.
55166
55167         Add pmccabe2html module, from gnupdf.
55168         * build-aux/pmccabe.css: New file.
55169         * build-aux/pmccabe2html: New file.
55170         * m4/pmccabe2html.m4: New file.
55171         * modules/pmccabe2html: New file.
55172
55173 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
55174
55175         flock: new module
55176         * MODULES.html.sh: Add to list of modules.
55177         * lib/flock.c: flock implementation for Windows and Unix systems
55178         which have fcntl.
55179         * doc/glibc-functions/flock.texi: Update documentation.
55180         * lib/sys_file.in.h: <sys/file.h> header file.
55181         * m4/flock.m4: M4 macros.
55182         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
55183         * modules/flock: flock module.
55184         * modules/flock-tests: flock tests module.
55185         * modules/sys_file: sys/file.h module.
55186         * tests/test-flock.c: test suite for flock.
55187
55188 2008-10-06  Jim Meyering  <meyering@redhat.com>
55189
55190         bootstrap: check for LT_INIT more portably still ;-)
55191         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
55192         Spotted by Bruno Haible.
55193
55194 2008-10-06  Eric Blake  <ebb9@byu.net>
55195
55196         test-signbit: avoid tripping Irix cc bug on -0.0L
55197         * tests/test-signbit.c (minus_zerol): Delete, and replace with
55198         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
55199         entire testsuite consistent and avoids an Irix 6.2 bug.
55200
55201 2008-10-05  Bruno Haible  <bruno@clisp.org>
55202             Jim Meyering  <jim@meyering.net>
55203
55204         Add an option for ignoring EPIPE during close_stdout.
55205         * lib/closeout.h: Include <stdbool.h>.
55206         (close_stdout_set_ignore_EPIPE): New declaration.
55207         * lib/closeout.c: Include <stdbool.h>.
55208         (ignore_EPIPE): New variable.
55209         (close_stdout_set_ignore_EPIPE): New function.
55210         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
55211         * lib/close-stream.c (close_stream): Mention the possible EPIPE
55212         failure.
55213         * modules/closeout (Depends-on): Add stdbool.
55214
55215 2008-10-05  Bruno Haible  <bruno@clisp.org>
55216
55217         * modules/accept: New file.
55218         * modules/bind: New file.
55219         * modules/connect: New file.
55220         * modules/getpeername: New file.
55221         * modules/getsockname: New file.
55222         * modules/getsockopt: New file.
55223         * modules/listen: New file.
55224         * modules/recv: New file.
55225         * modules/recvfrom: New file.
55226         * modules/send: New file.
55227         * modules/sendto: New file.
55228         * modules/setsockopt: New file.
55229         * modules/socket: New file.
55230         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
55231         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
55232         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
55233         the particular module is requested. Add a link warning when the
55234         particular module is not requested.
55235         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
55236         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
55237         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
55238         the particular module is requested.
55239         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
55240         gl_SYS_SOCKET_H_DEFAULTS): New macros.
55241         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
55242         * modules/sys_socket (Depends-on): Add link-warning.
55243         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
55244         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
55245         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
55246         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
55247         GL_LINK_WARNING.
55248         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
55249         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
55250         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
55251         * doc/posix-functions/getpeername.texi: Mention the new module
55252         'getpeername'.
55253         * doc/posix-functions/getsockname.texi: Mention the new module
55254         'getsockname'.
55255         * doc/posix-functions/getsockopt.texi: Mention the new module
55256         'getsockopt'.
55257         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
55258         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
55259         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
55260         * doc/posix-functions/send.texi: Mention the new module 'send'.
55261         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
55262         * doc/posix-functions/setsockopt.texi: Mention the new module
55263         'setsockopt'.
55264         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
55265         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
55266         listen, connect, accept.
55267         * modules/select-tests (Depends-on): Likewise.
55268
55269 2008-10-05  Bruno Haible  <bruno@clisp.org>
55270
55271         * lib/winsock.c (strerror): Remove unused #undef.
55272         (rpl_close): Remove unused local variable.
55273
55274         * modules/sys_socket (Depends-on); Add errno.
55275
55276 2008-10-05  Bruno Haible  <bruno@clisp.org>
55277
55278         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
55279         (select): Add a link warning when the 'select' module is not used.
55280         * modules/sys_select (Depends-on): Add link-warning.
55281         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
55282         Suggested by Paolo Bonzini.
55283
55284 2008-10-05  Jim Meyering  <meyering@redhat.com>
55285
55286         bootstrap: check for LT_INIT more portably
55287         * build-aux/bootstrap: Avoid using grep -E, since it's not
55288         portable enough.  Suggestion from Bruno Haible.
55289
55290 2008-10-05  Bruno Haible  <bruno@clisp.org>
55291
55292         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
55293         as being fixed by gnulib.
55294
55295 2008-10-05  Bruno Haible  <bruno@clisp.org>
55296
55297         * modules/select-tests: New file, mostly copied from
55298         modules/sys_select-tests.
55299         * tests/test-select.c: New file, mostly copied from
55300         tests/test-sys_select.c.
55301         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
55302         * modules/sys_select-tests (Depends-on): Remove all dependencies.
55303         (Makefile.am): Remove test_sys_select_LDADD.
55304
55305         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
55306         to an undefined symbol, for an error message.
55307         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
55308         (gl_SYS_SELECT_H_DEFAULTS): New macro.
55309         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
55310         winsock-select.c here.
55311         * modules/sys_select (Files): Remove lib/winsock-select.c.
55312         (Depends-on): Remove alloca.
55313         (Makefile.am): Substitute GNULIB_SELECT.
55314         * modules/select: New file.
55315         * doc/posix-functions/select.texi: Update.
55316
55317 2008-10-05  Bruno Haible  <bruno@clisp.org>
55318
55319         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
55320         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
55321         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
55322         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
55323         getdtablesize.
55324         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
55325         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
55326
55327 2008-10-05  Bruno Haible  <bruno@clisp.org>
55328
55329         * modules/getdtablesize-tests: New file.
55330         * tests/test-getdtablesize.c: New file.
55331
55332         New module 'getdtablesize'.
55333         * lib/unistd.in.h (getdtablesize): New declaration.
55334         * lib/getdtablesize.c: New file.
55335         * m4/getdtablesize.m4: New file.
55336         * modules/getdtablesize: New file.
55337         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55338         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
55339         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
55340         HAVE_GETDTABLESIZE.
55341         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
55342
55343 2008-10-05  Bruno Haible  <bruno@clisp.org>
55344
55345         * modules/sched (Makefile.am): Fix typo.
55346         Reported by Simon Josefsson.
55347
55348 2008-10-05  Jim Meyering  <meyering@redhat.com>
55349
55350         bootstrap: check for LT_INIT, too
55351         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
55352         are deprecated.  Suggestion from Ralf Wildenhues.
55353
55354 2008-10-05  Bruno Haible  <bruno@clisp.org>
55355
55356         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
55357         overriding them by ours.
55358         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
55359
55360 2008-10-05  Jim Meyering  <meyering@redhat.com>
55361
55362         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
55363         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
55364         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
55365
55366 2008-10-04  Bruno Haible  <bruno@clisp.org>
55367
55368         * modules/dup2 (License): Change to LGPLv2+.
55369         * modules/sleep (License): Likewise.
55370         * modules/perror (License): Likewise.
55371         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
55372         Blake.
55373         * modules/signal (License): Likewise.
55374         * modules/sigprocmask (License): Likewise.
55375         * modules/raise (License): Change to LGPLv2+, with approval by Jim
55376         Meyering.
55377
55378 2008-10-04  Bruno Haible  <bruno@clisp.org>
55379
55380         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
55381         Reported by Rainer Tammer <tammer@tammer.net>.
55382
55383 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
55384             Bruno Haible  <bruno@clisp.org>
55385
55386         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
55387         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
55388         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
55389
55390 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
55391
55392         filevercmp: new module
55393         * lib/filevercmp.h: New function filevercmp comparing version strings.
55394         * lib/filevercmp.c: Implementation of filevercmp function.
55395         * modules/filevercmp: Module metadata.
55396         * tests/test-filevercmp.c: Unit test for new module.
55397         * modules/filevercmp-tests: Unit test metadata.
55398         * MODULES.html.sh: Add filevercmp module.
55399
55400 2008-10-03  Bruno Haible  <bruno@clisp.org>
55401
55402         * lib/c-ctype.h: Add comment.
55403         Reported by Jim Meyering.
55404
55405 2008-10-02  Bruno Haible  <bruno@clisp.org>
55406
55407         * modules/posix_spawn-internal (Depends-on): Add 'open'.
55408
55409 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
55410
55411         * build-aux/bootstrap: Allow renaming bootstrap, and change the
55412         name of bootstrap.conf accordingly.
55413
55414 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
55415
55416         * build-aux/bootstrap: Install git-merge-changelog configuration
55417         items into .gitconfig if needed.
55418
55419 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
55420
55421         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
55422         git repository, and initialize/update it accordingly.
55423
55424 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
55425
55426         * modules/fsync-tests: New file.
55427         * tests/test-fsync.c: New file.
55428
55429         New module 'fsync'.
55430         * lib/fsync.c: New file.
55431         * m4/fsync.m4: New file.
55432         * modules/fsync: New file.
55433         * lib/unistd.in.h (fsync): New declaration.
55434         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
55435         GNULIB_FSYNC and HAVE_FSYNC.
55436         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
55437         * MODULES.html.sh (posix_functions): Add fsync.
55438         * doc/posix-functions/fsync.texi: Mention the new module.
55439
55440 2008-10-02  Jim Meyering  <meyering@redhat.com>
55441
55442         fts.c: sync with similar code from coreutils' remove.c
55443         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
55444         Guard also with "#if defined __linux__", since for now at least,
55445         this code is Linux-kernel-specific.
55446
55447 2008-10-02  Jim Meyering  <meyering@redhat.com>
55448
55449         fts: bug fixes
55450         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
55451         Include <sys/vfs.h>, not <sys/statfs.h>.
55452
55453         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
55454         Include <sys/vfs.h>, not <sys/statfs.h>.
55455
55456 2008-10-01  Bruno Haible  <bruno@clisp.org>
55457
55458         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
55459         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
55460         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
55461         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
55462         * doc/posix-functions/posix_spawnp.texi: Likewise.
55463         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
55464         whether posix_spawn actually works.
55465         * m4/pipe.m4 (gl_PIPE): Likewise.
55466         * modules/execute (Files): Add m4/posix_spawn.m4.
55467         * modules/pipe (Files): Add m4/posix_spawn.m4.
55468         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
55469
55470 2008-10-01  Jim Meyering  <meyering@redhat.com>
55471
55472         remove trailing spaces
55473         * NEWS: Likewise.
55474         * lib/poll.c (poll): Likewise.
55475         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
55476         * lib/winsock.c (rpl_close): Likewise.
55477         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
55478         * modules/yield: Likewise.
55479         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
55480         * tests/test-sys_select.c (connect_to_socket): Likewise.
55481
55482         fts.c: adjust a new interface to be more generally useful
55483         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
55484         (fts_build): Adjust caller.
55485
55486 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55487
55488         * modules/cond-tests: New file.
55489         * tests/test-cond.c: New file.
55490
55491 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55492             Bruno Haible  <bruno@clisp.org>
55493
55494         * modules/cond (Dependencies): Add errno, time.
55495         * lib/glthread/cond.h: Include <time.h>.
55496         (gl_cond_define, gl_cond_define_initialized): Use the same definition
55497         across platforms.
55498
55499 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55500             Bruno Haible  <bruno@clisp.org>
55501
55502         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
55503
55504 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55505             Bruno Haible  <bruno@clisp.org>
55506
55507         * modules/tls-tests (Depends-on): Add thread, yield.
55508         (configure.ac): Remove all checks.
55509         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
55510         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
55511         gl_thread_self): Remove definitions. Include glthread/thread.h and
55512         glthread/yield.h instead.
55513         (test_tls): Pass an additional NULL argument to gl_thread_join.
55514
55515 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55516             Bruno Haible  <bruno@clisp.org>
55517
55518         * modules/lock-tests (Depends-on): Add thread, yield.
55519         (configure.ac): Remove all checks.
55520         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
55521         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
55522         gl_thread_self): Remove definitions. Include glthread/thread.h and
55523         glthread/yield.h instead.
55524         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
55525         additional NULL argument to gl_thread_join.
55526
55527 2008-09-30  Bruno Haible  <bruno@clisp.org>
55528
55529         Fix the Win32 implementation of the 'thread' module.
55530         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
55531         pointer type.
55532         (gl_thread_self): Invoke gl_thread_self_func.
55533         (gl_thread_self_func): New declaration.
55534         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
55535         (do_init_self_key, init_self_key): New functions.
55536         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
55537         Remove some fields.
55538         (running_threads, running_lock): Remove variables.
55539         (get_current_thread_handle): New function.
55540         (gl_thread_self_func, wrapper_func, glthread_create_func,
55541         glthread_join_func, gl_thread_exit_func): Largely rewritten and
55542         simplified.
55543
55544 2008-09-30  Bruno Haible  <bruno@clisp.org>
55545
55546         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
55547         files.
55548
55549 2008-09-30  Jim Meyering  <meyering@redhat.com>
55550
55551         fts.m4: correct the test for statfs.f_type
55552         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
55553         when checking for statfs.f_type.
55554
55555 2008-09-15  Simon Josefsson  <simon@josefsson.org>
55556
55557         tests: avoid some compiler warnings
55558         * tests/test-memchr.c (main): Pass NULL indirectly.
55559         * tests/test-getdate.c (main): Remove unused variable 'ret'.
55560
55561 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
55562
55563         getdate.y: disallow countable dayshifts like "4 yesterday ago"
55564         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
55565         exactly specified dayshifts.
55566         (dayshift): New rule.
55567         (rel): Add dayshift.
55568         (relative_time_table) [tomorrow, yesterday, today, now]:
55569         Use tDAY_SHIFT in place of tDAY_UNIT.
55570         * tests/test-getdate.c: Add tests for now-disallowed countable
55571         dayshifts, e.g., "4 yesterday ago".
55572
55573 2008-09-29  Bruno Haible  <bruno@clisp.org>
55574
55575         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
55576         * tests/test-posix_spawn1.in.sh: Renamed from
55577         tests/test-posix_spawn.in.sh.
55578         * tests/test-posix_spawn2.c: New file.
55579         * tests/test-posix_spawn2.in.sh: New file.
55580         * modules/posix_spawnp-tests (Files): Update.
55581         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
55582
55583 2008-09-29  Bruno Haible  <bruno@clisp.org>
55584
55585         Propagate effects of putenv/setenv/unsetenv to child processes.
55586         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
55587         * lib/pipe.c (create_pipe): Likewise.
55588
55589 2008-09-29  Bruno Haible  <bruno@clisp.org>
55590
55591         Enable use of shell scripts as executables in mingw.
55592         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
55593         run the program as a shell script.
55594         * lib/pipe.c (create_pipe): Likewise.
55595         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
55596         resulting array.
55597
55598 2008-09-29  Eric Blake  <ebb9@byu.net>
55599
55600         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
55601
55602 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
55603
55604         * doc/posix-functions/accept.texi: Update mingw problems.
55605         * doc/posix-functions/bind.texi: Update mingw problems.
55606         * doc/posix-functions/close.texi: Update mingw problems.
55607         * doc/posix-functions/connect.texi: Update mingw problems.
55608         * doc/posix-functions/getpeername.texi: Update mingw problems.
55609         * doc/posix-functions/getsockname.texi: Update mingw problems.
55610         * doc/posix-functions/getsockopt.texi: Update mingw problems.
55611         * doc/posix-functions/ioctl.texi: Update mingw problems.
55612         * doc/posix-functions/listen.texi: Update mingw problems.
55613         * doc/posix-functions/recv.texi: Update mingw problems.
55614         * doc/posix-functions/recvfrom.texi: Update mingw problems.
55615         * doc/posix-functions/select.texi: Update mingw problems.
55616         * doc/posix-functions/send.texi: Update mingw problems.
55617         * doc/posix-functions/sendto.texi: Update mingw problems.
55618         * doc/posix-functions/setsockopt.texi: Update mingw problems.
55619         * doc/posix-functions/socket.texi: Update mingw problems.
55620
55621 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
55622             Bruno Haible  <bruno@clisp.org>
55623
55624         * lib/sys_select.in.h: Include sys/time.h.
55625         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
55626         * modules/sys_select: Depend on sys_time.
55627         * tests/test-sys_select.c: Test that sys/select.h defines struct
55628         timeval fully.
55629
55630 2008-09-29  Bruno Haible  <bruno@clisp.org>
55631
55632         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
55633         * lib/sys_select.in.h: Likewise.
55634
55635 2008-09-29  Bruno Haible  <bruno@clisp.org>
55636
55637         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
55638
55639 2008-09-29  Bruno Haible  <bruno@clisp.org>
55640
55641         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
55642         Set LIBSOCKET instead of augmenting LIBS.
55643         * modules/sockets (Link): New section.
55644         * modules/sockets-tests (test_sockets_LDADD): New variable.
55645         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
55646         * modules/poll-tests (test_poll_LDADD): New variable.
55647         * NEWS: Document the change.
55648
55649 2008-09-29  Bruno Haible  <bruno@clisp.org>
55650
55651         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
55652         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
55653         ARPA_INET_H directly.
55654         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55655
55656 2008-09-28  Bruno Haible  <bruno@clisp.org>
55657
55658         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
55659         from gl_HEADER_SYS_SOCKET.
55660         (gl_HEADER_SYS_SOCKET): Invoke it.
55661         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
55662
55663 2008-09-28  Bruno Haible  <bruno@clisp.org>
55664
55665         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
55666         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
55667         Needed on OSF/1 4.0.
55668
55669 2008-09-28  Bruno Haible  <bruno@clisp.org>
55670
55671         Override open more carefully.
55672         * lib/open.c (orig_open): New function.
55673         (rpl_open): Use orig_open instead of open.
55674         * lib/fcntl.in.h: Add special invocation convention.
55675         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
55676         (gl_FUNC_OPEN): Invoke it.
55677
55678         Override freopen more carefully.
55679         * lib/freopen.c (orig_freopen): New function.
55680         (rpl_freopen): Use orig_freopen instead of freopen.
55681         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
55682         (gl_FUNC_FREOPEN): Invoke it.
55683
55684         Override fopen more carefully.
55685         * lib/fopen.c (orig_fopen): New function.
55686         (rpl_fopen): Use orig_fopen instead of fopen.
55687         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
55688         (gl_FUNC_FOPEN): Invoke it.
55689         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
55690
55691 2008-09-28  Bruno Haible  <bruno@clisp.org>
55692
55693         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
55694         SIGPIPE.
55695
55696 2008-09-28  Bruno Haible  <bruno@clisp.org>
55697
55698         * tests/test-sigaction.c (handler, main): Disable the check whether
55699         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
55700         glibc systems with LinuxThreads.
55701
55702 2008-09-28  Bruno Haible  <bruno@clisp.org>
55703
55704         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
55705
55706         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
55707         with AIX xlc.
55708         * lib/fcntl.in.h (open): Likewise.
55709         Reported by Rainer Tammer <tammer@tammer.net>.
55710
55711 2008-09-28  Bruno Haible  <bruno@clisp.org>
55712
55713         * modules/posix_spawnp-tests: New file.
55714         * tests/test-posix_spawn.c: New file.
55715         * tests/test-posix_spawn.in.sh: New file.
55716
55717         New module 'posix_spawnp'.
55718         * modules/posix_spawnp: New file.
55719         * lib/spawnp.c: New file, from GNU libc with modifications.
55720         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
55721
55722         New module 'posix_spawn'.
55723         * modules/posix_spawn: New file.
55724         * lib/spawn.c: New file, from GNU libc with modifications.
55725         * doc/posix-functions/posix_spawn.texi: Mention the new module.
55726
55727         New module 'posix_spawnattr_destroy'.
55728         * modules/posix_spawnattr_destroy: New file.
55729         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
55730         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
55731         module.
55732
55733         New module 'posix_spawnattr_setsigmask'.
55734         * modules/posix_spawnattr_setsigmask: New file.
55735         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
55736         modifications.
55737         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
55738         new module.
55739
55740         New module 'posix_spawnattr_getsigmask'.
55741         * modules/posix_spawnattr_getsigmask: New file.
55742         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
55743         modifications.
55744         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
55745         new module.
55746
55747         New module 'posix_spawnattr_setsigdefault'.
55748         * modules/posix_spawnattr_setsigdefault: New file.
55749         * lib/spawnattr_setdefault.c: New file, from GNU libc with
55750         modifications.
55751         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
55752         new module.
55753
55754         New module 'posix_spawnattr_getsigdefault'.
55755         * modules/posix_spawnattr_getsigdefault: New file.
55756         * lib/spawnattr_getdefault.c: New file, from GNU libc with
55757         modifications.
55758         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
55759         new module.
55760
55761         New module 'posix_spawnattr_setschedpolicy'.
55762         * modules/posix_spawnattr_setschedpolicy: New file.
55763         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
55764         modifications.
55765         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
55766         new module.
55767
55768         New module 'posix_spawnattr_getschedpolicy'.
55769         * modules/posix_spawnattr_getschedpolicy: New file.
55770         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
55771         modifications.
55772         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
55773         new module.
55774
55775         New module 'posix_spawnattr_setschedparam'.
55776         * modules/posix_spawnattr_setschedparam: New file.
55777         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
55778         modifications.
55779         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
55780         new module.
55781
55782         New module 'posix_spawnattr_getschedparam'.
55783         * modules/posix_spawnattr_getschedparam: New file.
55784         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
55785         modifications.
55786         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
55787         new module.
55788
55789         New module 'posix_spawnattr_setpgroup'.
55790         * modules/posix_spawnattr_setpgroup: New file.
55791         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
55792         modifications.
55793         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
55794         module.
55795
55796         New module 'posix_spawnattr_getpgroup'.
55797         * modules/posix_spawnattr_getpgroup: New file.
55798         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
55799         modifications.
55800         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
55801         module.
55802
55803         New module 'posix_spawnattr_setflags'.
55804         * modules/posix_spawnattr_setflags: New file.
55805         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
55806         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
55807         module.
55808
55809         New module 'posix_spawnattr_getflags'.
55810         * modules/posix_spawnattr_getflags: New file.
55811         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
55812         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
55813         module.
55814
55815         New module 'posix_spawnattr_init'.
55816         * modules/posix_spawnattr_init: New file.
55817         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
55818         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
55819         module.
55820
55821         New module 'posix_spawn_file_actions_destroy'.
55822         * modules/posix_spawn_file_actions_destroy: New file.
55823         * lib/spawn_faction_destroy.c: New file, from GNU libc with
55824         modifications.
55825         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
55826         the new module.
55827
55828         New module 'posix_spawn_file_actions_addopen'.
55829         * modules/posix_spawn_file_actions_addopen: New file.
55830         * lib/spawn_faction_addopen.c: New file, from GNU libc with
55831         modifications.
55832         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
55833         the new module.
55834
55835         New module 'posix_spawn_file_actions_adddup2'.
55836         * modules/posix_spawn_file_actions_adddup2: New file.
55837         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
55838         modifications.
55839         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
55840         the new module.
55841
55842         New module 'posix_spawn_file_actions_addclose'.
55843         * modules/posix_spawn_file_actions_addclose: New file.
55844         * lib/spawn_faction_addclose.c: New file, from GNU libc with
55845         modifications.
55846         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
55847         the new module.
55848
55849         New module 'posix_spawn_file_actions_init'.
55850         * modules/posix_spawn_file_actions_init: New file.
55851         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
55852         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
55853         new module.
55854
55855         New module 'posix_spawn-internal'.
55856         * modules/posix_spawn-internal: New file.
55857         * lib/spawn_int.h: New file, from GNU libc with modifications.
55858         * lib/spawni.c: New file, from GNU libc with modifications.
55859         * m4/posix_spawn.m4: New file.
55860
55861         New module 'spawn'.
55862         * modules/spawn: New file.
55863         * lib/spawn.in.h: New file, from GNU libc with modifications.
55864         * m4/spawn_h.m4: New file.
55865         * doc/posix-headers/spawn.texi: Mention the new module.
55866
55867 2008-09-28  Bruno Haible  <bruno@clisp.org>
55868
55869         * modules/sched-tests: New file.
55870         * tests/test-sched.c: New file.
55871
55872         New module 'sched'.
55873         * modules/sched: New file.
55874         * lib/sched.in.h: New file.
55875         * m4/sched_h.m4: New file.
55876         * doc/posix-headers/sched.texi: Mention the new module.
55877
55878 2008-09-27  Eric Blake  <ebb9@byu.net>
55879
55880         Fix previous patch, and tweak references to $0.
55881         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
55882         (func_version, func_gnulib_dir): Don't call this program
55883         gnulib-tool.
55884         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
55885         with using $0 in function.
55886         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
55887         (func_fatal_error): Reuse the name the user invoked us with.
55888
55889 2008-09-27  Bruno Haible  <bruno@clisp.org>
55890
55891         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
55892         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
55893         (gl_ICONV_H): Not here.
55894         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
55895         instead of assigning ICONV_H directly.
55896
55897         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
55898         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
55899         WCHAR_H directly.
55900
55901 2008-09-27  Bruno Haible  <bruno@clisp.org>
55902
55903         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
55904         * modules/arpa_inet (Depends-on): Add link-warning.
55905         (Makefile.am): Insert the definition of GL_LINK-WARNING.
55906         * modules/unistd (Makefile.am): Likewise.
55907
55908 2008-09-26  Bruno Haible  <bruno@clisp.org>
55909
55910         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
55911         variables.
55912         (func_version): Essentially copied from gnulib-tool.
55913         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
55914         func_readlink): Copied from gnulib-tool.
55915
55916 2008-09-26  Bruno Haible  <bruno@clisp.org>
55917
55918         * gnulib-tool (func_version): Change directory to $gnulib_dir before
55919         invoking git-version-gen.
55920
55921 2008-09-26  Bruno Haible  <bruno@clisp.org>
55922
55923         * posix-modules: Update to directory names changed on 2008-01-19.
55924         Remove commas in output before splitting into words. No more need to
55925         avoid 'ftruncate' since 2007-02-19.
55926
55927 2008-09-26  Bruno Haible  <bruno@clisp.org>
55928
55929         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
55930
55931 2008-09-26  Bruno Haible  <bruno@clisp.org>
55932
55933         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
55934         * modules/fwriteerror (Depends-on): Add errno.
55935
55936 2008-09-26  Bruno Haible  <bruno@clisp.org>
55937
55938         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
55939         * tests/test-vc-list-files-cvs.sh: Likewise.
55940
55941 2008-09-26  Bruno Haible  <bruno@clisp.org>
55942
55943         * doc/posix-headers/sys_resource.texi: Reorder items.
55944
55945 2008-09-26  Jim Meyering  <meyering@redhat.com>
55946
55947         fts: tweak inode comparison function
55948         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
55949         inode numbers, as documented.
55950
55951         fts: sort dirent entries on inode number before traversing
55952         This avoids a quadratic, seek-related performance penalty when
55953         operating on a directory containing many entries (measurable at 10k;
55954         3.5 hours at 2 million entries with a cold cache) on certain types
55955         of file systems, including ext3 and ext4, but not tmpfs.
55956         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
55957         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
55958         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
55959         (fs_handles_readdir_ordered_dirents_efficiently): New function.
55960         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
55961         (fts_build): Set the stat.st_ino member from D_INO.
55962         If it is likely to be useful, sort dirent entries on inode number.
55963
55964         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
55965         and the struct statfs.f_type member.
55966         * modules/fts (Depends-on): Add d-ino.
55967
55968 2008-09-26  Bruno Haible  <bruno@clisp.org>
55969
55970         * modules/sigpipe-die (Depends-on): Add sigpipe.
55971
55972         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
55973         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
55974         and GNULIB_STDIO_H_SIGPIPE are set.
55975         * lib/stdio-write.c: New file.
55976         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
55977         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
55978         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
55979         REPLACE_STDIO_WRITE_FUNCS.
55980         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
55981         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
55982         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
55983         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
55984         * modules/stdio (Files): Add lib/stdio-write.c.
55985         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
55986         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
55987         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
55988         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
55989         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
55990         REPLACE_FPRINTF_POSIX.
55991         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
55992         REPLACE_PRINTF_POSIX.
55993         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
55994         REPLACE_VFPRINTF_POSIX.
55995         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
55996         REPLACE_VPRINTF_POSIX.
55997         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
55998         SIGPIPE issue.
55999         * doc/posix-functions/fputc.texi: Likewise.
56000         * doc/posix-functions/fputs.texi: Likewise.
56001         * doc/posix-functions/fwrite.texi: Likewise.
56002         * doc/posix-functions/printf.texi: Likewise.
56003         * doc/posix-functions/putc.texi: Likewise.
56004         * doc/posix-functions/putchar.texi: Likewise.
56005         * doc/posix-functions/puts.texi: Likewise.
56006         * doc/posix-functions/vfprintf.texi: Likewise.
56007         * doc/posix-functions/vprintf.texi: Likewise.
56008
56009         * modules/safe-write (Depends-on): Add write.
56010
56011         * modules/sigpipe-tests: New file.
56012         * tests/test-sigpipe.c: New file.
56013         * tests/test-sigpipe.sh: New file.
56014
56015         * modules/write: New file.
56016         * lib/unistd.in.h: Include <sys/types.h>.
56017         (write): New declaration.
56018         * lib/write.c: New file.
56019         * m4/write.m4: New file.
56020         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56021         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
56022         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
56023         GNULIB_WRITE, REPLACE_WRITE.
56024         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
56025         and the SIGPIPE issue.
56026
56027         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
56028         (raise): New declaration.
56029         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
56030         (ext_signal): New function.
56031         (rpl_raise): New function.
56032         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
56033         GNULIB_SIGNAL_H_SIGPIPE.
56034         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
56035         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
56036
56037         * modules/sigpipe: New file.
56038         * m4/sigpipe.m4: New file.
56039
56040 2008-09-25  Derek Price  <derek@ximbiot.com>
56041             Bruno Haible  <bruno@clisp.org>
56042
56043         * gnulib-tool (func_import): Report all license incompatibilities, not
56044         just the first one.
56045
56046 2008-09-25  Bruno Haible  <bruno@clisp.org>
56047
56048         * gnulib-tool (func_import): When computing the edits, consider not
56049         only the Makefile.ams that exist but also those that will be generated.
56050
56051 2008-09-25  Simon Josefsson  <simon@josefsson.org>
56052
56053         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
56054         fixes gnulib-tool --test warning about duplicate dependency.
56055
56056 2008-09-25  Bruno Haible  <bruno@clisp.org>
56057
56058         * gnulib-tool: Don't ask the user to perform edits in the generated
56059         Makefile.ams.
56060         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
56061         apply to the Makefile.am being generated.
56062         (func_emit_tests_Makefile_am): Execute edits that apply to the
56063         Makefile.am being generated.
56064         (func_import): Setup list of Makefile.am edits before emitting the
56065         Makefile.ams, not at the end.
56066         (func_create_testdir): Update.
56067         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
56068
56069 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56070
56071         * gnulib-tool (func_import): Store the --tests-base option in the
56072         comment in gnulib-cache.m4.
56073
56074 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
56075
56076         * NEWS: Document increased portability that sys_select now provides.
56077
56078         * lib/sys_select.in.h: Install select wrapper.
56079         * lib/sys_socket.in.h: Use more descriptive name when there is no
56080         select wrapper.
56081         * lib/winsock-select.c: New.
56082         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
56083         Require gl_HEADER_SYS_SOCKET.
56084         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
56085         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
56086         * tests/test-sys_select.c: Add functional tests.
56087
56088 2008-09-24  Eric Blake  <ebb9@byu.net>
56089
56090         open, fopen: close fd leak in last patch
56091         * lib/open.c (rpl_open): Close fd before returning error.
56092         * lib/fopen.c (rpl_fopen): Close fd before returning error.
56093         * doc/posix-functions/open.texi (open): Document that Irix also
56094         has the bug.
56095         * doc/posix-functions/fopen.texi (fopen): Likewise.
56096         Reported by Paolo Bonzini.
56097
56098 2008-09-24  Bruno Haible  <bruno@clisp.org>
56099
56100         Ensure that a filename ending in a slash cannot be used to access a
56101         non-directory.
56102         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
56103         to check whether it's really a directory.
56104         * lib/fopen.c: Include fcntl.h, unistd.h.
56105         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
56106         and fdopen().
56107         * modules/fopen (Depends-on): Add unistd.
56108         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
56109         * tests/test-fopen.c (main): Likewise.
56110         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
56111         * doc/posix-functions/fopen.texi: Likewise.
56112         Reported by Eric Blake.
56113
56114 2008-09-23  Eric Blake  <ebb9@byu.net>
56115
56116         c-stack: avoid compiler optimizations when provoking overflow
56117         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
56118         recursion harder to optimize, to ensure a stack overflow occurs.
56119         * tests/test-c-stack.c (recurse): Likewise.
56120         Borrowed from libsigsegv.
56121
56122         c-stack: work around Irix sigaltstack bug
56123         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
56124         whether sigaltstack uses wrong end of stack_t (copied in part from
56125         libsigsegv).
56126         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
56127         Irix bug, without requiring an over-allocation.
56128         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
56129         bug.
56130
56131         fopen: document mingw bug on directories
56132         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
56133         not allowing a stream visiting a directory, even though reading
56134         from such a stream is not portable.
56135
56136 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
56137
56138         * lib/poll.c: Rewrite.
56139         * modules/poll: Depend on alloca.
56140
56141 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
56142
56143         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
56144         instead define prototypes for a full set of wrappers.  Ensure
56145         that Cygwin does not use the compatibility code, which is only
56146         for MinGW.
56147         * lib/winsock.c: New.
56148         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
56149         * modules/sys_socket: Add lib/winsock.c.
56150
56151         * modules/poll-tests: Add errno and perror.
56152         * tests/test-poll.c: Use ioctl, not ioctlsocket.
56153
56154 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
56155
56156         * tests/test-poll.c: Downgrade minimum needed Winsock version.
56157
56158 2008-09-23  Bruno Haible  <bruno@clisp.org>
56159
56160         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
56161         * doc/glibc-functions/*: Likewise.
56162
56163 2008-09-23  Simon Josefsson  <simon@josefsson.org>
56164
56165         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
56166         success.
56167
56168 2008-09-22  Eric Blake  <ebb9@byu.net>
56169             Bruno Haible  <bruno@clisp.org>
56170
56171         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
56172         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
56173         supply %A but mishandle pseudo-NaN.
56174         Reported by Simon Josefsson.
56175
56176 2008-09-21  Bruno Haible  <bruno@clisp.org>
56177
56178         * tests/test-lock.c (main): Tweak skip message.
56179         * tests/test-tls.c (main): Likewise.
56180
56181 2008-09-21  Bruno Haible  <bruno@clisp.org>
56182
56183         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
56184         whether 'struct sigaction' has sa_sigaction here...
56185         (gl_PREREQ_SIG_HANDLER_H): ... not here.
56186         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
56187
56188 2008-09-21  Bruno Haible  <bruno@clisp.org>
56189
56190         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
56191         section.
56192         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
56193         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
56194         the new section.
56195         (Support for obsolete systems lacking POSIX:2001): New section.
56196         (String handling <string.h>): Move strdup to the new section.
56197         Suggested by Simon Josefsson and Paolo Bonzini.
56198
56199 2008-09-21  Bruno Haible  <bruno@clisp.org>
56200
56201         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
56202         exponents in %e and %g results on 'long double'. Needed for mingw's
56203         improved *printf functions.
56204         * tests/test-vasprintf-posix.c (test_function): Likewise.
56205         * tests/test-snprintf-posix.h (test_function): Likewise.
56206         * tests/test-sprintf-posix.h (test_function): Likewise.
56207         Reported by Eric Blake.
56208
56209 2008-09-21  Bruno Haible  <bruno@clisp.org>
56210
56211         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
56212         * tests/test-sprintf-posix.h (test_function): Likewise.
56213
56214 2008-09-21  Bruno Haible  <bruno@clisp.org>
56215
56216         * modules/getpass (Depends-on): Add strdup-posix.
56217
56218         New module 'strdup-posix'.
56219         * modules/strdup-posix: New file.
56220         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
56221         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
56222         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
56223         REPLACE_STRDUP.
56224         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
56225         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
56226         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56227         strdup-posix.
56228
56229         * modules/strdup (Depends-on): Remove malloc-posix.
56230
56231 2008-09-20  Bruno Haible  <bruno@clisp.org>
56232
56233         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
56234         Wildenhues.
56235
56236 2008-09-20  Bruno Haible  <bruno@clisp.org>
56237
56238         Ensure that wint_t gets defined on IRIX 5.3.
56239         * lib/wchar.in.h (wint_t): Define if not defined by the system.
56240         * lib/wctype.in.h (wint_t): Likewise.
56241         (__wctype_wint_t): Remove type.
56242         (isw*): Use wint_t instead of __wctype_wint_t.
56243         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
56244         * modules/wchar (Files): Add m4/wint_t.m4.
56245         (Makefile.am): Substitute HAVE_WINT_T.
56246         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
56247         * tests/test-wctype.c: Check that wint_t is defined.
56248         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
56249         * doc/posix-headers/wctype.texi: Likewise.
56250         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
56251
56252 2008-09-18  Bruno Haible  <bruno@clisp.org>
56253
56254         * gnulib-tool (func_exit): Update comment.
56255
56256 2008-09-18  Simon Josefsson  <simon@josefsson.org>
56257
56258         * modules/getaddrinfo (Depends-on): Remove strdup, this module
56259         assumes strdup exists and does not depend on strdup to return
56260         ENOMEM on out of memory conditions.
56261
56262 2008-09-18  Bruno Haible  <bruno@clisp.org>
56263
56264         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
56265         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
56266         digits for the exponent.
56267
56268 2008-09-18  Jim Meyering  <meyering@redhat.com>
56269             Bruno Haible  <bruno@clisp.org>
56270
56271         * lib/vasnprintf.c (decimal_point_char): Define also if
56272         NEED_PRINTF_INFINITE_LONG_DOUBLE.
56273
56274 2008-09-16  Bruno Haible  <bruno@clisp.org>
56275         and Eric Blake  <ebb9@byu.net>
56276
56277         vasnprintf: support Irix 5.3
56278         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
56279         that mishandle long double infinity.
56280         Reported by Tom G. Christensen.
56281
56282 2008-09-16  Bruno Haible  <bruno@clisp.org>
56283
56284         * doc/glibc-functions/scandir.texi: Mention the function is missing on
56285         Solaris 9.
56286         * doc/glibc-functions/alphasort.texi: Likewise.
56287         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
56288
56289 2008-09-16  Jim Meyering  <meyering@redhat.com>
56290
56291         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
56292         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
56293         a umask modification leak out of a subshell.  Otherwise, the
56294         opensolaris /bin/sh would be accepted and thus cause unwarranted
56295         failures in the coreutils test suite.
56296
56297 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
56298
56299         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
56300         to succeed.
56301
56302 2008-09-16  Jim Meyering  <meyering@redhat.com>
56303
56304         avoid spurious test failure when library is built without ACL support
56305         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
56306         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
56307         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
56308         * tests/test-copy-acl.sh: Likewise.
56309
56310 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56311
56312         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
56313         based on character occurrence counts.
56314
56315 2008-09-15  Eric Blake  <ebb9@byu.net>
56316
56317         tests: avoid some compiler warnings
56318         * tests/test-memchr.c (main): Pass NULL indirectly.
56319         * tests/test-closein.c (main): Avoid unused variable.
56320
56321 2008-09-15  Bruno Haible  <bruno@clisp.org>
56322
56323         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
56324         are missing on OpenBSD 4.0 individually.
56325         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
56326
56327 2008-09-15  Bruno Haible  <bruno@clisp.org>
56328
56329         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
56330         * doc/posix-functions/strerror.texi: Mention also Cygwin.
56331         * doc/posix-functions/perror.texi: Likewise.
56332         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
56333         is missing.
56334         Reported by Eric Blake.
56335
56336         * lib/errno.in.h: Use replacement values >= 2000.
56337         Reported by Eric Blake.
56338
56339 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56340
56341         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
56342         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
56343         limit.
56344         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
56345         compareseq was aborted.
56346
56347 2008-09-14  Bruno Haible  <bruno@clisp.org>
56348
56349         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
56350         yvec_edit_count.
56351         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
56352         (fstrcmp_bounded): Simplify result computation accordingly.
56353
56354 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56355
56356         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
56357         (fstrcmp): Define in terms of fstrcmp_bounded.
56358         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
56359         lower_bound argument.
56360         Return quickly if the result is certainly < lower_bound.
56361         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
56362
56363 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56364
56365         * lib/diffseq.h (EARLY_ABORT): New macro.
56366         (compareseq): Change return type to bool. Return true when EARLY_ABORT
56367         evaluates to true.
56368
56369 2008-09-14  Bruno Haible  <bruno@clisp.org>
56370
56371         * modules/perror-tests: New file.
56372         * tests/test-perror.sh: New file.
56373         * tests/test-perror.c: New file.
56374
56375         New module 'perror'.
56376         * lib/stdio.in.h (perror): New declaration.
56377         * lib/perror.c: New file.
56378         * m4/perror.m4: New file.
56379         * modules/perror: New file.
56380         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
56381         * doc/posix-functions/perror.texi: Mention the perror module.
56382         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
56383         REPLACE_PERROR.
56384         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
56385         REPLACE_PERROR.
56386
56387 2008-09-14  Bruno Haible  <bruno@clisp.org>
56388
56389         * modules/stdio (Makefile.am): Reorder to match the order in
56390         lib/stdio.in.h.
56391         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
56392
56393 2008-09-13  Bruno Haible  <bruno@clisp.org>
56394
56395         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
56396
56397 2008-09-13  Bruno Haible  <bruno@clisp.org>
56398
56399         Extend strerror to cover the added errno values.
56400         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
56401         (rpl_strerror): Provide error messages for the added errno values and
56402         for the WSA* values.
56403         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
56404         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
56405         strerror.
56406         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
56407         * modules/strerror (Depends-on): Add errno.
56408         * doc/posix-functions/strerror.texi: Document the change.
56409         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
56410         and EOVERFLOW.
56411
56412 2008-09-13  Bruno Haible  <bruno@clisp.org>
56413
56414         * modules/EOVERFLOW: Remove file.
56415         * m4/eoverflow.m4: Remove file.
56416         * modules/EOVERFLOW-tests: Remove file.
56417         * tests/test-EOVERFLOW.c: Remove file.
56418         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
56419         * modules/ftell (Depends-on): Likewise.
56420         * modules/getdelim (Depends-on): Likewise.
56421         * modules/getugroups (Depends-on): Likewise.
56422         * modules/poll (Depends-on): Likewise.
56423         * modules/snprintf (Depends-on): Likewise.
56424         * modules/sprintf-posix (Depends-on): Likewise.
56425         * modules/vasnprintf (Depends-on): Likewise.
56426         * modules/vasprintf (Depends-on): Likewise.
56427         * modules/vfprintf-posix (Depends-on): Likewise.
56428         * modules/vsnprintf (Depends-on): Likewise.
56429         * modules/vsprintf-posix (Depends-on): Likewise.
56430         * modules/xvasprintf (Depends-on): Likewise.
56431         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
56432         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
56433         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
56434         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
56435         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
56436         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
56437         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
56438         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
56439         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
56440         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
56441         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
56442         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
56443         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
56444         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
56445         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
56446         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
56447         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
56448         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
56449         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
56450         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
56451         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
56452         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
56453         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
56454         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
56455         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
56456         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
56457         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
56458         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
56459         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
56460         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
56461         * MODULES.html.sh: Remove EOVERFLOW.
56462         * NEWS: Mention the change.
56463
56464 2008-09-13  Bruno Haible  <bruno@clisp.org>
56465
56466         * modules/errno-tests: New file.
56467         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
56468
56469         * lib/errno.in.h: New file.
56470         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
56471         * modules/errno: New file.
56472         * doc/posix-headers/errno.texi: Update documentation.
56473         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
56474
56475 2008-09-13  Bruno Haible  <bruno@clisp.org>
56476
56477         * tests/test-poll.c: Use #if for native Windows, rather than testing
56478         __MSVCRT__.
56479
56480 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56481             Bruno Haible  <bruno@clisp.org>
56482
56483         * lib/glob.c: Don't include <pwd.h> on native Windows.
56484         (WINDOWS32): New macro.
56485         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
56486
56487 2008-09-13  Bruno Haible  <bruno@clisp.org>
56488
56489         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
56490         (ETIMEDOUT): Remove macro.
56491         (glthread_cond_timedwait_multithreaded): New declaration.
56492         (glthread_cond_timedwait): Use it.
56493         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
56494         (glthread_cond_timedwait_multithreaded): New function.
56495
56496 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
56497
56498         * modules/poll-tests: Do not check for io.h.
56499         * tests/test-poll.c: Check for __MSVCRT__ instead.
56500
56501 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
56502
56503         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
56504         * modules/poll-tests: Add inet_pton, stdbool, sockets.
56505         * tests/test-poll.c: Use them.  Use _pipe on Windows.
56506
56507 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
56508
56509         * modules/poll-tests: New.
56510         * tests/test-poll.c: New.
56511
56512 2008-09-12  Eric Blake  <ebb9@byu.net>
56513
56514         frexp: test for NetBSD failure on -0.0
56515         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
56516         not all, bugs from NetBSD 3.0 have been fixed.
56517         * doc/posix-functions/frexp.texi (frexp): Document bug.
56518         Reported by Thomas Klausner.
56519
56520         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
56521         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
56522         literal -0.0.
56523         Reported by Jonathan C. Patschke <jp@centtech.com>.
56524
56525 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56526
56527         * lib/glthread/cond.h: Use dummy implementation also if
56528         USE_WIN32_THREADS.
56529
56530 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56531
56532         * modules/fnmatch-posix (License): Change to LGPLv2+.
56533         * modules/fnmatch-gnu (License): Likewise.
56534
56535 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56536
56537         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
56538
56539 2008-09-11  Jim Meyering  <meyering@redhat.com>
56540
56541         * users.txt: Add gtk-vnc.
56542
56543 2008-09-08  Simon Josefsson  <simon@josefsson.org>
56544
56545         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
56546         rotate amounts.
56547
56548         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
56549         required for 16-bit and 8-bit rotates.
56550         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
56551         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
56552         UINT8_MAX instead of hard-coded constants.
56553         Suggested by Paul Eggert.
56554
56555 2008-09-07  Bruno Haible  <bruno@clisp.org>
56556
56557         * tests/test-striconveh.c (main): Check behaviour when converting from
56558         UTF-7.
56559
56560         Make striconveh work better with stateful encodings.
56561         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
56562         that iconv does not increment the inptr when returning -1/EINVAL.
56563
56564 2008-09-07  Bruno Haible  <bruno@clisp.org>
56565
56566         * build-aux/config.rpath: Update according to libtool-2.2.6.
56567         * build-aux/config.libpath: Likewise.
56568
56569 2008-09-06  Bruno Haible  <bruno@clisp.org>
56570
56571         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
56572         * lib/freadptr.c (freadptr): Likewise.
56573         * lib/freadseek.c (freadptrinc): Likewise.
56574         Reported by Simon Josefsson.
56575
56576 2008-09-06  Bruno Haible  <bruno@clisp.org>
56577
56578         * modules/freadptr (License): Change to LGPLv2+.
56579         * modules/freadseek (License): Likewise.
56580         Suggested by Eric Blake.
56581
56582         * modules/memchr2 (License): Change to LGPLv2+.
56583         Approved by Eric Blake.
56584
56585 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56586             Bruno Haible  <bruno@clisp.org>
56587
56588         Make gnulib-tool work with native 'sed' on AIX.
56589         * gnulib-tool (sed_noop): New variable.
56590         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
56591         func_add_or_update, func_create_testdir): Use it to initialize sed
56592         script variables.
56593         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
56594
56595 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
56596             Bruno Haible  <bruno@clisp.org>
56597
56598         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
56599         also works after #include directives.
56600
56601 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
56602
56603         getdate.y: reject an out-of-range timezone value
56604         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
56605         the range [-24...+24].  When specified with only one or two digits,
56606         * tests/test-getdate.c: Tests for the fix.
56607         * doc/getdate.texi: Document this change.
56608
56609 2008-09-03  Bruno Haible  <bruno@clisp.org>
56610
56611         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
56612
56613 2008-09-02  Simon Josefsson  <simon@josefsson.org>
56614
56615         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
56616         <bruce.korb@gmail.com> with ideas from Ben Pfaff
56617         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
56618         Blake <ebb9@byu.net>.
56619
56620         * tests/test-bitrotate.c: Add more test vectors.
56621
56622 2008-09-02  Eric Blake  <ebb9@byu.net>
56623
56624         vasnprintf-posix: handle large precision via %.*d
56625         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
56626         when handling it ourselves.
56627         * tests/test-vasnprintf-posix.c (test_function): Add test.
56628         * tests/test-snprintf-posix.h (test_function): Likewise.
56629         * tests/test-sprintf-posix.h (test_function): Likewise.
56630         * tests/test-vasprintf-posix.c (test_function): Likewise.
56631         Reported by Alain Guibert.
56632
56633 2008-09-01  Eric Blake  <ebb9@byu.net>
56634
56635         c-stack: make configure-time check more robust
56636         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
56637         successful sigaction call.
56638         Reported by Tom G. Christensen.
56639
56640 2008-09-01  Bruno Haible  <bruno@clisp.org>
56641
56642         New module 'findprog-lgpl'.
56643         * modules/findprog-lgpl: New file.
56644         * lib/findprog-lgpl.c: New file.
56645         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
56646         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
56647         to decide whether to use strdup or xstrdup, concatenated_filename or
56648         xconcatenated_filename.
56649
56650 2008-09-01  Bruno Haible  <bruno@clisp.org>
56651
56652         Split module 'concat-filename' into 'concat-filename' (LGPL) and
56653         'xconcat-filename' (GPL).
56654         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
56655         (License): Change to LGPLv2+.
56656         * modules/xconcat-filename: New file.
56657         * lib/concat-filename.h (concatenated_filename): Change specification.
56658         (xconcatenated_filename): New declaration.
56659         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
56660         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
56661         memory situations.
56662         * lib/xconcat-filename.c: New file.
56663         * NEWS: Mention the change.
56664         * lib/findprog.c: Include concat-filename.h, not filename.h.
56665         (find_in_path): Use xconcatenated_filename instead of
56666         concatenated_filename.
56667         * lib/javacomp.c: Include concat-filename.h, not filename.h.
56668         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
56669         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
56670         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
56671         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
56672         instead of concatenated_filename.
56673         * lib/javaexec.c: Include concat-filename.h, not filename.h.
56674         (execute_java_class): Use xconcatenated_filename instead of
56675         concatenated_filename.
56676         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
56677         * modules/javacomp (Depends-on): Likewise.
56678         * modules/javaexec (Depends-on): Likewise.
56679
56680 2008-09-01  Bruno Haible  <bruno@clisp.org>
56681
56682         Split module 'filename' into 'filename' and 'concat-filename'.
56683         * modules/filename: Keep only lib/filename.h.
56684         (License): Change to LGPLv2+.
56685         * modules/concat-filename: New file, extracted from modules/filename.
56686         * lib/filename.h (concatenated_filename): Remove declaration.
56687         * lib/concat-filename.h: New file, extracted from lib/filename.h.
56688         * lib/concat-filename.c: Include concat-filename.h.
56689         * NEWS: Mention the change.
56690
56691 2008-09-01  Simon Josefsson  <simon@josefsson.org>
56692
56693         * lib/bitrotate.h (rotl8, rotr8): Add.
56694
56695         * modules/bitrotate (configure.ac): Need
56696         AC_REQUIRE([AC_C_INLINE]).
56697         (Description): Mention stdint.h.  Reported by Bruno Haible
56698         <bruno@clisp.org>.
56699
56700         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
56701         Paolo Bonzini <bonzini@gnu.org>.
56702
56703 2008-08-31  Bruno Haible  <bruno@clisp.org>
56704
56705         Assume Solaris specific bi-arch conventions on Solaris systems.
56706         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
56707         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
56708         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
56709         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
56710         like acl_libdirstem.
56711         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
56712         acl_libdirstem.
56713         * NEWS: Mention the change.
56714         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
56715
56716 2008-08-31  Jim Meyering  <meyering@redhat.com>
56717
56718         * lib/strftime.h: Add comments describing the two added arguments.
56719
56720         remove duplicate #include directives
56721         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
56722         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
56723
56724 2008-08-31  Bruno Haible  <bruno@clisp.org>
56725
56726         New module 'sigpipe-die'.
56727         * modules/sigpipe-die: New file.
56728         * lib/sigpipe-die.h: New file.
56729         * lib/sigpipe-die.c: New file.
56730         * MODULES.html.sh (Signal handling): Add sigpipe-die.
56731
56732 2008-08-31  Bruno Haible  <bruno@clisp.org>
56733
56734         Don't override previously installed signal handlers.
56735         * lib/fatal-signal.c (saved_sigactions): New variable.
56736         (uninstall_handlers): Reset the signal to the saved handler, not
56737         to SIG_DFL (except when ignored).
56738         (install_handlers): Save the previous handlers.
56739
56740 2008-08-30  Bruno Haible  <bruno@clisp.org>
56741
56742         * gnulib-tool (func_reset_sigpipe): New function.
56743         (func_get_automake_snippet, func_modules_transitive_closure,
56744         func_import): Invoke it before a join command that reads from stdin,
56745         to avoid "echo: write error: Broken pipe" error messages on stderr.
56746         Reported by Sam Steingold <sds@gnu.org>.
56747
56748 2008-08-30  Bruno Haible  <bruno@clisp.org>
56749
56750         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
56751         Code copied from m4/open.m4.
56752         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
56753         access and the filename ends in a slash. Code copied from lib/open.c.
56754         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
56755         * tests/test-fopen.c (main): Check against bug with trailing slash.
56756
56757 2008-08-29  Bruno Haible  <bruno@clisp.org>
56758
56759         Avoid some "gcc -pedantic" warnings.
56760         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
56761         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
56762         * lib/dirent.in.h: Likewise.
56763         * lib/fcntl.in.h: Likewise.
56764         * lib/float.in.h: Likewise.
56765         * lib/iconv.in.h: Likewise.
56766         * lib/inttypes.in.h: Likewise.
56767         * lib/locale.in.h: Likewise.
56768         * lib/math.in.h: Likewise.
56769         * lib/netinet_in.in.h: Likewise.
56770         * lib/search.in.h: Likewise.
56771         * lib/signal.in.h: Likewise.
56772         * lib/stdarg.in.h: Likewise.
56773         * lib/stdint.in.h: Likewise.
56774         * lib/stdio.in.h: Likewise.
56775         * lib/stdlib.in.h: Likewise.
56776         * lib/string.in.h: Likewise.
56777         * lib/strings.in.h: Likewise.
56778         * lib/sys_select.in.h: Likewise.
56779         * lib/sys_socket.in.h: Likewise.
56780         * lib/sys_stat.in.h: Likewise.
56781         * lib/sys_time.in.h: Likewise.
56782         * lib/sysexits.in.h: Likewise.
56783         * lib/time.in.h: Likewise.
56784         * lib/unistd.in.h: Likewise.
56785         * lib/wchar.in.h: Likewise.
56786         * lib/wctype.in.h: Likewise.
56787         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
56788         * modules/fchdir (Makefile.am): Likewise.
56789         * modules/fcntl (Makefile.am): Likewise.
56790         * modules/float (Makefile.am): Likewise.
56791         * modules/iconv_open (Makefile.am): Likewise.
56792         * modules/inttypes (Makefile.am): Likewise.
56793         * modules/locale (Makefile.am): Likewise.
56794         * modules/math (Makefile.am): Likewise.
56795         * modules/netinet_in (Makefile.am): Likewise.
56796         * modules/search (Makefile.am): Likewise.
56797         * modules/signal (Makefile.am): Likewise.
56798         * modules/stdarg (Makefile.am): Likewise.
56799         * modules/stdint (Makefile.am): Likewise.
56800         * modules/stdio (Makefile.am): Likewise.
56801         * modules/stdlib (Makefile.am): Likewise.
56802         * modules/string (Makefile.am): Likewise.
56803         * modules/strings (Makefile.am): Likewise.
56804         * modules/sys_select (Makefile.am): Likewise.
56805         * modules/sys_socket (Makefile.am): Likewise.
56806         * modules/sys_stat (Makefile.am): Likewise.
56807         * modules/sys_time (Makefile.am): Likewise.
56808         * modules/sysexits (Makefile.am): Likewise.
56809         * modules/time (Makefile.am): Likewise.
56810         * modules/unistd (Makefile.am): Likewise.
56811         * modules/wchar (Makefile.am): Likewise.
56812         * modules/wctype (Makefile.am): Likewise.
56813         Reported by Reuben Thomas <rrt@sc3d.org>.
56814
56815 2008-08-29  Bruno Haible  <bruno@clisp.org>
56816
56817         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
56818         any more.
56819
56820 2008-08-29  Simon Josefsson  <simon@josefsson.org>
56821
56822         * MODULES.html.sh (Misc): Add bitrotate.
56823
56824         * modules/bitrotate: New file.
56825
56826         * lib/bitrotate.h: New file.
56827
56828         * modules/bitrotate-tests: New file.
56829
56830         * tests/test-bitrotate.c: New file.
56831
56832         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
56833         on the bitrotate module.
56834
56835         * lib/arctwo.c: Use new bitrotate module.
56836
56837 2008-08-29  Jim Meyering  <meyering@redhat.com>
56838
56839         bootstrap: merge changes from coreutils
56840         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
56841         of copied files.  Remove a kludge, now that this is fixed.
56842         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
56843         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
56844         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
56845
56846 2008-08-29  Bruno Haible  <bruno@clisp.org>
56847
56848         * MODULES.html.sh: Remove --cvs-urls option.
56849
56850 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
56851
56852         maint.mk: adjust to file name change
56853         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
56854
56855 2008-08-28  Jim Meyering  <meyering@redhat.com>
56856
56857         * modules/getndelim2 (License): Relicense to LGPLv2+.
56858         Approved by Richard Stallman for the version of 1995, and by
56859         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
56860
56861 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
56862
56863         * lib/getdelim.c (flockfile, funlockfile): Make all of them
56864         dummy if one is not available.  Do not touch them if
56865         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
56866         (getc_maybe_unlocked): New.
56867         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
56868
56869 2008-08-26  Eric Blake  <ebb9@byu.net>
56870
56871         doc/INSTALL: resync from autoconf
56872         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
56873         (INSTALL_PRELUDE): Delete; this is done more efficiently by
56874         moving...
56875         * install.texi [!autoconf]: ...here.  Resync from autoconf.
56876         * INSTALL: Regenerate.
56877         * INSTALL.ISO: New file.
56878         * INSTALL.UTF-8: Likewise.
56879
56880 2008-08-26  Jim Meyering  <meyering@redhat.com>
56881
56882         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
56883         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
56884         these definitions conditional, so that they may be overridden, too.
56885
56886 2008-08-26  Bruno Haible  <bruno@clisp.org>
56887
56888         Generate INSTALL file variants with prettier quotes.
56889         * doc/Makefile (INSTALL_PRELUDE): New macro.
56890         (INSTALL): Use it.
56891         (INSTALL.ISO, INSTALL.UTF-8): New rules.
56892
56893 2008-08-26  Bruno Haible  <bruno@clisp.org>
56894
56895         Run makeinfo in an English locale.
56896         * doc/Makefile (MAKEINFO): New variable.
56897
56898 2008-08-26  Bruno Haible  <bruno@clisp.org>
56899
56900         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
56901         Suggested by Eric Blake.
56902
56903 2008-08-25  Bruno Haible  <bruno@clisp.org>
56904
56905         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
56906
56907 2008-08-25  Eric Blake  <ebb9@byu.net>
56908
56909         c-stack: test that stack overflow can be caught
56910         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
56911         that platform allows handling stack overflow; at least OS/2 EMX
56912         has sigaltstack, but crashes before transferring control to
56913         handler on stack overflow.
56914         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
56915         check for HAVE_STACK_OVERFLOW_HANDLING.
56916         Reported by Elbert Pol.
56917
56918 2008-08-25  Bruno Haible  <bruno@clisp.org>
56919
56920         * doc/posix-functions/strftime.texi: Fix description of strftime
56921         module.
56922
56923 2008-08-24  Bruno Haible  <bruno@clisp.org>
56924
56925         * tests/uniwidth/test-uc_width2.c: New file.
56926         * tests/uniwidth/test-uc_width2.sh: New file.
56927         * modules/uniwidth/width-tests (Files): Add the new files.
56928         (TESTS): Add uniwidth/test-uc_width2.sh.
56929         (TESTS_ENVIRONMENT): New variable.
56930         (check_PROGRAMS): Add test-uc_width2.
56931         (test_uc_width2_SOURCES): New variable.
56932
56933         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
56934         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
56935         not 0x00AB.
56936         Reported by Alexander V. Lukyanov <lav@netis.ru>.
56937
56938 2008-08-22  Eric Blake  <ebb9@byu.net>
56939
56940         test-lock, test-tls: mention why a test is skipped
56941         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
56942         skipped.
56943         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
56944
56945         count-one-bits: relax license
56946         * modules/count-one-bits (License): Relicense to LGPLv2+.
56947         Suggested by Ludovic Courtès, approved by Ben Pfaff.
56948
56949 2008-08-22  Andreas Schwab  <schwab@suse.de>
56950
56951         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
56952         Remove spurious space in assignment.
56953
56954 2008-08-21  Simon Josefsson  <simon@josefsson.org>
56955
56956         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
56957         Paul Eggert <eggert@CS.UCLA.EDU>.
56958
56959 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
56960
56961         * modules/gettext: Add m4/threadlib.m4.
56962
56963 2008-08-19  Eric Blake  <ebb9@byu.net>
56964
56965         test-c-stack: fix compilation failure on FreeBSD 5.0
56966         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
56967         headers before <sys/resource.h>.
56968         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
56969         the bug.
56970         Reported by Nelson H. F. Beebe.
56971
56972         strverscmp: migrate from "strverscmp.h" to <string.h>
56973         * modules/string (Makefile.am): Add new hooks.
56974         * modules/strverscmp (Files): Remove strverscmp.h.
56975         (Depends-on): Add string.
56976         (configure.ac): Add indicator.
56977         (Include): Mention new header.
56978         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
56979         defaults.
56980         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
56981         results.
56982         * lib/strverscmp.h: Delete.
56983         * lib/string.in.h (strverscmp): Provide declaration, when needed.
56984         * tests/test-strverscmp.c (includes): Adjust client.
56985         * lib/check-version.c (includes): Likewise.
56986         * NEWS: Document the change.
56987
56988         strverscmp: add unit test
56989         * modules/strverscmp-tests: New file.
56990         * tests/test-strverscmp.c: Likewise.
56991
56992 2008-08-19  Simon Josefsson  <simon@josefsson.org>
56993
56994         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
56995         regarding Windows crypto stuff, from Mono.
56996
56997 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
56998
56999         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
57000         if present, for intel RND.  Return error on failures.
57001
57002 2008-08-18  Ben Pfaff  <blp@gnu.org>
57003
57004         gitlog-to-changelog: give better diagnostic for failed pipe-open
57005         * build-aux/gitlog-to-changelog: Improve error message: suggest
57006         that the version of Git may be too old.
57007
57008 2008-08-18  Simon Josefsson  <simon@josefsson.org>
57009
57010         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
57011         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
57012
57013 2008-08-18  Bruno Haible  <bruno@clisp.org>
57014
57015         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
57016         pthread_in_use().
57017
57018 2008-08-18  Bruno Haible  <bruno@clisp.org>
57019
57020         * lib/glthread/threadlib.c: Include <pthread.h>.
57021
57022 2008-08-18  Bruno Haible  <bruno@clisp.org>
57023
57024         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
57025         glthread_recursive_lock_* macros.
57026         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
57027         Fix syntax error.
57028
57029 2008-08-18  Bruno Haible  <bruno@clisp.org>
57030
57031         * lib/glthread/thread.c: Avoid forcing a context switch right after
57032         thread creation.
57033
57034 2008-08-17  Bruno Haible  <bruno@clisp.org>
57035
57036         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
57037         * lib/glthread/thread.h: Provide Win32 specific implementation.
57038         * modules/thread (Files): Add lib/glthread/thread.c.
57039         (Depends-on): Add lock.
57040         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
57041
57042 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57043
57044         New module 'yield'.
57045         * modules/yield: New file.
57046         * lib/glthread/yield.h: New file.
57047         * m4/yield.m4: New file.
57048         * MODULES.html.sh (Multithreading): Add yield.
57049
57050 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57051
57052         New module 'thread'.
57053         * modules/thread: New file.
57054         * lib/glthread/thread.h: New file.
57055         * m4/thread.m4: New file.
57056         * MODULES.html.sh (Multithreading): Add thread.
57057
57058 2008-08-17  Bruno Haible  <bruno@clisp.org>
57059
57060         * lib/glthread/lock.h: Include <stdlib.h> always.
57061         * lib/glthread/tls.h: Likewise.
57062         * lib/glthread/cond.h: Likewise.
57063
57064 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57065
57066         New module 'cond'.
57067         * modules/cond: New file.
57068         * lib/glthread/cond.h: New file.
57069         * lib/glthread/cond.c: New file.
57070         * m4/cond.m4: New file.
57071         * MODULES.html.sh (Multithreading): Add cond.
57072
57073 2008-08-16  Eric Blake  <ebb9@byu.net>
57074
57075         c-stack: fix regression on Irix 5.3 from 2008-06-21
57076         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
57077         sa_sigaction...
57078         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
57079         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
57080         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
57081         * modules/signal (Makefile.am): Use the value.
57082         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
57083         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
57084         * doc/posix-headers/signal.texi (signal.h): Document this
57085         portability issue.
57086         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
57087         Reported by Tom G. Christensen.
57088
57089 2008-08-17  Bruno Haible  <bruno@clisp.org>
57090
57091         New module 'threadlib'.
57092         * modules/threadlib: New file.
57093         * lib/glthread/threadlib.c: New file, extracted from
57094         lib/glthread/lock.c.
57095         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
57096         functions.
57097         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
57098         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
57099         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
57100         macros.
57101         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
57102         (gl_DISABLE_THREADS): Remove macro.
57103         * modules/lock (Files): Remove build-aux/config.rpath.
57104         (Depends-on): Remove havelib. Add threadlib.
57105         (configure.ac-early): Remove section.
57106         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
57107         * modules/tls (Depends-on): Remove lock. Add threadlib.
57108         (Link): New section, copied from threadlib.
57109         * MODULES.html.sh (Multithreading): Add threadlib.
57110
57111 2008-08-14  Bruno Haible  <bruno@clisp.org>
57112
57113         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
57114         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
57115         glthread_rwlock_unlock, glthread_rwlock_destroy,
57116         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
57117         glthread_recursive_lock_destroy): Define as macros always.
57118         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
57119         glthread_lock_lock.
57120         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
57121         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
57122         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
57123         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
57124         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
57125         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
57126         (glthread_recursive_lock_lock_func): Renamed from
57127         glthread_recursive_lock_lock.
57128         (glthread_recursive_lock_unlock_func): Renamed from
57129         glthread_recursive_lock_unlock.
57130         (glthread_recursive_lock_destroy_func): Renamed from
57131         glthread_recursive_lock_destroy.
57132
57133 2008-08-14  Bruno Haible  <bruno@clisp.org>
57134
57135         * lib/glthread/lock.h: Renamed from lib/lock.h.
57136         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
57137         * lib/glthread/tls.h: Renamed from lib/tls.h.
57138         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
57139         * lib/fstrcmp.c: Update includes.
57140         * lib/strsignal.c: Update includes.
57141         * modules/lock (Files, Makefile.am): Update.
57142         (Include): Change to "glthread/lock.h".
57143         * modules/tls (Files, Makefile.am): Update.
57144         (Include): Change to "glthread/tls.h".
57145         * tests/test-lock.c: Update includes.
57146         * tests/test-tls.c: Update includes.
57147         * NEWS: Mention the renamed header files.
57148
57149 2008-08-11  Jim Meyering  <meyering@redhat.com>
57150
57151         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
57152
57153 2008-08-11  Eric Blake  <ebb9@byu.net>
57154
57155         test-c-stack: avoid C99-ism
57156         * tests/test-c-stack.c (main): Fix whitespace, move declaration
57157         before statement.
57158         Reported by Alain Guibert.
57159
57160 2008-08-10  Jim Meyering  <meyering@redhat.com>
57161
57162         ensure that return value of uinttostr et al are not ignored
57163         * lib/inttostr.h (__GNUC_PREREQ): Define.
57164         (__attribute_warn_unused_result__): Define.
57165         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
57166
57167 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
57168
57169         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
57170         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
57171
57172 2008-08-07  Jim Meyering  <meyering@redhat.com>
57173
57174         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
57175
57176         * modules/mkstemp (License): Relicense under LGPLv2+.
57177         * modules/tempname (License): Likewise.
57178
57179 2008-08-06  Bruno Haible  <bruno@clisp.org>
57180
57181         * lib/poll.c (poll): Further micro-optimization.
57182
57183 2008-08-06  Jim Meyering  <meyering@redhat.com>
57184
57185         inet_pton.c: use locale-independent tolower
57186         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
57187         (inet_pton6): Use c_tolower rather than tolower.
57188         * modules/inet_pton (Depends-on): Add c-ctype.
57189
57190 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
57191
57192         * lib/poll.c (poll): Avoid division when timeout is 0, cache
57193         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
57194
57195 2008-08-06  Jim Meyering  <meyering@redhat.com>
57196
57197         * modules/inet_pton (License): Relicense under LGPLv2+.
57198
57199 2008-08-03  Bruno Haible  <bruno@clisp.org>
57200
57201         Additional non-aborting API for lock and tls.
57202         * lib/lock.h: Include <errno.h>.
57203         (glthread_lock_init): New macro/function.
57204         (gl_lock_init): Define as wrapper around glthread_lock_init.
57205         (glthread_lock_lock): New macro/function.
57206         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
57207         (glthread_lock_unlock): New macro/function.
57208         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
57209         (glthread_lock_destroy): New macro/function.
57210         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
57211         (glthread_rwlock_init): New macro/function.
57212         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
57213         (glthread_rwlock_rdlock): New macro/function.
57214         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
57215         (glthread_rwlock_wrlock): New macro/function.
57216         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
57217         (glthread_rwlock_unlock): New macro/function.
57218         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
57219         (glthread_rwlock_destroy): New macro/function.
57220         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
57221         (glthread_recursive_lock_init): New macro/function.
57222         (gl_recursive_lock_init): Define as wrapper around
57223         glthread_recursive_lock_init.
57224         (glthread_recursive_lock_lock): New macro/function.
57225         (gl_recursive_lock_lock): Define as wrapper around
57226         glthread_recursive_lock_lock.
57227         (glthread_recursive_lock_unlock): New macro/function.
57228         (gl_recursive_lock_unlock): Define as wrapper around
57229         glthread_recursive_lock_unlock.
57230         (glthread_recursive_lock_destroy): New macro/function.
57231         (gl_recursive_lock_destroy): Define as wrapper around
57232         glthread_recursive_lock_destroy.
57233         (glthread_once): New macro/function.
57234         (gl_once): Define as wrapper around glthread_once.
57235         Update function declarations.
57236         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
57237         glthread_rwlock_init. Return error code.
57238         (glthread_rwlock_rdlock_multithreaded): Renamed from
57239         glthread_rwlock_rdlock. Return error code.
57240         (glthread_rwlock_wrlock_multithreaded): Renamed from
57241         glthread_rwlock_wrlock. Return error code.
57242         (glthread_rwlock_unlock_multithreaded): Renamed from
57243         glthread_rwlock_unlock. Return error code.
57244         (glthread_rwlock_destroy_multithreaded): Renamed from
57245         glthread_rwlock_destroy. Return error code.
57246         (glthread_recursive_lock_init_multithreaded): Renamed from
57247         glthread_recursive_lock_init. Return error code.
57248         (glthread_recursive_lock_lock_multithreaded): Renamed from
57249         glthread_recursive_lock_lock. Return error code.
57250         (glthread_recursive_lock_unlock_multithreaded): Renamed from
57251         glthread_recursive_lock_unlock. Return error code.
57252         (glthread_recursive_lock_destroy_multithreaded): Renamed from
57253         glthread_recursive_lock_destroy. Return error code.
57254         (glthread_once_call): Make static.
57255         (glthread_once_multithreaded): Renamed from glthread_once.
57256         * lib/tls.h: Include <errno.h>.
57257         (glthread_tls_key_init): New macro/function.
57258         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
57259         (glthread_tls_set): New macro/function.
57260         (gl_tls_set): Define as wrapper around glthread_tls_set.
57261         (glthread_tls_key_destroy): New macro/function.
57262         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
57263         Update function declarations.
57264         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
57265         glthread_tls_get.
57266         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
57267
57268 2008-08-04  Eric Blake  <ebb9@byu.net>
57269
57270         gnumakefile: use space, not TAB, outside of targets
57271         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
57272
57273 2008-08-02  Jim Meyering  <meyering@redhat.com>
57274
57275         getdate.y: avoid locale-dependent date parsing failure
57276         In Turkish locales, getdate would fail to recognize keywords
57277         containing a lowercase "i".  The solution is not to rely on
57278         locale-sensitive case-conversion.
57279         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
57280         (lookup_word): Use c_toupper in place of toupper.
57281         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
57282         Reported by Vefa Bicakci <bicave@superonline.com> in
57283         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
57284         * modules/getdate (Depends-on): Add c-ctype.
57285
57286 2008-08-02  Bruno Haible  <bruno@clisp.org>
57287
57288         * gnulib-tool (func_import): When updating or creating a .gitignore
57289         file, prepend each added line with a slash, and ignore leading slashes
57290         from the existing lines.
57291         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
57292
57293 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57294
57295         Portability fix for GNU make 3.79.1.
57296         * top/GNUmakefile: Avoid 'else COND', which older GNU make
57297         versions do not understand.
57298
57299 2008-08-01  Bruno Haible  <bruno@clisp.org>
57300
57301         Work around bug of HP-UX 10.20 cc with -0.0 literal.
57302         * tests/test-isnanf.h (zero): New variable.
57303         (main): Avoid literal -0.0f.
57304         * tests/test-isnand.h (zero): New variable.
57305         (main): Avoid literal -0.0.
57306         * tests/test-isnanl.h (zero): New variable.
57307         (main): Avoid literal -0.0L.
57308         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
57309         (test_float, test_double, test_long_double): Avoid literals -0.0f,
57310         -0.0, -0.0L.
57311         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
57312         (test_signbitd): Avoid literal -0.0.
57313         (test_signbitl): Avoid literal -0.0L.
57314         * tests/test-ceilf1.c (zero): New variable.
57315         (main): Avoid literal -0.0f.
57316         * tests/test-ceill.c (zero): New variable.
57317         (main): Avoid literal -0.0L.
57318         * tests/test-floorf1.c (zero): New variable.
57319         (main): Avoid literal -0.0f.
57320         * tests/test-floorl.c (zero): New variable.
57321         (main): Avoid literal -0.0L.
57322         * tests/test-roundf1.c (zero): New variable.
57323         (main): Avoid literal -0.0f.
57324         * tests/test-round1.c (zero): New variable.
57325         (main): Avoid literal -0.0.
57326         * tests/test-roundl.c (zero): New variable.
57327         (main): Avoid literal -0.0L.
57328         * tests/test-truncf1.c (zero): New variable.
57329         (main): Avoid literal -0.0f.
57330         * tests/test-trunc1.c (zero): New variable.
57331         (main): Avoid literal -0.0.
57332         * tests/test-truncl.c (zero): New variable.
57333         (main): Avoid literal -0.0L.
57334         * tests/test-frexp.c (zero): New variable.
57335         (main): Avoid literal -0.0.
57336         * tests/test-frexpl.c (zero): New variable.
57337         (main): Avoid literal -0.0L.
57338         * tests/test-ldexpl.c (zero): New variable.
57339         (main): Avoid literal -0.0L.
57340         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
57341         (zerod, zerol): New variables.
57342         (test_function): Avoid literals -0.0, -0.0L.
57343         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
57344         (zerod, zerol): New variables.
57345         (test_function): Avoid literals -0.0, -0.0L.
57346         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
57347         (zerod, zerol): New variables.
57348         (test_function): Avoid literals -0.0, -0.0L.
57349         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
57350         (zerod, zerol): New variables.
57351         (test_function): Avoid literals -0.0, -0.0L.
57352         * tests/test-strtod.c (zero): New variable.
57353         (main): Avoid literal -0.0.
57354         Reported by Jonathan C. Patschke <jp@centtech.com>.
57355
57356 2008-07-31  Jim Meyering  <meyering@redhat.com>
57357
57358         sha256.h: correct definition of SHA224_DIGEST_SIZE
57359         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
57360         Reported by Paulie Pena IV <paulie4@gmail.com>.
57361         Define as 224 / 8, rather than as a literal.
57362         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
57363         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
57364         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
57365
57366 2008-07-31  Bruno Haible  <bruno@clisp.org>
57367
57368         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
57369         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
57370         Reported by Jonathan Patschke <jp@centtech.com>.
57371
57372 2008-07-31  Bruno Haible  <bruno@clisp.org>
57373
57374         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
57375         Reported by Paolo Bonzini <bonzini@gnu.org>.
57376
57377 2008-07-30  Eric Blake  <ebb9@byu.net>
57378
57379         test-strtod: allow compilation without -lm
57380         * tests/test-strtod.c (main): Avoid link dependence on fabs.
57381         Reported by Dennis Clarke <blastwave@gmail.com>.
57382
57383 2008-07-28  Jim Meyering  <meyering@redhat.com>
57384
57385         bootstrap: work also when there are no .po files in po/
57386         * build-aux/bootstrap (update_po_files): Complete the change
57387         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
57388
57389 2008-07-27  Jim Meyering  <meyering@redhat.com>
57390
57391         * users.txt: Add zile.
57392
57393 2008-07-26  Ben Pfaff  <blp@gnu.org>
57394
57395         Add missing dependencies on new m4/exponent[fdl].m4 files.
57396         * modules/isnanf-nolibm: Add m4/exponentf.m4.
57397         * modules/isnand-nolibm: Add m4/exponentd.m4.
57398         * modules/isnanl-nolibm: Add m4/exponentl.m4.
57399         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
57400         m4/isnan[fdl].m4, because the macros actually used moved.
57401         Reported by Jim Meyering.
57402
57403 2008-07-14  Ben Pfaff  <blp@gnu.org>
57404
57405         Add isinf module.
57406         * lib/isinf.c: New file.
57407         * lib/math.in.h: Define isinf macro if we have decided to replace
57408         it.
57409         * m4/isinf.m4: New file.
57410         * m4/math_h.m4: Initialize and substitute variables for isinf
57411         module.
57412         * modules/isinf: New file.
57413         * modules/isinf-tests: New file.
57414         * modules/math: Add substitutions for new module.
57415         * tests/test-isinf.c: New file.
57416         * doc/posix-functions/isinf.texi: Mention new module.
57417         * MODULES.html.sh: Mention new module.
57418
57419 2008-07-14  Ben Pfaff  <blp@gnu.org>
57420
57421         Factor out some macros for use by additional modules.
57422         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
57423         exponentf.m4.
57424         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
57425         exponentd.m4.
57426         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
57427         file exponentl.m4.
57428         * m4/exponentf.m4: New file.
57429         * m4/exponentd.m4: New file.
57430         * m4/exponentl.m4: New file.
57431         * modules/isnanf: Use new file m4/exponentf.m4.
57432         * modules/isnand: Use new file m4/exponentd.m4.
57433         * modules/isnanl: Use new file m4/exponentl.m4.
57434
57435 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
57436
57437         mktime.c: normalize tp->tm_isdst value to -1/0/1.
57438         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
57439         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
57440         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
57441
57442         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
57443         readlink on platforms without PATH_MAX.
57444
57445 2008-07-21  Eric Blake  <ebb9@byu.net>
57446
57447         Warn, not fail, on stale version.
57448         * top/GNUmakefile (_curr-ver): Tone down previous patch.
57449
57450         Don't allow installation with stale devel version number.
57451         * top/GNUmakefile (_is-install-target): New macro.
57452         (_curr-ver): Forbid installation with stale version number.
57453
57454 2008-07-20  Bruno Haible  <bruno@clisp.org>
57455
57456         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
57457         TESTS_ENVIRONMENT.
57458         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
57459
57460 2008-07-20  Bruno Haible  <bruno@clisp.org>
57461
57462         * lib/c-stack.h (c_stack_action): Add documentation.
57463         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
57464
57465 2008-07-20  Bruno Haible  <bruno@clisp.org>
57466
57467         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
57468         * modules/readlink (License): Likewise.
57469
57470 2008-07-17  Eric Blake  <ebb9@byu.net>
57471
57472         * modules/c-stack (Link): Fix typo.
57473
57474         Make c-stack use libsigsegv, when available.
57475         * modules/c-stack (Depends-on): Add libsigsegv.
57476         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
57477         needed.
57478         * lib/c-stack.c (SIGSTKSZ): Define fallback.
57479         (segv_handler, overflow_handler, c_stack_action)
57480         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
57481         implementation when libsigsegv is available, but only when using
57482         the library is necessary.
57483         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
57484         comment, explaining why XSI check fails on Linux.
57485         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
57486         * tests/test-c-stack2.sh: Tweak skip message.
57487         * NEWS: Document new link-time requirements.
57488
57489 2008-07-16  Eric Blake  <ebb9@byu.net>
57490
57491         c-stack: Expose false positives when not using libsigsegv.
57492         * modules/c-stack-tests (Files): Expand test.
57493         * tests/test-c-stack.c (main): Add means to conditionally trigger
57494         non-overflow SIGSEGV.
57495         * tests/test-c-stack2.sh: New file.
57496
57497 2008-07-14  Bruno Haible  <bruno@clisp.org>
57498
57499         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
57500         Reported by Eric Blake.
57501
57502 2008-07-14  Sam Steingold  <sds@gnu.org>
57503             Bruno Haible  <bruno@clisp.org>
57504
57505         New module libsigsegv.
57506         * modules/libsigsegv: New file.
57507         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
57508         modifications.
57509         * MODULES.html.sh (Signal handling): New section.
57510
57511 2008-07-14  Bruno Haible  <bruno@clisp.org>
57512
57513         * modules/unictype/ctype-* (Description): Add the word "function".
57514         Improves the resulting doc in MODULES.html.
57515
57516 2008-07-12  Ben Pfaff  <blp@gnu.org>
57517
57518         Add longlong module.
57519         * modules/longlong: New file.
57520
57521 2008-07-12  Bruno Haible  <bruno@clisp.org>
57522
57523         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
57524         to empty.
57525
57526 2008-07-10  Ben Pfaff  <blp@gnu.org>
57527
57528         Add isnan module.
57529         * doc/posix-functions/isnan.texi: Mention new module.
57530         * lib/math.in.h: Define isnan macro if we have decided to replace
57531         it.
57532         * m4/isnan.m4: New file.
57533         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
57534         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
57535         also.
57536         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
57537         redundancy.
57538         * m4/math_h.m4: Initialize and substitute variables for isnan
57539         module.
57540         * modules/isnan: New file.
57541         * modules/isnan-tests: New file.
57542         * modules/math: Add substitutions for new module.
57543         * tests/test-isnan.c: New file.
57544         * MODULES.html.sh: Mention new module.
57545
57546 2008-07-10  Ben Pfaff  <blp@gnu.org>
57547
57548         Add isnanf module.
57549         * lib/isnanf.m4: New file.
57550         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
57551         (gl_HAVE_ISNANF_IN_LIBM): New macro.
57552         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
57553         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
57554         * modules/isnanf: New file.
57555         * modules/isnanf-tests: New file.
57556         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
57557         files.
57558         * tests/test-isnanf-nolibm.c: factored most of its contents into
57559         new file tests/test-isnanf.h.
57560         * tests/test-isnanf.h: New file.
57561         * tests/test-isnanf.c: New file.
57562         * MODULES.html.sh: Mention new module.
57563         * doc/glibc-functions/isnanf.texi: Mention new module.
57564
57565 2008-07-10  Ben Pfaff  <blp@gnu.org>
57566
57567         Add isnand module.
57568         * lib/isnand.h: New file.
57569         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
57570         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
57571         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
57572         functionality also.
57573         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
57574         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
57575         (gl_HAVE_ISNAND_IN_LIBM): New macro.
57576         * modules/isnand: New file.
57577         * modules/isnand-tests: New file.
57578         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
57579         files.
57580         * tests/test-isnand-nolibm.c: factored most of its contents into
57581         new file tests/test-isnand.h.
57582         * tests/test-isnand.h: New file.
57583         * tests/test-isnand.c: New file.
57584         * MODULES.html.sh: Mention new module.
57585
57586 2008-07-10  Ben Pfaff  <blp@gnu.org>
57587
57588         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
57589         * lib/isnand.h: Rename lib/isnand-nolibm.h.
57590         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
57591         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
57592         * modules/isnanf-nolibm: Update references to renamed files.
57593         * modules/isnand-nolibm: Likewise.
57594         * modules/isnanf-nolibm-tests: Likewise.
57595         * modules/isnand-nolibm-tests: Likewise.
57596         * lib/frexp.c: Likewise.
57597         * lib/isfinite.c: Likewise.
57598         * lib/signbitd.c: Likewise.
57599         * lib/signbitf.c: Likewise.
57600         * lib/vasnprintf.c: Likewise.
57601         * tests/test-ceilf1.c: Likewise.
57602         * tests/test-ceilf2.c: Likewise.
57603         * tests/test-floorf1.c: Likewise.
57604         * tests/test-floorf2.c: Likewise.
57605         * tests/test-frexp.c: Likewise.
57606         * tests/test-round1.c: Likewise.
57607         * tests/test-round2.c: Likewise.
57608         * tests/test-roundf1.c: Likewise.
57609         * tests/test-strtod.c: Likewise.
57610         * tests/test-trunc1.c: Likewise.
57611         * tests/test-trunc2.c: Likewise.
57612         * tests/test-truncf1.c: Likewise.
57613         * tests/test-truncf2.c: Likewise.
57614         * NEWS: Mention the renamed header files.
57615
57616 2008-07-11  Jim Meyering  <meyering@redhat.com>
57617
57618         vc-list-files: make the last-resort awk code more portable
57619         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
57620         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
57621         does not support it.
57622
57623 2008-07-10  Eric Blake  <ebb9@byu.net>
57624
57625         Work with tar's bootstrap.
57626         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
57627         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
57628         an m4 comment.
57629
57630 2008-07-09  Jim Meyering  <meyering@redhat.com>
57631
57632         posix-shell.m4: fix typo that made this test malfunction
57633         * m4/posix-shell.m4: Remove capitalization in variable name.
57634
57635 2008-07-08  Bruno Haible  <bruno@clisp.org>
57636
57637         * m4/onceonly.m4: Update comments.
57638         Reported by Ben Pfaff <blp@cs.stanford.edu>.
57639
57640 2008-07-04  Jim Meyering  <meyering@redhat.com>
57641
57642         * users.txt: Add vc-dwim.
57643         (bison, coreutils): Use the gitweb URL.
57644
57645 2008-07-03  Jim Meyering  <meyering@redhat.com>
57646
57647         * users.txt: Add libffcall.  From Sam Steingold.
57648
57649 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
57650
57651         getdate.y: do not ignore TZ with relative day, month or year offset
57652         * lib/getdate.y (get_date): Move the tz-handling block to follow the
57653         relative-date-handling, since otherwise, the latter would clobber the
57654         sole output (an updated Start value) of the tz-handling block.
57655         * tests/test-getdate.c: Tests for the fix
57656
57657 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57658
57659         Recognize 'foo_LIBRARIES += libgnu.a'.
57660         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
57661         makefile snippet has already specified an installation location,
57662         also using '+='.
57663
57664 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
57665
57666         getdate.y: factor out common actions
57667         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
57668         Use them in place of open-coded actions.
57669
57670 2008-07-01  Simon Josefsson  <simon@josefsson.org>
57671
57672         Add self-test for getdate module.
57673         * modules/getdate-tests: New file.
57674         * tests/test-getdate.c: New file.
57675
57676 2008-06-29  Bruno Haible  <bruno@clisp.org>
57677
57678         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
57679         .gitignore.
57680         Reported by Sylvain Beucler <beuc@beuc.net>.
57681
57682 2008-06-29  Bruno Haible  <bruno@clisp.org>
57683
57684         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
57685         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
57686
57687 2008-06-29  Bruno Haible  <bruno@clisp.org>
57688
57689         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
57690         EXTRA_DIST.
57691         Reported by Sylvain Beucler <beuc@beuc.net>.
57692
57693 2008-06-26  Jim Meyering  <meyering@redhat.com>
57694
57695         make several modules depend on the "open" module
57696         This provides slightly increased consistency when opening-for-write
57697         the name of a non-directory spelled with a trailing slash.
57698         * modules/chdir-safer: Likewise.
57699         * modules/chown: Likewise.
57700         * modules/clean-temp: Likewise.
57701         * modules/copy-file: Likewise.
57702         * modules/fchdir: Likewise.
57703         * modules/fcntl-safer: Likewise.
57704         * modules/pipe: Likewise.
57705         * modules/utime: Likewise.
57706         Prompted by Eric Blake and Bruno Haible.
57707
57708 2008-06-24  Andreas Schwab  <schwab@suse.de>
57709
57710         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
57711         literals can be used as initializers for global variables.
57712
57713 2008-06-23  Eric Blake  <ebb9@byu.net>
57714
57715         Make gnulib-cache.m4 easier to diff.
57716         * gnulib-tool (func_import): Allow newlines when reading cached
57717         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
57718
57719 2008-06-23  Bruno Haible  <bruno@clisp.org>
57720
57721         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
57722         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
57723         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
57724         m4/signalblocking.m4.
57725         (gl_PREREQ_SIGACTION): Don't invoke it.
57726         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
57727         gl_PREREQ_SIG_HANDLER_H.
57728         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
57729         Don't check for sigaction here.
57730
57731 2008-06-23  Bruno Haible  <bruno@clisp.org>
57732
57733         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
57734         (install_handlers): Don't set the SA_RESETHAND flag.
57735
57736 2008-06-23  Bruno Haible  <bruno@clisp.org>
57737
57738         * m4/sigaction.m4: Comment fixes.
57739         * lib/signal.in.h: Likewise.
57740
57741 2008-06-23  Eric Blake  <ebb9@byu.net>
57742
57743         Fix typo.
57744         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
57745
57746         Avoid SA_ namespace.
57747         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
57748         Reported by Ralf Wildenhues.
57749
57750         Avoid test failure due to SA_RESTORER.
57751         * tests/test-sigaction.c (SA_MASK): New macro.
57752         (main): Avoid failing due to extension flags being set.
57753         Reported by Jim Meyering.
57754
57755         Revert use of sig-handler.h in sigprocmask.c.
57756         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
57757         it requires the existence of struct sigaction.
57758         * lib/sigprocmask.c (handler_t): Restore typedef.
57759         (rpl_signal, old_handlers): Use local type.
57760
57761 2008-06-22  Bruno Haible  <bruno@clisp.org>
57762
57763         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
57764         conditionally.
57765         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
57766
57767 2008-06-22  Bruno Haible  <bruno@clisp.org>
57768
57769         * doc/posix-functions/siginterrupt.texi: Move note.
57770
57771         * lib/signal.in.h (SA_RESTART): New macro.
57772         * lib/sigaction.c: Update comment.
57773
57774         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
57775
57776         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
57777         (gl_PREREQ_SIGPROCMASK): Invoke it.
57778         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
57779
57780         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
57781
57782         * lib/sigprocmask.c: Update a comment.
57783
57784 2008-06-21  Eric Blake  <ebb9@byu.net>
57785
57786         Use sigaction module rather than signal().
57787         * modules/c-stack (Depends-on): Add sigaction.
57788         * modules/fatal-signal (Depends-on): Likewise.
57789         * modules/nanosleep (Depends-on): Likewise.
57790         * modules/sigprocmask (Files): Add sig-handler.h.
57791         * modules/sigaction (Files): Likewise.
57792         * lib/sig-handler.h (get_handler): New file, suggested by Paul
57793         Eggert.
57794         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
57795         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
57796         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
57797         (init_fatal_signals): Likewise.
57798         * lib/nanosleep.c (rpl_nanosleep): Likewise.
57799         (siginterrupt): Delete fallback.
57800         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
57801         instead.
57802         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
57803         siginterrupt.
57804
57805         New module sigaction, for mingw.
57806         * modules/sigaction: New module...
57807         * modules/sigaction-tests: ...and its test.
57808         * m4/sigaction.m4: New file.
57809         * lib/sigaction.c: Likewise.
57810         * tests/test-sigaction.c: Likewise.
57811         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
57812         * modules/signal (Makefile.am): Likewise.
57813         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
57814         needed.
57815         * doc/posix-headers/signal.texi (signal.h): Mention provided
57816         types.
57817         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
57818         that sigaction is preferable.
57819         * doc/posix-functions/sigaction.texi (sigaction): Mention new
57820         module.
57821         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57822         sigaction.
57823
57824         Improve robustness of sigprocmask by overriding signal.
57825         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
57826         is in use.
57827         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
57828         (SIGKILL, SIGSTOP): Provide fallbacks.
57829         (rpl_signal): Implement.
57830         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
57831         signal can be called inside handlers.
57832
57833         Fix nanosleep module on mingw.
57834         * modules/nanosleep (Depends-on): Add sys_select.
57835         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
57836
57837         Fix licensing of sigprocmask.
57838         * modules/raise (License): Relicense as LGPL.
57839
57840 2008-06-21  Bruno Haible  <bruno@clisp.org>
57841
57842         * lib/propername.c (proper_name_utf8): Don't use the transliterated
57843         result if it contains question marks.
57844         Reported by Michael Geng <linux@michaelgeng.de>.
57845
57846 2008-06-19  Bruno Haible  <bruno@clisp.org>
57847
57848         Fix CVS-ism.
57849         * doc/gnulib.texi: Include updated-stamp.texi.
57850         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
57851         (updated-stamp.texi): New rule.
57852         (gnulib.info): Depend on it.
57853         * doc/.gitignore: Add updated-stamp.texi.
57854         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
57855
57856 2008-06-19  Bruno Haible  <bruno@clisp.org>
57857
57858         * doc/Makefile (gnulib.info): Update and simplify dependencies.
57859         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
57860
57861 2008-06-19  Eric Blake  <ebb9@byu.net>
57862
57863         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
57864         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
57865         Reported by Stepan Kasal.
57866
57867 2008-06-18  Bruno Haible  <bruno@clisp.org>
57868
57869         * lib/fatal-signal.c (init_fatal_signals): Add comment.
57870         Reported by Eric Blake.
57871
57872 2008-06-18  Eric Blake  <ebb9@byu.net>
57873
57874         Work around cygwin 1.5.25 strsignal bug.
57875         * tests/test-strsignal.c: Allow for const char *.
57876         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
57877
57878 2008-06-18  Simon Josefsson  <simon@josefsson.org>
57879
57880         * users.txt: Update URL to article and add author/date
57881         information.
57882
57883 2008-06-17  Bruno Haible  <bruno@clisp.org>
57884
57885         New macro gl_DISABLE_THREADS.
57886         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
57887         if the user did not pass --enable-threads or --disable-threads option.
57888         (gl_DISABLE_THREADS): New macro.
57889         Reported by Eric Blake <ebb9@byu.net>.
57890
57891 2008-06-17  Bruno Haible  <bruno@clisp.org>
57892
57893         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
57894         when the macro ignores it.
57895         Based on a patch by Eric Blake <ebb9@byu.net>.
57896
57897 2008-06-17  Bruno Haible  <bruno@clisp.org>
57898
57899         * modules/tls (License): Change to LGPLv2+.
57900         Reported by Eric Blake.
57901
57902 2008-06-17  Eric Blake  <ebb9@byu.net>
57903
57904         Simplify c-stack prerequisites.
57905         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
57906         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
57907         no longer requires <ucontext.h> to exist.  Optimize setrlimit
57908         check.
57909         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
57910         <sys/resource.h>.
57911
57912         Move c-stack test into testsuite.
57913         * modules/c-stack-tests: New file.
57914         * lib/c-stack.c [DEBUG]: Move test program...
57915         * tests/test-c-stack.c: ...into this new file.  Skip rather than
57916         fail test if sigaltstack is lacking.
57917         * tests/test-c-stack.sh: New driver file.
57918
57919 2008-06-16  Eric Blake  <ebb9@byu.net>
57920
57921         Use raise module consistently.
57922         * modules/fatal-signal (Depends-on): Add raise.
57923         * modules/sigprocmask (Depends-on): Likewise.
57924         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
57925         * lib/sigprocmask.c (sigprocmask): Likewise.
57926         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
57927         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
57928
57929         Fix compliance bug in sigpending.
57930         * lib/sigprocmask.c (sigpending): Return pending array via
57931         parameter, not return value.
57932
57933 2008-06-14  Eric Blake  <ebb9@byu.net>
57934
57935         Improve obstack-printf test code.
57936         * tests/test-obstack-printf.c (test_function): Fix comment, and
57937         simplify usage of obstack_* in macros.  Add a test for coverage.
57938         Reported by Bruno Haible.
57939
57940 2008-06-14  Bruno Haible  <bruno@clisp.org>
57941
57942         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
57943         array size as a constant, not as a const variable.
57944         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
57945         AC_USE_SYSTEM_EXTENSIONS.
57946         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
57947         Test whether the obstack_printf function actually exists.
57948         * modules/obstack-printf (Depends-on): Add extensions.
57949         (Include): Remove obstack.h.
57950         * modules/obstack-printf-posix (Depends-on): Add extensions.
57951         (Include): Remove obstack.h.
57952
57953 2008-06-13  Eric Blake  <ebb9@byu.net>
57954
57955         Add obstack-printf and obstack-printf-posix modules.
57956         * modules/obstack-printf: New file.
57957         * modules/obstack-printf-posix: Likewise.
57958         * MODULES.html.sh (Misc): Mention them.
57959         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
57960         Likewise.
57961         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
57962         Likewise.
57963         * modules/stdio (Makefile.am): Accomodate new modules.
57964         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
57965         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
57966         Declare.
57967         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
57968         functions.
57969         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
57970         (gl_REPLACE_OBSTACK_PRINTF): New macros
57971         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
57972         * tests/test-obstack-printf.c: New file.
57973         * modules/obstack-printf-tests: Likewise.
57974         * modules/obstack-printf-posix-tests: Likewise.
57975
57976 2008-06-11  Bruno Haible  <bruno@clisp.org>
57977
57978         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
57979         * lib/open.c: Include errno.h.
57980         (open): Fail when attempting to write to a file that has a trailing
57981         slash.
57982         * tests/test-open.c (main): Test against trailing slash bug.
57983         * doc/posix-functions/open.texi: Mention the trailing slash bug.
57984
57985 2008-06-10  Bruno Haible  <bruno@clisp.org>
57986
57987         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
57988         for $? to work inside the trap command, with various /bin/sh-s.
57989         * tests/test-vc-list-files-cvs.sh: Likewise.
57990
57991 2008-06-10  Bruno Haible  <bruno@clisp.org>
57992
57993         * lib/acl-internal.h: Don't include gettext.h here.
57994         * lib/set-mode-acl.c: Include gettext.h here.
57995         * lib/copy-acl.c: Likewise.
57996
57997 2008-06-10  Bruno Haible  <bruno@clisp.org>
57998
57999         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
58000         * lib/wait-process.c (wait_subprocess): Likewise.
58001         * lib/execute.h (execute): Add termsigp argument.
58002         * lib/execute.c (execute): Likewise.
58003         * lib/csharpcomp.c (compile_csharp_using_pnet,
58004         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
58005         * lib/csharpexec.c (execute_csharp_using_pnet,
58006         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
58007         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
58008         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
58009         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
58010         is_jikes_present): Update.
58011         * lib/javaexec.c (execute_java_class): Update.
58012         * lib/javaversion.c (execute_and_read_line): Update.
58013         * NEWS: Document the changes.
58014         Reported by Eric Blake.
58015
58016 2008-06-10  Eric Blake  <ebb9@byu.net>
58017
58018         Add missing include.
58019         * tests/test-strstr.c (includes): Add <signal.h>.
58020         * tests/test-strcasestr.c (includes): Likewise.
58021         * tests/test-memmem.c (includes): Likewise.
58022
58023 2008-06-10  Bruno Haible  <bruno@clisp.org>
58024
58025         * lib/wait-process.c (wait_subprocess): Add an assertion.
58026
58027 2008-06-10  Bruno Haible  <bruno@clisp.org>
58028
58029         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
58030
58031 2008-06-10  Bruno Haible  <bruno@clisp.org>
58032
58033         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
58034         using alarm().
58035         * tests/test-strcasestr.c (main): Likewise.
58036         * tests/test-strstr.c (main): Likewise.
58037
58038 2008-06-09  Bruno Haible  <bruno@clisp.org>
58039
58040         Work around the Solaris 10 ACE ACLs ABI change.
58041         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
58042         declare if ACL_NO_TRIVIAL is present.
58043         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
58044         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
58045         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
58046         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
58047         define if ACL_NO_TRIVIAL is present.
58048         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
58049         and use the current ABI.
58050         (file_has_acl): Use same #if condition as elsewhere.
58051         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
58052         in use, and use the current ABI.
58053         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
58054         Reported by Jim Meyering.
58055
58056 2008-06-09  Eric Blake  <ebb9@byu.net>
58057
58058         Work around environments that (stupidly) ignore SIGALRM.
58059         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
58060         before using alarm().
58061         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58062         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
58063         Reported by Ian Beckwith <ianb@erislabs.net>.
58064
58065         Produce autobuild blurb earlier in log.
58066         * modules/autobuild (configure.ac-early): Move AB_INIT here.
58067
58068 2008-06-09  Jim Meyering  <meyering@redhat.com>
58069         and Ondřej Vašík  <ovasik@redhat.com>
58070
58071         utimens.c: correct kernel bug work-around
58072         Ondřej Vašík found that the invalid return value of 280 indicates
58073         failure, not success, and the kernel bug we're trying to work
58074         around affects not just the utimensat call, but also the fallback
58075         futimens call.
58076         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
58077         not success.
58078         [HAVE_FUTIMENS]: Use the same work-around, here.
58079
58080 2008-06-09  Jim Meyering  <meyering@redhat.com>
58081
58082         add more guards around definition of ACE_-related code
58083         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
58084         ALLOW and ACE_OWNER are also defined.
58085
58086 2008-06-08  Bruno Haible  <bruno@clisp.org>
58087
58088         * lib/acl-internal.h: Add me as co-author.
58089         * lib/file-has-acl.c: Likewise.
58090         * lib/set-mode-acl.c: Likewise.
58091         * lib/copy-acl.c: Likewise.
58092
58093 2008-06-08  Bruno Haible  <bruno@clisp.org>
58094
58095         Add support for AIX ACLs.
58096         * lib/acl-internal.h (acl_nontrivial): New declaration.
58097         * lib/file-has-acl.c (acl_nontrivial): New function.
58098         (file_has_acl): Add implementation using AIX 4 ACL API.
58099         * lib/set-mode-acl.c (qset_acl): Likewise.
58100         * lib/copy-acl.c (qcopy_acl): Likewise.
58101
58102 2008-06-08  Bruno Haible  <bruno@clisp.org>
58103
58104         Add support for HP-UX ACLs.
58105         * lib/acl-internal.h (acl_nontrivial): New declaration.
58106         * lib/file-has-acl.c (acl_nontrivial): New function.
58107         (file_has_acl): Add implementation using HP-UX 11 ACL API.
58108         * lib/set-mode-acl.c (qset_acl): Likewise.
58109         * lib/copy-acl.c (qcopy_acl): Likewise.
58110
58111 2008-06-08  Bruno Haible  <bruno@clisp.org>
58112
58113         Add support for Cygwin ACLs.
58114         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
58115         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
58116         the chmod_or_fchmod call.
58117         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
58118
58119 2008-06-08  Bruno Haible  <bruno@clisp.org>
58120
58121         Fix bug with setuid modes in Solaris 10+ code.
58122         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
58123         succeeded, when the mode contains some special bits.
58124
58125 2008-06-08  Bruno Haible  <bruno@clisp.org>
58126
58127         Add support for Solaris 7..10 ACLs.
58128         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
58129         declarations.
58130         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
58131         functions.
58132         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
58133         * lib/set-mode-acl.c (qset_acl): Likewise.
58134         * lib/copy-acl.c (qcopy_acl): Likewise.
58135
58136 2008-06-08  Bruno Haible  <bruno@clisp.org>
58137
58138         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
58139         declaration.
58140         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
58141         (acl_access_nontrivial): Remove MacOS X case.
58142         (file_has_acl): Use acl_extended_nontrivial.
58143         * lib/copy-acl.c (qcopy_acl): Likewise.
58144
58145 2008-06-08  Bruno Haible  <bruno@clisp.org>
58146
58147         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
58148
58149 2008-06-08  Jim Meyering  <meyering@redhat.com>
58150
58151         * modules/acl (Maintainer): Add Bruno Haible.
58152
58153 2008-06-07  Bruno Haible  <bruno@clisp.org>
58154
58155         Improve support for Tru64 ACLs.
58156         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
58157         ACL on OSF/1.
58158
58159 2008-06-07  Bruno Haible  <bruno@clisp.org>
58160
58161         Add support for MacOS X ACLs.
58162         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
58163         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
58164         * lib/set-mode-acl.c (qset_acl): Likewise.
58165         * lib/copy-acl.c (qcopy_acl): Likewise.
58166
58167 2008-06-07  Bruno Haible  <bruno@clisp.org>
58168
58169         Fix memory leak introduced on 2008-05-22.
58170         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
58171         use.
58172
58173 2008-06-07  Bruno Haible  <bruno@clisp.org>
58174
58175         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
58176         to construct an empty ACL.
58177
58178 2008-06-07  Bruno Haible  <bruno@clisp.org>
58179
58180         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
58181         precisely.
58182         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
58183
58184 2008-06-07  Bruno Haible  <bruno@clisp.org>
58185
58186         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
58187         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
58188
58189 2008-06-07  Bruno Haible  <bruno@clisp.org>
58190
58191         * doc/posix-functions/_setjmp.texi: Explain the use of this function
58192         regardless of POSIX.
58193         * doc/posix-functions/_longjmp.texi: Likewise.
58194         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
58195         SystemV platform in this case.
58196
58197 2008-06-06  Eric Blake  <ebb9@byu.net>
58198
58199         Document abort() bugs.
58200         * doc/posix-functions/abort.texi (abort): Mention anomalies.
58201
58202         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
58203         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
58204         sigsetjmp.
58205         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
58206         siglongjmp, but only as a macro.
58207         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
58208         is obsolete.
58209         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
58210
58211         Tweak documentation to cover cygwin argz bugs.
58212         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
58213         argz bug fix; no code change needed since no cygwin releases
58214         occurred between the last fix and the bug being tested.
58215         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
58216         module and recently fixed cygwin bugs.
58217         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
58218         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
58219         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
58220         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
58221         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
58222         Likewise.
58223         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
58224         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
58225         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
58226         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
58227         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
58228         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
58229         Likewise.
58230
58231         Avoid gcc warning on cygwin.
58232         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
58233         !ACL_NO_TRIVIAL]: Avoid unused variable.
58234
58235 2008-06-05  Eric Blake  <ebb9@byu.net>
58236
58237         Be tolerant of UNKNOWN version in gnulib-tool test dir.
58238         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
58239         git-version-gen fails to come up with a version.
58240         Reported by Simon Josefsson.
58241
58242 2008-06-05  Jim Meyering  <meyering@redhat.com>
58243             Paul Eggert  <eggert@cs.ucla.edu>
58244
58245         utimens.c: work around a probable Linux kernel bug
58246         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
58247         appears to be a kernel bug that causes utimensat to return 280
58248         instead of 0, indicating success.
58249
58250 2008-06-04  Bruno Haible  <bruno@clisp.org>
58251
58252         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
58253         2008-06-01 commit.
58254
58255 2008-06-04  Bruno Haible  <bruno@clisp.org>
58256
58257         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
58258         * lib/file-has-acl.c (acl_access_nontrivial): New function.
58259         (file_has_acl): Use it. Save errno afterwards.
58260         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
58261
58262 2008-06-03  Bruno Haible  <bruno@clisp.org>
58263
58264         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
58265         draft code. Simplify #ifs.
58266         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
58267         Put Solaris code after POSIX-draft code. Fix comments regarding
58268         Solaris 10, HP-UX. Mention Cygwin.
58269         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
58270
58271 2008-06-03  Eric Blake  <ebb9@byu.net>
58272
58273         Provide fallback for older kernels.
58274         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
58275         Provide runtime fallback if kernel lacks support.
58276         Reported by Mike Frysinger.
58277
58278 2008-06-02  Bruno Haible  <bruno@clisp.org>
58279
58280         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
58281         it exists.
58282
58283 2008-06-02  Bruno Haible  <bruno@clisp.org>
58284
58285         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
58286         * lib/copy-acl.c (qcopy_acl): Update comment.
58287
58288 2008-06-02  Bruno Haible  <bruno@clisp.org>
58289
58290         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
58291         like ACL APIs.
58292
58293 2008-06-02  Bruno Haible  <bruno@clisp.org>
58294
58295         * tests/test-file-has-acl.sh: Use different code for Cygwin.
58296         * tests/test-set-mode-acl.sh: Likewise.
58297         * tests/test-copy-acl.sh: Likewise.
58298         * tests/test-copy-file.sh: Likewise.
58299
58300 2008-06-02  Bruno Haible  <bruno@clisp.org>
58301
58302         * tests/test-file-has-acl.sh: Remove unused code.
58303
58304 2008-06-01  Bruno Haible  <bruno@clisp.org>
58305
58306         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
58307         (copy_acl): Just a wrapper around qcopy_acl that emits the error
58308         messages.
58309         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
58310
58311 2008-06-01  Bruno Haible  <bruno@clisp.org>
58312
58313         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
58314         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
58315         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
58316         APIs.
58317         * modules/acl-tests (configure.ac): Remove tests now contained in
58318         m4/acl.m4.
58319
58320 2008-06-02  Jim Meyering  <meyering@redhat.com>
58321
58322         announce-gen: use a better key-server host name
58323         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
58324         it may be more consistently reliable.  Suggested by Werner Koch
58325         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
58326
58327 2008-06-01  Bruno Haible  <bruno@clisp.org>
58328
58329         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
58330         Reported by Voroskoi Andras <voroskoi@gmail.com>.
58331
58332 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
58333
58334         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
58335
58336 2008-06-01  Bruno Haible  <bruno@clisp.org>
58337
58338         New ACL tests.
58339         * tests/test-file-has-acl.sh: New file.
58340         * tests/test-file-has-acl.c: New file.
58341         * tests/test-set-mode-acl.sh: New file.
58342         * tests/test-set-mode-acl.c: New file.
58343         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
58344         * tests/test-copy-acl.c: New file.
58345         * modules/acl-tests: New file, based on modules/copy-file-tests.
58346         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
58347         (Depends-on): Add acl-tests.
58348         (configure.ac): Remove checks.
58349         (Makefile.am): Don't create test-sameacls program here any more.
58350
58351 2008-06-01  Bruno Haible  <bruno@clisp.org>
58352
58353         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
58354         * tests/test-sameacls.c: Include progname.h.
58355         (main): Invoke set_program_name. Portability fixes for MacOS X,
58356         Solaris, HP-UX.
58357
58358 2008-06-01  Bruno Haible  <bruno@clisp.org>
58359
58360         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
58361         function.
58362         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
58363
58364 2008-06-01  Bruno Haible  <bruno@clisp.org>
58365
58366         * modules/rpmatch (Depends-on): Add strdup.
58367
58368 2008-06-01  Bruno Haible  <bruno@clisp.org>
58369
58370         * lib/pipe.c: Include unistd-safer.h.
58371         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
58372         * modules/pipe (Depends-on): Add unistd-safer.
58373
58374 2008-05-30  Simon Josefsson  <simon@josefsson.org>
58375
58376         * modules/autobuild (configure.ac): Call AB_INIT.
58377
58378 2008-05-30  Simon Josefsson  <simon@josefsson.org>
58379
58380         * tests/test-getaddrinfo.c: Don't print debug messages by default.
58381         Suggested by Bruno Haible <bruno@clisp.org>.
58382
58383 2008-05-30  Simon Josefsson  <simon@josefsson.org>
58384
58385         * tests/test-base64.c: Cast size_t to unsigned long when invoking
58386         printf.  Use %lu instead of %d.  Reported by Bruno Haible
58387         <bruno@clisp.org>.
58388
58389 2008-05-29  Eric Blake  <ebb9@byu.net>
58390
58391         Prefer new POSIX 200x interfaces over futimesat.
58392         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
58393         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
58394         when available.
58395         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
58396
58397 2008-05-28  Bruno Haible  <bruno@clisp.org>
58398
58399         * modules/stpcpy (License): Change to LGPLv2+.
58400         Requested by David Lutterkort <dlutter@redhat.com>.
58401
58402 2008-05-27  Bruno Haible  <bruno@clisp.org>
58403
58404         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
58405         current mingw.
58406         Reported by Jose E. Marchesi <jemarch@gnu.org>.
58407
58408 2008-05-27  Bruno Haible  <bruno@clisp.org>
58409
58410         * modules/iconv_open (Link): New section, from module 'iconv'.
58411         * modules/striconv (Link): Likewise.
58412         * modules/striconveh (Link): Likewise.
58413         * modules/xstriconv (Link): Likewise.
58414         * modules/unicodeio (Link): Likewise.
58415         * modules/propername (Link): Likewise.
58416         Reported by Jim Meyering.
58417
58418 2008-05-26  Jim Meyering  <meyering@redhat.com>
58419
58420         sha256: do not artificially restrict buffer length to be < 2^32
58421         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
58422         uint32_t to size_t.
58423         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
58424         to match.
58425
58426         avoid unaligned access errors, e.g., on sparc
58427         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
58428         direct access through a possibly-unaligned uint64* pointer.
58429         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
58430         direct access through a possibly-unaligned uint32* pointer.
58431         Prompted by this patch from Tom "spot" Callaway:
58432         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
58433
58434         sha512.c: fix typo in comment
58435         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
58436
58437 2008-05-25  Bruno Haible  <bruno@clisp.org>
58438
58439         * lib/set-mode-acl.c: Renamed from lib/acl.c.
58440         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
58441         (Makefile.am): Update lib_SOURCES.
58442
58443 2008-05-25  Bruno Haible  <bruno@clisp.org>
58444
58445         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
58446
58447 2008-05-25  Jim Meyering  <meyering@redhat.com>
58448
58449         useless-if-before-free: freed expr may have white-space differences
58450         * build-aux/useless-if-before-free: Recognize cases in which the
58451         freed expression differs from the tested one in embedded white
58452         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
58453         $1 was used, so we can't make any regexp shy.  Improved tests now
58454         detect this.
58455
58456         useless-if-before-free: accept white space in the expression.
58457         * build-aux/useless-if-before-free: For now, any white space
58458         in the expression must be identical in the free argument.
58459
58460         useless-if-before-free: efficiency tweak
58461         * build-aux/useless-if-before-free: Make the expression-matching
58462         regexp "shy".
58463         Make the *outer* regexp shy, not the expr-matching one.
58464
58465         update code-in-comment to accept cast of free arg
58466         * build-aux/useless-if-before-free: Update regexp.
58467
58468 2008-05-25  Bruno Haible  <bruno@clisp.org>
58469
58470         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
58471         * modules/copy-file-tests (Files, Makefile.am): Update.
58472         * tests/test-copy-file.c (func_test_copy): Update.
58473
58474 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
58475
58476         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
58477
58478 2008-05-23  Bruno Haible  <bruno@clisp.org>
58479
58480         Improve support for ACLs on OSF/1.
58481         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
58482         Remove fallback for unknown flavors of ACLs.
58483
58484 2008-05-22  Bruno Haible  <bruno@clisp.org>
58485
58486         Add support for ACLs on OSF/1.
58487         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
58488         replacements.
58489         (acl_free_text): New macro fallback.
58490         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
58491         acl_free.
58492         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
58493         acl_free_text function. Require AC_C_INLINE.
58494
58495 2008-05-22  Bruno Haible  <bruno@clisp.org>
58496
58497         Make copy_acl work on MacOS X 10.5.
58498         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
58499         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
58500         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
58501         If MODE_INSIDE_ACL, don't assume that every system has the same text
58502         representation for ACLs as FreeBSD.
58503         * lib/copy-acl.c (copy_acl): Add support for platforms with
58504         !MODE_INSIDE_ACL.
58505         * lib/file-has-acl.c (file_has_acl): Likewise.
58506         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
58507         FreeBSD, MacOS X, or IRIX, respectively.
58508
58509 2008-05-22  Bruno Haible  <bruno@clisp.org>
58510
58511         * lib/acl.h: Don't include <sys/acl.h>.
58512         (GETACLCNT): Move fallback to lib/acl-internal.h.
58513         * lib/acl-internal.h: Include <sys/acl.h> here.
58514         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
58515
58516 2008-05-22  Bruno Haible  <bruno@clisp.org>
58517
58518         Split off copy_acl function to separate file.
58519         * lib/copy-acl.c: New file, extracted from lib/acl.c.
58520         * lib/acl.c (copy_acl): Moved function to separate file.
58521         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
58522         * modules/acl (Files): Add lib/copy-acl.c.
58523         (Makefiles.am): Augment lib_SOURCES.
58524
58525 2008-05-22  Bruno Haible  <bruno@clisp.org>
58526
58527         * modules/copy-file-tests: New file.
58528         * tests/test-copy-file.sh: New file.
58529         * tests/test-copy-file.c: New file.
58530         * tests/test-copy-file-sameacls.c: New file.
58531
58532 2008-05-22  Eric Blake  <ebb9@byu.net>
58533
58534         Avoid gcc warning.
58535         * tests/test-memcmp.c (main): Pass NULL indirectly.
58536
58537 2008-05-21  Bruno Haible  <bruno@clisp.org>
58538
58539         Add reference doc about ACLs.
58540         * doc/acl-resources.txt: New file.
58541         * doc/acl-cygwin.txt: New file.
58542
58543 2008-05-21  Bruno Haible  <bruno@clisp.org>
58544
58545         Avoid one more warning from gcc.
58546         * lib/vasnprintf.c (IF_LINT): Update comments.
58547         (VASNPRINTF): Use it also for the 'prefix' array initializer.
58548
58549 2008-05-21  Jim Meyering  <meyering@redhat.com>
58550
58551         avoid a warning from gcc
58552         * lib/vasnprintf.c (IF_LINT): Define.
58553         (scale10_round_decimal_long_double):
58554         Use it to avoid a "may be used uninitialized" warning.
58555         (scale10_round_decimal_double): Likewise.
58556
58557 2008-05-21  Simon Josefsson  <simon@josefsson.org>
58558
58559         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
58560         declared.
58561
58562 2008-05-20  Bruno Haible  <bruno@clisp.org>
58563
58564         * tests/test-memcmp.c (main): Test also the sign of the result. Test
58565         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
58566
58567 2008-05-20  Simon Josefsson  <simon@josefsson.org>
58568
58569         * modules/memcmp-tests: New file.
58570         * tests/test-memcmp.c: New file.
58571
58572 2008-05-19  Bruno Haible  <bruno@clisp.org>
58573
58574         * modules/propername (Notice, configure.ac): Put quoted "..." into
58575         --keyword option.
58576         * lib/propername.h: Update comments accordingly.
58577         Reported by Eric Blake.
58578
58579 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
58580
58581         * modules/getpass-gnu (Depends-on): Add fseeko.
58582
58583 2008-05-19  Simon Josefsson  <simon@josefsson.org>
58584
58585         * modules/base64-tests: New file.
58586
58587 2008-05-19  Bo Borgerson <gigabo@gmail.com>
58588
58589         * lib/base64.c (base64_decode_ctx): If a decode context structure
58590         was passed in use it to ignore newlines.  If a context structure
58591         was _not_ passed in, continue to treat newlines as garbage (this
58592         is the historical behavior).  Formerly base64_decode.
58593         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
58594         takes a decode context structure.
58595         * lib/base64.h (base64_decode): Macro for four-argument calls.
58596         (base64_decode_alloc): Likewise.
58597         * lib/base64.c (base64_decode_ctx): If a decode context structure
58598         was passed in use it to ignore newlines.  If a context structure
58599         was _not_ passed in, continue to treat newlines as garbage (this
58600         is the historical behavior).  Formerly base64_decode.
58601         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
58602         takes a decode context structure.
58603         * lib/base64.h (base64_decode): Macro for four-argument calls.
58604         (base64_decode_alloc): Likewise.
58605
58606 2008-05-19  Jim Meyering  <meyering@redhat.com>
58607
58608         avoid a warning from gcc
58609         * lib/trim.c (IF_LINT): Define.
58610         (trim2): Use it to avoid a "may be used uninitialized" warning.
58611
58612         Fix doc typo.
58613         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
58614
58615 2008-05-19  Bruno Haible  <bruno@clisp.org>
58616
58617         * doc/glibc-functions/getpass.texi: Document limits of other
58618         implementations.
58619
58620 2008-05-19  Simon Josefsson  <simon@josefsson.org>
58621             Bruno Haible <bruno@clisp.org>
58622
58623         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
58624
58625 2008-05-18  Bruno Haible  <bruno@clisp.org>
58626
58627         * modules/propername: New file, from GNU gettext.
58628         * lib/propername.h: New file, from GNU gettext.
58629         * lib/propername.c: New file, from GNU gettext.
58630         * MODULES.html.sh (Internationalization functions): Add propername.
58631
58632 2008-05-16  Jim Meyering  <meyering@redhat.com>
58633             Bruno Haible  <bruno@clisp.org>
58634
58635         Avoid some warnings from "gcc -Wshadow".
58636         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
58637
58638 2008-05-15  Eric Blake  <ebb9@byu.net>
58639
58640         Extend previous patch to cygwin 1.7.0.
58641         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
58642         fast implementation in cygwin >= 1.7.0.
58643         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
58644         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58645
58646 2008-05-15  Bruno Haible  <bruno@clisp.org>
58647
58648         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
58649         implementation in glibc >= 2.9.
58650         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
58651         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58652
58653 2008-05-15  Bruno Haible  <bruno@clisp.org>
58654
58655         * MODULES.html.sh (Internationalization functions): Remove linebreak.
58656         (Unicode string functions): Add unilbrk/*.
58657         Reported by Karl Berry.
58658
58659 2008-05-15  Eric Blake  <ebb9@byu.net>
58660
58661         Fix violation of <stdbool.h> replacement in regex.
58662         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
58663         * lib/regexec.c (re_search_internal): Likewise.
58664         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
58665
58666 2008-05-15  Jim Meyering  <meyering@redhat.com>
58667
58668         avoid distracting test output when git or cvs is not found
58669         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
58670         * tests/test-vc-list-files-git.sh: Likewise.
58671
58672 2008-05-15  Eric Blake  <ebb9@byu.net>
58673
58674         Glibc finally accepted the memmem speedup code, bugzilla #5514.
58675         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
58676         glibc version.
58677         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
58678         * doc/posix-functions/strstr.texi (strstr): Likewise.
58679         * lib/str-two-way.h (MAX): Sychronize with glibc.
58680
58681 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
58682
58683         * lib/regcomp.c (optimize_utf8): Add a note on why we test
58684         opr.ctx_type.
58685         (calc_first): Initialize constraint field.
58686         (duplicate_node_closure): Use it instead of special casing ANCHORS.
58687         Fix grammar.
58688         (duplicate_node): Merge constraint field for all node types.
58689         (calc_eclosure_iter): Look at constraint field for all node types.
58690         * lib/regex_internal.c (create_cd_newstate): Don't look at
58691         opr.ctx_type.
58692
58693 2008-05-14  Bruno Haible  <bruno@clisp.org>
58694
58695         Help GCC to do better code generation.
58696         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
58697         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
58698         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
58699         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
58700         Declare with attribute 'malloc' if supported.
58701
58702 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
58703
58704         use "echo STR|wc -c" rather than unportable "expr length STR"
58705         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
58706         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
58707
58708 2008-05-14  Jim Meyering  <meyering@redhat.com>
58709
58710         use dd ibs=$n count=1 ... rather than less-portable head -c$n
58711         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
58712         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
58713         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
58714         via Collin Lasse.
58715
58716 2008-05-14  Eric Blake  <ebb9@byu.net>
58717
58718         Avoid quadratic growth in gl_LIBSOURCES.
58719         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
58720         Suggested by Bruno Haible.
58721
58722         Test xmemdup0.
58723         * modules/xmemdup0-tests: New file.
58724         * tests/test-xmemdup0.c: Likewise.
58725
58726 2008-05-13  Eric Blake  <ebb9@byu.net>
58727
58728         Split xmemdup0 into its own module.
58729         * modules/xmemdup0: New file.
58730         * lib/xmemdup0.h: Likewise.
58731         * lib/xmemdup0.c: Likewise.
58732         * MODULES.html.sh (Memory management functions): Add xmemdup0.
58733         * lib/xalloc.h (xmemdup0): Remove.
58734         * lib/xmalloc.c (xmemdup0): Likewise.
58735
58736 2008-05-13  Eric Blake  <ebb9@byu.net>
58737             Bruno Haible  <bruno@clisp.org>
58738
58739         Reduce number of forks required during autoconf.
58740         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
58741         and gl_LIBSOURCES_DIR.
58742         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
58743         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
58744         m4_syscmd per file.
58745         <m4_foreach_w>: Move...
58746         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
58747
58748 2008-05-13  Eric Blake  <ebb9@byu.net>
58749
58750         * gnulib-tool: Fix various comment typos.
58751
58752 2008-05-12  Bruno Haible  <bruno@clisp.org>
58753
58754         Tailor the linebreaking algorithm.
58755         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
58756
58757 2008-05-12  Bruno Haible  <bruno@clisp.org>
58758
58759         Update to Unicode 5.0.0.
58760         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
58761         LBP_JV, LBP_JT. Redistribute values.
58762         (unilbrk_table): Change size.
58763         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
58764         Unicode TR#14 rev. 22.
58765         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
58766         LBP_JV, LBP_JT. Redistribute values.
58767         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
58768         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
58769         Update.
58770         * lib/unilbrk/lbrkprop1.h: Regenerated.
58771         * lib/unilbrk/lbrkprop2.h: Regenerated.
58772         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
58773         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
58774         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
58775         Likewise.
58776         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
58777         Likewise.
58778         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
58779         result.
58780         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
58781         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
58782         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
58783         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
58784         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
58785         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
58786
58787 2008-05-11  Bruno Haible  <bruno@clisp.org>
58788
58789         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
58790
58791 2008-05-11  Bruno Haible  <bruno@clisp.org>
58792
58793         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
58794         * modules/unilbrk/gen-lbrk: New file.
58795
58796 2008-05-11  Bruno Haible  <bruno@clisp.org>
58797
58798         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
58799         * m4/sha512.m4 (gl_SHA512): Likewise.
58800
58801 2008-05-11  Jim Meyering  <meyering@redhat.com>
58802
58803         New modules: crypto/sha256, crypto/sha512 (from coreutils)
58804         * modules/crypto/sha256: New file.
58805         * modules/crypto/sha512: Likewise.
58806         * lib/sha256.c: Likewise.
58807         * lib/sha256.h: Likewise.
58808         * lib/sha512.c: Likewise.
58809         * lib/sha512.h: Likewise.
58810         * lib/u64.h: Likewise.
58811         * m4/sha256.m4: Likewise.
58812         * m4/sha512.m4: Likewise.
58813         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
58814
58815 2008-05-10  Bruno Haible  <bruno@clisp.org>
58816
58817         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
58818         (Input/Output <stdio.h>): Add xprintf.
58819         (Signal handling <signal.h>): Add strsignal.
58820         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
58821         (Core language properties): Add func.
58822         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
58823         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
58824         strings.
58825         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
58826         (Input/output): New section.
58827         (File system functions): Add openat-die, stat-macros.
58828         (Networking functions): Add sockets.
58829         (Unicode string functions): Add unictype/*.
58830         (Support for building libraries and executables): Add gperf.
58831         (Support for building documentation): Add agpl-3.0.
58832         (Misc): Add nocrash.
58833
58834 2008-05-10  Bruno Haible  <bruno@clisp.org>
58835
58836         * modules/unictype/gen-ctype: New file.
58837
58838 2008-05-10  Jim Meyering  <meyering@redhat.com>
58839
58840         Make chdir-safer.c more efficient on a system with no symlinks.
58841         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
58842         also if ELOOP is zero.  Suggested by Bruno Haible.
58843
58844         Make chdir-safer.c slightly safer.
58845         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
58846         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
58847
58848         Avoid compile failure on systems without ELOOP (like mingw).
58849         * lib/chdir-safer.c (ELOOP): Define if not already defined.
58850         Reported by Bruno Haible.
58851
58852 2008-05-10  Bruno Haible  <bruno@clisp.org>
58853
58854         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
58855         (is_utf8_encoding): Use a case-insensitive comparison.
58856         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
58857         streq.
58858
58859 2008-05-10  Bruno Haible  <bruno@clisp.org>
58860
58861         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
58862         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
58863         * lib/unilbrk/ulc-common.h (iconv_string_length,
58864         iconv_string_keeping_offsets): Remove declarations.
58865         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
58866         Don't include <iconv.h>, streq.h, xsize.h.
58867         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
58868         conversion.
58869         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
58870         <iconv.h>, streq.h, xsize.h.
58871         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
58872         conversion.
58873         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
58874         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
58875         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
58876         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
58877
58878 2008-05-10  Bruno Haible  <bruno@clisp.org>
58879
58880         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
58881         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
58882
58883         * modules/unilbrk/u32-width-linebreaks-tests: New file.
58884         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
58885
58886         * modules/unilbrk/u16-width-linebreaks-tests: New file.
58887         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
58888
58889         * modules/unilbrk/u8-width-linebreaks-tests: New file.
58890         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
58891
58892         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
58893         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
58894
58895         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
58896         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
58897
58898         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
58899         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
58900
58901         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
58902         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
58903
58904 2008-05-10  Bruno Haible  <bruno@clisp.org>
58905
58906         Split up 'linebreak' module.
58907         * lib/unilbrk.h: New file, based on lib/linebreak.h.
58908         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
58909         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
58910         modifications.
58911         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
58912         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
58913         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
58914         lib/linebreak.c.
58915         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
58916         lib/linebreak.c.
58917         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
58918         lib/linebreak.c.
58919         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
58920         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
58921         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
58922         lib/linebreak.c.
58923         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
58924         lib/linebreak.c.
58925         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
58926         lib/linebreak.c.
58927         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
58928         lib/linebreak.c.
58929         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
58930         lib/linebreak.c.
58931         * modules/unilbrk/base: New file.
58932         * modules/unilbrk/tables: New file.
58933         * modules/unilbrk/u8-possible-linebreaks: New file.
58934         * modules/unilbrk/u16-possible-linebreaks: New file.
58935         * modules/unilbrk/u32-possible-linebreaks: New file.
58936         * modules/unilbrk/ulc-common: New file.
58937         * modules/unilbrk/ulc-possible-linebreaks: New file.
58938         * modules/unilbrk/u8-width-linebreaks: New file.
58939         * modules/unilbrk/u16-width-linebreaks: New file.
58940         * modules/unilbrk/u32-width-linebreaks: New file.
58941         * modules/unilbrk/ulc-width-linebreaks: New file.
58942         * lib/linebreak.h: Remove file.
58943         * lib/linebreak.c: Remove file.
58944         * m4/linebreak.m4: Remove file.
58945         * modules/linebreak: Remove file.
58946         * NEWS: Mention the changes.
58947
58948 2008-05-09  Eric Blake  <ebb9@byu.net>
58949
58950         Add xmemdup0.
58951         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
58952         implementation.
58953         * lib/xmalloc.c (xmemdup0): New C implementation.
58954
58955 2008-05-08  Bruno Haible  <bruno@clisp.org>
58956
58957         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
58958
58959 2008-05-07  Eric Blake  <ebb9@byu.net>
58960
58961         Support cross-compilation of <wctype.h>.
58962         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
58963         AC_CACHE_CHECK.
58964
58965 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
58966
58967         * build-aux/vc-list-files: Add support for bzr.
58968
58969 2008-05-03  Jim Meyering  <meyering@redhat.com>
58970
58971         avoid failed assertion with tight malloc
58972         * tests/test-getndelim2.c: Correct an off-by-one assertion.
58973
58974 2008-05-03  Simon Josefsson  <simon@josefsson.org>
58975
58976         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
58977         are needed from arpa/inet.h.
58978         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
58979         Reported by Bruno Haible.
58980
58981 2008-05-02  Jim Meyering  <meyering@redhat.com>
58982
58983         avoid compilation error on FreeBSD 6
58984         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
58985
58986 2008-05-01  Jim Meyering  <meyering@redhat.com>
58987
58988         useless-if-before-free: correct --help's exit status description
58989         * build-aux/useless-if-before-free (usage): Like grep, exit 0
58990         for one or more matches, etc.  Reported by Bruno Haible.
58991
58992         vc-list-files: make the stand-alone gnulib test work
58993         * modules/vc-list-files-tests (configure.ac):
58994         Define and AC_SUBST abs_aux_dir.
58995         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
58996         $(abs_top_srcdir) to each script and having each of them
58997         duplicate the work of setting PATH, set PATH here, using
58998         the new variable, abs_aux_dir instead.
58999         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
59000         * tests/test-vc-list-files-git.sh: Likewise.
59001         Reported by Bruno Haible.
59002
59003 2008-05-01  Bruno Haible  <bruno@clisp.org>
59004
59005         * lib/getndelim2.c (getndelim2): Fix newsize computation during
59006         reallocation. Rename 'done' to 'found_delimiter'.
59007
59008 2008-05-01  Jim Meyering  <meyering@redhat.com>
59009
59010         vc-list-files: accommodate /bin/sh like the one from Solaris 10
59011         * build-aux/vc-list-files: Use `...`, not $(...).
59012
59013 2008-04-30  Jim Meyering  <meyering@redhat.com>
59014
59015         add tests for vc-list-files
59016         * modules/vc-list-files-tests: New module.
59017         * tests/test-vc-list-files-cvs.sh: New file.
59018         * tests/test-vc-list-files-git.sh: New file.
59019
59020         avoid a warning from gcc
59021         * lib/getndelim2.c (IF_LINT): Define.
59022         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
59023
59024         vc-list-files: work properly with build-aux/cvsu, too
59025         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
59026         to all cvs-based clauses.
59027
59028         vc-list-files: work properly in the CVS+awk case, too
59029         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
59030
59031         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
59032         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
59033         take more than one file argument, so .  Add quotes, just in case $dir
59034         ever contains a shell meta-character.  Prompted by Soren Hansen in
59035         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
59036
59037 2008-04-29  Eric Blake  <ebb9@byu.net>
59038
59039         Optimize getndelim2 to use block operations when possible.
59040         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
59041         freadseek, and memchr2.
59042         * lib/getndelim2.c (getndelim2): Use them for block reads.
59043
59044 2008-04-29  Bruno Haible  <bruno@clisp.org>
59045
59046         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
59047         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
59048         * modules/inet_ntop (Depends-on): Add extensions.
59049         * modules/inet_pton (Depends-on): Likewise.
59050         Reported by Simon Josefsson.
59051
59052 2008-04-29  Jim Meyering  <meyering@redhat.com>
59053
59054         When the is more than one match in a block, match all of them.
59055         * build-aux/useless-if-before-free: Iterate through each block
59056         until there are no more matches.
59057
59058         Fix broken useless-if-before-free script.
59059         * build-aux/useless-if-before-free: Fix typo: missing "?" after
59060         the expression to match cast of argument to free-like function.
59061
59062 2008-04-29  Eric Blake  <ebb9@byu.net>
59063
59064         Use new header.
59065         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
59066
59067 2008-04-29  Jim Meyering  <meyering@redhat.com>
59068
59069         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
59070         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
59071         by gnulib to exist and to declare e.g., inet_ntop.
59072         Don't include "inet_ntop.h", now removed.
59073
59074         * m4/arpa_inet_h.m4: Remove trailing blanks.
59075
59076 2008-04-29  Eric Blake  <ebb9@byu.net>
59077
59078         Silence valgrind on safe reads beyond potential array bounds.
59079         * lib/rawmemchr.valgrind: New file.
59080         * lib/strchrnul.valgrind: Likewise.
59081         * modules/rawmemchr (Files): Distribute new file.
59082         * modules/strchrnul (Files): Likewise.
59083         Suggested by Bruno Haible.
59084
59085 2008-04-29  Bruno Haible  <bruno@clisp.org>
59086
59087         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
59088         (inet_ntop, inet_pton): Change portability warning's wording.
59089         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
59090         Invoke gl_CHECK_NEXT_HEADERS.
59091         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
59092         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
59093         set ARPA_INET_H.
59094         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
59095         * modules/arpa_inet (Description): No longer only for systems that
59096         lack it.
59097         (Depends-on): Add include_next.
59098         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
59099         HAVE_ARPA_INET_H.
59100
59101 2008-04-29  Jim Meyering  <meyering@redhat.com>
59102
59103         * modules/mkdir (License): Re-license as LGPLv2+.
59104
59105 2008-04-29  Bruno Haible  <bruno@clisp.org>
59106
59107         * modules/rawmemchr (Maintainer): Set to Eric.
59108         * modules/strchrnul (Maintainer): Likewise.
59109
59110 2008-04-29  Simon Josefsson  <simon@josefsson.org>
59111
59112         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
59113         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
59114
59115         * modules/arpa_inet (arpa/inet.h): Use them.
59116
59117 2008-04-28  Eric Blake  <ebb9@byu.net>
59118
59119         Test getndelim2.
59120         * modules/getndelim2-tests: New file.
59121         * tests/test-getndelim2.c: Likewise.
59122         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
59123         stream.
59124         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
59125
59126         * MODULES.html.sh: Document new module.
59127
59128 2008-04-20  Bruno Haible  <bruno@clisp.org>
59129
59130         * lib/c-stack.c (die): Use raise.
59131         * modules/c-stack (Depends-on): Add raise.
59132
59133 2008-04-28  Bruno Haible  <bruno@clisp.org>
59134
59135         Expect rpmatch to be declared.
59136         * lib/yesno.c (rpmatch): Remove declaration.
59137
59138         Declare rpmatch.
59139         * lib/stdlib.in.h (rpmatch): New declaration.
59140         * lib/rpmatch.c: Include <stdlib.h> first.
59141         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
59142         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
59143         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
59144         HAVE_RPMATCH.
59145         * modules/rpmatch (Depends-on): Add stdlib, extensions.
59146         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59147         (Include): Set to <stdlib.h>.
59148         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
59149         HAVE_RPMATCH.
59150         * NEWS: Document the change.
59151
59152 2008-04-28  Bruno Haible  <bruno@clisp.org>
59153
59154         Change rpmatch to use nl_langinfo when appropriate.
59155         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
59156         (N_): New macro.
59157         (localized_pattern): New function/macro.
59158         (try): Remove match, nomatch arguments. Copy the pattern into safe
59159         memory before caching it.
59160         (rpmatch): Use localized_pattern. Add translator comments.
59161         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
59162         Suggested by Eric Blake.
59163         * modules/rpmatch (Depends-on): Add stdbool.
59164
59165 2008-04-28  Eric Blake  <ebb9@byu.net>
59166
59167         Add rawmemchr module, matching glibc.
59168         * modules/string (Makefile.am): New indicator.
59169         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
59170         * lib/string.in.h (rawmemchr): Declare when appropriate.
59171         * modules/rawmemchr: New file.
59172         * m4/rawmemchr.m4: Likewise.
59173         * lib/rawmemchr.c: Likewise.
59174         * modules/rawmemchr-tests: Likewise.
59175         * tests/test-rawmemchr.c: Likewise.
59176         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
59177         module.
59178         * modules/strchrnul (Depends-on): Add rawmemchr.
59179         * lib/strchrnul.c (strchrnul): Optimize a corner case.
59180
59181         Whitespace cleanup.
59182         * tests/test-strchrnul.c: Reindent.
59183         * lib/strchrnul.c: Likewise.
59184
59185         Optimize and test strchrnul.
59186         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
59187         * modules/strchrnul-tests: New file.
59188         * tests/test-strchrnul.c: Likewise.
59189
59190         Remove intprops dependency.
59191         * modules/memchr (Depends-on): Remove intprops.
59192         * modules/memrchr (Depends-on): Likewise.
59193         * modules/memchr2 (Depends-on): Likewise.
59194         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
59195         * lib/memrchr.c (__memrchr): Likewise.
59196         * lib/memrchr2.c (memchr2): Likewise.
59197         Reported by Simon Josefsson.
59198
59199 2008-04-28  Simon Josefsson  <simon@josefsson.org>
59200
59201         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
59202         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59203
59204 2008-04-28  Simon Josefsson  <simon@josefsson.org>
59205
59206         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
59207
59208         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
59209
59210         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
59211
59212         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
59213         declarations.
59214         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
59215
59216         * m4/inet_pton.m4: Don't check for header files.
59217
59218         * m4/inet_ntop.m4: Don't check for header files.
59219
59220 2008-04-28  Simon Josefsson  <simon@josefsson.org>
59221
59222         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
59223         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
59224         trigger for cygwin).
59225         Reported by Bruno Haible  <bruno@clisp.org>.
59226
59227 2008-04-28  Bruno Haible  <bruno@clisp.org>
59228
59229         * doc/posix-functions/strdup.texi: Mention mingw problem.
59230
59231 2008-04-27  Bruno Haible  <bruno@clisp.org>
59232
59233         * modules/stat-time-tests (Depends-on): Add sleep.
59234         * tests/test-stat-time.c (force_unlink): New function.
59235         (cleanup): Use it.
59236         (test_mtime): Remove the ctime related tests.
59237         (test_ctime): New function, containing the ctime related tests.
59238         (main): Call test_ctime, except on native Windows platforms.
59239
59240 2008-04-27  Bruno Haible  <bruno@clisp.org>
59241
59242         * lib/rpmatch.c (rpmatch): Add some comments.
59243         Reported by James Youngman <jay@gnu.org>.
59244
59245 2008-04-27  Bruno Haible  <bruno@clisp.org>
59246
59247         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
59248         quiet NaNs.
59249
59250 2008-04-27  Bruno Haible  <bruno@clisp.org>
59251
59252         Make test-yesno.sh work on mingw.
59253         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
59254         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
59255         (main): Set stdin to binary mode.
59256         * modules/yesno-tests (Depends-on): Add binary-io.
59257
59258 2008-04-27  Bruno Haible  <bruno@clisp.org>
59259
59260         Fix 'isfinite' on x86, x86_64, ia64 platforms.
59261         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
59262         argument that lie outside the IEEE 854 domain.
59263         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
59264         (gl_ISFINITE): Use it.
59265         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
59266
59267 2008-04-27  Bruno Haible  <bruno@clisp.org>
59268
59269         Allow local renaming in config.h.
59270         * lib/memrchr.c (memrchr): Don't undefine outside libc.
59271
59272 2008-04-27  Bruno Haible  <bruno@clisp.org>
59273
59274         * lib/memchr.c (__memchr): Change type of 'i'.
59275         * lib/memchr2.c (memchr2): Likewise.
59276
59277 2008-04-26  Eric Blake  <ebb9@byu.net>
59278         and Bruno Haible  <bruno@clisp.org>
59279
59280         Optimize and test memrchr.
59281         * modules/memrchr (Depends-on): Add intprops.
59282         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
59283         * modules/memrchr-tests: New file.
59284         * tests/test-memrchr.c: New file.
59285
59286 2008-04-26  Bruno Haible  <bruno@clisp.org>
59287
59288         Add tentative support for DragonFly BSD.
59289         * lib/stdio-impl.h: Add macros for DragonFly BSD.
59290         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
59291         fp.
59292         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
59293         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
59294         * lib/fpurge.c (fpurge): Likewise.
59295         * lib/freadable.c (freaadable): Likewise.
59296         * lib/freadahead.c (freadahead): Likewise.
59297         * lib/freading.c (freading): Likewise.
59298         * lib/freadptr.c (freadptr): Likewise.
59299         * lib/freadseek.c (freadptrinc): Likewise.
59300         * lib/fseeko.c (fseeko): Likewise.
59301         * lib/fseterr.c (fseterr): Likewise.
59302         * lib/fwritable.c (fwritable): Likewise.
59303         * lib/fwriting.c (fwriting): Likewise.
59304
59305 2008-04-26  Bruno Haible  <bruno@clisp.org>
59306
59307         * lib/stdio-impl.h: New file.
59308         * lib/fbufmode.c: Include stdio-impl.h.
59309         (fbufmode): Use fp_, remove redundant #defines.
59310         * lib/fflush.c: Include stdio-impl.h.
59311         (clear_ungetc_buffer): Remove redundant #defines.
59312         * lib/fpurge.c: Include stdio-impl.h.
59313         (fpurge): Remove redundant #defines.
59314         * lib/freadable.c: Include stdio-impl.h.
59315         (freadable): Remove redundant #defines.
59316         * lib/freadahead.c: Include stdio-impl.h.
59317         (freadahead): Remove redundant #defines.
59318         * lib/freading.c: Include stdio-impl.h.
59319         (freading): Remove redundant #defines.
59320         * lib/freadptr.c: Include stdio-impl.h.
59321         (freadptr): Remove redundant #defines.
59322         * lib/freadseek.c: Include stdio-impl.h.
59323         (freadptrinc): Remove redundant #defines.
59324         * lib/fseeko.c: Include stdio-impl.h.
59325         (rpl_fseeko): Remove redundant #defines.
59326         * lib/fseterr.c: Include stdio-impl.h.
59327         (fseterr): Remove redundant #defines.
59328         * lib/fwritable.c: Include stdio-impl.h.
59329         (fwritable: Remove redundant #defines.
59330         * lib/fwriting.c: Include stdio-impl.h.
59331         (fwriting): Remove redundant #defines.
59332         * modules/fbufmode (Files): Add lib/stdio-impl.h.
59333         * modules/fflush (Files): Likewise.
59334         * modules/fpurge (Files): Likewise.
59335         * modules/freadable (Files): Likewise.
59336         * modules/freadahead (Files): Likewise.
59337         * modules/freading (Files): Likewise.
59338         * modules/freadptr (Files): Likewise.
59339         * modules/freadseek (Files): Likewise.
59340         * modules/fseeko (Files): Likewise.
59341         * modules/fseterr (Files): Likewise.
59342         * modules/fwritable (Files): Likewise.
59343         * modules/fwriting (Files): Likewise.
59344
59345 2008-04-26  Bruno Haible  <bruno@clisp.org>
59346
59347         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
59348         restore_seek_optimization, update_fpos_cache): New functions, extracted
59349         from rpl_fflush.
59350         (rpl_fflush): Use them.
59351         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
59352         (gl_REPLACE_FFLUSH): Use it.
59353
59354 2008-04-26  Bruno Haible  <bruno@clisp.org>
59355
59356         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
59357         on Solaris.
59358         * tests/test-xstrtoimax.sh: Likewise.
59359         * tests/test-xstrtoumax.sh: Likewise.
59360         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59361
59362 2008-04-26  Bruno Haible  <bruno@clisp.org>
59363
59364         * modules/memchr-tests: New file.
59365         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
59366
59367 2008-04-26  Eric Blake  <ebb9@byu.net>
59368             Bruno Haible  <bruno@clisp.org>
59369
59370         * lib/memchr.c: Include intprops.h.
59371         (__memchr): Optimize parallel detection of matching bytes. Rename local
59372         variables. Add explanatory comments.
59373
59374 2008-04-26  Bruno Haible  <bruno@clisp.org>
59375
59376         Fix module 'memchr', broken since 2000-10-28.
59377         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
59378
59379 2008-04-26  Bruno Haible  <bruno@clisp.org>
59380
59381         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
59382         comments.
59383
59384 2008-04-25  Eric Blake  <ebb9@byu.net>
59385
59386         Use native fstatat on cygwin 1.7.0.
59387         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
59388         first.
59389
59390 2008-04-23  Eric Blake  <ebb9@byu.net>
59391
59392         Improve memchr2 performance.
59393         * lib/memchr2.c (memchr2): Further optimize parallel detection of
59394         NUL bytes.
59395         * modules/memchr2 (Depends-on): Use intprops.h.
59396
59397 2008-04-23  Simon Josefsson  <simon@josefsson.org>
59398
59399         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
59400         an inline function instead of a CPP macro.  Patch by Ben Pfaff
59401         <blp@cs.stanford.edu>.
59402
59403 2008-04-23  Simon Josefsson  <simon@josefsson.org>
59404
59405         * lib/arpa_inet.in.h: New file.
59406
59407         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
59408         (Makefile.am): Sed in substitute header file.
59409
59410         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
59411         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
59412
59413         * modules/inet_ntop (configure.ac): Use
59414         gl_ARPA_INET_MODULE_INDICATOR.
59415
59416         * modules/inet_pton (configure.ac): Use
59417         gl_ARPA_INET_MODULE_INDICATOR.
59418
59419 2008-04-22  Jim Meyering  <meyering@redhat.com>
59420
59421         * modules/verify (License): Re-license as LGPLv2+.
59422
59423 2008-04-22  Simon Josefsson  <simon@josefsson.org>
59424
59425         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
59426         parameter to void* as per POSIX standard (MinGW uses char*).
59427
59428 2008-04-21  Bruno Haible  <bruno@clisp.org>
59429
59430         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
59431         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
59432         Define to replacements if REPLACE_ISWCNTRL is 1.
59433         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
59434         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
59435         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
59436         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
59437         what it fixes.
59438         * doc/posix-functions/iswalpha.texi: Likewise.
59439         * doc/posix-functions/iswblank.texi: Likewise.
59440         * doc/posix-functions/iswcntrl.texi: Likewise.
59441         * doc/posix-functions/iswdigit.texi: Likewise.
59442         * doc/posix-functions/iswgraph.texi: Likewise.
59443         * doc/posix-functions/iswlower.texi: Likewise.
59444         * doc/posix-functions/iswprint.texi: Likewise.
59445         * doc/posix-functions/iswpunct.texi: Likewise.
59446         * doc/posix-functions/iswspace.texi: Likewise.
59447         * doc/posix-functions/iswupper.texi: Likewise.
59448         * doc/posix-functions/iswxdigit.texi: Likewise.
59449         Reported by Alain Guibert.
59450
59451 2008-04-21  Bruno Haible  <bruno@clisp.org>
59452
59453         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
59454         Patch by Alain Guibert.
59455
59456 2008-04-21  Bruno Haible  <bruno@clisp.org>
59457
59458         Fix test failures on mingw.
59459         * tests/test-xstrtol.c (print_no_progname): New function.
59460         (main): Install it in error_print_progname hook.
59461         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
59462         * tests/test-xstrtoimax.sh: Likewise.
59463         * tests/test-xstrtoumax.sh: Likewise.
59464
59465 2008-04-21  Bruno Haible  <bruno@clisp.org>
59466
59467         Fix test failure on mingw.
59468         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
59469
59470 2008-04-21  Bruno Haible  <bruno@clisp.org>
59471
59472         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
59473         Actually assign a value.
59474
59475 2008-04-20  Bruno Haible  <bruno@clisp.org>
59476
59477         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
59478         take 2.
59479         * lib/canonicalize.c (canonicalize_file_name): Elide if the
59480         'canonicalize-lgpl' module is also used.
59481         * lib/canonicalize-lgpl.c: Undo last change.
59482         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
59483
59484 2008-04-20  Bruno Haible  <bruno@clisp.org>
59485
59486         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
59487         config.h. Provide _mkdir based fallback for mingw.
59488         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
59489         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
59490         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
59491         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
59492         rather than defining mkdir in config.h.
59493         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
59494         (gl_SYS_STAT_H_DEFAULTS): New macro.
59495         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
59496         HAVE_IO_H any more.
59497         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
59498         HAVE_DECL_MKDIR and HAVE_IO_H.
59499
59500 2008-04-20  Bruno Haible  <bruno@clisp.org>
59501
59502         * lib/isapipe.c: Port to native Windows platforms.
59503
59504 2008-04-20  Bruno Haible  <bruno@clisp.org>
59505
59506         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
59507
59508 2008-04-21  Eric Blake  <ebb9@byu.net>
59509
59510         Work around preprocessors that don't handle UINTMAX_MAX.
59511         * lib/memchr2.c (memchr2): Avoid embedded #if.
59512         Reported by Alain Guibert, fix suggested by Bruno Haible.
59513
59514 2008-04-21  Simon Josefsson  <simon@josefsson.org>
59515
59516         * doc/posix-functions/strftime.texi (strftime): Explain better
59517         Windows incompatibility.  Suggested by Micah Cowan
59518         <micah@cowan.name>.
59519
59520 2008-04-20  Bruno Haible  <bruno@clisp.org>
59521
59522         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
59523         unistr/u8-mblen.
59524
59525 2008-04-20  Bruno Haible  <bruno@clisp.org>
59526
59527         Fix test failure on platforms with non-GNU iconv.
59528         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
59529         (U_TO_U8): Use it, rather than u16_to_u8.
59530         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
59531         units at the end of the input string.
59532         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
59533
59534 2008-04-20  Bruno Haible  <bruno@clisp.org>
59535
59536         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
59537         when the resulting length is 0.
59538         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
59539
59540 2008-04-20  Bruno Haible  <bruno@clisp.org>
59541
59542         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
59543         works.
59544         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
59545
59546 2008-04-20  Bruno Haible  <bruno@clisp.org>
59547
59548         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
59549         * modules/tsearch-tests (configure.ac): Test for initstate function.
59550
59551 2008-04-20  Bruno Haible  <bruno@clisp.org>
59552
59553         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
59554         for nlink_t if missing.
59555         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
59556
59557 2008-04-19  Bruno Haible  <bruno@clisp.org>
59558
59559         Work around snprintf bug on Linux libc5.
59560         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
59561         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59562         gl_SNPRINTF_SIZE1.
59563         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59564         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
59565         that test failed.
59566         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
59567         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
59568         * modules/snprintf (Files): Add m4/printf.m4.
59569         * modules/vsnprintf (Files): Likewise.
59570         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
59571         * doc/posix-functions/vsnprintf.texi: Likewise.
59572
59573 2008-04-19  Bruno Haible  <bruno@clisp.org>
59574
59575         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
59576         from 0.0058 to less than 10^-7.
59577
59578 2008-04-19  Bruno Haible  <bruno@clisp.org>
59579
59580         Fix rounding when a precision is given.
59581         * lib/vasnprintf.c (is_borderline): New function.
59582         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
59583         9...9x.
59584         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
59585         %e, %g.
59586         * tests/test-vasprintf-posix.c (test_function): Likewise.
59587         * tests/test-snprintf-posix.h (test_function): Likewise.
59588         * tests/test-sprintf-posix.h (test_function): Likewise.
59589         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
59590         * tests/test-printf-posix.h (test_function): Likewise.
59591         * tests/test-printf-posix.output: Update.
59592         Reported by John Darrington <john@darrington.wattle.id.au> via
59593         Ben Pfaff <blp@cs.stanford.edu>.
59594
59595 2008-04-18  Simon Josefsson  <simon@josefsson.org>
59596
59597         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
59598         Suggested by Bruno Haible <bruno@clisp.org>.
59599
59600 2008-04-17  Bruno Haible  <bruno@clisp.org>
59601
59602         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
59603         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
59604         implementation.
59605         Patch by Bruce Merry <bmerry@gmail.com>.
59606
59607 2008-04-17  Simon Josefsson  <simon@josefsson.org>
59608
59609         * doc/posix-functions/strftime.texi (strftime): Mention that %e
59610         doesn't work under Windows.
59611
59612 2008-04-16  Bruno Haible  <bruno@clisp.org>
59613
59614         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
59615         New macros.
59616         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
59617         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
59618         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
59619         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
59620         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
59621         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
59622         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
59623         macros.
59624         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
59625         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
59626         Northern Sotho, Uighur.
59627
59628 2008-04-16  Bruno Haible  <bruno@clisp.org>
59629
59630         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
59631         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
59632         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
59633         Reported by Daniel Bergström <daniel@octocode.com>.
59634
59635 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
59636             Bruno Haible  <bruno@clisp.org>
59637
59638         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
59639         function.
59640         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
59641         New functions, mostly extracted from gl_locale_name_default.
59642         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
59643
59644 2008-04-16  Eric Blake  <ebb9@byu.net>
59645
59646         Adjust strtod detection to catch glibc 2.7 bug.
59647         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
59648         Reported by John Gatewood Ham.
59649
59650 2008-04-16  Bruno Haible  <bruno@clisp.org>
59651
59652         Add tentative support for Linux libc5.
59653         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
59654         * lib/fpurge.c (fpurge): Likewise.
59655         * lib/freadable.c (freadable): Likewise.
59656         * lib/freadahead.c (freadahead): Likewise.
59657         * lib/freading.c (freading): Likewise.
59658         * lib/freadptr.c (freadptr): Likewise.
59659         * lib/freadseek.c (freadptrinc): Likewise.
59660         * lib/fseeko.c (rpl_fseeko): Likewise.
59661         * lib/fseterr.c (fseterr): Likewise.
59662         * lib/fwritable.c (fwritable): Likewise.
59663         * lib/fwriting.c (fwriting): Likewise.
59664         Reported by Alain Guibert <alguibert+bts@free.fr>.
59665
59666 2008-04-15  Bruno Haible  <bruno@clisp.org>
59667
59668         * modules/mathl (configure.ac): Define module indicator.
59669
59670 2008-04-15  Bruno Haible  <bruno@clisp.org>
59671
59672         * lib/logl.c (logl): Remove unused variables.
59673
59674 2008-04-15  Bruno Haible  <bruno@clisp.org>
59675
59676         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
59677         fails.
59678
59679 2008-04-15  Bruno Haible  <bruno@clisp.org>
59680
59681         * lib/trim.c (trim2): Fix argument of isspace() macro.
59682
59683 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
59684
59685         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
59686         to 0.
59687         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
59688
59689 2008-04-14  Bruno Haible  <bruno@clisp.org>
59690
59691         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
59692         AC_LANG_PROGRAM argument.
59693         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
59694         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
59695         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
59696         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
59697         * m4/math_h.m4 (gl_MATH_H): Likewise.
59698         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
59699         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
59700         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
59701         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
59702         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
59703         * m4/regex.m4 (gl_REGEX): Likewise.
59704         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
59705         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
59706         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59707         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
59708         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
59709         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
59710         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
59711         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
59712
59713 2008-04-14  Jim Meyering  <meyering@redhat.com>
59714
59715         test-strtod: fix typos: s/abs/fabs/
59716         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
59717
59718 2008-04-13  Bruno Haible  <bruno@clisp.org>
59719
59720         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
59721         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
59722         module is also used and while not building the reloc-wrapper.
59723
59724 2008-04-13  Bruno Haible  <bruno@clisp.org>
59725
59726         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
59727
59728 2008-04-13  Bruno Haible  <bruno@clisp.org>
59729
59730         Fix AIX compilation failure introduced on 2008-04-02.
59731         * tests/test-frexp.c (exp): Undefine before redefining.
59732         * tests/test-frexpl.c (exp): Likewise.
59733
59734 2008-04-13  Bruno Haible  <bruno@clisp.org>
59735
59736         Work around a HP-UX stdio bug.
59737         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
59738         * tests/test-ftello.c (main): Likewise.
59739         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
59740         * doc/posix-functions/ftello.texi: Likewise.
59741
59742 2008-04-13  Bruno Haible  <bruno@clisp.org>
59743
59744         Make test-signbit pass on HP-UX/hppa.
59745         * tests/test-signbit.c (minus_zerol): New variable.
59746         (test_signbitl): Use it.
59747
59748 2008-04-13  Bruno Haible  <bruno@clisp.org>
59749
59750         Make truncl work on OSF/1 4.0.
59751         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
59752         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
59753         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
59754         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
59755         HAVE_DECL_TRUNCL.
59756         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
59757         HAVE_DECL_TRUNCL.
59758         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
59759
59760 2008-04-13  Bruno Haible  <bruno@clisp.org>
59761
59762         * lib/unictype.h: Remove trailing comma from enumeration definitions.
59763
59764 2008-04-13  Bruno Haible  <bruno@clisp.org>
59765
59766         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
59767         expression, so as to avoid HP-UX 11 cc compiler bug.
59768
59769 2008-04-13  Bruno Haible  <bruno@clisp.org>
59770
59771         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
59772
59773 2008-04-13  Bruno Haible  <bruno@clisp.org>
59774
59775         * lib/git-merge-changelog.c: Remove empty declaration outside of
59776         functions.
59777
59778 2008-04-13  Bruno Haible  <bruno@clisp.org>
59779
59780         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
59781
59782 2008-04-13  Bruno Haible  <bruno@clisp.org>
59783
59784         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
59785         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
59786         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
59787         also if it exists but lacks definitions of the SHUT_* macros.
59788         * modules/sys_socket (Description): Update.
59789         Reported by Elbert Pol <e.pol@chello.nl>.
59790
59791 2008-04-13  Bruno Haible  <bruno@clisp.org>
59792
59793         * lib/localcharset.c (OS2): Don't redefine if already defined.
59794         Reported by Elbert Pol <e.pol@chello.nl>.
59795
59796 2008-04-13  Bruno Haible  <bruno@clisp.org>
59797
59798         * lib/binary-io.h [__EMX__]: Include <io.h>.
59799         Reported by Elbert Pol <e.pol@chello.nl>.
59800
59801 2008-04-12  Bruno Haible  <bruno@clisp.org>
59802
59803         * lib/fpucw.h: Enable the definitions also for x86_64.
59804         Needed for NetBSD/x86_64.
59805         Reported by Thomas Klausner <tk@giga.or.at>.
59806
59807 2008-04-12  Bruno Haible  <bruno@clisp.org>
59808
59809         * tests/test-strtod.c: Include isnand.h.
59810         (main): Use isnand instead of isnan.
59811         Reported by Jim Meyering.
59812
59813 2008-04-12  Bruno Haible  <bruno@clisp.org>
59814
59815         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
59816         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
59817
59818 2008-04-12  Jim Meyering  <meyering@redhat.com>
59819
59820         * m4/math_h.m4 (gl_MATH_H): Fix typos.
59821
59822 2008-04-12  Bruno Haible  <bruno@clisp.org>
59823
59824         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
59825         Reported by Elbert Pol <e.pol@chello.nl>.
59826
59827 2008-04-12  Eric Blake  <ebb9@byu.net>
59828
59829         Work around Solaris 10 math.h bug.
59830         * m4/math_h.m4 (gl_MATH_H): Check for bug.
59831         (gl_MATH_H_DEFAULTS): Set up default.
59832         * modules/math (Makefile.am): Replace new indicators.
59833         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
59834         * tests/test-math.c (main): Test this.
59835         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
59836         * doc/posix-headers/math.texi (math.h): Mention bug.
59837         Reported by Nelson H. F. Beebe and Jim Meyering.
59838
59839 2008-04-11  Bruno Haible  <bruno@clisp.org>
59840
59841         Adapt to future versions of Apple GCC.
59842         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
59843         Reported by Peter O'Gorman <peter@pogma.com>.
59844
59845 2008-04-11  Bruno Haible  <bruno@clisp.org>
59846
59847         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
59848
59849 2008-04-11  Bruno Haible  <bruno@clisp.org>
59850
59851         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
59852
59853         * modules/getaddrinfo-tests (Makefile.am): Define
59854         test_getaddrinfo_LDADD.
59855
59856 2008-04-11  Bruno Haible  <bruno@clisp.org>
59857
59858         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
59859         (init): Fix syntax error.
59860         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
59861         is declared.
59862
59863 2008-04-11  Bruno Haible  <bruno@clisp.org>
59864
59865         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
59866         * modules/glob (Depends-on): Add stdbool.
59867
59868 2008-04-11  Bruno Haible  <bruno@clisp.org>
59869
59870         * lib/trim.c: Include <string.h>.
59871
59872 2008-04-11  Eric Blake  <ebb9@byu.net>
59873
59874         Avoid compile failure on OS/2.
59875         * lib/regex_internal.h (internal_function): Disable optimization
59876         on OS/2 (__EMX__), where it caused compiler error.
59877         Reported by Elbert Pol.
59878
59879 2008-04-11  Bruno Haible  <bruno@clisp.org>
59880
59881         Flush the standard error stream before aborting. Needed on mingw.
59882         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
59883         * tests/test-array_list.c (ASSERT): Likewise.
59884         * tests/test-array_oset.c (ASSERT): Likewise.
59885         * tests/test-avltree_list.c (ASSERT): Likewise.
59886         * tests/test-avltree_oset.c (ASSERT): Likewise.
59887         * tests/test-avltreehash_list.c (ASSERT): Likewise.
59888         * tests/test-binary-io.c (ASSERT): Likewise.
59889         * tests/test-byteswap.c (ASSERT): Likewise.
59890         * tests/test-c-ctype.c (ASSERT): Likewise.
59891         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
59892         * tests/test-c-strcasestr.c (ASSERT): Likewise.
59893         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
59894         * tests/test-c-strstr.c (ASSERT): Likewise.
59895         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
59896         * tests/test-canonicalize.c (ASSERT): Likewise.
59897         * tests/test-carray_list.c (ASSERT): Likewise.
59898         * tests/test-ceilf1.c (ASSERT): Likewise.
59899         * tests/test-ceilf2.c (ASSERT): Likewise.
59900         * tests/test-ceill.c (ASSERT): Likewise.
59901         * tests/test-count-one-bits.c (ASSERT): Likewise.
59902         * tests/test-fbufmode.c (ASSERT): Likewise.
59903         * tests/test-fflush2.c (ASSERT): Likewise.
59904         * tests/test-floorf1.c (ASSERT): Likewise.
59905         * tests/test-floorf2.c (ASSERT): Likewise.
59906         * tests/test-floorl.c (ASSERT): Likewise.
59907         * tests/test-fopen.c (ASSERT): Likewise.
59908         * tests/test-fpending.c (ASSERT): Likewise.
59909         * tests/test-fprintf-posix.c (ASSERT): Likewise.
59910         * tests/test-fpurge.c (ASSERT): Likewise.
59911         * tests/test-freadable.c (ASSERT): Likewise.
59912         * tests/test-freadahead.c (ASSERT): Likewise.
59913         * tests/test-freading.c (ASSERT): Likewise.
59914         * tests/test-freadptr.c (ASSERT): Likewise.
59915         * tests/test-freadptr2.c (ASSERT): Likewise.
59916         * tests/test-freadseek.c (ASSERT): Likewise.
59917         * tests/test-freopen.c (ASSERT): Likewise.
59918         * tests/test-frexp.c (ASSERT): Likewise.
59919         * tests/test-frexpl.c (ASSERT): Likewise.
59920         * tests/test-fseek.c (ASSERT): Likewise.
59921         * tests/test-fseeko.c (ASSERT): Likewise.
59922         * tests/test-fstrcmp.c (ASSERT): Likewise.
59923         * tests/test-ftell.c (ASSERT): Likewise.
59924         * tests/test-ftello.c (ASSERT): Likewise.
59925         * tests/test-func.c (ASSERT): Likewise.
59926         * tests/test-fwritable.c (ASSERT): Likewise.
59927         * tests/test-fwriting.c (ASSERT): Likewise.
59928         * tests/test-getdelim.c (ASSERT): Likewise.
59929         * tests/test-getline.c (ASSERT): Likewise.
59930         * tests/test-i-ring.c (ASSERT): Likewise.
59931         * tests/test-iconv-utf.c (ASSERT): Likewise.
59932         * tests/test-iconv.c (ASSERT): Likewise.
59933         * tests/test-isfinite.c (ASSERT): Likewise.
59934         * tests/test-isnand.c (ASSERT): Likewise.
59935         * tests/test-isnanf.c (ASSERT): Likewise.
59936         * tests/test-isnanl.h (ASSERT): Likewise.
59937         * tests/test-ldexpl.c (ASSERT): Likewise.
59938         * tests/test-linked_list.c (ASSERT): Likewise.
59939         * tests/test-linkedhash_list.c (ASSERT): Likewise.
59940         * tests/test-localename.c (ASSERT): Likewise.
59941         * tests/test-lseek.c (ASSERT): Likewise.
59942         * tests/test-mbscasecmp.c (ASSERT): Likewise.
59943         * tests/test-mbscasestr1.c (ASSERT): Likewise.
59944         * tests/test-mbscasestr2.c (ASSERT): Likewise.
59945         * tests/test-mbscasestr3.c (ASSERT): Likewise.
59946         * tests/test-mbscasestr4.c (ASSERT): Likewise.
59947         * tests/test-mbschr.c (ASSERT): Likewise.
59948         * tests/test-mbscspn.c (ASSERT): Likewise.
59949         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
59950         * tests/test-mbspbrk.c (ASSERT): Likewise.
59951         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
59952         * tests/test-mbsrchr.c (ASSERT): Likewise.
59953         * tests/test-mbsspn.c (ASSERT): Likewise.
59954         * tests/test-mbsstr1.c (ASSERT): Likewise.
59955         * tests/test-mbsstr2.c (ASSERT): Likewise.
59956         * tests/test-mbsstr3.c (ASSERT): Likewise.
59957         * tests/test-memchr2.c (ASSERT): Likewise.
59958         * tests/test-memmem.c (ASSERT): Likewise.
59959         * tests/test-open.c (ASSERT): Likewise.
59960         * tests/test-printf-frexp.c (ASSERT): Likewise.
59961         * tests/test-printf-frexpl.c (ASSERT): Likewise.
59962         * tests/test-printf-posix.c (ASSERT): Likewise.
59963         * tests/test-quotearg.c (ASSERT): Likewise.
59964         * tests/test-rbtree_list.c (ASSERT): Likewise.
59965         * tests/test-rbtree_oset.c (ASSERT): Likewise.
59966         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
59967         * tests/test-round1.c (ASSERT): Likewise.
59968         * tests/test-roundf1.c (ASSERT): Likewise.
59969         * tests/test-roundl.c (ASSERT): Likewise.
59970         * tests/test-signbit.c (ASSERT): Likewise.
59971         * tests/test-sleep.c (ASSERT): Likewise.
59972         * tests/test-snprintf-posix.c (ASSERT): Likewise.
59973         * tests/test-snprintf.c (ASSERT): Likewise.
59974         * tests/test-sprintf-posix.c (ASSERT): Likewise.
59975         * tests/test-stat-time.c (ASSERT): Likewise.
59976         * tests/test-strcasestr.c (ASSERT): Likewise.
59977         * tests/test-strerror.c (ASSERT): Likewise.
59978         * tests/test-striconv.c (ASSERT): Likewise.
59979         * tests/test-striconveh.c (ASSERT): Likewise.
59980         * tests/test-striconveha.c (ASSERT): Likewise.
59981         * tests/test-strsignal.c (ASSERT): Likewise.
59982         * tests/test-strstr.c (ASSERT): Likewise.
59983         * tests/test-strtod.c (ASSERT): Likewise.
59984         * tests/test-trunc1.c (ASSERT): Likewise.
59985         * tests/test-trunc2.c (ASSERT): Likewise.
59986         * tests/test-truncf1.c (ASSERT): Likewise.
59987         * tests/test-truncf2.c (ASSERT): Likewise.
59988         * tests/test-truncl.c (ASSERT): Likewise.
59989         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
59990         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
59991         * tests/test-vasnprintf.c (ASSERT): Likewise.
59992         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
59993         * tests/test-vasprintf.c (ASSERT): Likewise.
59994         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
59995         * tests/test-vprintf-posix.c (ASSERT): Likewise.
59996         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
59997         * tests/test-vsnprintf.c (ASSERT): Likewise.
59998         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
59999         * tests/test-wcwidth.c (ASSERT): Likewise.
60000         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
60001         * tests/test-xprintf-posix.c (ASSERT): Likewise.
60002         * tests/test-xvasprintf.c (ASSERT): Likewise.
60003         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
60004         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
60005         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
60006         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
60007         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
60008         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
60009         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
60010         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
60011         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
60012         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
60013         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
60014         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
60015         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
60016         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
60017         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
60018         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
60019         * tests/unictype/test-block_list.c (ASSERT): Likewise.
60020         * tests/unictype/test-block_of.c (ASSERT): Likewise.
60021         * tests/unictype/test-block_test.c (ASSERT): Likewise.
60022         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
60023         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
60024         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
60025         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
60026         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
60027         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
60028         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
60029         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
60030         * tests/unictype/test-combining.c (ASSERT): Likewise.
60031         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
60032         * tests/unictype/test-digit.c (ASSERT): Likewise.
60033         * tests/unictype/test-mirror.c (ASSERT): Likewise.
60034         * tests/unictype/test-numeric.c (ASSERT): Likewise.
60035         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
60036         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
60037         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
60038         * tests/unictype/test-scripts.c (ASSERT): Likewise.
60039         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
60040         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
60041         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
60042         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
60043         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
60044         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
60045         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
60046         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
60047         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
60048         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
60049         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
60050         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
60051         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
60052         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
60053         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
60054         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
60055         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
60056         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
60057         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
60058         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
60059         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
60060         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
60061         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
60062         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
60063         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
60064         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
60065         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
60066         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
60067         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
60068         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
60069         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
60070         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
60071         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
60072         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
60073         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
60074         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
60075         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
60076         Reported by Eric Blake.
60077
60078 2008-04-11  Bruno Haible  <bruno@clisp.org>
60079
60080         * lib/wchar.in.h: Tweak comment.
60081
60082 2008-04-11  Bruno Haible  <bruno@clisp.org>
60083
60084         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
60085         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
60086         gl_COMMON.
60087         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
60088
60089 2008-04-11  Bruno Haible  <bruno@clisp.org>
60090
60091         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
60092
60093 2008-04-11  Simon Josefsson  <simon@josefsson.org>
60094
60095         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
60096         of attempting to use non-existing /dev/*random.  Based on patch
60097         from Adam Strzelecki <ono@java.pl> in
60098         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
60099
60100 2008-04-08  Bruno Haible  <bruno@clisp.org>
60101
60102         Add tentative support for emx+gcc.
60103         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
60104         * lib/fpurge.c (fpurge): Likewise.
60105         * lib/freadable.c (freadable): Likewise.
60106         * lib/freadahead.c (freadahead): Likewise.
60107         * lib/freading.c (freading): Likewise.
60108         * lib/freadptr.c (freadptr): Likewise.
60109         * lib/freadseek.c (freadptrinc): Likewise.
60110         * lib/fseeko.c (rpl_fseeko): Likewise.
60111         * lib/fseterr.c (fseterr): Likewise.
60112         * lib/fwritable.c (fwritable): Likewise.
60113         * lib/fwriting.c (fwriting): Likewise.
60114         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
60115
60116 2008-04-09  Eric Blake  <ebb9@byu.net>
60117
60118         Avoid some autoconf warnings.
60119         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
60120         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
60121         * m4/afs.m4 (gl_AFS): Likewise.
60122         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
60123         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
60124         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
60125         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
60126         (gl_INTEGER_TYPE_SUFFIX): Likewise.
60127         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
60128         (AC_CHECK_DECLS_ONCE): Likewise.
60129         Rename file...
60130         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
60131         gnulib-tool requires autoconf 2.59 or better.
60132         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
60133
60134 2008-04-08  Eric Blake  <ebb9@byu.net>
60135
60136         Use 'git describe --match' if present (added in git 1.5.5).
60137         * build-aux/git-version-gen: Limit result to tags that match 'v*'
60138         if possible.
60139
60140 2008-04-08  Bruno Haible  <bruno@clisp.org>
60141
60142         Add tentative support for OpenServer.
60143         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
60144         _ptr, _cnt.
60145         * lib/fpurge.c (fpurge): Likewise.
60146         * lib/freadable.c (freadable): Likewise.
60147         * lib/freadahead.c (freadahead): Likewise.
60148         * lib/freading.c (freading): Likewise.
60149         * lib/freadptr.c (freadptr): Likewise.
60150         * lib/freadseek.c (freadptrinc): Likewise.
60151         * lib/fseeko.c (rpl_fseeko): Likewise.
60152         * lib/fseterr.c (fseterr): Likewise.
60153         * lib/fwritable.c (fwritable): Likewise.
60154         * lib/fwriting.c (fwriting): Likewise.
60155         Reported by Roger Cornelius <rac@tenzing.org> and
60156         Brian K. White <brian@aljex.com>.
60157
60158 2008-04-06  Jim Meyering  <meyering@redhat.com>
60159
60160         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
60161
60162 2008-04-06  Bruno Haible  <bruno@clisp.org>
60163
60164         Avoid possible error with non-ASCII bytes in UTF-8 locales.
60165         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
60166         * tests/test-printf-posix.sh: Likewise.
60167         * tests/test-vfprintf-posix.sh: Likewise.
60168         * tests/test-vprintf-posix.sh: Likewise.
60169         * tests/test-xprintf-posix.sh: Likewise.
60170
60171 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60172
60173         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
60174         hide error from 'ls', needed on OS/2.
60175         Report by Elbert Pol <elbert.pol@gmail.com>.
60176
60177 2008-04-04  Eric Blake  <ebb9@byu.net>
60178
60179         Make test-fseeko.c failures meaningful.
60180         * tests/test-fseeko.c: Print line number on failure.
60181         * tests/test-fseek.c: Likewise.
60182         Reported by Nelson H. F. Beebe.
60183
60184         Improve strtod bug detection check.
60185         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
60186         required for Solaris 10.
60187         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
60188
60189 2008-04-04  Bruno Haible  <bruno@clisp.org>
60190
60191         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
60192         by m4/setenv.m4.
60193
60194 2008-04-03  Eric Blake  <ebb9@byu.net>
60195
60196         Ensure sane .version contents.
60197         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
60198         version string.
60199         * build-aux/git-version-gen: Improve documentation.
60200
60201         Make GNU make output nicer.
60202         * top/GNUmakefile [!_have-Makefile]: Add dependency on
60203         MAKECMDGOALS to enforce message for all command line targets.  Set
60204         srcdir for use in maint.mk.
60205
60206         Another maintainer tweak.
60207         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
60208         a target that regenerates version.
60209
60210 2008-04-03  Jim Meyering  <meyering@redhat.com>
60211
60212         vc-list-files: don't cause coreutils "make po-check" failure
60213         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
60214
60215 2008-04-03  Eric Blake  <ebb9@byu.net>
60216
60217         Allow VPATH usage of vc-list-files.
60218         * build-aux/vc-list-files (scriptversion): Add timestamp.
60219         (options): Add --help, --version, -C.
60220         (CVS): Support installed cvsu.
60221
60222 2008-04-02  Bruno Haible  <bruno@clisp.org>
60223
60224         Avoid some "statement with no effect" warnings from gcc.
60225         * tests/test-wctype.c (main): Explicitly ignore unused values.
60226         Reported by Jim Meyering.
60227
60228 2008-04-02  Jim Meyering  <meyering@redhat.com>
60229
60230         Avoid some warnings from "gcc -Wshadow".
60231         * tests/test-frexp.c (exp): Define to a different identifier.
60232         * tests/test-frexpl.c (exp): Likewise.
60233
60234 2008-04-03  Jim Meyering  <meyering@redhat.com>
60235
60236         bootstrap: remove dangling *.[ch] symlinks from lib
60237         * build-aux/bootstrap [dangling symlink removal]: Move find's
60238         -depth option to precede all others, to avoid a warning.
60239         Remove *.[ch] files too, and from "$source_base" (usually lib/).
60240
60241 2008-04-02  Bruno Haible  <bruno@clisp.org>
60242
60243         Avoid some warnings from "gcc -Wshadow".
60244         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
60245         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
60246         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
60247         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
60248         Reported by Jim Meyering.
60249
60250 2008-04-01  Bruno Haible  <bruno@clisp.org>
60251
60252         Fix test to work on IRIX 6.5 with cc.
60253         * tests/test-math.c (numeric_equal): New function.
60254         (main): Use it.
60255
60256 2008-04-01  Bruno Haible  <bruno@clisp.org>
60257
60258         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
60259
60260 2008-04-01  Bruno Haible  <bruno@clisp.org>
60261
60262         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
60263         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
60264         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
60265         (Depends-on): Remove math.
60266
60267         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
60268         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
60269         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
60270         (Depends-on): Remove math.
60271
60272         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
60273         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
60274         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
60275         (Depends-on): Remove math.
60276         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
60277         (Depends-on): Remove math.
60278
60279         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
60280         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
60281         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
60282         (Depends-on): Remove math.
60283         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
60284         (Depends-on): Remove math.
60285
60286         * tests/test-round1.c: Include nan.h.
60287         (main): Use NaNd instead of NAN.
60288         * modules/round-tests (Files): Add tests/nan.h.
60289
60290         * tests/test-trunc1.c: Include nan.h.
60291         (main): Use NaNd instead of NAN.
60292         * modules/trunc-tests (Files): Add tests/nan.h.
60293
60294         * tests/test-roundf1.c: Include nan.h.
60295         (main): Use NaNf instead of NAN.
60296         * modules/roundf-tests (Files): Add tests/nan.h.
60297
60298         * tests/test-truncf1.c: Include nan.h.
60299         (main): Use NaNf instead of NAN.
60300         * modules/truncf-tests (Files): Add tests/nan.h.
60301
60302         * tests/test-ceilf1.c: Include nan.h.
60303         (main): Use NaNf instead of NAN.
60304         * modules/ceilf-tests (Files): Add tests/nan.h.
60305
60306         * tests/test-floorf1.c: Include nan.h.
60307         (main): Use NaNf instead of NAN.
60308         * modules/floorf-tests (Files): Add tests/nan.h.
60309
60310         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
60311         (main): Use NaNf instead of NAN.
60312         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
60313
60314         * tests/test-isnand.c: Include nan.h instead of <math.h>.
60315         (main): Use NaNd instead of NAN.
60316         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
60317
60318         * tests/test-frexp.c: Include nan.h.
60319         (main): Use NaNd instead of NAN.
60320         * modules/frexp-tests (Files): Add tests/nan.h.
60321
60322         * lib/isnan.c: Don't include <math.h>.
60323         (FUNC): Don't use NAN macro.
60324         * modules/isnand-nolibm (Depends-on): Remove math.
60325         * modules/isnanf-nolibm (Depends-on): Remove math.
60326         * modules/isnanl (Depends-on): Remove math.
60327         * modules/isnanl-nolibm (Depends-on): Remove math.
60328
60329         * tests/nan.h: New file.
60330
60331 2008-04-01  Eric Blake  <ebb9@byu.net>
60332
60333         Fix typos.
60334         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
60335         values to be the right type.
60336
60337         For now, cater to gnulib strtod inaccuracies.
60338         * tests/test-strtod.c (main): Allow 1-ulp error on expected
60339         fractional results.  While not as nice from a QoI perspective, it
60340         is a quicker patch than correctly implementing decimal to binary
60341         rounding.
60342
60343 2008-03-31  Eric Blake  <ebb9@byu.net>
60344
60345         Guarantee a definition of NAN.
60346         * lib/math.in.h (NAN): Define if missing.
60347         * tests/test-math.c (main): Test it.
60348         * doc/posix-headers/math.texi (math.h): Document this.
60349         * lib/isnan.c (rpl_isnand): Use it.
60350         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
60351         * tests/test-floorf1.c (NaN): Likewise.
60352         * tests/test-frexp.c (NaN): Likewise.
60353         * tests/test-isnand.c (NaN): Likewise.
60354         * tests/test-isnanf.c (NaN): Likewise.
60355         * tests/test-round1.c (NaN): Likewise.
60356         * tests/test-roundf1.c (NaN): Likewise.
60357         * tests/test-snprintf-posix.h (NaN): Likewise.
60358         * tests/test-sprintf-posix.h (NaN): Likewise.
60359         * tests/test-trunc1.c (NaN): Likewise.
60360         * tests/test-truncf1.c (NaN): Likewise.
60361         * tests/test-vasnprintf-posix.c (NaN): Likewise.
60362         * tests/test-vasprintf-posix.c (NaN): Likewise.
60363         * modules/isnand-nolibm (Depends-on): Add math.
60364         * modules/isnanf-nolibm (Depends-on): Likewise.
60365         * modules/isnanl (Depends-on): Likewise.
60366         * modules/isnanl-nolibm (Depends-on): Likewise.
60367         * modules/snprintf-posix-tests (Depends-on): Likewise.
60368         * modules/sprintf-posix-tests (Depends-on): Likewise.
60369         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
60370         * modules/vsprintf-posix-tests (Depends-on): Likewise.
60371         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
60372         * modules/vasprintf-posix-tests (Depends-on): Likewise.
60373
60374 2008-03-31  Bruno Haible  <bruno@clisp.org>
60375
60376         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
60377         * doc/posix-functions/strtod.texi: Likewise.
60378
60379 2008-03-31  Bruno Haible  <bruno@clisp.org>
60380
60381         * tests/test-strtod.c (main): Don't use C99 syntax.
60382
60383 2008-03-31  Bruno Haible  <bruno@clisp.org>
60384
60385         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
60386         Reported by Eric Blake.
60387
60388 2008-03-31  Jim Meyering  <meyering@redhat.com>
60389
60390         Don't compare actual signbit return values.
60391         * tests/test-strtod.c (main): Rather, compare only their
60392         zero/non-zero nature.
60393
60394 2008-03-31  Eric Blake  <ebb9@byu.net>
60395
60396         More strtod documentation.
60397         * doc/posix-functions/strtod.texi (strtod): Interpret more test
60398         failures as distinct bugs.
60399
60400 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
60401
60402         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
60403         Problem reported by Erik Benada in
60404         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
60405
60406 2008-03-30  Bruno Haible  <bruno@clisp.org>
60407
60408         * tests/test-strtod.c: Add comments about which assertion fails on which
60409         platform.
60410         * doc/posix-functions/strtod.texi: Add info about many more platforms.
60411
60412 2008-03-30  Eric Blake  <ebb9@byu.net>
60413
60414         Test signbit behavior on zeros.
60415         * tests/test-signbit.c (test_signbitf): Add tests for zero.
60416         (test_signbitd, test_signbitl): Likewise.
60417
60418         More strtod touchups.
60419         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
60420         sign of negative underflow, for now.  Use .5, not .1.
60421         * doc/posix-functions/strtod.texi (strtod): Mention these
60422         limitations.
60423         Reported by Jim Meyering.
60424
60425 2008-03-30  Bruno Haible  <bruno@clisp.org>
60426
60427         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
60428         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
60429
60430 2008-03-30  Bruno Haible  <bruno@clisp.org>
60431
60432         Avoid failure when attempting to return empty iconv results on some
60433         platforms.
60434         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
60435         allocation, don't report ENOMEM when the resulting string is empty.
60436
60437 2008-03-30  Bruno Haible  <bruno@clisp.org>
60438
60439         Fix buffer overrun.
60440         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
60441         Don't consider the width for tmp_length. Check count against tmp_length
60442         before doing the padding. Ensure enough allocation during padding.
60443
60444 2008-03-30  Eric Blake  <ebb9@byu.net>
60445
60446         strtod touchups.
60447         * lib/strtod.c (strtod): Avoid compiler warnings.
60448         Reported by Jim Meyering.
60449
60450 2008-03-30  Bruno Haible  <bruno@clisp.org>
60451
60452         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
60453         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
60454         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
60455         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
60456         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
60457         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
60458         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
60459         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
60460
60461         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
60462         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
60463         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
60464         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
60465         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
60466         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
60467         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
60468         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
60469
60470         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
60471         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
60472         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
60473         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
60474         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
60475         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
60476         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
60477         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
60478
60479         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
60480         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
60481
60482         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
60483         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
60484
60485         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
60486         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
60487
60488         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
60489         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
60490         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
60491
60492         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
60493         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
60494         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
60495
60496         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
60497         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
60498         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
60499
60500         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
60501         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
60502         * modules/vasprintf (Depends-on): Add EOVERFLOW.
60503
60504         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
60505         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
60506         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
60507         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
60508         (Depends-on): Add EOVERFLOW.
60509         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
60510         (Depends-on): Add EOVERFLOW.
60511         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
60512         (Depends-on): Add EOVERFLOW.
60513         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
60514         (Depends-on): Add EOVERFLOW.
60515         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
60516         (Depends-on): Add EOVERFLOW.
60517         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
60518         (Depends-on): Add EOVERFLOW.
60519         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
60520         (Depends-on): Add EOVERFLOW.
60521         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
60522         (Depends-on): Add EOVERFLOW.
60523
60524         * lib/sprintf.c (EOVERFLOW): Remove fallback.
60525         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
60526         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
60527
60528         * lib/snprintf.c (EOVERFLOW): Remove fallback.
60529         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
60530         * modules/snprintf (Depends-on): Add EOVERFLOW.
60531
60532         * lib/poll.c (EOVERFLOW): Remove fallback.
60533         * modules/poll (Depends-on): Add EOVERFLOW.
60534
60535         * lib/getugroups.c (EOVERFLOW): Remove fallback.
60536         * modules/getugroups (Depends-on): Add EOVERFLOW.
60537
60538         * lib/getdelim.c (EOVERFLOW): Remove fallback.
60539         * modules/getdelim (Depends-on): Add EOVERFLOW.
60540
60541         * lib/ftell.c (EOVERFLOW): Remove fallback.
60542         * modules/ftell (Depends-on): Add EOVERFLOW.
60543
60544         * lib/fprintf.c (EOVERFLOW): Remove fallback.
60545         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
60546         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
60547
60548         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
60549
60550         * modules/EOVERFLOW-tests: New file.
60551         * tests/test-EOVERFLOW.c: New file.
60552
60553         * modules/EOVERFLOW: New file.
60554         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
60555
60556 2008-03-30  Bruno Haible  <bruno@clisp.org>
60557
60558         Fix bug introduced on 2007-06-10.
60559         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
60560         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
60561
60562 2008-03-30  Bruno Haible  <bruno@clisp.org>
60563
60564         Improve freadseek's efficiency after ungetc.
60565         * lib/freadseek.c: Include freadahead.h.
60566         (freadptrinc): New function, extracted from freadseek.
60567         (freadseek): Use it in a loop. Use freadahead to determine the number
60568         of loop iterations.
60569         * modules/freadseek (Depends-on): Add freadahead.
60570         (configure.ac): Require AC_C_INLINE.
60571
60572 2008-03-30  Bruno Haible  <bruno@clisp.org>
60573
60574         * lib/freadseek.c (freadseek): Don't ignore the return value of
60575         freadptr.
60576
60577 2008-03-29  Eric Blake  <ebb9@byu.net>
60578
60579         Add hex float support.
60580         * modules/strtod (Depends-on): Add c-ctype.
60581         (Link): Mention POW_LIB.
60582         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
60583         whitespace between 'e' and exponent.
60584         * tests/test-strtod.c (main): Enable hex float tests.
60585         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
60586         now provides.
60587
60588         Document various strtod bugs, with some fixes.
60589         * doc/posix-functions/strtod.texi (strtod): Document bugs with
60590         "-0x", "inf", "nan", and hex constants.
60591         * doc/posix-functions/atof.texi (atof): Likewise.
60592         * modules/stdlib (Makefile.am): Support strtod.
60593         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
60594         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
60595         detect additional strtod bugs.
60596         * lib/stdlib.in.h (rpl_strtod): Add declarations.
60597         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
60598         bool where appropriate.  Parse 'inf' and 'nan'.
60599         * tests/test-strtod.c: New file.
60600         * modules/strtod (Depends-on): Add stdbool, stdlib.
60601         (configure.ac): Turn on module indicator.
60602         * modules/strtod-tests: New module.
60603
60604 2008-03-29  Eric Blake  <ebb9@byu.net>
60605
60606         Fix ftell on mingw.
60607         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
60608         * modules/ftell-tests (Depends-on): Add binary-io.
60609         * modules/ftello-tests (Depends-on): Likewise.
60610         * tests/test-ftell.c (main): Enhance test to cover behavior after
60611         ungetc.  Enforce binary mode.
60612         * tests/test-ftello.c (main): Likewise.
60613
60614         Pass test-freadseek on cygwin.
60615         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
60616         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
60617         ungetc buffer.
60618
60619         * tests/test-fflush2.c (main): Fix typo.
60620
60621 2008-03-29  Bruno Haible  <bruno@clisp.org>
60622
60623         * tests/test-fflush2.c (main): Temporarily disable the contents of
60624         this test.
60625         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
60626         Reported by Eric Blake.
60627
60628 2008-03-28  Simon Josefsson  <simon@josefsson.org>
60629
60630         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
60631         (GC_SHA224_DIGEST_SIZE): Add.
60632
60633         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
60634         (gc_hash_digest_length): Likewise.
60635         (gc_hash_buffer): Likewise.
60636
60637 2008-03-25  Bruno Haible  <bruno@clisp.org>
60638
60639         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
60640         detail which gettext release to use.
60641         Reported by Simon Josefsson.
60642
60643 2008-03-26  Jim Meyering  <meyering@redhat.com>
60644
60645         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
60646         * modules/gnumakefile (clean-GNUmakefile): Also, use
60647         test ... && ... || : syntax rather than if-then ... fi.
60648
60649         gnumakefile: Don't double-quote-expand $(VPATH) value.
60650         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
60651
60652 2008-03-24  Eric Blake  <ebb9@byu.net>
60653
60654         Alter GNUmakefile to install into top directory.
60655         * modules/maintainer-makefile: Split, and add dependency...
60656         * modules/gnumakefile: to this new module.
60657         * build-aux/GNUmakefile: Move...
60658         * top/GNUmakefile: ...here.
60659         * build-aux/maint.mk: Move...
60660         * top/maint.mk: ...here.
60661         * MODULES.html.sh (Support for maintaining...): Document new
60662         module.
60663
60664 2008-03-23  Bruno Haible  <bruno@clisp.org>
60665
60666         * gnulib-tool: New options --vc-files, --no-vc-files.
60667         (func_usage): Document them.
60668         (vc_files): New variable.
60669         (func_import): Consider vc_files.
60670         (func_create_testdir): Set vc_files to empty.
60671         Suggested by Jim Meyering and Karl Berry.
60672
60673 2008-03-23  Bruno Haible  <bruno@clisp.org>
60674
60675         Fix regex compilation error on HP-UX 11.
60676         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
60677         * modules/regex (Files): Add m4/mbstate_t.m4.
60678         Reported by Ton Voon <ton.voon@altinity.com>.
60679
60680 2008-03-23  Bruno Haible  <bruno@clisp.org>
60681
60682         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
60683
60684 2008-03-23  Eric Blake  <ebb9@byu.net>
60685             Bruno Haible  <bruno@clisp.org>
60686
60687         Install files from top/ in the destination directory.
60688         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
60689         augmentation also for the files from top/.
60690         (func_import, func_create_testdir): Rewrite file names:
60691         top/filename -> filename.
60692
60693 2008-03-23  Bruno Haible  <bruno@clisp.org>
60694
60695         Tweak "gnulib --version" output.
60696         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
60697
60698 2008-03-23  Bruno Haible  <bruno@clisp.org>
60699
60700         Tweak "gnulib --version" output.
60701         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
60702         rather than contents of ChangeLog, when possible.
60703
60704 2008-03-21  Eric Blake  <ebb9@byu.net>
60705
60706         More --version tweaks.
60707         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
60708         date of last ChangeLog entry.
60709
60710 2008-03-21  Jim Meyering  <meyering@redhat.com>
60711
60712         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
60713
60714 2008-03-20  Eric Blake  <ebb9@byu.net>
60715
60716         VPATH fix.
60717         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
60718
60719 2008-03-20  Simon Josefsson  <simon@josefsson.org>
60720
60721         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
60722         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
60723
60724 2008-03-20  Eric Blake  <ebb9@byu.net>
60725
60726         Sync GNUmakefile with coreutils.
60727         * build-aux/GNUmakefile (have-Makefile): Rename...
60728         (_have-Makefile): ...to this, for namespace consideration.
60729         (GNUmakefile.cfg): Include, if present.
60730         (_autoreconf): Define a default.
60731         (_is-dist-target): New rule for rebuilds to pick up intra-release
60732         version.
60733         (maint-cfg.mk): Rename...
60734         (cfg.mk): ...to this.
60735
60736 2008-03-18  Jim Meyering  <meyering@redhat.com>
60737
60738         New script and module: mktempd
60739         * MODULES.html.sh (maint+release support): Add mktempd.
60740         * build-aux/mktempd: New file.
60741         * modules/mktempd: New file.
60742
60743 2008-03-15  Jim Meyering  <meyering@redhat.com>
60744
60745         Undo last change.
60746         * lib/sha1.c, lib/md5.c: 63 != ~63.
60747         Reported by Andreas Schwab.
60748
60749         sha1.c, md5.c: Hoist a redundant expression.
60750         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
60751         "ctx->buflen" only once, before calling *_process_block.
60752         * lib/md5.c (md5_process_bytes): Likewise.
60753
60754 2008-03-14  Eric Blake  <ebb9@byu.net>
60755
60756         Bump copyright year in files generated by gnulib-tool.
60757         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
60758         gnulib-tool, rather than hard-coding it.
60759
60760         Fix 'gnulib-tool --version' output to work with git.
60761         * gnulib-tool (func_gnulib_dir): New function, extracted from...
60762         (startup): ...here.
60763         (func_version): Use it to invoke git-version-gen, rather than
60764         relying on CVS keyword expansion.  Modernize wording.
60765         (cvsdatestamp, last_checkin_date, version): Kill unused
60766         variables.
60767
60768 2008-03-12  Jim Meyering  <meyering@redhat.com>
60769
60770         Recognize optional cast of the argument to free.
60771         * build-aux/useless-if-before-free: Update regexps.
60772
60773         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
60774
60775 2008-03-11  Bruno Haible  <bruno@clisp.org>
60776
60777         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
60778         by a single package.
60779         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
60780         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
60781         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
60782         Reported by Sam Steingold <sds@gnu.org>.
60783
60784 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
60785
60786         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
60787         repositories.
60788
60789 2008-03-11  Bruno Haible  <bruno@clisp.org>
60790
60791         Avoid conflicts between local macro definitions.
60792         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
60793         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
60794
60795 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
60796             Bruno Haible  <bruno@clisp.org>
60797
60798         Make va_copy work with some version of xlc on AIX 5.1.
60799         * lib/stdarg.in.h: New file.
60800         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
60801         On AIX, use a <stdarg.h> file substitute.
60802         * modules/stdarg (Files): Add lib/stdarg.in.h.
60803         (Depends-on): Add include_next.
60804         (Makefile.am): Build a stdarg.h substitute if requested.
60805         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
60806
60807 2008-03-10  Bruno Haible  <bruno@clisp.org>
60808
60809         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
60810         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
60811         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
60812
60813 2008-03-10  Bruno Haible  <bruno@clisp.org>
60814
60815         * modules/stdlib (Depends-on): Add include_next, remove
60816         absolute-header.
60817
60818 2008-03-09  Bruno Haible  <bruno@clisp.org>
60819
60820         * lib/freadahead.h (freadahead): Document more precisely.
60821         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
60822         the sum of both buffer sizes.
60823         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
60824         * NEWS: Document the change.
60825
60826 2008-03-09  Bruno Haible  <bruno@clisp.org>
60827
60828         Extend freadptr to return also the buffer size.
60829         * lib/freadptr.h (freadptr): Add sizep argument.
60830         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
60831         (freadptr): Add sizep argument. Determine buffer size like freadahead
60832         does.
60833         * tests/test-freadptr.c: Don't include freadahead.h.
60834         (main): Adapt for new calling convention of freadptr.
60835         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
60836         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
60837         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
60838         tests/test-freadptr2.sh.
60839         (Depends): Remove freadahead.
60840         (TESTS): Add test-freadptr2.sh.
60841         (check_PROGRAMS): Add test-freadptr2.
60842
60843 2008-03-09  Bruno Haible  <bruno@clisp.org>
60844
60845         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
60846         Report and solution by Simon Josefsson.
60847
60848 2008-03-06  Bruno Haible  <bruno@clisp.org>
60849
60850         Make fflush after ungetc work on BSD platforms.
60851         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
60852         * tests/test-fflush2.c: New file.
60853         * tests/test-fflush2.sh: New file.
60854         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
60855         tests/test-fflush2.c.
60856         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
60857         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
60858
60859 2008-03-06  Eric Blake  <ebb9@byu.net>
60860
60861         Likewise for ftello.
60862         * modules/ftello (Dependencies): Add extensions.
60863         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
60864
60865 2008-03-06  Bruno Haible  <bruno@clisp.org>
60866
60867         * modules/fseeko (Dependencies): Add extensions.
60868         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
60869         Needed on glibc systems.
60870
60871 2008-03-06  Bruno Haible  <bruno@clisp.org>
60872
60873         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
60874         email address.
60875         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
60876
60877 2008-03-06  Bruno Haible  <bruno@clisp.org>
60878
60879         * users.txt: Add libgnupdf.
60880
60881 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
60882
60883         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
60884         (Header File Substitutes, Function Substitutes,
60885         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
60886         (Build robot for gnulib): Fix typo.
60887
60888 2008-03-06  Bruno Haible  <bruno@clisp.org>
60889
60890         * doc/gnulib-tool.texi (VCS Issues): Small updates.
60891         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
60892
60893 2008-03-06  Bruno Haible  <bruno@clisp.org>
60894
60895         * doc/func.texi: New file, extracted from doc/gnulib.texi.
60896         * doc/gnulib.texi: Include it.
60897
60898 2008-03-06  Simon Josefsson  <simon@josefsson.org>
60899
60900         * modules/func (License): Change license to unlimited; there was
60901         no LGPL parts in the module anyway.
60902
60903 2008-03-06  Simon Josefsson  <simon@josefsson.org>
60904
60905         * modules/__func__: Renamed to modules/func.
60906         * modules/__func__-tests: Renamed to modules/func-tests.
60907         * tests/test-__func__.c: Renamed to tests/test-func.c.
60908         * m4/__func__.m4: Renamed to m4/func.m4.
60909         * doc/gnulib.texi (__func__): Section renamed to func.
60910         Suggested by Eric Blake <ebb9@byu.net>.
60911
60912 2008-03-06  Simon Josefsson  <simon@josefsson.org>
60913
60914         * doc/gnulib.texi (__func__): Use C99 terminology when talking
60915         about __func__.  Make example self-contained.  Suggested by Eric
60916         Blake <ebb9@byu.net>.
60917
60918         * tests/test-__func__.c (main): Avoid extraneous () around __func.
60919         Suggested by Eric Blake <ebb9@byu.net>.
60920
60921 2008-03-06  Simon Josefsson  <simon@josefsson.org>
60922
60923         * modules/__func__: New file.
60924         * modules/__func__-tests: New file.
60925         * tests/test-__func__.c: New file.
60926         * m4/__func__.m4: New file.
60927         * doc/gnulib.texi (__func__): Document __func__ module.
60928
60929 2008-03-05  Simon Josefsson  <simon@josefsson.org>
60930
60931         * modules/byteswap (License): Re-license as LGPLv2+.
60932
60933 2008-03-05  Simon Josefsson  <simon@josefsson.org>
60934
60935         * doc/Makefile: Add pdf target.
60936
60937 2008-03-05  Simon Josefsson  <simon@josefsson.org>
60938
60939         * modules/inline (License): Use 'unlimited', since there are only
60940         *.m4 files in this module.
60941
60942 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
60943             Bruno Haible  <bruno@clisp.org>
60944
60945         Add support for HP C 7.1 on OpenVMS 8.3.
60946         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
60947
60948 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
60949
60950         Update VMS specifics.
60951         * lib/getopt.c [VMS]: Remove include of unixlib.h.
60952
60953 2008-03-02  Jim Meyering  <meyering@redhat.com>
60954
60955         Remove the last dependency on the "free" module.
60956         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
60957         Reported by Bob Proulx.
60958
60959         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
60960
60961         Remove useless "if" tests before free.  Deprecate "free" module.
60962         * doc/posix-functions/free.texi: Mention that this
60963         module is no longer useful.
60964         * modules/free (Notice): Say this module is obsolete.
60965         * modules/readutmp (Depends-on): Remove free.
60966         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
60967         * lib/putenv.c (putenv): Likewise.
60968         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
60969         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
60970         * tests/test-c-strcasestr.c (main): Likewise.
60971         * tests/test-c-strstr.c (main): Likewise.
60972         * tests/test-mbscasestr1.c (main): Likewise.
60973         * tests/test-mbscasestr2.c (main): Likewise.
60974         * tests/test-mbsstr1.c (main): Likewise.
60975         * tests/test-mbsstr2.c (main): Likewise.
60976         * tests/test-memmem.c (main): Likewise.
60977         * tests/test-strcasestr.c (main): Likewise.
60978         * tests/test-striconv.c (main): Likewise.
60979         * tests/test-striconveh.c (main): Likewise.
60980         * tests/test-striconveha.c (main): Likewise.
60981         * tests/test-strstr.c (main): Likewise.
60982
60983         * build-aux/git-version-gen: Adjust a comment and the Usage string.
60984
60985         bootstrap: sync from coreutils again
60986         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
60987
60988 2008-03-01  Jim Meyering  <meyering@redhat.com>
60989
60990         bootstrap: sync from coreutils
60991         * build-aux/bootstrap (update_po_files): Copy a .po file into place
60992         also when the target doesn't exist.
60993
60994 2008-03-01  Eric Blake  <ebb9@byu.net>
60995
60996         Fix bugs in last patch.
60997         * lib/memchr2.c (memchr2): Fix typo.
60998         * tests/test-memchr2.c: Test previous bug, and don't use GNU
60999         extension.
61000         Reported by Bruce Korb.
61001
61002         New module 'memchr2'.
61003         * modules/memchr2: New file.
61004         * modules/memchr2-tests: Likewise.
61005         * lib/memchr2.h: Likewise.
61006         * lib/memchr2.c: Likewise, based on memchr.c.
61007         * tests/test-memchr2.c: New test.
61008         * MODULES.html.sh (String handling): Add memchr2.
61009
61010 2008-02-29  Bruno Haible  <bruno@clisp.org>
61011
61012         * modules/freadseek-tests: New file.
61013         * tests/test-freadseek.sh: New file.
61014         * tests/test-freadseek.c: New file.
61015
61016         New module 'freadseek'.
61017         * modules/freadseek: New file.
61018         * lib/freadseek.h: New file.
61019         * lib/freadseek.c: New file.
61020         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
61021
61022 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
61023
61024         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
61025         wydawca.
61026
61027         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
61028         program_invocation_name and program_invocation_short_name are
61029         present.
61030
61031 2008-02-28  Bruno Haible  <bruno@clisp.org>
61032
61033         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
61034         * tests/test-freadptr.sh: Also test non-seekable stdin.
61035
61036 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
61037
61038         * build-aux/bootstrap (source_base, m4_base)
61039         (doc_base, tests_base): New variables.
61040         (gnulib_tool_options): Do not hardcode base directories, use
61041         the above variables instead.
61042
61043 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
61044
61045         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
61046
61047 2008-02-28  Bruno Haible  <bruno@clisp.org>
61048
61049         * modules/freadptr-tests: New file.
61050         * tests/test-freadptr.sh: New file.
61051         * tests/test-freadptr.c: New file.
61052
61053         New module 'freadptr'.
61054         * modules/freadptr: New file.
61055         * lib/freadptr.h: New file.
61056         * lib/freadptr.c: New file.
61057         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
61058
61059 2008-02-26  Karl Berry  <karl@freefriends.org>
61060
61061         Sync from Libtool:
61062         * libltdl/argz.c (argz_add, argz_count): New functions.
61063         * libltdl/argz.in.h: Declare them.
61064         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
61065
61066 2008-02-22  Bruno Haible  <bruno@clisp.org>
61067
61068         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
61069         is a pointer type.  Needed for HP-UX 10.
61070         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
61071         * doc/posix-functions/gmtime_r.texi: Likewise.
61072         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
61073
61074 2008-02-24  Bruno Haible  <bruno@clisp.org>
61075
61076         * modules/environ-tests: New file.
61077         * tests/test-environ.c: New file.
61078
61079         New module 'environ'.
61080         * modules/environ: New file.
61081         * lib/unistd.in.h (environ): New declaration.
61082         * m4/environ.m4: New file.
61083         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
61084         after use.
61085         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
61086         HAVE_DECL_ENVIRON.
61087         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
61088         HAVE_DECL_ENVIRON.
61089         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
61090         wrong claim that 'environ' is missing on some systems.
61091         * modules/execute (Depends-on): Add environ.
61092         * lib/execute.c (environ): Remove fallback declaration.
61093         * modules/pipe (Depends-on): Add environ.
61094         * lib/pipe.c (environ): Remove fallback declaration.
61095         * modules/setenv (Depends-on): Add environ.
61096         * lib/setenv.c (environ): Remove fallback declaration.
61097         * modules/unsetenv (Depends-on): Add environ.
61098         * lib/unsetenv.c (environ): Remove fallback declaration.
61099         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
61100         m4/environ.m4.
61101         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
61102         (gl_PREREQ_UNSETENV): Likewise.
61103
61104 2008-02-24  Bruno Haible  <bruno@clisp.org>
61105
61106         * doc/posix-functions/environ.texi: Document the MacOS X problem.
61107
61108 2008-02-20  Bob Proulx  <bob@proulx.com>
61109
61110         Enable use of older two part flavor 'git describe'.
61111         * build-aux/git-version-gen: If using the older two part flavor of
61112         git version then recreate the third part now present in the
61113         newer three part flavor of git describe.
61114
61115 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
61116
61117         * lib/fts.c (fts_build): Typo correction to comment.
61118
61119 2008-02-17  Bruno Haible  <bruno@clisp.org>
61120
61121         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
61122         generating no-op conflicts.
61123
61124 2008-02-17  Bruno Haible  <bruno@clisp.org>
61125
61126         Speed up by 10%.
61127         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
61128         result_entries, rather than an index-based loop.
61129
61130 2008-02-17  Bruno Haible  <bruno@clisp.org>
61131
61132         Speed up by 25%.
61133         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
61134         'hashcode_cached'.
61135         (entry_create): New function.
61136         (entry_hashcode): Use the cached hashcode if possible.
61137         (read_changelog_file, try_split_merged_entry): Use entry_create.
61138
61139 2008-02-17  Bruno Haible  <bruno@clisp.org>
61140
61141         Speed up from O(n^2) to O(n) for long ChangeLog files.
61142         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
61143         (read_changelog_file): Change implementation of entries_reversed list
61144         to rbtreehash.
61145         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
61146
61147 2008-02-17  Bruno Haible  <bruno@clisp.org>
61148
61149         New option --split-merged-entry.
61150         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
61151         (find_paragraph_end, try_split_merged_entry): New functions.
61152         (long_options): Add option --split-merged-entry.
61153         (usage): Document option --split-merged-entry.
61154         (main): Implement option --split-merged-entry.
61155         Reported by Eric Blake.
61156
61157 2008-02-17  Bruno Haible  <bruno@clisp.org>
61158
61159         * lib/git-merge-changelog.c: Include c-strstr.h.
61160         (main): Support the "git pull --rebase" situation.
61161         * modules/git-merge-changelog (Depends-on): Add c-strstr.
61162         Reported by Eric Blake.
61163
61164 2008-02-16  Eric Blake  <ebb9@byu.net>
61165
61166         Avoid doubling \ in common case of "c-maybe" quoting style.
61167         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
61168         eliding outer quotes.
61169         * lib/quotearg.h: Document this.
61170         * tests/test-quotearg.c (result_strings, inputs, results_g)
61171         (flag_results, locale_results): Test it by adding a new string to
61172         each test group.
61173         (compare_strings): Test new string.
61174
61175 2008-02-13  Eric Blake  <ebb9@byu.net>
61176
61177         Avoid trigraph quoting in default output.
61178         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
61179         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
61180         unless explicitly requested.
61181         * tests/test-quotearg.c (flag_results, main): Add additional tests.
61182
61183 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
61184
61185         Don't rely on signed integer overflowing to negative value.
61186         * lib/getugroups.c (getugroups): Include <limits.h>.
61187         Instead, compare against INT_MAX, and increment only if the test passes.
61188
61189 2008-02-13  Jim Meyering  <meyering@redhat.com>
61190         and Eric Blake  <ebb9@byu.net>
61191
61192         Avoid shadowing warning and compile errors on Linux.
61193         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
61194         forwarding macros on Linux.
61195         (dcgettext): Define a stub, for Linux.
61196         (results_g, main): Avoid warnings.
61197
61198 2008-02-12  Eric Blake  <ebb9@byu.net>
61199
61200         Silence warning in last patch.
61201         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
61202
61203         Quotearg part 4: add tests, fix c-maybe colon quoting.
61204         * lib/quotearg.h: Improve documentation.
61205         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
61206         escapes when adding outer quotes.  When quoting trigraphs, use
61207         valid C notation.  When quoting NUL, omit extra characters if next
61208         character is not digit.  Alter prototype.
61209         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
61210         callers.
61211         * modules/quotearg-tests: New module.
61212         * tests/test-quotearg.c: New test.
61213
61214 2008-02-07  Eric Blake  <ebb9@byu.net>
61215
61216         Quotearg part 3: add flag to control outer quote elision.
61217         * lib/quotearg.h (c_maybe_quoting_style): New style.
61218         (enum quoting_flags): Better documentation of flags.
61219         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
61220         c-maybe style.
61221         (quotearg_buffer_restyled): Handle new flag to elide outer
61222         quotes.
61223
61224         Quotearg part 2: add flag that can control NUL elision.
61225         * lib/quotearg.h (set_quoting_flags): New prototype.
61226         * lib/quotearg.c (struct quoting_options): Add flag field.
61227         (set_quoting_flags): New function.
61228         (quotearg_buffer_restyled): Add flags parameter.
61229         (quotearg_alloc_mem): Set the flag if length cannot be returned.
61230         (quotearg_n_options): Set the flag, since length cannot be
61231         returned.
61232         (quoting_options_from_style): Default flags correctly.
61233
61234         Quotearg part 1: more wrappers, restore quotearg_char state.
61235         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
61236         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
61237         (quotearg_colon_mem): New wrappers.
61238         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
61239         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
61240         functions.
61241         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
61242         (quotearg_colon_mem): New functions.
61243
61244 2008-02-11  Bruno Haible  <bruno@clisp.org>
61245
61246         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
61247         library in the current directory: it does not work with parallel make.
61248         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61249
61250 2008-02-11  Bruno Haible  <bruno@clisp.org>
61251
61252         * .gitattributes: New file.
61253
61254 2008-02-11  Jim Meyering  <meyering@redhat.com>
61255
61256         useless-if-before-free: Fix reversed exit values.
61257         * build-aux/useless-if-before-free: Use correct values
61258         for EXIT_MATCH and EXIT_NO_MATCH.
61259
61260         * build-aux/useless-if-before-free: Close stdout carefully.
61261
61262 2008-02-10  Bruno Haible  <bruno@clisp.org>
61263
61264         New module 'git-merge-changelog'.
61265         * modules/git-merge-changelog: New file.
61266         * lib/git-merge-changelog.c: New file.
61267
61268 2008-02-10  Jim Meyering  <meyering@redhat.com>
61269
61270         useless-if-before-free: New option: --list (-l).
61271
61272         useless-if-before-free: Don't exit immediately upon open failure.
61273         * build-aux/useless-if-before-free: Exit 2 for errors.
61274         Upon failure to open a file, don't exit immediately.
61275         Rather, just warn and continue with any remaining files.
61276
61277 2008-02-10  Bruno Haible  <bruno@clisp.org>
61278
61279         New abstract list operation 'node_set_value'.
61280         * lib/gl_list.h (gl_list_node_set_value): New function.
61281         (struct gl_list_implementation): New field node_set_value.
61282         * lib/gl_list.c (gl_list_node_set_value): New function.
61283         * lib/gl_array_list.c (gl_array_node_set_value): New function.
61284         (gl_array_list_implementation): Update.
61285         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
61286         (gl_carray_list_implementation): Update.
61287         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
61288         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
61289         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
61290         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
61291         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
61292         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
61293         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
61294         Update.
61295         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
61296         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
61297         (gl_sublist_list_implementation): Update.
61298
61299 2008-02-10  Bruno Haible  <bruno@clisp.org>
61300
61301         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
61302         Needed when ELEMENT is #defined to 'some_type *'.
61303
61304 2008-02-10  Jim Meyering  <meyering@redhat.com>
61305
61306         New script and module: useless-if-before-free
61307         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
61308         * build-aux/useless-if-before-free: New file.
61309         * modules/useless-if-before-free: New file.
61310
61311         * build-aux/gitlog-to-changelog: Use committer date, not author date.
61312
61313         xstrtol_error: Fix typo.
61314         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
61315         s/exit_failure/exit_status/.
61316
61317 2008-02-09  Jim Meyering  <meyering@redhat.com>
61318
61319         New script and module: gitlog-to-changelog
61320         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
61321         * modules/gitlog-to-changelog: New file.
61322         * build-aux/gitlog-to-changelog: New file.
61323
61324 2008-02-08  Jim Meyering  <meyering@redhat.com>
61325
61326         Avoid two "parameter unused" warnings.
61327         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
61328         Mark "st" as used.
61329
61330         Use "git COMMAND", not "git-COMMAND".
61331         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
61332         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
61333         * build-aux/git-version-gen: Use "git status", not "git-status".
61334
61335 2008-02-07  Bruno Haible  <bruno@clisp.org>
61336
61337         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
61338         Avoids a crash on Windows Vista.
61339         Reported by Adam Strzelecki <ono@java.pl> via
61340         Simon Josefsson <simon@josefsson.org>.
61341
61342 2008-02-06  Bruno Haible  <bruno@clisp.org>
61343
61344         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
61345         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
61346         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
61347         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
61348         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
61349         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61350         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
61351         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
61352         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61353         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61354         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61355         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61356         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61357         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61358         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61359         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
61360         left-adjust flag.
61361         * tests/test-snprintf-posix.h (test_function): Likewise.
61362         * tests/test-sprintf-posix.h (test_function): Likewise.
61363         * tests/test-vasprintf-posix.c (test_function): Likewise.
61364         * doc/posix-functions/fprintf.texi: Update.
61365         * doc/posix-functions/printf.texi: Update.
61366         * doc/posix-functions/snprintf.texi: Update.
61367         * doc/posix-functions/sprintf.texi: Update.
61368         * doc/posix-functions/vfprintf.texi: Update.
61369         * doc/posix-functions/vprintf.texi: Update.
61370         * doc/posix-functions/vsnprintf.texi: Update.
61371         * doc/posix-functions/vsprintf.texi: Update.
61372         Reported by Peter Fales <psfales@alcatel-lucent.com>.
61373
61374 2008-02-06  Bruno Haible  <bruno@clisp.org>
61375
61376         Fix bug introduced on 2008-01-26.
61377         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
61378
61379 2008-02-06  Bruno Haible  <bruno@clisp.org>
61380
61381         Fix bug introduced on 2007-06-10.
61382         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
61383         !NEED_PRINTF_FLAG_ZERO.
61384
61385 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
61386
61387         getloadavg: use libperfstat on AIX5
61388         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
61389
61390 2008-02-03  Bruno Haible  <bruno@clisp.org>
61391
61392         * lib/diffseq.h: Add comments about required #includes.
61393         Reported by Michael Biggs <gnulib@doubleplum.net>.
61394
61395 2008-02-01  Bruno Haible  <bruno@clisp.org>
61396
61397         * users.txt: Add gnuit.
61398
61399 2008-01-31  Bruno Haible  <bruno@clisp.org>
61400
61401         * lib/md4.c (set_uint32): Mark as inline.
61402         * lib/md5.c (set_uint32): Likewise.
61403         * lib/sha1.c (set_uint32): Likewise.
61404         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
61405         * m4/md5.m4 (gl_MD5): Likewise.
61406         * m4/sha1.m4 (gl_SHA1): Likewise.
61407
61408 2008-01-31  Jim Meyering  <meyering@redhat.com>
61409
61410         Use "sizeof VAR", rather than a literal "4".
61411         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
61412         * lib/md4.c (md4_read_ctx): Likewise.
61413         * lib/sha1.c (sha1_read_ctx): Likewise.
61414
61415 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61416
61417         * tests/test-sha1.c: New file, based on test-md5.c.
61418
61419         * modules/crypto/sha1-tests: New file.
61420
61421 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61422
61423         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
61424
61425 2008-01-31  Jim Meyering  <meyering@redhat.com>
61426
61427         Prefer "sizeof v" over the equivalent "4".
61428         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
61429         * lib/md5.c (set_uint32): Likewise.
61430         * lib/sha1.c (set_uint32): Likewise.
61431
61432 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61433
61434         * lib/sha1.c (set_uint32): Mark function as static.
61435
61436 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61437
61438         md2: clarify comments to say that alignment is not required.
61439         * lib/md2.h: Remove warning about alignment in comment.
61440         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
61441         never been required.
61442
61443 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61444
61445         md4: adapt alignment constraint fix from sha1.
61446         * lib/md4.c (set_uint32): New function, from sha1.c
61447         (md4_read_ctx): Use it.
61448         (md4_finish_ctx): Doc fix.
61449         * lib/md4.h: Doc fix.
61450
61451 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61452
61453         md5: adapt alignment constraint fix from sha1.
61454         * lib/md5.c (set_uint32): New function, from sha1.c
61455         (md5_read_ctx): Use it.
61456         (md5_finish_ctx): Doc fix.
61457         * lib/md5.h: Doc fix.
61458
61459 2008-01-30  Peter Palfrader  <weasel@debian.org>
61460
61461         sha1: remove the result buffer alignment constraint
61462         * lib/sha1.c (set_uint32): New function.
61463         (sha1_read_ctx): Rewrite to remove the result buffer alignment
61464         constraint.
61465         (sha1_finish_ctx): Remove comment warning about alignment constraint.
61466         * lib/sha1.h: Likewise.
61467
61468 2008-01-30  Andreas Schwab  <schwab@suse.de>
61469             Bruno Haible  <bruno@clisp.org>
61470
61471         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
61472         correct definition of LDBL_MIN_EXP.
61473
61474 2008-01-30  Karl Berry  <karl@gnu.org>
61475
61476         * config/srclist-update: try to preserve x bit on updates.
61477         * config/srclistvars.sh: update for karl.
61478
61479 2008-01-29  Jim Meyering  <meyering@redhat.com>
61480
61481         vasnprintf.c: Avoid warning about unused label
61482         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
61483         "overflow" label definition and associated code with the
61484         same cpp condition that guards the sole use of that label.
61485
61486 2008-01-26  Bruno Haible  <bruno@clisp.org>
61487
61488         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
61489         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
61490         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
61491         * lib/isnanl-nolibm.h (isnanl): Likewise.
61492         Reported by Paul Eggert <eggert@cs.ucla.edu>.
61493
61494 2008-01-26  Bruno Haible  <bruno@clisp.org>
61495
61496         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
61497         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
61498
61499 2008-01-26  Bruno Haible  <bruno@clisp.org>
61500
61501         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
61502         GCC >= 4.0 built-in.
61503         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
61504
61505 2008-01-26  Bruno Haible  <bruno@clisp.org>
61506
61507         Rename isnan, applicable to 'double' only, to isnand.
61508         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
61509         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
61510         (configure.ac): Update.
61511         (Include): Replace "isnan.h" with "isnand.h".
61512         * m4/isnand.m4: Renamed from m4/isnan.m4.
61513         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
61514         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
61515         instead of isnan.c.
61516         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
61517         instead of HAVE_ISNAN_IN_LIBC.
61518         (isnand): Renamed from isnan.
61519         * lib/isnand.c: New file.
61520         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
61521         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
61522         (Makefile.am): Update.
61523         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
61524         Include isnand.h instead of isnan.h.
61525         (main): Test isnand instead of isnan.
61526         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
61527         isnan-nolibm.
61528         * modules/frexp (Depends-on): Likewise.
61529         * modules/frexp-tests (Depends-on): Likewise.
61530         * modules/frexp-nolibm (Depends-on): Likewise.
61531         * modules/frexp-nolibm-tests (Depends-on): Likewise.
61532         * modules/isfinite (Depends-on): Likewise.
61533         * modules/round-tests (Depends-on): Likewise.
61534         * modules/signbit (Depends-on): Likewise.
61535         * modules/signbit-tests (Depends-on): Likewise.
61536         * modules/snprintf-posix (Depends-on): Likewise.
61537         * modules/sprintf-posix (Depends-on): Likewise.
61538         * modules/trunc-tests (Depends-on): Likewise.
61539         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
61540         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
61541         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
61542         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
61543         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
61544         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
61545         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
61546         * modules/vasnprintf-posix (Depends-on): Likewise.
61547         * modules/vasprintf-posix (Depends-on): Likewise.
61548         * modules/vfprintf-posix (Depends-on): Likewise.
61549         * modules/vsnprintf-posix (Depends-on): Likewise.
61550         * modules/vsprintf-posix (Depends-on): Likewise.
61551         * lib/frexp.c: Include isnand.h instead of isnan.h.
61552         (ISNAN): Set to isnand instead of isnan.
61553         * lib/isfinite.c: Include isnand.h instead of isnan.h.
61554         (gl_isfinited): Use isnand instead of isnan.
61555         * lib/signbitd.c: Include isnand.h instead of isnan.h.
61556         (gl_signbitd): Use isnand instead of isnan.
61557         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
61558         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
61559         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
61560         (main): Use isnand instead of isnan.
61561         * tests/test-round1.c: Include isnand.h.
61562         (main): Use isnand instead of isnan.
61563         * tests/test-round2.c: Include isnand.h instead of isnan.h.
61564         (ISNAN): Set to isnand instead of isnan.
61565         * tests/test-trunc1.c: Include isnand.h.
61566         (main): Use isnand instead of isnan.
61567         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
61568         (equal): Use isnand instead of isnan.
61569         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
61570         isnand-nolibm.
61571         * NEWS: Mention the change.
61572
61573 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
61574             Bruno Haible  <bruno@clisp.org>
61575
61576         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
61577         the GCC builtins for signbits are present and set
61578         REPLACE_SIGNBIT_USING_GCC if so.
61579         * lib/math.in.h (signbit): Define using GCC builtins if
61580         REPLACE_SIGNBIT_USING_GCC is set.
61581         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
61582         REPLACE_SIGNBIT_USING_GCC.
61583         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
61584
61585 2008-01-25  Jim Meyering  <meyering@redhat.com>
61586
61587         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
61588         * lib/poll.c: Include <config.h>, not "config.h".
61589         * tests/test-getaddrinfo.c: Likewise.
61590
61591 2008-01-25  Simon Josefsson  <simon@josefsson.org>
61592
61593         * modules/sockets-tests: New file.
61594
61595 2008-01-24  Simon Josefsson  <simon@josefsson.org>
61596
61597         * modules/sockets: New module, can be used to call WSA_Startup and
61598         WSA_Cleanup when needed.
61599
61600         * lib/sockets.h, lib/sockets.c: New files.
61601
61602         * m4/sockets.m4: New file.
61603
61604         * tests/test-sockets.c: New file.
61605
61606 2008-01-19  Bruno Haible  <bruno@clisp.org>
61607
61608         * doc/posix-headers: Renamed from doc/headers.
61609         * doc/posix-functions: Renamed from doc/functions.
61610         * doc/gnulib.texi: Update.
61611
61612 2008-01-19  Bruno Haible  <bruno@clisp.org>
61613
61614         * doc/glibc-functions/strcasestr.texi: Include contents of
61615         doc/functions/strcasestr.texi, fixing the list of platforms.
61616         * doc/functions/strcasestr.texi: Remove file.
61617
61618 2008-01-19  Bruno Haible  <bruno@clisp.org>
61619
61620         * doc/glibc-functions/memmem.texi: Include contents of
61621         doc/functions/memmem.texi.
61622         * doc/functions/memmem.texi: Remove file.
61623
61624 2008-01-18  Bruno Haible  <bruno@clisp.org>
61625
61626         * doc/glibc-functions/*.texi: New files.
61627         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
61628         to use the new files.
61629
61630 2008-01-17  Bruno Haible  <bruno@clisp.org>
61631
61632         * tests/test-gethostname.c (main): Fix printf statement.
61633
61634 2008-01-17  Simon Josefsson  <simon@josefsson.org>
61635
61636         * modules/gethostname-tests: New file.
61637
61638         * tests/test-gethostname.c: New file.
61639
61640 2008-01-17  Simon Josefsson  <simon@josefsson.org>
61641
61642         * lib/gethostname.c: Include string.h unconditionally, strncpy is
61643         used by the UNAME case.  Reported by Bruno Haible
61644         <bruno@clisp.org>.
61645
61646 2008-01-17  Eric Blake  <ebb9@byu.net>
61647
61648         Convert c-strcasestr to be more efficient.
61649         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
61650         (Depends-on): Add c-strcase, remove malloca, strnlen.
61651         * tests/test-c-strcasestr.c (main): Enhance test.
61652         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
61653
61654 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
61655
61656         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
61657         Use it in creating po/Makevars.
61658
61659 2008-01-15  Simon Josefsson  <simon@josefsson.org>
61660
61661         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
61662         Applications that requires it should initialize libgcrypt
61663         manually.
61664
61665 2008-01-16  Simon Josefsson  <simon@josefsson.org>
61666
61667         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
61668
61669 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
61670
61671         Fix problem with getdate on mingw32 reported by Simon Josefsson
61672         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
61673         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
61674         tzname", when deciding whether to declare tzname.
61675         * lib/strftime.c (tzname): Likewise.
61676
61677 2008-01-15  Bruno Haible  <bruno@clisp.org>
61678
61679         Work around a MacOS X 10.5 bug in frexpl().
61680         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
61681         * doc/functions/frexpl.texi: Document the bug.
61682         Reported by Elias Pipping <pipping@gentoo.org>.
61683
61684 2008-01-14  Eric Blake  <ebb9@byu.net>
61685
61686         Touch up previous patch.
61687         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
61688         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
61689
61690         Convert strcasestr module to use Two-Way algorithm.
61691         * modules/strcasestr-simple: New module, based on the old
61692         strcasestr, but with Two-Way rather than KMP.
61693         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
61694         * lib/string.in.h (rpl_strcasestr): Declare.
61695         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
61696         performance.
61697         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
61698         * modules/string (Makefile.am): Support strcasestr.
61699         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
61700         * modules/strcasestr-tests (Depends-on): Check for alarm.
61701         * tests/test-strcasestr.c: Augment test.
61702         * lib/str-two-way.h: Clean up stray macro.
61703         * NEWS: Document new module.
61704         * MODULES.html.sh (string handling): Likewise.
61705         * doc/functions/strcasestr.texi: New file.
61706         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
61707         here, since it is not a POSIX function.
61708
61709 2008-01-14  Colin Watson  <cjwatson@debian.org>
61710             Bruno Haible  <bruno@clisp.org>
61711
61712         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
61713         works fine; if not, set REPLACE_STRSIGNAL.
61714         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
61715         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
61716         REPLACE_STRSIGNAL.
61717         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
61718         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
61719         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
61720
61721 2008-01-14  Bruno Haible  <bruno@clisp.org>
61722
61723         * modules/strsignal (Include): Change to <string.h>.
61724
61725 2008-01-14  Colin Watson  <cjwatson@debian.org>
61726
61727         * modules/argp (Notice): Add a notice recommending to change
61728         XGETTEXT_OPTIONS.
61729         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
61730
61731 2008-01-13  Colin Watson  <cjwatson@debian.org>
61732
61733         * modules/strsignal-tests: New file.
61734         * tests/test-strsignal.c: New file.
61735
61736         * lib/strsignal.c: New file, from glibc with modifications.
61737         * lib/siglist.h: New file, from glibc with modifications.
61738         * lib/string.in.h (strsignal): New declaration.
61739         * m4/strsignal.m4: New file.
61740         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
61741         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
61742         * modules/strsignal: New file.
61743         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
61744         HAVE_DECL_STRSIGNAL.
61745
61746 2008-01-13  Bruno Haible  <bruno@clisp.org>
61747
61748         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
61749         locale encoding is not ASCII. Needed for OpenBSD 4.0.
61750         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
61751         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
61752
61753 2008-01-13  Bruno Haible  <bruno@clisp.org>
61754
61755         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
61756         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
61757         * lib/argp.h (__attribute__): Likewise.
61758         * lib/c-stack.c (__attribute__): Likewise.
61759         * lib/error.h (__attribute__): Likewise.
61760         * lib/fts.c (__attribute__): Likewise.
61761         * lib/openat.h (__attribute__): Likewise.
61762         * lib/stdio.in.h (__attribute__): Likewise.
61763         * lib/string.in.h (__attribute__): Likewise.
61764         * lib/utimens.c (__attribute__): Likewise.
61765         * lib/vasnprintf.h (__attribute__): Likewise.
61766         * lib/xalloc.h (__attribute__): Likewise.
61767         * lib/xprintf.h (__attribute__): Likewise.
61768         * lib/xstrtol.h (__attribute__): Likewise.
61769         * lib/xvasprintf.h (__attribute__): Likewise.
61770
61771 2008-01-12  Bruno Haible  <bruno@clisp.org>
61772
61773         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
61774         * doc/glibc-headers/a.out.texi: New file.
61775         * doc/glibc-headers/aliases.texi: New file.
61776         * doc/glibc-headers/alloca.texi: New file.
61777         * doc/glibc-headers/ar.texi: New file.
61778         * doc/glibc-headers/argp.texi: New file.
61779         * doc/glibc-headers/argz.texi: New file.
61780         * doc/glibc-headers/byteswap.texi: New file.
61781         * doc/glibc-headers/crypt.texi: New file.
61782         * doc/glibc-headers/endian.texi: New file.
61783         * doc/glibc-headers/envz.texi: New file.
61784         * doc/glibc-headers/err.texi: New file.
61785         * doc/glibc-headers/error.texi: New file.
61786         * doc/glibc-headers/execinfo.texi: New file.
61787         * doc/glibc-headers/fpu_control.texi: New file.
61788         * doc/glibc-headers/fstab.texi: New file.
61789         * doc/glibc-headers/fts.texi: New file.
61790         * doc/glibc-headers/getopt.texi: New file.
61791         * doc/glibc-headers/ieee754.texi: New file.
61792         * doc/glibc-headers/ifaddrs.texi: New file.
61793         * doc/glibc-headers/libintl.texi: New file.
61794         * doc/glibc-headers/mcheck.texi: New file.
61795         * doc/glibc-headers/mntent.texi: New file.
61796         * doc/glibc-headers/obstack.texi: New file.
61797         * doc/glibc-headers/paths.texi: New file.
61798         * doc/glibc-headers/printf.texi: New file.
61799         * doc/glibc-headers/pty.texi: New file.
61800         * doc/glibc-headers/resolv.texi: New file.
61801         * doc/glibc-headers/shadow.texi: New file.
61802         * doc/glibc-headers/sysexits.texi: New file.
61803         * doc/glibc-headers/ttyent.texi: New file.
61804
61805 2008-01-12  Jim Meyering  <meyering@redhat.com>
61806
61807         announce-gen: emit Gnulib's git-based version string.
61808         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
61809         New option --gnulib-version=V, where V is expected to be
61810         the output of running git describe in the gnulib directory.
61811         (get_tool_versions): Request feedback on xdelta.  I suspect it's
61812         not useful, and plan to stop publishing an xdelta file with each
61813         coreutils release.
61814
61815         * build-aux/announce-gen: Also check for lzma-compressed files.
61816
61817 2008-01-11  Bruno Haible  <bruno@clisp.org>
61818
61819         * tests/test-memmem.c (main): Increase maximum allowed time.
61820         * tests/test-strstr.c (main): Likewise.
61821
61822 2008-01-11  Bruno Haible  <bruno@clisp.org>
61823
61824         * doc/functions/memmem.texi: Add more precisions about platforms.
61825         * doc/functions/strstr.texi: Likewise.
61826
61827 2008-01-10  Eric Blake  <ebb9@byu.net>
61828
61829         * m4/strstr.m4: Delete cruft from copy-n-paste.
61830         Reported by Bruno Haible.
61831
61832 2008-01-10  Bruno Haible  <bruno@clisp.org>
61833
61834         Make c-strstr rely on strstr.
61835         * lib/c-strstr.c: Don't include str-kmp.h.
61836         (c_strstr): Define in terms of strstr.
61837         * modules/c-strstr (Files): Remove lib/str-kmp.h.
61838         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
61839
61840 2008-01-10  Bruno Haible  <bruno@clisp.org>
61841
61842         * doc/gnulib.texi (String Functions in C Locale): New section.
61843         * doc/c-ctype.texi: New file.
61844         * doc/c-strcase.texi: New file.
61845         * doc/c-strcaseeq.texi: New file.
61846         * doc/c-strcasestr.texi: New file.
61847         * doc/c-strstr.texi: New file.
61848         * doc/c-strtod.texi: New file.
61849         * doc/c-strtold.texi: New file.
61850
61851 2008-01-10  Eric Blake  <ebb9@byu.net>
61852
61853         * lib/relocatable.h: Fix a comment.
61854
61855 2008-01-10  Eric Blake  <ebb9@byu.net>
61856
61857         Share two-way algorithm.
61858         * lib/str-two-way.h: New file, merged from...
61859         * lib/memmem.c: ...here...
61860         * lib/strstr.c: ...and here.
61861         * modules/memmem (Files): Use it.
61862         * modules/strstr (Files): Likewise.
61863
61864         Avoid quadratic strstr implementations.
61865         * lib/strstr.c: New file.
61866         * m4/strstr.m4: Likewise.
61867         * modules/strstr: Likewise.
61868         * modules/strstr-tests: Likewise.
61869         * tests/test-strstr.c: Likewise.
61870         * lib/string.in.h (rpl_strstr): Declare.
61871         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
61872         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
61873         * modules/string (Makefile.am): Likewise.
61874         * MODULES.html.sh (string handling): Mention new module.
61875         * doc/functions/strstr.texi (strstr): Document the bug.
61876
61877 2008-01-10  Bruno Haible  <bruno@clisp.org>
61878
61879         * lib/relocatable.h (relocate): State whether result is freshly
61880         allocated or not.
61881         * lib/relocatable.c (relocate): Return a freshly allocated string
61882         instead of a pointer to a privately held string.
61883         Reported by Sylvain Beucler <beuc@gnu.org>.
61884
61885 2008-01-10  Colin Watson  <cjwatson@debian.org>
61886
61887         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
61888         s/S_ISNLK/S_ISLNK/.
61889
61890 2008-01-09  Bruno Haible  <bruno@clisp.org>
61891
61892         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
61893         and other files.
61894         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
61895         if it's only a guess.
61896         * modules/memmem: Simplify by depending on memmem-simple.
61897
61898 2008-01-09  Bruno Haible  <bruno@clisp.org>
61899
61900         Work around OpenBSD 4.0 tdelete() bug.
61901         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
61902         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
61903         macros and don't redefine the enum values.
61904         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
61905         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
61906         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
61907
61908 2008-01-09  Bruno Haible  <bruno@clisp.org>
61909
61910         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
61911         (main): Don't perform the tests if setlocale did not install a UTF-8
61912         locale. Needed on OpenBSD 4.0.
61913         * modules/wcwidth-tests (Depends-on): Add localcharset.
61914
61915 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
61916
61917         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
61918         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
61919         * NEWS: announce this.
61920         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
61921
61922 2008-01-09  Simon Josefsson  <simon@josefsson.org>
61923         and Eric Blake  <ebb9@byu.net>
61924
61925         Add memmem-simple module.
61926         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
61927         (gl_FUNC_MEMMEM): Separate performance from presence checks.
61928         * modules/memmem-simple: New file.
61929         * modules/memmem (Description): Tweak.
61930         * MODULES.html.sh (string handling): Mention new module.
61931         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
61932         addressed by memmem-simple.
61933         * NEWS: Document the difference.
61934
61935 2008-01-09  Eric Blake  <ebb9@byu.net>
61936
61937         Give gcc some memmem optimization hints.
61938         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
61939         (strcasestr): Declare as pure.
61940         * modules/memmem (Maintainer): Claim my implementation.
61941
61942 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61943
61944         Support AIX 6.1 and higher.
61945         * build-aux/config.libpath: Likewise.
61946         * build-aux/config.rpath: Likewise.
61947
61948 2008-01-08  Jim Meyering  <meyering@redhat.com>
61949             Bruno Haible  <bruno@clisp.org>
61950
61951         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
61952         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
61953         Reported by Peter Fales in
61954         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
61955
61956 2008-01-08  Bruno Haible  <bruno@clisp.org>
61957
61958         * modules/unictype/category-of (Depends-on): Add
61959         unictype/category-none.
61960         * modules/unictype/category-and-tests (Depends-on): Add
61961         unictype/category-{L,N,Lu,Nd}.
61962         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
61963         * modules/unictype/category-or-tests (Depends-on): Add
61964         unictype/category-{L,N}.
61965         * modules/unictype/category-name-tests (Depends-on): Add
61966         unictype/category-{Z,Nl}.
61967         Reported by Simon Josefsson.
61968
61969 2008-01-08  Bruno Haible  <bruno@clisp.org>
61970
61971         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
61972         convention better.
61973         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
61974         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
61975         Reported by Peter Miller <millerp@canb.auug.org.au>.
61976
61977 2008-01-08  Eric Blake  <ebb9@byu.net>
61978
61979         Rewrite memmem to guarantee linear complexity without malloc.
61980         * lib/memmem.c (memmem): Use Two-Way rather than
61981         Knuth-Morris-Pratt, to allow O(1) space usage.
61982         (critical_factorization, two_way_short_needle)
61983         (two_way_long_needle): New functions.
61984         (knuth_morris_pratt): Delete.
61985         * modules/memmem (Depends-on): No longer need malloca or stdbool.
61986         Add stdint.
61987         * tests/test-memmem.c (main): Add tests for periodic needle and
61988         sublinear performance.
61989         * doc/functions/memmem.texi (memmem): Document other deficiencies
61990         in cygwin and older glibc.
61991
61992 2008-01-08  Bruno Haible  <bruno@clisp.org>
61993
61994         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
61995         augmentation.
61996
61997 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
61998
61999         Add a configure time option: --disable-acl.
62000         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
62001         AC_ARG_ENABLE(acl).
62002
62003 2008-01-06  Simon Josefsson  <simon@josefsson.org>
62004
62005         * tests/test-localename.c: Don't include obsolete "setenv.h".
62006
62007         * modules/localename-tests (Depends-on): Need unsetenv.
62008
62009 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62010
62011         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
62012
62013 2008-01-06  Colin Watson  <cjwatson@debian.org>
62014
62015         * users.txt: Add man-db.
62016
62017 2008-01-07  Bruno Haible  <bruno@clisp.org>
62018
62019         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
62020         previous section name.
62021
62022 2008-01-07  Bruno Haible  <bruno@clisp.org>
62023
62024         * lib/progname.c (set_program_name): Don't strip off a leading
62025         "lt-" prefix outside a .libs directory.
62026         Suggested by Paul Eggert.
62027
62028 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
62029             Bruno Haible  <bruno@clisp.org>
62030
62031         Improve memory cleanup in 'relocatable' module.
62032         * lib/relocatable.h (compute_curr_prefix): Change return type to
62033         'char *'.
62034         * lib/relocatable.c (compute_curr_prefix): Change return type to
62035         'char *'. Free curr_installdir after use.
62036         (relocate): Free curr_prefix_better after use.
62037         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
62038
62039 2008-01-01  Bruno Haible  <bruno@clisp.org>
62040
62041         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
62042         failure on older glibc systems.
62043         Reported by Peter Fales <psfales@alcatel-lucent.com>.
62044
62045 2008-01-05  Eric Blake  <ebb9@byu.net>
62046
62047         Avoid quadratic system memmem.
62048         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
62049         Reported by Ralf Wildenhues.
62050
62051         Fix memmem test for mingw.
62052         * modules/memmem-tests (configure.ac): Check for alarm.
62053         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
62054         it.
62055         * doc/functions/memmem.texi: New file.
62056         * doc/gnulib.texi (Function Substitutes): Add memmem.
62057         Reported by Bruno Haible.
62058
62059 2008-01-04  Bruno Haible  <bruno@clisp.org>
62060
62061         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
62062         Require gl_HEADER_STRINGS_H_DEFAULTS, not
62063         gl_HEADER_STRING_H_DEFAULTS.
62064
62065 2008-01-04  Eric Blake  <ebb9@byu.net>
62066
62067         Shorten duration of memmem test.
62068         * tests/test-memmem.c (main): Use alarm to declare failure if test
62069         is taking too long.
62070         Reported by Ralf Wildenhues.
62071
62072 2007-12-21  Simon Josefsson  <simon@josefsson.org>
62073
62074         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
62075         string, needed by strerror.
62076
62077 2008-01-03  Colin Watson  <cjwatson@debian.org>
62078             Bruno Haible  <bruno@clisp.org>
62079
62080         * doc/gnulib-tool.texi (Localization): New section.
62081
62082 2008-01-02  Bruno Haible  <bruno@clisp.org>
62083
62084         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
62085         variables to 'unsigned char *' type.
62086         Reported by Paul Eggert.
62087
62088 2008-01-02  Jim Meyering  <jim@meyering.net>
62089
62090         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
62091
62092 2007-12-31  Jim Meyering  <jim@meyering.net>
62093
62094         Avoid use of private FTS type name.
62095         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
62096
62097 2007-12-30  Karl Berry  <karl@gnu.org>
62098
62099         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
62100         work around defect in Texinfo and/or the standalone Info browser.
62101
62102 2007-12-30  Bruno Haible  <bruno@clisp.org>
62103
62104         Unify 5 copies of the KMP code.
62105         * lib/str-kmp.h: New file.
62106         * lib/c-strcasestr.c: Include str-kmp.h.
62107         (knuth_morris_pratt): Remove function.
62108         (c_strcasestr): Update.
62109         * lib/c-strstr.c: Include str-kmp.h.
62110         (knuth_morris_pratt): Remove function.
62111         (c_strcasestr): Update.
62112         * lib/mbscasestr.c: Include str-kmp.h.
62113         (knuth_morris_pratt_unibyte): Remove function.
62114         * lib/mbsstr.c: Include str-kmp.h.
62115         (knuth_morris_pratt_unibyte): Remove function.
62116         * lib/strcasestr.c: Include str-kmp.h.
62117         (knuth_morris_pratt): Remove function.
62118         (strcasestr): Update.
62119         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
62120         * modules/c-strstr (Files): Likewise.
62121         * modules/mbscasestr (Files): Likewise.
62122         * modules/mbsstr (Files): Likewise.
62123         * modules/strcasestr (Files): Likewise.
62124         Suggested by Paul Eggert.
62125
62126 2007-12-30  Bruno Haible  <bruno@clisp.org>
62127
62128         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
62129         defined.
62130
62131 2007-12-30  Bruno Haible  <bruno@clisp.org>
62132
62133         * lib/xmalloca.h: Include xalloc.h.
62134         (xnmalloca): New macro.
62135
62136 2007-12-30  Bruno Haible  <bruno@clisp.org>
62137
62138         * lib/malloca.h (nmalloca): New macro.
62139         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
62140         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
62141         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
62142         knuth_morris_pratt_multibyte): Likewise.
62143         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
62144         knuth_morris_pratt_multibyte): Likewise.
62145         * lib/memmem.c (knuth_morris_pratt): Likewise.
62146         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
62147
62148 2007-12-25  Bruno Haible  <bruno@clisp.org>
62149
62150         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
62151         * lib/glob.c: Don't include openat.h.
62152         (link_exists2_p): Add back the code that deals with the
62153         !GLOB_ALTDIRFUNC case.
62154         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
62155         let it do the filename concatenation.
62156         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
62157         * modules/glob (Depends-on): Remove openat.
62158
62159 2007-12-31  Bruno Haible  <bruno@clisp.org>
62160
62161         * modules/dirfd (License): Change to LGPLv2+.
62162         Approved by Jim Meyering.
62163
62164 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
62165
62166         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
62167         when multiplying M by sizeof (size_t).
62168
62169 2007-12-10  Martin Lambers  <marlam@marlam.de>
62170
62171         Override getpagesize on mingw.
62172         * lib/getpagesize.c: New file.
62173         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
62174         * modules/getpagesize (Files): Add lib/getpagesize.c.
62175         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
62176         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
62177         REPLACE_GETPAGESIZE.
62178         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
62179
62180 2007-12-25  Bruno Haible  <bruno@clisp.org>
62181
62182         * modules/localcharset (Notice): New field.
62183         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
62184         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
62185
62186 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
62187             Bruno Haible  <bruno@clisp.org>
62188
62189         Avoid using the syntax symbol() in formatted documentation.
62190         * MODULES.html.sh (func_module): When replacing symbol() with a
62191         hyperlink, remove the parentheses. Show an error if some remain.
62192         Recognize and render the '...' syntax.
62193         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
62194         Rework. Add paragraph about GCC's inlining.
62195         * doc/alloca.texi: Likewise.
62196         * doc/error.texi: Remove parentheses from symbol reference.
62197         * doc/gnulib-intro.texi: Likewise.
62198         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
62199         * modules/fnmatch (Description): Reword to say "the ... function".
62200         * modules/full-read (Description): Likewise.
62201         * modules/full-write (Description): Likewise.
62202         * modules/safe-read (Description): Likewise.
62203         * modules/safe-write (Description): Likewise.
62204         * modules/strchrnul (Description): Likewise.
62205         * modules/trim (Description): Likewise.
62206         * modules/error (Description): Remove parentheses from symbol
62207         references.
62208         * modules/verror (Description): Likewise.
62209         Reported by Karl Berry.
62210
62211 2007-12-25  Bruno Haible  <bruno@clisp.org>
62212
62213         Fixup after 2007-10-16 commit.
62214         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
62215
62216 2007-12-24  Bruno Haible  <bruno@clisp.org>
62217
62218         Make --enable-relocatable work with DESTDIR.
62219         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
62220         to compute installdir from destprog.
62221         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
62222         also set the RELOC_DESTDIR variable.
62223         Reported by Левашев Иван <octagram@bluebottle.com>.
62224
62225 2007-12-24  Bruno Haible  <bruno@clisp.org>
62226
62227         Fix link error due to xalloc_die().
62228         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
62229         of xreadlink.
62230         * lib/relocwrapper.c: Update comments.
62231         * build-aux/install-reloc: Remove xreadlink.c from file list.
62232         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
62233         xreadlink.c.
62234         Reported by Левашев Иван <octagram@bluebottle.com>.
62235
62236 2007-12-24  Bruno Haible  <bruno@clisp.org>
62237
62238         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
62239         * lib/setenv.h: Remove file.
62240         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
62241         lib/setenv.h.
62242         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
62243         (Depends-on): Add stdlib.
62244         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
62245         gl_FUNC_UNSETENV.
62246         (Include): Replace setenv.h with <stdlib.h>.
62247         * modules/unsetenv: New file.
62248         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
62249         * lib/unsetenv.c: Include <stdlib.h> first.
62250         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
62251         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
62252         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
62253         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
62254         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
62255         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
62256         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
62257         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
62258         * doc/functions/unsetenv.texi: Update.
62259         * modules/xsetenv (Depends-on): Add unsetenv.
62260         * modules/getdate (Depends-on): Likewise.
62261         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
62262         * lib/xsetenv.c: Don't include setenv.h.
62263         * lib/getdate.y: Likewise.
62264         * lib/relocwrapper.c: Likewise.
62265         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
62266         (Depends-on): Add stdlib.
62267         * NEWS: Mention the changes.
62268         Reported by Левашев Иван <octagram@bluebottle.com>.
62269
62270 2007-12-23  Bruno Haible  <bruno@clisp.org>
62271
62272         * lib/memmem.c (memmem): Use lowercase variable names. Tab
62273         indentation.
62274
62275 2007-12-23  Bruno Haible  <bruno@clisp.org>
62276
62277         * lib/c-strcasestr.c: Add more comments.
62278         * lib/c-strstr.c: Likewise.
62279         * lib/mbscasestr.c: Likewise.
62280         * lib/mbsstr.c: Likewise.
62281         * lib/strcasestr.c: Likewise.
62282         * lib/memmem.c: Likewise.
62283
62284 2007-12-23  Bruno Haible  <bruno@clisp.org>
62285
62286         * tests/test-memmem.c: Include <string.h> first.
62287
62288 2007-12-22  Bruno Haible  <bruno@clisp.org>
62289
62290         * gnulib-tool (func_create_testdir): Change $auxdir while generating
62291         the contents of $testsbase.
62292         Reported by Ralf Wildenhues.
62293
62294 2007-12-22  Bruno Haible  <bruno@clisp.org>
62295
62296         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
62297         two variables local_ldadd_before, local_ldadd_last.
62298
62299 2007-12-20  Eric Blake  <ebb9@byu.net>
62300
62301         Work around circular library issue when cross-compiling.
62302         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
62303         that progname.o does not need to pull in rpl_memcmp.
62304
62305 2007-12-19  Eric Blake  <ebb9@byu.net>
62306
62307         Fix memmem to avoid O(n^2) worst-case complexity.
62308         * lib/memmem.c (knuth_morris_pratt): New function.
62309         (memmem): Use it if first few naive iterations fail.
62310         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
62311         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
62312         * modules/memchr (License): Likewise.
62313         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
62314         malloca.
62315         * tests/test-memmem.c: Rewrite, borrowing ideas from
62316         test-mbsstr1.c; the old version wouldn't even compile!
62317         * modules/memmem-tests: New file.
62318         * lib/string.in.h (rpl_memmem): Add declaration.
62319         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
62320         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
62321         REPLACE_MEMMEM.
62322
62323 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
62324
62325         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
62326         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
62327         before any system include files, and undef after them all.  This
62328         should fix a problem on VMS reported by John E. Malmberg in
62329         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
62330
62331 2007-12-17  Eric Blake  <ebb9@byu.net>
62332
62333         Revert addition of verify, for BSD/OS.
62334         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
62335         can't handle large files, for the sake of obsolete platforms.
62336         * modules/fseeko (Depends-on): Remove verify.
62337         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
62338         * doc/functions/ftello.texi (ftello): Likewise.
62339         * doc/functions/fgetpos.texi (fgetpos): Likewise.
62340         Reported by Larry Jones.
62341
62342 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
62343
62344         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
62345         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
62346
62347 2007-12-17  Jim Meyering  <meyering@redhat.com>
62348
62349         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
62350         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
62351         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
62352         * modules/getcwd (Depends-on): Add openat.
62353         Reported by Petr Salinger.
62354
62355 2007-12-17  Bruno Haible  <bruno@clisp.org>
62356
62357         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
62358         avoid a segmentation fault of the configure test on x86_64 systems.
62359
62360 2007-12-15  Jim Meyering  <meyering@redhat.com>
62361
62362         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
62363
62364 2007-12-13  Eric Blake  <ebb9@byu.net>
62365
62366         Another fseek test.
62367         * tests/test-fseek.c (main): Also test ungetc handling.
62368         * tests/test-fseeko.c (main): Likewise.
62369         * modules/fseeko (Depends-on): Add verify.
62370         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
62371         large.
62372         Reported by Larry Jones.
62373
62374         Fix fseeko on mingw.
62375         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
62376         seek.
62377
62378         Beef up fseek tests.
62379         * tests/test-fseek.c (main): Also test eof handling.
62380         * tests/test-fseeko.c (main): Likewise.
62381         Reported by Larry Jones.
62382
62383 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
62384
62385         Fix fseeko on BSD-based platforms.
62386         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
62387         successful seek.
62388
62389 2007-12-12  Eric Blake  <ebb9@byu.net>
62390
62391         Allow circular dependency of separate libtests.a
62392         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
62393         when use_libtests.
62394
62395 2007-12-11  Eric Blake  <ebb9@byu.net>
62396
62397         Fix bug with -0.0L in previous patch.
62398         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
62399         * tests/test-isnan.c (main): Also test on zeroes.
62400         * tests/test-isnanf.c (main): Likewise.
62401         * tests/test-isnanl.h (main): Likewise.
62402
62403         Detect pseudo-denormals on x86 even when cross-compiling.
62404         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
62405         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
62406         invalid bit patterns that happen to satisfy ==.
62407
62408         Avoid link failures with separate libtests.a.
62409         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
62410         last, to satisfy circular dependencies.
62411
62412 2007-12-11  Eric Blake  <ebb9@byu.net>
62413         and Bruno Haible  <bruno@clisp.org>
62414
62415         Fix OpenBSD 4.0 <float.h> handling of long double.
62416         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
62417         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
62418         * doc/headers/float.texi (float.h): Document OpenBSD bug.
62419
62420 2007-12-11  Jim Meyering  <meyering@redhat.com>
62421
62422         * users.txt: Add libvirt.
62423
62424         Support versions of autoconf prior to 2.59c.
62425         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
62426         if it is not already defined.
62427
62428 2007-12-09  Bruno Haible  <bruno@clisp.org>
62429
62430         Let 'gnulib-tool --import' collect sources needed for the tests in
62431         tests/ rather than in lib/.
62432         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
62433         argument. If true, add rules to generate libtests.a, and put libtests.a
62434         into $(LDADD). Consider source files in subdirectories and set
62435         uses_subdirs.
62436         (func_emit_initmacro_start, func_emit_initmacro_end,
62437         func_emit_initmacro_done): Pass all arguments explicitly.
62438         (func_import): Determine two module lists main_modules,
62439         testsrelated_modules. Determine use_libtests. Determine two variables
62440         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
62441         instead of just sed_transform_lib_file. Determine two variables
62442         main_files and testsrelated_files. Compute 'files' as the union of
62443         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
62444         func_add_or_update. In the generated gnulib-comp.m4, collect the
62445         object files for tests/ in different variables than those for lib/.
62446         Substitute LIBTESTS_LIBDEPS.
62447         (func_create_testdir): Combine the uses_subdirs results from
62448         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
62449
62450 2007-12-09  Bruno Haible  <bruno@clisp.org>
62451
62452         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
62453         the build-aux directory.
62454
62455 2007-12-09  Bruno Haible  <bruno@clisp.org>
62456
62457         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
62458         introduced on 2006-09-09.
62459
62460 2007-12-07  Jim Meyering  <meyering@redhat.com>
62461
62462         Let these macros work also with autoconf-2.59.
62463         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
62464         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
62465         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
62466
62467 2007-12-06  Jim Meyering  <meyering@redhat.com>
62468
62469         Avoid a configure-time syntax error in gl_FUNC_ACL.
62470         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
62471         function in each branch, before testing the cache variable.
62472
62473 2007-12-04  Eric Blake  <ebb9@byu.net>
62474
62475         Make scripts executable.
62476         * build-aux/config.guess: Add execute permissions.
62477         * build-aux/config.sub: Likewise.
62478         * build-aux/gendocs.sh: Likewise.
62479
62480         Fix frexp on mingw.
62481         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
62482         cross-compiling.
62483         * doc/functions/frexp.texi (frexp): Document the bug.
62484
62485         Make cygwin fseeko check more reliable.
62486         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
62487         version numbers, rather than unrelated feature check.
62488         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
62489         * doc/functions/ftello.texi (ftello): Likewise.
62490         Reported by Bruno Haible.
62491
62492         * m4/strerror.m4: Bump version number.
62493
62494 2007-12-03  Bruno Haible  <bruno@clisp.org>
62495
62496         * doc/functions/mprotect.texi: Mention the mingw problem.
62497
62498 2007-12-03  Eric Blake  <ebb9@byu.net>
62499
62500         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
62501         REPLACE_STRERROR is initialized before this macro.
62502
62503 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
62504
62505         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
62506         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
62507         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
62508         put -lsec in even for programs other than 'ls'.  This fixes a problem
62509         for gettext reported by Bruno Haible in
62510         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
62511         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
62512         Add support for Solaris 10.  This isn't efficient, but should get the
62513         job done for now.
62514
62515 2007-12-03  James Youngman  <jay@gnu.org>
62516
62517         * doc/regexprops-generic.texi: change "an close-group" to "a
62518         close-group" and "illegal" to "not allowed".
62519
62520 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62521
62522         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
62523         pr_byname.h. Needed for the rare case when the maintainer has done
62524         "make maintainer-clean" in the source directory and then attempts a
62525         build outside the source directory.
62526         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
62527         scripts_byname.h.
62528
62529 2007-12-02  Martin Lambers <marlam@marlam.de>
62530             Bruno Haible  <bruno@clisp.org>
62531
62532         * lib/getpagesize.h: Remove file.
62533         * lib/unistd.in.h: Include declaration of getpagesize here.
62534         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
62535         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
62536         HAVE_SYS_PARAM_H.
62537         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
62538         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
62539         * modules/getpagesize (Files): Remove lib/getpagesize.h.
62540         (Depends-on): Add unistd.
62541         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62542         (Include): Use <unistd.h> instead of getpagesize.h.
62543         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
62544         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
62545         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
62546         gl_GETPAGESIZE invocation, already handled by module dependency.
62547         * lib/pagealign_alloc.c: Don't include getpagesize.h.
62548
62549 2007-12-02  Bruno Haible  <bruno@clisp.org>
62550
62551         * modules/strings-tests: New file.
62552         * tests/test-strings.c: New file.
62553
62554         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
62555         * lib/strings.in.h: New file.
62556         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
62557         * m4/strings_h.m4: New file.
62558         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
62559         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
62560         * modules/strings: New file.
62561         * modules/string (Makefile.am): Update.
62562         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
62563         Reported by Karl Berry.
62564
62565 2007-12-01  Eric Blake  <ebb9@byu.net>
62566
62567         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
62568         accommodate fix in cygwin 1.5.25.
62569
62570 2007-12-01  Jim Meyering  <meyering@redhat.com>
62571
62572         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
62573         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
62574         that would inhibit utf8-optimization of a regexp containing line-
62575         or buffer-anchors, e.g., `^', `$'.
62576
62577 2007-11-30  Bruno Haible  <bruno@clisp.org>
62578
62579         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
62580         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
62581         glthread_recursive_lock_init.
62582         * lib/lock.c (glthread_recursive_lock_init)
62583         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
62584         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
62585
62586 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
62587
62588         New function qset_acl, like set_acl but with syscall semantics.
62589         * lib/acl.h (qset_acl): New decl.
62590         * lib/acl.c (qset_acl): New function.
62591         (set_acl): Use new function.  Use more-consistent diagnostics.
62592
62593 2007-11-28  Jim Meyering  <meyering@redhat.com>
62594
62595         * modules/physmem (License): Change from GPL to LGPLv2+.
62596
62597 2007-11-26  Bruno Haible  <bruno@clisp.org>
62598
62599         * lib/vasnprintf.c (decode_long_double): Don't abort if the
62600         'long double' type has excess precision.
62601         Reported by Jim Meyering in
62602         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
62603
62604 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62605
62606         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
62607         Sync from <http://gnu.org/licenses>.
62608         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
62609         with license text from same location.
62610         * doc/maintain.texi, doc/standards.texi:  Sync from
62611         <http://savannah.gnu.org/projects/gnustandards>.
62612
62613 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
62614         and Jim Meyering  <meyering@redhat.com>
62615
62616         Adjust getdate' grammar to accept a slightly more regular language.
62617         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
62618         Before, the former was rejected.
62619         * lib/getdate.y (digits_to_date_time): New function, factored
62620         out of ...
62621         (number): ...here.  Just call digits_to_date_time.
62622         (hybrid): New non-terminal to handle an <unsigned number,
62623         signed relative offset> sequence consistently.
62624
62625 2007-11-18  Jim Meyering  <meyering@redhat.com>
62626
62627         Pull my changes from coreutils:
62628         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
62629         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
62630         use of $gnulib_tool_option_extras, so that it's separated from the
62631         preceding argument.
62632
62633         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
62634         * build-aux/bootstrap (cp_mark_as_generated): Create any required
62635         parent destination directories before copying a file into place.
62636
62637 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
62638
62639         bootstrap: work also with 4-argument variant of AC_INIT
62640         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
62641
62642 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
62643
62644         Port test-getaddrinfo to Solaris.
62645         Problem reported by Bruno Haible in
62646         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
62647         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
62648         explanation of setting 'hints'.
62649         Don't reject an implementation merely because it returns EAI_SERVICE.
62650         (EAI_SERVICE): Define to 0 if not defined.
62651
62652 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
62653
62654         The license of gnu-make and posix-shell is now "GPLed build tool".
62655         * modules/gnu-make (License): Likewise.
62656         * modules/posix-shell (License): Likewise.
62657
62658         New module posix-shell, for determining a POSIX shell
62659         or perhaps something that is close enough to a POSIX shell.
62660         * m4/posix-shell.m4: New file.
62661         * modules/posix-shell: New file.
62662
62663         * MODULES.html.sh: Mention new module.
62664
62665         New module gnu-make, for determining whether we're using GNU Make.
62666         * m4/gnu-make.m4: New file.
62667         * modules/gnu-make: New file.
62668         * MODULES.html.sh: Mention new module.
62669
62670 2007-11-14  Jim Meyering  <meyering@redhat.com>
62671
62672         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
62673         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
62674         use this macro to create a function _definition_.
62675         Remove useless "#undef ARGMATCH_DIE".
62676
62677 2007-11-14  Bruno Haible  <bruno@clisp.org>
62678
62679         * lib/config.charset: Update for OpenBSD 4.1.
62680         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
62681
62682 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
62683
62684         Document 64-bit #if problems in stdint.texi.
62685         * doc/headers/stdint.texi (stdint.h): Mention problems with
62686         64-bit-#if, and how to work around them.
62687
62688         Don't insist on 'long long int' support in the preprocessor.  It
62689         breaks too many things.  For example, PRIdMAX still uses a 'long
62690         long int' format with the latest Sun compiler, even though
62691         HAVE_LONG_LONG_INT isn't defined due to that compiler's
62692         preprocessor problem.  This causes the latest coreutils to dump
62693         core on Solaris 10 sparc with the Sun C compiler.
62694         Instead, fix the 2007-10-16 problem in a different way, by evaluating
62695         the troublesome expressions at configure-time, not at #if-time.
62696         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
62697         preprocessor.
62698         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
62699         compile-time C checks, done at 'configure'-time.
62700         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
62701         * modules/inttypes (Makefile): Substitute the new symbols that
62702         gl_INTTYPES_H now generates.
62703         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
62704
62705 2007-11-12  Bruno Haible  <bruno@clisp.org>
62706
62707         Tests for Unicode character classification functions.
62708
62709         * modules/unictype/bidicategory-byname-tests: New file.
62710         * modules/unictype/bidicategory-name-tests: New file.
62711         * modules/unictype/bidicategory-of-tests: New file.
62712         * modules/unictype/bidicategory-test-tests: New file.
62713         * modules/unictype/block-list-tests: New file.
62714         * modules/unictype/block-of-tests: New file.
62715         * modules/unictype/block-test-tests: New file.
62716         * modules/unictype/category-C-tests: New file.
62717         * modules/unictype/category-Cc-tests: New file.
62718         * modules/unictype/category-Cf-tests: New file.
62719         * modules/unictype/category-Cn-tests: New file.
62720         * modules/unictype/category-Co-tests: New file.
62721         * modules/unictype/category-Cs-tests: New file.
62722         * modules/unictype/category-L-tests: New file.
62723         * modules/unictype/category-Ll-tests: New file.
62724         * modules/unictype/category-Lm-tests: New file.
62725         * modules/unictype/category-Lo-tests: New file.
62726         * modules/unictype/category-Lt-tests: New file.
62727         * modules/unictype/category-Lu-tests: New file.
62728         * modules/unictype/category-M-tests: New file.
62729         * modules/unictype/category-Mc-tests: New file.
62730         * modules/unictype/category-Me-tests: New file.
62731         * modules/unictype/category-Mn-tests: New file.
62732         * modules/unictype/category-N-tests: New file.
62733         * modules/unictype/category-Nd-tests: New file.
62734         * modules/unictype/category-Nl-tests: New file.
62735         * modules/unictype/category-No-tests: New file.
62736         * modules/unictype/category-P-tests: New file.
62737         * modules/unictype/category-Pc-tests: New file.
62738         * modules/unictype/category-Pd-tests: New file.
62739         * modules/unictype/category-Pe-tests: New file.
62740         * modules/unictype/category-Pf-tests: New file.
62741         * modules/unictype/category-Pi-tests: New file.
62742         * modules/unictype/category-Po-tests: New file.
62743         * modules/unictype/category-Ps-tests: New file.
62744         * modules/unictype/category-S-tests: New file.
62745         * modules/unictype/category-Sc-tests: New file.
62746         * modules/unictype/category-Sk-tests: New file.
62747         * modules/unictype/category-Sm-tests: New file.
62748         * modules/unictype/category-So-tests: New file.
62749         * modules/unictype/category-Z-tests: New file.
62750         * modules/unictype/category-Zl-tests: New file.
62751         * modules/unictype/category-Zp-tests: New file.
62752         * modules/unictype/category-Zs-tests: New file.
62753         * modules/unictype/category-and-not-tests: New file.
62754         * modules/unictype/category-and-tests: New file.
62755         * modules/unictype/category-byname-tests: New file.
62756         * modules/unictype/category-name-tests: New file.
62757         * modules/unictype/category-none-tests: New file.
62758         * modules/unictype/category-of-tests: New file.
62759         * modules/unictype/category-or-tests: New file.
62760         * modules/unictype/category-test-withtable-tests: New file.
62761         * modules/unictype/combining-class-tests: New file.
62762         * modules/unictype/ctype-alnum-tests: New file.
62763         * modules/unictype/ctype-alpha-tests: New file.
62764         * modules/unictype/ctype-blank-tests: New file.
62765         * modules/unictype/ctype-cntrl-tests: New file.
62766         * modules/unictype/ctype-digit-tests: New file.
62767         * modules/unictype/ctype-graph-tests: New file.
62768         * modules/unictype/ctype-lower-tests: New file.
62769         * modules/unictype/ctype-print-tests: New file.
62770         * modules/unictype/ctype-punct-tests: New file.
62771         * modules/unictype/ctype-space-tests: New file.
62772         * modules/unictype/ctype-upper-tests: New file.
62773         * modules/unictype/ctype-xdigit-tests: New file.
62774         * modules/unictype/decimal-digit-tests: New file.
62775         * modules/unictype/digit-tests: New file.
62776         * modules/unictype/mirror-tests: New file.
62777         * modules/unictype/numeric-tests: New file.
62778         * modules/unictype/property-alphabetic-tests: New file.
62779         * modules/unictype/property-ascii-hex-digit-tests: New file.
62780         * modules/unictype/property-bidi-arabic-digit-tests: New file.
62781         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
62782         * modules/unictype/property-bidi-block-separator-tests: New file.
62783         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
62784         * modules/unictype/property-bidi-common-separator-tests: New file.
62785         * modules/unictype/property-bidi-control-tests: New file.
62786         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
62787         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
62788         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
62789         * modules/unictype/property-bidi-european-digit-tests: New file.
62790         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
62791         * modules/unictype/property-bidi-left-to-right-tests: New file.
62792         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
62793         * modules/unictype/property-bidi-other-neutral-tests: New file.
62794         * modules/unictype/property-bidi-pdf-tests: New file.
62795         * modules/unictype/property-bidi-segment-separator-tests: New file.
62796         * modules/unictype/property-bidi-whitespace-tests: New file.
62797         * modules/unictype/property-byname-tests: New file.
62798         * modules/unictype/property-combining-tests: New file.
62799         * modules/unictype/property-composite-tests: New file.
62800         * modules/unictype/property-currency-symbol-tests: New file.
62801         * modules/unictype/property-dash-tests: New file.
62802         * modules/unictype/property-decimal-digit-tests: New file.
62803         * modules/unictype/property-default-ignorable-code-point-tests: New file.
62804         * modules/unictype/property-deprecated-tests: New file.
62805         * modules/unictype/property-diacritic-tests: New file.
62806         * modules/unictype/property-extender-tests: New file.
62807         * modules/unictype/property-format-control-tests: New file.
62808         * modules/unictype/property-grapheme-base-tests: New file.
62809         * modules/unictype/property-grapheme-extend-tests: New file.
62810         * modules/unictype/property-grapheme-link-tests: New file.
62811         * modules/unictype/property-hex-digit-tests: New file.
62812         * modules/unictype/property-hyphen-tests: New file.
62813         * modules/unictype/property-id-continue-tests: New file.
62814         * modules/unictype/property-id-start-tests: New file.
62815         * modules/unictype/property-ideographic-tests: New file.
62816         * modules/unictype/property-ids-binary-operator-tests: New file.
62817         * modules/unictype/property-ids-trinary-operator-tests: New file.
62818         * modules/unictype/property-ignorable-control-tests: New file.
62819         * modules/unictype/property-iso-control-tests: New file.
62820         * modules/unictype/property-join-control-tests: New file.
62821         * modules/unictype/property-left-of-pair-tests: New file.
62822         * modules/unictype/property-line-separator-tests: New file.
62823         * modules/unictype/property-logical-order-exception-tests: New file.
62824         * modules/unictype/property-lowercase-tests: New file.
62825         * modules/unictype/property-math-tests: New file.
62826         * modules/unictype/property-non-break-tests: New file.
62827         * modules/unictype/property-not-a-character-tests: New file.
62828         * modules/unictype/property-numeric-tests: New file.
62829         * modules/unictype/property-other-alphabetic-tests: New file.
62830         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
62831         * modules/unictype/property-other-grapheme-extend-tests: New file.
62832         * modules/unictype/property-other-id-continue-tests: New file.
62833         * modules/unictype/property-other-id-start-tests: New file.
62834         * modules/unictype/property-other-lowercase-tests: New file.
62835         * modules/unictype/property-other-math-tests: New file.
62836         * modules/unictype/property-other-uppercase-tests: New file.
62837         * modules/unictype/property-paired-punctuation-tests: New file.
62838         * modules/unictype/property-paragraph-separator-tests: New file.
62839         * modules/unictype/property-pattern-syntax-tests: New file.
62840         * modules/unictype/property-pattern-white-space-tests: New file.
62841         * modules/unictype/property-private-use-tests: New file.
62842         * modules/unictype/property-punctuation-tests: New file.
62843         * modules/unictype/property-quotation-mark-tests: New file.
62844         * modules/unictype/property-radical-tests: New file.
62845         * modules/unictype/property-sentence-terminal-tests: New file.
62846         * modules/unictype/property-soft-dotted-tests: New file.
62847         * modules/unictype/property-space-tests: New file.
62848         * modules/unictype/property-terminal-punctuation-tests: New file.
62849         * modules/unictype/property-test-tests: New file.
62850         * modules/unictype/property-titlecase-tests: New file.
62851         * modules/unictype/property-unassigned-code-value-tests: New file.
62852         * modules/unictype/property-unified-ideograph-tests: New file.
62853         * modules/unictype/property-uppercase-tests: New file.
62854         * modules/unictype/property-variation-selector-tests: New file.
62855         * modules/unictype/property-white-space-tests: New file.
62856         * modules/unictype/property-xid-continue-tests: New file.
62857         * modules/unictype/property-xid-start-tests: New file.
62858         * modules/unictype/property-zero-width-tests: New file.
62859         * modules/unictype/scripts-tests: New file.
62860         * modules/unictype/syntax-c-ident-tests: New file.
62861         * modules/unictype/syntax-c-whitespace-tests: New file.
62862         * modules/unictype/syntax-java-ident-tests: New file.
62863         * modules/unictype/syntax-java-whitespace-tests: New file.
62864         * tests/unictype/test-bidi_byname.c: New file.
62865         * tests/unictype/test-bidi_name.c: New file.
62866         * tests/unictype/test-bidi_of.c: New file.
62867         * tests/unictype/test-bidi_test.c: New file.
62868         * tests/unictype/test-block_list.c: New file.
62869         * tests/unictype/test-block_of.c: New file.
62870         * tests/unictype/test-block_test.c: New file.
62871         * tests/unictype/test-categ_and.c: New file.
62872         * tests/unictype/test-categ_and_not.c: New file.
62873         * tests/unictype/test-categ_byname.c: New file.
62874         * tests/unictype/test-categ_name.c: New file.
62875         * tests/unictype/test-categ_none.c: New file.
62876         * tests/unictype/test-categ_of.c: New file.
62877         * tests/unictype/test-categ_or.c: New file.
62878         * tests/unictype/test-categ_test_withtable.c: New file.
62879         * tests/unictype/test-combining.c: New file.
62880         * tests/unictype/test-decdigit.c: New file.
62881         * tests/unictype/test-digit.c: New file.
62882         * tests/unictype/test-mirror.c: New file.
62883         * tests/unictype/test-numeric.c: New file.
62884         * tests/unictype/test-pr_byname.c: New file.
62885         * tests/unictype/test-pr_test.c: New file.
62886         * tests/unictype/test-predicate-part1.h: New file.
62887         * tests/unictype/test-predicate-part2.h: New file.
62888         * tests/unictype/test-scripts.c: New file.
62889         * tests/unictype/test-sy_c_ident.c: New file.
62890         * tests/unictype/test-sy_java_ident.c: New file.
62891
62892         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
62893         for Unicode 5.0.0.
62894         * tests/unictype/test-categ_Cc.c: Likewise.
62895         * tests/unictype/test-categ_Cf.c: Likewise.
62896         * tests/unictype/test-categ_Cn.c: Likewise.
62897         * tests/unictype/test-categ_Co.c: Likewise.
62898         * tests/unictype/test-categ_Cs.c: Likewise.
62899         * tests/unictype/test-categ_L.c: Likewise.
62900         * tests/unictype/test-categ_Ll.c: Likewise.
62901         * tests/unictype/test-categ_Lm.c: Likewise.
62902         * tests/unictype/test-categ_Lo.c: Likewise.
62903         * tests/unictype/test-categ_Lt.c: Likewise.
62904         * tests/unictype/test-categ_Lu.c: Likewise.
62905         * tests/unictype/test-categ_M.c: Likewise.
62906         * tests/unictype/test-categ_Mc.c: Likewise.
62907         * tests/unictype/test-categ_Me.c: Likewise.
62908         * tests/unictype/test-categ_Mn.c: Likewise.
62909         * tests/unictype/test-categ_N.c: Likewise.
62910         * tests/unictype/test-categ_Nd.c: Likewise.
62911         * tests/unictype/test-categ_Nl.c: Likewise.
62912         * tests/unictype/test-categ_No.c: Likewise.
62913         * tests/unictype/test-categ_P.c: Likewise.
62914         * tests/unictype/test-categ_Pc.c: Likewise.
62915         * tests/unictype/test-categ_Pd.c: Likewise.
62916         * tests/unictype/test-categ_Pe.c: Likewise.
62917         * tests/unictype/test-categ_Pf.c: Likewise.
62918         * tests/unictype/test-categ_Pi.c: Likewise.
62919         * tests/unictype/test-categ_Po.c: Likewise.
62920         * tests/unictype/test-categ_Ps.c: Likewise.
62921         * tests/unictype/test-categ_S.c: Likewise.
62922         * tests/unictype/test-categ_Sc.c: Likewise.
62923         * tests/unictype/test-categ_Sk.c: Likewise.
62924         * tests/unictype/test-categ_Sm.c: Likewise.
62925         * tests/unictype/test-categ_So.c: Likewise.
62926         * tests/unictype/test-categ_Z.c: Likewise.
62927         * tests/unictype/test-categ_Zl.c: Likewise.
62928         * tests/unictype/test-categ_Zp.c: Likewise.
62929         * tests/unictype/test-categ_Zs.c: Likewise.
62930         * tests/unictype/test-ctype_alnum.c: Likewise.
62931         * tests/unictype/test-ctype_alpha.c: Likewise.
62932         * tests/unictype/test-ctype_blank.c: Likewise.
62933         * tests/unictype/test-ctype_cntrl.c: Likewise.
62934         * tests/unictype/test-ctype_digit.c: Likewise.
62935         * tests/unictype/test-ctype_graph.c: Likewise.
62936         * tests/unictype/test-ctype_lower.c: Likewise.
62937         * tests/unictype/test-ctype_print.c: Likewise.
62938         * tests/unictype/test-ctype_punct.c: Likewise.
62939         * tests/unictype/test-ctype_space.c: Likewise.
62940         * tests/unictype/test-ctype_upper.c: Likewise.
62941         * tests/unictype/test-ctype_xdigit.c: Likewise.
62942         * tests/unictype/test-decdigit.h: Likewise.
62943         * tests/unictype/test-digit.h: Likewise.
62944         * tests/unictype/test-numeric.h: Likewise.
62945         * tests/unictype/test-pr_alphabetic.c: Likewise.
62946         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
62947         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
62948         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
62949         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
62950         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
62951         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
62952         * tests/unictype/test-pr_bidi_control.c: Likewise.
62953         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
62954         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
62955         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
62956         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
62957         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
62958         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
62959         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
62960         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
62961         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
62962         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
62963         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
62964         * tests/unictype/test-pr_combining.c: Likewise.
62965         * tests/unictype/test-pr_composite.c: Likewise.
62966         * tests/unictype/test-pr_currency_symbol.c: Likewise.
62967         * tests/unictype/test-pr_dash.c: Likewise.
62968         * tests/unictype/test-pr_decimal_digit.c: Likewise.
62969         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
62970         * tests/unictype/test-pr_deprecated.c: Likewise.
62971         * tests/unictype/test-pr_diacritic.c: Likewise.
62972         * tests/unictype/test-pr_extender.c: Likewise.
62973         * tests/unictype/test-pr_format_control.c: Likewise.
62974         * tests/unictype/test-pr_grapheme_base.c: Likewise.
62975         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
62976         * tests/unictype/test-pr_grapheme_link.c: Likewise.
62977         * tests/unictype/test-pr_hex_digit.c: Likewise.
62978         * tests/unictype/test-pr_hyphen.c: Likewise.
62979         * tests/unictype/test-pr_id_continue.c: Likewise.
62980         * tests/unictype/test-pr_id_start.c: Likewise.
62981         * tests/unictype/test-pr_ideographic.c: Likewise.
62982         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
62983         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
62984         * tests/unictype/test-pr_ignorable_control.c: Likewise.
62985         * tests/unictype/test-pr_iso_control.c: Likewise.
62986         * tests/unictype/test-pr_join_control.c: Likewise.
62987         * tests/unictype/test-pr_left_of_pair.c: Likewise.
62988         * tests/unictype/test-pr_line_separator.c: Likewise.
62989         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
62990         * tests/unictype/test-pr_lowercase.c: Likewise.
62991         * tests/unictype/test-pr_math.c: Likewise.
62992         * tests/unictype/test-pr_non_break.c: Likewise.
62993         * tests/unictype/test-pr_not_a_character.c: Likewise.
62994         * tests/unictype/test-pr_numeric.c: Likewise.
62995         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
62996         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
62997         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
62998         * tests/unictype/test-pr_other_id_continue.c: Likewise.
62999         * tests/unictype/test-pr_other_id_start.c: Likewise.
63000         * tests/unictype/test-pr_other_lowercase.c: Likewise.
63001         * tests/unictype/test-pr_other_math.c: Likewise.
63002         * tests/unictype/test-pr_other_uppercase.c: Likewise.
63003         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
63004         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
63005         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
63006         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
63007         * tests/unictype/test-pr_private_use.c: Likewise.
63008         * tests/unictype/test-pr_punctuation.c: Likewise.
63009         * tests/unictype/test-pr_quotation_mark.c: Likewise.
63010         * tests/unictype/test-pr_radical.c: Likewise.
63011         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
63012         * tests/unictype/test-pr_soft_dotted.c: Likewise.
63013         * tests/unictype/test-pr_space.c: Likewise.
63014         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
63015         * tests/unictype/test-pr_titlecase.c: Likewise.
63016         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
63017         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
63018         * tests/unictype/test-pr_uppercase.c: Likewise.
63019         * tests/unictype/test-pr_variation_selector.c: Likewise.
63020         * tests/unictype/test-pr_white_space.c: Likewise.
63021         * tests/unictype/test-pr_xid_continue.c: Likewise.
63022         * tests/unictype/test-pr_xid_start.c: Likewise.
63023         * tests/unictype/test-pr_zero_width.c: Likewise.
63024         * tests/unictype/test-sy_c_whitespace.c: Likewise.
63025         * tests/unictype/test-sy_java_whitespace.c: Likewise.
63026
63027 2007-11-12  Bruno Haible  <bruno@clisp.org>
63028
63029         Unicode character classification functions.
63030         * lib/unictype.h: New file.
63031         * modules/unictype/base: New file.
63032         * modules/unictype/category-L: New file.
63033         * modules/unictype/category-Lu: New file.
63034         * modules/unictype/category-Ll: New file.
63035         * modules/unictype/category-Lt: New file.
63036         * modules/unictype/category-Lm: New file.
63037         * modules/unictype/category-Lo: New file.
63038         * modules/unictype/category-M: New file.
63039         * modules/unictype/category-Mn: New file.
63040         * modules/unictype/category-Mc: New file.
63041         * modules/unictype/category-Me: New file.
63042         * modules/unictype/category-N: New file.
63043         * modules/unictype/category-Nd: New file.
63044         * modules/unictype/category-Nl: New file.
63045         * modules/unictype/category-No: New file.
63046         * modules/unictype/category-P: New file.
63047         * modules/unictype/category-Pc: New file.
63048         * modules/unictype/category-Pd: New file.
63049         * modules/unictype/category-Ps: New file.
63050         * modules/unictype/category-Pe: New file.
63051         * modules/unictype/category-Pi: New file.
63052         * modules/unictype/category-Pf: New file.
63053         * modules/unictype/category-Po: New file.
63054         * modules/unictype/category-S: New file.
63055         * modules/unictype/category-Sm: New file.
63056         * modules/unictype/category-Sc: New file.
63057         * modules/unictype/category-Sk: New file.
63058         * modules/unictype/category-So: New file.
63059         * modules/unictype/category-Z: New file.
63060         * modules/unictype/category-Zs: New file.
63061         * modules/unictype/category-Zl: New file.
63062         * modules/unictype/category-Zp: New file.
63063         * modules/unictype/category-C: New file.
63064         * modules/unictype/category-Cc: New file.
63065         * modules/unictype/category-Cf: New file.
63066         * modules/unictype/category-Cs: New file.
63067         * modules/unictype/category-Co: New file.
63068         * modules/unictype/category-Cn: New file.
63069         * modules/unictype/category-or: New file.
63070         * modules/unictype/category-of: New file.
63071         * modules/unictype/category-test: New file.
63072         * modules/unictype/category-test-withtable: New file.
63073         * modules/unictype/category-byname: New file.
63074         * modules/unictype/category-none: New file.
63075         * modules/unictype/category-and: New file.
63076         * modules/unictype/category-and-not: New file.
63077         * modules/unictype/category-name: New file.
63078         * modules/unictype/combining-class: New file.
63079         * modules/unictype/category-all: New file.
63080         * modules/unictype/bidicategory-all: New file.
63081         * modules/unictype/bidicategory-byname: New file.
63082         * modules/unictype/bidicategory-name: New file.
63083         * modules/unictype/bidicategory-of: New file.
63084         * modules/unictype/bidicategory-test: New file.
63085         * modules/unictype/decimal-digit: New file.
63086         * modules/unictype/digit: New file.
63087         * modules/unictype/numeric: New file.
63088         * modules/unictype/mirror: New file.
63089         * modules/unictype/property-white-space: New file.
63090         * modules/unictype/property-alphabetic: New file.
63091         * modules/unictype/property-other-alphabetic: New file.
63092         * modules/unictype/property-not-a-character: New file.
63093         * modules/unictype/property-default-ignorable-code-point: New file.
63094         * modules/unictype/property-other-default-ignorable-code-point: New
63095         file.
63096         * modules/unictype/property-deprecated: New file.
63097         * modules/unictype/property-logical-order-exception: New file.
63098         * modules/unictype/property-variation-selector: New file.
63099         * modules/unictype/property-private-use: New file.
63100         * modules/unictype/property-unassigned-code-value: New file.
63101         * modules/unictype/property-uppercase: New file.
63102         * modules/unictype/property-other-uppercase: New file.
63103         * modules/unictype/property-lowercase: New file.
63104         * modules/unictype/property-other-lowercase: New file.
63105         * modules/unictype/property-titlecase: New file.
63106         * modules/unictype/property-soft-dotted: New file.
63107         * modules/unictype/property-id-start: New file.
63108         * modules/unictype/property-other-id-start: New file.
63109         * modules/unictype/property-id-continue: New file.
63110         * modules/unictype/property-other-id-continue: New file.
63111         * modules/unictype/property-xid-start: New file.
63112         * modules/unictype/property-xid-continue: New file.
63113         * modules/unictype/property-pattern-white-space: New file.
63114         * modules/unictype/property-pattern-syntax: New file.
63115         * modules/unictype/property-join-control: New file.
63116         * modules/unictype/property-grapheme-base: New file.
63117         * modules/unictype/property-grapheme-extend: New file.
63118         * modules/unictype/property-other-grapheme-extend: New file.
63119         * modules/unictype/property-grapheme-link: New file.
63120         * modules/unictype/property-bidi-control: New file.
63121         * modules/unictype/property-bidi-left-to-right: New file.
63122         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
63123         * modules/unictype/property-bidi-arabic-right-to-left: New file.
63124         * modules/unictype/property-bidi-european-digit: New file.
63125         * modules/unictype/property-bidi-eur-num-separator: New file.
63126         * modules/unictype/property-bidi-eur-num-terminator: New file.
63127         * modules/unictype/property-bidi-arabic-digit: New file.
63128         * modules/unictype/property-bidi-common-separator: New file.
63129         * modules/unictype/property-bidi-block-separator: New file.
63130         * modules/unictype/property-bidi-segment-separator: New file.
63131         * modules/unictype/property-bidi-whitespace: New file.
63132         * modules/unictype/property-bidi-non-spacing-mark: New file.
63133         * modules/unictype/property-bidi-boundary-neutral: New file.
63134         * modules/unictype/property-bidi-pdf: New file.
63135         * modules/unictype/property-bidi-embedding-or-override: New file.
63136         * modules/unictype/property-bidi-other-neutral: New file.
63137         * modules/unictype/property-hex-digit: New file.
63138         * modules/unictype/property-ascii-hex-digit: New file.
63139         * modules/unictype/property-ideographic: New file.
63140         * modules/unictype/property-unified-ideograph: New file.
63141         * modules/unictype/property-radical: New file.
63142         * modules/unictype/property-ids-binary-operator: New file.
63143         * modules/unictype/property-ids-trinary-operator: New file.
63144         * modules/unictype/property-zero-width: New file.
63145         * modules/unictype/property-space: New file.
63146         * modules/unictype/property-non-break: New file.
63147         * modules/unictype/property-iso-control: New file.
63148         * modules/unictype/property-format-control: New file.
63149         * modules/unictype/property-dash: New file.
63150         * modules/unictype/property-hyphen: New file.
63151         * modules/unictype/property-punctuation: New file.
63152         * modules/unictype/property-line-separator: New file.
63153         * modules/unictype/property-paragraph-separator: New file.
63154         * modules/unictype/property-quotation-mark: New file.
63155         * modules/unictype/property-sentence-terminal: New file.
63156         * modules/unictype/property-terminal-punctuation: New file.
63157         * modules/unictype/property-currency-symbol: New file.
63158         * modules/unictype/property-math: New file.
63159         * modules/unictype/property-other-math: New file.
63160         * modules/unictype/property-paired-punctuation: New file.
63161         * modules/unictype/property-left-of-pair: New file.
63162         * modules/unictype/property-combining: New file.
63163         * modules/unictype/property-composite: New file.
63164         * modules/unictype/property-decimal-digit: New file.
63165         * modules/unictype/property-numeric: New file.
63166         * modules/unictype/property-diacritic: New file.
63167         * modules/unictype/property-extender: New file.
63168         * modules/unictype/property-ignorable-control: New file.
63169         * modules/unictype/property-test: New file.
63170         * modules/unictype/property-byname: New file.
63171         * modules/unictype/property-all: New file.
63172         * modules/unictype/scripts: New file.
63173         * modules/unictype/scripts-all: New file.
63174         * modules/unictype/block-of: New file.
63175         * modules/unictype/block-test: New file.
63176         * modules/unictype/block-list: New file.
63177         * modules/unictype/block-all: New file.
63178         * modules/unictype/syntax-c-whitespace: New file.
63179         * modules/unictype/syntax-java-whitespace: New file.
63180         * modules/unictype/syntax-c-ident: New file.
63181         * modules/unictype/syntax-java-ident: New file.
63182         * modules/unictype/ctype-alnum: New file.
63183         * modules/unictype/ctype-alpha: New file.
63184         * modules/unictype/ctype-cntrl: New file.
63185         * modules/unictype/ctype-digit: New file.
63186         * modules/unictype/ctype-graph: New file.
63187         * modules/unictype/ctype-lower: New file.
63188         * modules/unictype/ctype-print: New file.
63189         * modules/unictype/ctype-punct: New file.
63190         * modules/unictype/ctype-space: New file.
63191         * modules/unictype/ctype-upper: New file.
63192         * modules/unictype/ctype-xdigit: New file.
63193         * modules/unictype/ctype-blank: New file.
63194         * lib/unictype/bidi_byname.c: New file.
63195         * lib/unictype/bidi_name.c: New file.
63196         * lib/unictype/bidi_of.c: New file.
63197         * lib/unictype/bidi_test.c: New file.
63198         * lib/unictype/bitmap.h: New file.
63199         * lib/unictype/block_test.c: New file.
63200         * lib/unictype/blocks.c: New file.
63201         * lib/unictype/categ_C.c: New file.
63202         * lib/unictype/categ_Cc.c: New file.
63203         * lib/unictype/categ_Cf.c: New file.
63204         * lib/unictype/categ_Cn.c: New file.
63205         * lib/unictype/categ_Co.c: New file.
63206         * lib/unictype/categ_Cs.c: New file.
63207         * lib/unictype/categ_L.c: New file.
63208         * lib/unictype/categ_Ll.c: New file.
63209         * lib/unictype/categ_Lm.c: New file.
63210         * lib/unictype/categ_Lo.c: New file.
63211         * lib/unictype/categ_Lt.c: New file.
63212         * lib/unictype/categ_Lu.c: New file.
63213         * lib/unictype/categ_M.c: New file.
63214         * lib/unictype/categ_Mc.c: New file.
63215         * lib/unictype/categ_Me.c: New file.
63216         * lib/unictype/categ_Mn.c: New file.
63217         * lib/unictype/categ_N.c: New file.
63218         * lib/unictype/categ_Nd.c: New file.
63219         * lib/unictype/categ_Nl.c: New file.
63220         * lib/unictype/categ_No.c: New file.
63221         * lib/unictype/categ_P.c: New file.
63222         * lib/unictype/categ_Pc.c: New file.
63223         * lib/unictype/categ_Pd.c: New file.
63224         * lib/unictype/categ_Pe.c: New file.
63225         * lib/unictype/categ_Pf.c: New file.
63226         * lib/unictype/categ_Pi.c: New file.
63227         * lib/unictype/categ_Po.c: New file.
63228         * lib/unictype/categ_Ps.c: New file.
63229         * lib/unictype/categ_S.c: New file.
63230         * lib/unictype/categ_Sc.c: New file.
63231         * lib/unictype/categ_Sk.c: New file.
63232         * lib/unictype/categ_Sm.c: New file.
63233         * lib/unictype/categ_So.c: New file.
63234         * lib/unictype/categ_Z.c: New file.
63235         * lib/unictype/categ_Zl.c: New file.
63236         * lib/unictype/categ_Zp.c: New file.
63237         * lib/unictype/categ_Zs.c: New file.
63238         * lib/unictype/categ_and.c: New file.
63239         * lib/unictype/categ_and_not.c: New file.
63240         * lib/unictype/categ_byname.c: New file.
63241         * lib/unictype/categ_name.c: New file.
63242         * lib/unictype/categ_none.c: New file.
63243         * lib/unictype/categ_of.c: New file.
63244         * lib/unictype/categ_or.c: New file.
63245         * lib/unictype/categ_test.c: New file.
63246         * lib/unictype/combining.c: New file.
63247         * lib/unictype/ctype_alnum.c: New file.
63248         * lib/unictype/ctype_alpha.c: New file.
63249         * lib/unictype/ctype_blank.c: New file.
63250         * lib/unictype/ctype_cntrl.c: New file.
63251         * lib/unictype/ctype_digit.c: New file.
63252         * lib/unictype/ctype_graph.c: New file.
63253         * lib/unictype/ctype_lower.c: New file.
63254         * lib/unictype/ctype_print.c: New file.
63255         * lib/unictype/ctype_punct.c: New file.
63256         * lib/unictype/ctype_space.c: New file.
63257         * lib/unictype/ctype_upper.c: New file.
63258         * lib/unictype/ctype_xdigit.c: New file.
63259         * lib/unictype/decdigit.c: New file.
63260         * lib/unictype/digit.c: New file.
63261         * lib/unictype/identsyntaxmap.h: New file.
63262         * lib/unictype/mirror.c: New file.
63263         * lib/unictype/numeric.c: New file.
63264         * lib/unictype/pr_alphabetic.c: New file.
63265         * lib/unictype/pr_ascii_hex_digit.c: New file.
63266         * lib/unictype/pr_bidi_arabic_digit.c: New file.
63267         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
63268         * lib/unictype/pr_bidi_block_separator.c: New file.
63269         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
63270         * lib/unictype/pr_bidi_common_separator.c: New file.
63271         * lib/unictype/pr_bidi_control.c: New file.
63272         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
63273         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
63274         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
63275         * lib/unictype/pr_bidi_european_digit.c: New file.
63276         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
63277         * lib/unictype/pr_bidi_left_to_right.c: New file.
63278         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
63279         * lib/unictype/pr_bidi_other_neutral.c: New file.
63280         * lib/unictype/pr_bidi_pdf.c: New file.
63281         * lib/unictype/pr_bidi_segment_separator.c: New file.
63282         * lib/unictype/pr_bidi_whitespace.c: New file.
63283         * lib/unictype/pr_byname.c: New file.
63284         * lib/unictype/pr_byname.gperf: New file.
63285         * lib/unictype/pr_combining.c: New file.
63286         * lib/unictype/pr_composite.c: New file.
63287         * lib/unictype/pr_currency_symbol.c: New file.
63288         * lib/unictype/pr_dash.c: New file.
63289         * lib/unictype/pr_decimal_digit.c: New file.
63290         * lib/unictype/pr_default_ignorable_code_point.c: New file.
63291         * lib/unictype/pr_deprecated.c: New file.
63292         * lib/unictype/pr_diacritic.c: New file.
63293         * lib/unictype/pr_extender.c: New file.
63294         * lib/unictype/pr_format_control.c: New file.
63295         * lib/unictype/pr_grapheme_base.c: New file.
63296         * lib/unictype/pr_grapheme_extend.c: New file.
63297         * lib/unictype/pr_grapheme_link.c: New file.
63298         * lib/unictype/pr_hex_digit.c: New file.
63299         * lib/unictype/pr_hyphen.c: New file.
63300         * lib/unictype/pr_id_continue.c: New file.
63301         * lib/unictype/pr_id_start.c: New file.
63302         * lib/unictype/pr_ideographic.c: New file.
63303         * lib/unictype/pr_ids_binary_operator.c: New file.
63304         * lib/unictype/pr_ids_trinary_operator.c: New file.
63305         * lib/unictype/pr_ignorable_control.c: New file.
63306         * lib/unictype/pr_iso_control.c: New file.
63307         * lib/unictype/pr_join_control.c: New file.
63308         * lib/unictype/pr_left_of_pair.c: New file.
63309         * lib/unictype/pr_line_separator.c: New file.
63310         * lib/unictype/pr_logical_order_exception.c: New file.
63311         * lib/unictype/pr_lowercase.c: New file.
63312         * lib/unictype/pr_math.c: New file.
63313         * lib/unictype/pr_non_break.c: New file.
63314         * lib/unictype/pr_not_a_character.c: New file.
63315         * lib/unictype/pr_numeric.c: New file.
63316         * lib/unictype/pr_other_alphabetic.c: New file.
63317         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
63318         * lib/unictype/pr_other_grapheme_extend.c: New file.
63319         * lib/unictype/pr_other_id_continue.c: New file.
63320         * lib/unictype/pr_other_id_start.c: New file.
63321         * lib/unictype/pr_other_lowercase.c: New file.
63322         * lib/unictype/pr_other_math.c: New file.
63323         * lib/unictype/pr_other_uppercase.c: New file.
63324         * lib/unictype/pr_paired_punctuation.c: New file.
63325         * lib/unictype/pr_paragraph_separator.c: New file.
63326         * lib/unictype/pr_pattern_syntax.c: New file.
63327         * lib/unictype/pr_pattern_white_space.c: New file.
63328         * lib/unictype/pr_private_use.c: New file.
63329         * lib/unictype/pr_punctuation.c: New file.
63330         * lib/unictype/pr_quotation_mark.c: New file.
63331         * lib/unictype/pr_radical.c: New file.
63332         * lib/unictype/pr_sentence_terminal.c: New file.
63333         * lib/unictype/pr_soft_dotted.c: New file.
63334         * lib/unictype/pr_space.c: New file.
63335         * lib/unictype/pr_terminal_punctuation.c: New file.
63336         * lib/unictype/pr_test.c: New file.
63337         * lib/unictype/pr_titlecase.c: New file.
63338         * lib/unictype/pr_unassigned_code_value.c: New file.
63339         * lib/unictype/pr_unified_ideograph.c: New file.
63340         * lib/unictype/pr_uppercase.c: New file.
63341         * lib/unictype/pr_variation_selector.c: New file.
63342         * lib/unictype/pr_white_space.c: New file.
63343         * lib/unictype/pr_xid_continue.c: New file.
63344         * lib/unictype/pr_xid_start.c: New file.
63345         * lib/unictype/pr_zero_width.c: New file.
63346         * lib/unictype/scripts.c: New file.
63347         * lib/unictype/sy_c_ident.c: New file.
63348         * lib/unictype/sy_c_whitespace.c: New file.
63349         * lib/unictype/sy_java_ident.c: New file.
63350         * lib/unictype/sy_java_whitespace.c: New file.
63351
63352         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
63353         Unicode 5.0.0.
63354         * lib/unictype/blocks.h: Likewise.
63355         * lib/unictype/categ_C.h: Likewise.
63356         * lib/unictype/categ_Cc.h: Likewise.
63357         * lib/unictype/categ_Cf.h: Likewise.
63358         * lib/unictype/categ_Cn.h: Likewise.
63359         * lib/unictype/categ_Co.h: Likewise.
63360         * lib/unictype/categ_Cs.h: Likewise.
63361         * lib/unictype/categ_L.h: Likewise.
63362         * lib/unictype/categ_Ll.h: Likewise.
63363         * lib/unictype/categ_Lm.h: Likewise.
63364         * lib/unictype/categ_Lo.h: Likewise.
63365         * lib/unictype/categ_Lt.h: Likewise.
63366         * lib/unictype/categ_Lu.h: Likewise.
63367         * lib/unictype/categ_M.h: Likewise.
63368         * lib/unictype/categ_Mc.h: Likewise.
63369         * lib/unictype/categ_Me.h: Likewise.
63370         * lib/unictype/categ_Mn.h: Likewise.
63371         * lib/unictype/categ_N.h: Likewise.
63372         * lib/unictype/categ_Nd.h: Likewise.
63373         * lib/unictype/categ_Nl.h: Likewise.
63374         * lib/unictype/categ_No.h: Likewise.
63375         * lib/unictype/categ_P.h: Likewise.
63376         * lib/unictype/categ_Pc.h: Likewise.
63377         * lib/unictype/categ_Pd.h: Likewise.
63378         * lib/unictype/categ_Pe.h: Likewise.
63379         * lib/unictype/categ_Pf.h: Likewise.
63380         * lib/unictype/categ_Pi.h: Likewise.
63381         * lib/unictype/categ_Po.h: Likewise.
63382         * lib/unictype/categ_Ps.h: Likewise.
63383         * lib/unictype/categ_S.h: Likewise.
63384         * lib/unictype/categ_Sc.h: Likewise.
63385         * lib/unictype/categ_Sk.h: Likewise.
63386         * lib/unictype/categ_Sm.h: Likewise.
63387         * lib/unictype/categ_So.h: Likewise.
63388         * lib/unictype/categ_Z.h: Likewise.
63389         * lib/unictype/categ_Zl.h: Likewise.
63390         * lib/unictype/categ_Zp.h: Likewise.
63391         * lib/unictype/categ_Zs.h: Likewise.
63392         * lib/unictype/categ_of.h: Likewise.
63393         * lib/unictype/combining.h: Likewise.
63394         * lib/unictype/ctype_alnum.h: Likewise.
63395         * lib/unictype/ctype_alpha.h: Likewise.
63396         * lib/unictype/ctype_blank.h: Likewise.
63397         * lib/unictype/ctype_cntrl.h: Likewise.
63398         * lib/unictype/ctype_digit.h: Likewise.
63399         * lib/unictype/ctype_graph.h: Likewise.
63400         * lib/unictype/ctype_lower.h: Likewise.
63401         * lib/unictype/ctype_print.h: Likewise.
63402         * lib/unictype/ctype_punct.h: Likewise.
63403         * lib/unictype/ctype_space.h: Likewise.
63404         * lib/unictype/ctype_upper.h: Likewise.
63405         * lib/unictype/ctype_xdigit.h: Likewise.
63406         * lib/unictype/decdigit.h: Likewise.
63407         * lib/unictype/digit.h: Likewise.
63408         * lib/unictype/mirror.h: Likewise.
63409         * lib/unictype/numeric.h: Likewise.
63410         * lib/unictype/pr_alphabetic.h: Likewise.
63411         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
63412         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
63413         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
63414         * lib/unictype/pr_bidi_block_separator.h: Likewise.
63415         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
63416         * lib/unictype/pr_bidi_common_separator.h: Likewise.
63417         * lib/unictype/pr_bidi_control.h: Likewise.
63418         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
63419         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
63420         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
63421         * lib/unictype/pr_bidi_european_digit.h: Likewise.
63422         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
63423         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
63424         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
63425         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
63426         * lib/unictype/pr_bidi_pdf.h: Likewise.
63427         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
63428         * lib/unictype/pr_bidi_whitespace.h: Likewise.
63429         * lib/unictype/pr_combining.h: Likewise.
63430         * lib/unictype/pr_composite.h: Likewise.
63431         * lib/unictype/pr_currency_symbol.h: Likewise.
63432         * lib/unictype/pr_dash.h: Likewise.
63433         * lib/unictype/pr_decimal_digit.h: Likewise.
63434         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
63435         * lib/unictype/pr_deprecated.h: Likewise.
63436         * lib/unictype/pr_diacritic.h: Likewise.
63437         * lib/unictype/pr_extender.h: Likewise.
63438         * lib/unictype/pr_format_control.h: Likewise.
63439         * lib/unictype/pr_grapheme_base.h: Likewise.
63440         * lib/unictype/pr_grapheme_extend.h: Likewise.
63441         * lib/unictype/pr_grapheme_link.h: Likewise.
63442         * lib/unictype/pr_hex_digit.h: Likewise.
63443         * lib/unictype/pr_hyphen.h: Likewise.
63444         * lib/unictype/pr_id_continue.h: Likewise.
63445         * lib/unictype/pr_id_start.h: Likewise.
63446         * lib/unictype/pr_ideographic.h: Likewise.
63447         * lib/unictype/pr_ids_binary_operator.h: Likewise.
63448         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
63449         * lib/unictype/pr_ignorable_control.h: Likewise.
63450         * lib/unictype/pr_iso_control.h: Likewise.
63451         * lib/unictype/pr_join_control.h: Likewise.
63452         * lib/unictype/pr_left_of_pair.h: Likewise.
63453         * lib/unictype/pr_line_separator.h: Likewise.
63454         * lib/unictype/pr_logical_order_exception.h: Likewise.
63455         * lib/unictype/pr_lowercase.h: Likewise.
63456         * lib/unictype/pr_math.h: Likewise.
63457         * lib/unictype/pr_non_break.h: Likewise.
63458         * lib/unictype/pr_not_a_character.h: Likewise.
63459         * lib/unictype/pr_numeric.h: Likewise.
63460         * lib/unictype/pr_other_alphabetic.h: Likewise.
63461         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
63462         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
63463         * lib/unictype/pr_other_id_continue.h: Likewise.
63464         * lib/unictype/pr_other_id_start.h: Likewise.
63465         * lib/unictype/pr_other_lowercase.h: Likewise.
63466         * lib/unictype/pr_other_math.h: Likewise.
63467         * lib/unictype/pr_other_uppercase.h: Likewise.
63468         * lib/unictype/pr_paired_punctuation.h: Likewise.
63469         * lib/unictype/pr_paragraph_separator.h: Likewise.
63470         * lib/unictype/pr_pattern_syntax.h: Likewise.
63471         * lib/unictype/pr_pattern_white_space.h: Likewise.
63472         * lib/unictype/pr_private_use.h: Likewise.
63473         * lib/unictype/pr_punctuation.h: Likewise.
63474         * lib/unictype/pr_quotation_mark.h: Likewise.
63475         * lib/unictype/pr_radical.h: Likewise.
63476         * lib/unictype/pr_sentence_terminal.h: Likewise.
63477         * lib/unictype/pr_soft_dotted.h: Likewise.
63478         * lib/unictype/pr_space.h: Likewise.
63479         * lib/unictype/pr_terminal_punctuation.h: Likewise.
63480         * lib/unictype/pr_titlecase.h: Likewise.
63481         * lib/unictype/pr_unassigned_code_value.h: Likewise.
63482         * lib/unictype/pr_unified_ideograph.h: Likewise.
63483         * lib/unictype/pr_uppercase.h: Likewise.
63484         * lib/unictype/pr_variation_selector.h: Likewise.
63485         * lib/unictype/pr_white_space.h: Likewise.
63486         * lib/unictype/pr_xid_continue.h: Likewise.
63487         * lib/unictype/pr_xid_start.h: Likewise.
63488         * lib/unictype/pr_zero_width.h: Likewise.
63489         * lib/unictype/scripts.h: Likewise.
63490         * lib/unictype/scripts_byname.gperf: Likewise.
63491         * lib/unictype/sy_c_ident.h: Likewise.
63492         * lib/unictype/sy_c_whitespace.h: Likewise.
63493         * lib/unictype/sy_java_ident.h: Likewise.
63494         * lib/unictype/sy_java_whitespace.h: Likewise.
63495
63496         * lib/unictype/Makefile: New file.
63497         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
63498         glibc.
63499         * lib/unictype/3level.h: New file, copied from glibc.
63500         * lib/unictype/3levelbit.h: New file.
63501
63502 2007-11-11  Bruno Haible  <bruno@clisp.org>
63503
63504         * modules/gperf: New file.
63505         * modules/iconv_open (Depends-on): Add it.
63506         (Makefile.am): Remove the GPERF definition.
63507
63508 2007-11-11  Bruno Haible  <bruno@clisp.org>
63509
63510         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
63511         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
63512
63513 2007-11-11  Bruno Haible  <bruno@clisp.org>
63514
63515         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
63516         (usage): Remove function.
63517
63518 2007-11-11  Bruno Haible  <bruno@clisp.org>
63519
63520         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
63521         gl_FUNC_CEILF_LIBS.
63522         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
63523         gl_FUNC_CEIL_LIBS.
63524         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
63525         gl_FUNC_CEILL_LIBS.
63526         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
63527         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
63528         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
63529
63530 2007-11-11  Bruno Haible  <bruno@clisp.org>
63531
63532         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
63533         roundf were declared but do not exist on functions.
63534         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
63535         roundl were declared but do not exist on functions.
63536         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
63537         HAVE_FLOORL_AND_CEILL, respectively.
63538         Needed for Sun C on Solaris 10.
63539
63540 2007-11-11  Bruno Haible  <bruno@clisp.org>
63541
63542         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
63543         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
63544         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
63545         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
63546         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
63547         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
63548         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
63549         HAVE_DECL_ROUNDF.
63550         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
63551         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
63552         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
63553         of HAVE_DECL_ROUND*.
63554         * modules/math (Makefile.am): Update.
63555
63556 2007-11-10  Bruno Haible  <bruno@clisp.org>
63557
63558         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
63559         ptrdiff_t as m4/intl.m4.
63560
63561 2007-11-10  Jim Meyering  <meyering@redhat.com>
63562
63563         Avoid link failure for the argmatch test.
63564         * tests/test-argmatch.c (usage): Define function to avoid a link
63565         failure: argmatch_die requires a usage function.
63566
63567 2007-11-09  Bruno Haible  <bruno@clisp.org>
63568
63569         * doc/functions/snprintf.texi: Mention BeOS deficiency.
63570         * doc/functions/vsnprintf.texi: Likewise.
63571         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
63572         with a size argument < 2.
63573
63574 2007-11-09  Bruno Haible  <bruno@clisp.org>
63575
63576         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
63577         buffer. Fixes an inefficiency introduced on 2007-11-03.
63578
63579 2007-11-09  Bruno Haible  <bruno@clisp.org>
63580
63581         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
63582         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
63583
63584 2007-11-08  Jim Meyering  <meyering@redhat.com>
63585
63586         Change cache variable name prefix "jm_" to "gl_" everywhere.
63587         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
63588         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
63589         * m4/uptime.m4: s/gl_/jm_/
63590
63591 2007-11-07  Bruno Haible  <bruno@clisp.org>
63592
63593         Update to GNU gettext 0.17.
63594         * m4/intl.m4: Update to GNU gettext 0.17.
63595         * m4/po.m4: Likewise.
63596         * modules/gettext (Files): Remove m4/ulonglong.m4.
63597         (configure.ac): Require gettext infrastructure from version 0.17.
63598
63599 2007-11-06  Bruno Haible  <bruno@clisp.org>
63600
63601         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
63602         symbolic values are not defined in a public header.
63603         * lib/freadable.c (freadable) [QNX]: Likewise.
63604         * lib/freadahead.c (freadahead) [QNX]: Likewise.
63605         * lib/freading.c (freading) [QNX]: Likewise.
63606         * lib/fseterr.c (fseterr) [QNX]: Likewise.
63607         * lib/fwritable.c (fwritable) [QNX]: Likewise.
63608         * lib/fwriting.c (fwriting) [QNX]: Likewise.
63609         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
63610         Reported by Alain Magloire.
63611
63612         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
63613
63614 2007-11-05  Bruno Haible  <bruno@clisp.org>
63615
63616         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
63617         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
63618         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
63619         Reported by Eric Blake.
63620
63621 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63622             Bruno Haible  <bruno@clisp.org>
63623
63624         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
63625         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
63626         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
63627         (malloc): Undefine also before including <stdlib.h>.
63628         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
63629         Needed on OSF/1 4.0.
63630
63631 2007-11-05  Jim Meyering  <meyering@redhat.com>
63632
63633         git-version-gen: sync from coreutils.
63634         * build-aux/git-version-gen: Add comments.
63635         Change the first '-' to '.' in the snapshot version string,
63636         e.g., 6.9-377-08144 -> 6.9.377-08144
63637         Remove first parameter.
63638         Don't declare a version "-dirty" merely because a time
63639         stamp has changed.
63640
63641 2007-11-04  Bruno Haible  <bruno@clisp.org>
63642
63643         * lib/lock.h: Protect all macro definitions containing an 'if'
63644         statement through a "do { ... } while (0)".
63645         * lib/tls.h: Likewise.
63646
63647 2007-11-04  Bruno Haible  <bruno@clisp.org>
63648
63649         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
63650
63651 2007-11-04  Bruno Haible  <bruno@clisp.org>
63652
63653         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
63654         * modules/fprintf-posix (Depends-on): Add nocrash.
63655         * modules/snprintf-posix (Depends-on): Likewise.
63656         * modules/sprintf-posix (Depends-on): Likewise.
63657         * modules/vasnprintf-posix (Depends-on): Likewise.
63658         * modules/vasprintf-posix (Depends-on): Likewise.
63659         * modules/vfprintf-posix (Depends-on): Likewise.
63660         * modules/vsnprintf-posix (Depends-on): Likewise.
63661         * modules/vsprintf-posix (Depends-on): Likewise.
63662         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
63663         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
63664         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
63665         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
63666         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
63667         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
63668         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
63669
63670 2007-11-04  Bruno Haible  <bruno@clisp.org>
63671
63672         * modules/nocrash: New file.
63673         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
63674         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
63675
63676 2007-11-04  Bruno Haible  <bruno@clisp.org>
63677
63678         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
63679         precision handling.
63680         * tests/test-vasprintf-posix.c (test_function): Likewise.
63681         * tests/test-snprintf-posix.h (test_function): Likewise.
63682         * tests/test-sprintf-posix.h (test_function): Likewise.
63683
63684         Fix *printf behaviour for large precisions on mingw and BeOS.
63685         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
63686         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
63687         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
63688         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
63689         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
63690         gl_PRINTF_PRECISION and test its result. Invoke
63691         gl_PREREQ_VASNPRINTF_PRECISION.
63692         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63693         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63694         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63695         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63696         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63697         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63698         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63699         * doc/functions/fprintf.texi: Update.
63700         * doc/functions/printf.texi: Update.
63701         * doc/functions/snprintf.texi: Update.
63702         * doc/functions/sprintf.texi: Update.
63703         * doc/functions/vfprintf.texi: Update.
63704         * doc/functions/vprintf.texi: Update.
63705         * doc/functions/vsnprintf.texi: Update.
63706         * doc/functions/vsprintf.texi: Update.
63707
63708 2007-11-04  Bruno Haible  <bruno@clisp.org>
63709
63710         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
63711
63712 2007-11-04  Bruno Haible  <bruno@clisp.org>
63713
63714         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
63715         Reported by Sylvain Beucler <beuc@gnu.org>.
63716
63717 2007-11-03  Bruno Haible  <bruno@clisp.org>
63718
63719         * tests/test-fprintf-posix2.sh: New file.
63720         * tests/test-fprintf-posix2.c: New file.
63721         * modules/fprintf-posix-tests (Files): Add them.
63722         (TESTS): Add test-fprintf-posix2.sh.
63723         (configure.ac): Check for getrlimit and setrlimit.
63724         (check_PROGRAMS): Add test-fprintf-posix2.
63725
63726         * tests/test-printf-posix2.sh: New file.
63727         * tests/test-printf-posix2.c: New file.
63728         * modules/printf-posix-tests (Files): Add them.
63729         (TESTS): Add test-printf-posix2.sh.
63730         (configure.ac): Check for getrlimit and setrlimit.
63731         (check_PROGRAMS): Add test-printf-posix2.
63732
63733         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
63734         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
63735         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
63736         (decode_double): New function, copied from decode_long_double.
63737         (scale10_round_decimal_decoded): New function, extracted from
63738         scale10_round_decimal_long_double.
63739         (scale10_round_decimal_long_double): Use it.
63740         (scale10_round_decimal_double): New function.
63741         (floorlog10): New function.
63742         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
63743         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
63744         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
63745         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
63746         gl_PRINTF_ENOMEM and test its result. Invoke
63747         gl_PREREQ_VASNPRINTF_ENOMEM.
63748         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63749         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63750         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63751         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63752         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63753         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63754         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63755         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
63756         * modules/snprintf-posix (Depends-on): Likewise.
63757         * modules/sprintf-posix (Depends-on): Likewise.
63758         * modules/vasnprintf-posix (Depends-on): Likewise.
63759         * modules/vasprintf-posix (Depends-on): Likewise.
63760         * modules/vfprintf-posix (Depends-on): Likewise.
63761         * modules/vsnprintf-posix (Depends-on): Likewise.
63762         * modules/vsprintf-posix (Depends-on): Likewise.
63763         * doc/functions/fprintf.texi: Update.
63764         * doc/functions/printf.texi: Update.
63765         * doc/functions/snprintf.texi: Update.
63766         * doc/functions/sprintf.texi: Update.
63767         * doc/functions/vfprintf.texi: Update.
63768         * doc/functions/vprintf.texi: Update.
63769         * doc/functions/vsnprintf.texi: Update.
63770         * doc/functions/vsprintf.texi: Update.
63771
63772 2007-11-03  Bruno Haible  <bruno@clisp.org>
63773
63774         * modules/frexp-nolibm-tests: New file.
63775
63776         * modules/frexp-nolibm: New file.
63777         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
63778
63779 2007-11-03  Bruno Haible  <bruno@clisp.org>
63780
63781         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
63782         value is C99 compliant.
63783         Needed for OSF/1 5.1.
63784
63785 2007-11-03  Bruno Haible  <bruno@clisp.org>
63786
63787         Fix out-of-memory handling of vasnprintf.
63788         * lib/printf-parse.c: Include <errno.h>.
63789         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
63790         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
63791         is already set.
63792
63793 2007-11-02  Eric Blake  <ebb9@byu.net>
63794
63795         Fix tests on cygwin.
63796         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
63797
63798 2007-11-01  Bruno Haible  <bruno@clisp.org>
63799
63800         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
63801         warning.
63802         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
63803         needed for POSIX compatibility.
63804
63805 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
63806
63807         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
63808         for compatibility with GNU.
63809
63810 2007-11-01  Bruno Haible  <bruno@clisp.org>
63811
63812         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
63813         (putenv): Renamed from rpl_putenv. Change argument type from
63814         'const char *' to 'char *'.
63815         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
63816         of defining putenv in config.h, just set REPLACE_PUTENV.
63817         * modules/putenv (Depends-on): Add stdlib.
63818         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63819         (Include): Use <stdlib.h>.
63820         * lib/stdlib.in.h (putenv): New declaration.
63821         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
63822         REPLACE_PUTENV.
63823         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
63824         REPLACE_PUTENV.
63825         Needed for MacOS X 10.5.0.
63826         Reported by Peter O'Gorman <peter@pogma.com>.
63827
63828 2007-11-01  Jim Meyering  <meyering@redhat.com>
63829
63830         Treat an empty date string exactly like "0".
63831         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
63832         if the remaining date string (to be parsed) is empty, use "0".
63833         Reported by Mischa Molhoek and discussed in this thread:
63834         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
63835
63836 2007-10-31  Bruno Haible  <bruno@clisp.org>
63837
63838         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
63839         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
63840         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
63841         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
63842         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
63843         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
63844
63845 2007-10-31  Bruno Haible  <bruno@clisp.org>
63846
63847         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
63848         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
63849         (AC_TYPE_LONG_LONG_INT): Use it.
63850         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
63851         it as well.
63852         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
63853         to m4/longlong.m4.
63854         * modules/stdint (Files): Remove m4/ulonglong.m4.
63855         * modules/strtoull (Files): Use m4/longlong.m4 instead of
63856         m4/ulonglong.m4.
63857         * modules/strtoumax (Files): Likewise.
63858
63859 2007-10-30  Bruno Haible  <bruno@clisp.org>
63860
63861         * modules/xvasprintf-posix: New file.
63862         Suggested by Eric Blake.
63863
63864 2007-10-30  Bruno Haible  <bruno@clisp.org>
63865
63866         * modules/xprintf-posix-tests: New file.
63867         * tests/test-xprintf-posix.sh: New file.
63868         * tests/test-xprintf-posix.c: New file.
63869         * tests/test-xfprintf-posix.c: New file.
63870
63871         * modules/xprintf-posix: New file.
63872
63873 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63874
63875         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
63876         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
63877         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
63878
63879 2007-10-29  Bruno Haible  <bruno@clisp.org>
63880
63881         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
63882         contain the special marker '_cv_'.
63883         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
63884         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
63885         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
63886         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
63887         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
63888         Reported by Ralf Wildenhues.
63889
63890 2007-10-29  Bruno Haible  <bruno@clisp.org>
63891
63892         * gnulib-tool (func_import): When --lgpl is not specified, set
63893         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
63894         GPLv3.
63895         Reported by Simon Josefsson.
63896
63897 2007-10-28  Bruno Haible  <bruno@clisp.org>
63898
63899         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
63900         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
63901         HAVE_DECL_ISFINITE.
63902         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
63903         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
63904         HAVE_DECL_ISFINITE.
63905
63906 2007-10-28  Bruno Haible  <bruno@clisp.org>
63907
63908         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
63909         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
63910
63911 2007-10-28  Bruno Haible  <bruno@clisp.org>
63912
63913         Fix link errors with Sun C 5.0 on Solaris 10.
63914         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
63915         function is declared but not present in the compiler's libm.
63916         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
63917         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
63918         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
63919         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
63920         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
63921         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
63922         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
63923         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
63924         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
63925         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
63926         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
63927         HAVE_DECL_FLOORL.
63928
63929 2007-10-28  Bruno Haible  <bruno@clisp.org>
63930
63931         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
63932         gl_FUNC_FLOORL. Cache the result.
63933         (gl_FUNC_FLOORL): Use it.
63934         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
63935         gl_FUNC_CEILL. Cache the result.
63936         (gl_FUNC_CEILL): Use it.
63937
63938         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
63939         gl_FUNC_FLOOR. Cache the result.
63940         (gl_FUNC_FLOOR): Use it.
63941         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
63942         gl_FUNC_CEIL. Cache the result.
63943         (gl_FUNC_CEIL): Use it.
63944
63945         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
63946         gl_FUNC_FLOORF. Cache the result.
63947         (gl_FUNC_FLOORF): Use it.
63948         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
63949         gl_FUNC_CEILF. Cache the result.
63950         (gl_FUNC_CEILF): Use it.
63951
63952 2007-10-28  Bruno Haible  <bruno@clisp.org>
63953
63954         * gnulib-tool: Allow specifying the LGPL version number through
63955         --lgpl=2 or --lgpl=3.
63956         (func_usage): Document --lgpl with argument.
63957         Handle --lgpl=... arguments.
63958         (func_import): Recognize also gl_LGPL calls with an argument. When
63959         --lgpl=2 is used and the module's license is just LGPL, report an
63960         error. Set sed_transform_lib_file according to the lgpl variable. In
63961         the generated files, use --lgpl or gl_LGPL invocations with argument,
63962         if necessary.
63963         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
63964         an LGPv2+ license.
63965         * doc/gnulib-tool.texi (Modified imports): Update explanation of
63966         gl_LGPL macro.
63967
63968 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63969             Bruno Haible  <bruno@clisp.org>
63970
63971         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
63972         (u16_uctomb_aux): Likewise.
63973         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
63974         !HAVE_INLINE.
63975         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
63976
63977 2007-10-28  Bruno Haible  <bruno@clisp.org>
63978
63979         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
63980         Invoke AM_GETTEXT_OPTION if it exists.
63981         * modules/vasprintf: Likewise.
63982         * modules/verror: Likewise.
63983         * modules/xprintf: Likewise.
63984         * modules/xvasprintf: Likewise.
63985
63986 2007-10-27  Ben Pfaff  <blp@gnu.org>
63987
63988         * lib/math.in.h: Define isfinite macro and prototypes for
63989         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
63990         implementations.
63991         * m4/math_h.m4: New substitutions for isfinite module.
63992         * lib/isfinite.c: New file.
63993         * m4/isfinite.m4: New file.
63994         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
63995         * modules/isfinite: New file.
63996         * modules/isfinite-tests: New file.
63997         * tests/tests-isfinite.c: New file.
63998         * doc/functions/isfinite.texi: Mention isfinite module.
63999         * MODULES.html.sh: Mention new module.
64000
64001 2007-10-27  Ben Pfaff  <blp@gnu.org>
64002
64003         Ralf Wildenhues reported that Tru64 4.0D declares the round
64004         functions but does not have definitions.
64005         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
64006         cannot be found in any library, set the output variable to
64007         "missing" instead of "".
64008         * m4/round.m4: Also use our substitute if we cannot find round in
64009         any library, even if it is declared.
64010         * m4/roundf.m4: Likewise for roundf.
64011         * m4/roundl.m4: Likewise for roundl.
64012         * lib/math.in.h: Undefine roundf, round, roundl before defining
64013         their replacements, to allow for hypothetical systems where these
64014         may be defined as macros but not available in libraries.
64015
64016 2007-10-27  Bruno Haible  <bruno@clisp.org>
64017
64018         * doc/gnulib.texi: Invoke @firstparagraphindent.
64019         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
64020         changes in gnulib.
64021         (Source changes): New section.
64022
64023 2007-10-26  Bruno Haible  <bruno@clisp.org>
64024
64025         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
64026         borrowed from autoconf.
64027
64028 2007-10-26  Bruno Haible  <bruno@clisp.org>
64029
64030         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
64031         strerror returned the empty string. Needed on HP-UX 11.00.
64032
64033 2007-10-24  Micah Cowan  <micah@cowan.name>
64034
64035         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
64036         * build-aux/bootstrap: Remove support for now-unnecessary option,
64037         --cvs-user, and envvars CVS_USER, CVS_RSH.
64038
64039 2007-10-24  Jim Meyering  <meyering@redhat.com>
64040
64041         Avoid diagnostics from sha1sum when there is no cached checksum.
64042         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
64043         if the po.s1 file hasn't been created yet.
64044
64045         * build-aux/bootstrap: Sync from coreutils:
64046         2007-10-24  Jim Meyering  <meyering@redhat.com>
64047         Get gnulib from the git repository, not from an obsolete cvs one.
64048         * build-aux/bootstrap: Suggestion from Micah Cowan.
64049         2007-10-04  Jim Meyering  <jim@meyering.net>
64050         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
64051         (update_po_files): Work also when there are no .po files in po/.
64052
64053 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
64054
64055         * README: Append ".git" to git and cg examples.
64056         Problem reported by Benoit Sigoure.
64057
64058 2007-10-23  Micah Cowan  <micah@cowan.name>
64059
64060         * users.txt: Add wget.
64061
64062 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64063
64064         Fix linking of some unistdio tests on FreeBSD.
64065         * modules/unistdio/u16-vsnprintf-tests
64066         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
64067         * modules/unistdio/u16-vsprintf-tests
64068         (test_u16_vsnprintf1_LDADD): Likewise.
64069         * modules/unistdio/u32-vsnprintf-tests
64070         (test_u32_vsnprintf1_LDADD): Likewise.
64071         * modules/unistdio/u32-vsprintf-tests
64072         (test_u32_vsprintf1_LDADD): Likewise.
64073         * modules/unistdio/u8-vsnprintf-tests
64074         (test_u8_vsnprintf1_LDADD): Likewise.
64075         * modules/unistdio/u8-vsprintf-tests
64076         (test_u8_vsprintf1_LDADD): Likewise.
64077         * modules/unistdio/ulc-vsnprintf-tests
64078         (test_ulc_vsnprintf1_LDADD): Likewise.
64079         * modules/unistdio/ulc-vsprintf-tests
64080         (test_ulc_vsprintf1_LDADD): Likewise.
64081
64082         Fix linking of some uniconv tests on FreeBSD.
64083         * modules/uniconv/u16-conv-from-enc-tests
64084         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
64085         * modules/uniconv/u16-conv-to-enc-tests
64086         (test_u16_conv_to_enc_LDADD): Likewise.
64087         * modules/uniconv/u16-strconv-from-enc-tests
64088         (test_u16_strconv_from_enc_LDADD): Likewise.
64089         * modules/uniconv/u16-strconv-to-enc-tests
64090         (test_u16_strconv_to_enc_LDADD): Likewise.
64091         * modules/uniconv/u32-conv-from-enc-tests
64092         (test_u32_conv_from_enc_LDADD): Likewise.
64093         * modules/uniconv/u32-conv-to-enc-tests
64094         (test_u32_conv_to_enc_LDADD): Likewise.
64095         * modules/uniconv/u32-strconv-from-enc-tests
64096         (test_u32_strconv_from_enc_LDADD): Likewise.
64097         * modules/uniconv/u32-strconv-to-enc-tests
64098         (test_u32_strconv_to_enc_LDADD): Likewise.
64099         * modules/uniconv/u8-conv-from-enc-tests
64100         (test_u8_conv_from_enc_LDADD): Likewise.
64101         * modules/uniconv/u8-conv-to-enc-tests
64102         (test_u8_conv_to_enc_LDADD): Likewise.
64103         * modules/uniconv/u8-strconv-from-enc-tests
64104         (test_u8_strconv_from_enc_LDADD): Likewise.
64105         * modules/uniconv/u8-strconv-to-enc-tests
64106         (test_u8_strconv_to_enc_LDADD): Likewise.
64107
64108 2007-10-22  Bruno Haible  <bruno@clisp.org>
64109
64110         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
64111         size.
64112
64113 2007-10-22  Eric Blake  <ebb9@byu.net>
64114
64115         Tweak x*printf documentation.
64116         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
64117         variable name and comments.
64118         Suggested by Bruno Haible.
64119
64120 2007-10-22  Bruno Haible  <bruno@clisp.org>
64121
64122         * lib/acl.c (copy_acl): Fix file name in comment.
64123
64124 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
64125
64126         Fix Tru64 problem with stdbool.h.
64127         * lib/stdbool.in.h (false, true):
64128         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
64129         Don't declare as an enum in this situation; it runs afoul of Tru64.
64130         Problem reported by Steven M. Schweda in
64131         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
64132
64133 2007-10-22  Eric Blake  <ebb9@byu.net>
64134
64135         Also wrap vf?printf.
64136         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
64137         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
64138         (xvprintf, xvfprintf): New functions.
64139
64140 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64141
64142         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
64143         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
64144
64145         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
64146         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
64147
64148 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
64149
64150         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
64151         by Bruno Haible.
64152
64153 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64154
64155         * lib/getloadavg.c
64156         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
64157         Undef `sys' after including sys/table.h, for Tru64 4.0D.
64158
64159         * tests/test-i-ring.c: Work for C89.
64160
64161 2007-10-22  Bruno Haible  <bruno@clisp.org>
64162
64163         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
64164         -1u, in preprocessor expression, so that we don't test for the bug
64165         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
64166         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
64167
64168 2007-10-22  Eric Blake  <ebb9@byu.net>
64169
64170         * tests/test-yesno.sh: Silence stderr during test.
64171
64172 2007-10-22  Simon Josefsson  <simon@josefsson.org>
64173
64174         * modules/crypto/gc-camellia: New file.
64175
64176         * m4/gc-camellia.m4: New file.
64177
64178         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
64179
64180         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
64181
64182 2007-10-22  Simon Josefsson  <simon@josefsson.org>
64183
64184         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
64185         --help to stdout.  Reported by sms@antinode.org (Steven
64186         M. Schweda).
64187
64188 2007-10-22  Simon Josefsson  <simon@josefsson.org>
64189
64190         * users.txt: Fix link to libksba.
64191
64192 2007-10-21  Ben Pfaff  <blp@gnu.org>
64193
64194         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
64195         round.c roundf implementation that depends on floorf and ceilf to
64196         be tested unconditionally.
64197
64198 2007-10-21  Ben Pfaff  <blp@gnu.org>
64199
64200         * m4/check-libm-func.m4: Removed.
64201         * m4/check-math-lib.m4: New file.
64202         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
64203         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
64204         definition and lack of AC_LIBOBJ([roundf]).
64205         * m4/roundl.m4: Ditto, and similarly for roundl.
64206         * modules/round: Reference new m4 file.
64207         * modules/roundf: Ditto.
64208         * modules/roundl: Ditto.
64209         * tests/test-round2.c (main): Use ROUND instead of round.
64210         Bug report from Bruno Haible.
64211
64212 2007-10-21  Bruno Haible  <bruno@clisp.org>
64213
64214         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
64215         context.
64216
64217 2007-10-21  Bruno Haible  <bruno@clisp.org>
64218
64219         * tests/test-wcwidth.c (main): Allow negative result for some control
64220         characters.
64221
64222         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
64223         Needed on OSF/1 5.1.
64224
64225 2007-10-21  Bruno Haible  <bruno@clisp.org>
64226
64227         * tests/test-floorf1.c: Include isnanf.h.
64228         (main): Use isnanf() instead of isnan().
64229         * tests/test-ceilf1.c: Include isnanf.h.
64230         (main): Use isnanf() instead of isnan().
64231         * tests/test-truncf1.c: Include isnanf.h.
64232         (main): Use isnanf() instead of isnan().
64233         * tests/test-roundf1.c: Include isnanf.h.
64234         (main): Use isnanf() instead of isnan().
64235
64236 2007-10-21  Eric Blake  <ebb9@byu.net>
64237
64238         * users.txt: Update URL for m4.
64239
64240 2007-10-21  Bruno Haible  <bruno@clisp.org>
64241
64242         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
64243
64244 2007-10-21  Bruno Haible  <bruno@clisp.org>
64245
64246         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
64247         Git's management files if the CVS files are not present.
64248
64249 2007-10-20  Bruno Haible  <bruno@clisp.org>
64250
64251         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
64252         gcc-3.4.x.
64253
64254 2007-10-20  Ben Pfaff  <blp@gnu.org>
64255
64256         * lib/math.in.h: Declare round, roundf, roundl if we are providing
64257         implementations.
64258         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
64259         * lib/round.c: New file.
64260         * lib/roundf.c: New file.
64261         * lib/roundl.c: New file.
64262         * m4/round.m4: New file.
64263         * m4/roundf.m4: New file.
64264         * m4/roundl.m4: New file.
64265         * m4/check-libm-func-m4: New file.
64266         * modules/math: Replace round, roundf, roundl related @VARS@ in
64267         math.in.h.
64268         * modules/round: New file.
64269         * modules/round-tests: New file.
64270         * modules/roundf: New file.
64271         * modules/roundf-tests: New file.
64272         * modules/roundl: New file.
64273         * modules/roundl-tests: New file.
64274         * tests/test-round1.c: New file.
64275         * tests/test-round2.c: New file.
64276         * tests/test-roundf1.c: New file.
64277         * tests/test-roundf2.c: New file.
64278         * tests/test-roundl.c: New file.
64279         * doc/functions/round.texi: Mention round module.
64280         * doc/functions/roundf.texi: Mention roundf module.
64281         * doc/functions/roundl.texi: Mention roundl module.
64282         * MODULES.html.sh: Mention new modules.
64283         Thanks to Bruno Haible for suggestions.
64284
64285 2007-10-20  Jim Meyering  <meyering@redhat.com>
64286
64287         * lib/xprintf.c: Include <config.h> unconditionally.
64288
64289         Change xprintf's license to GPL.
64290         * modules/xprintf (License): s/LGPL/GPL/, since this module
64291         depends on modules (exit and exitfail) which are GPL.
64292         Suggestion from Bruno Haible.
64293
64294         xprintf fixes.
64295         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
64296         Use a clearer diagnostic.
64297         Patch from Bruno Haible.
64298
64299 2007-10-20  Bruno Haible  <bruno@clisp.org>
64300
64301         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
64302         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
64303         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64304
64305 2007-10-20  Bruno Haible  <bruno@clisp.org>
64306
64307         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
64308         precision in the comparison result > x - 1 or similar.
64309         * tests/test-ceilf2.c (correct_result_p): Likewise.
64310         * tests/test-truncf2.c (correct_result_p): Likewise.
64311         * tests/test-trunc2.c (correct_result_p): Likewise.
64312         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64313
64314 2007-10-20  Bruno Haible  <bruno@clisp.org>
64315
64316         * modules/ceil: New file.
64317         * m4/ceil.m4: New file.
64318         * doc/functions/ceil.texi: Mention the 'ceil' module.
64319
64320 2007-10-20  Bruno Haible  <bruno@clisp.org>
64321
64322         * modules/floor: New file.
64323         * m4/floor.m4: New file.
64324         * doc/functions/floor.texi: Mention the 'floor' module.
64325
64326 2007-10-20  Bruno Haible  <bruno@clisp.org>
64327
64328         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
64329         of %a.
64330         * modules/floorf-tests (Depends-on): Likewise.
64331         * modules/truncf-tests (Depends-on): Likewise.
64332         * modules/trunc-tests (Depends-on): Likewise.
64333         Reported by Ben Pfaff.
64334
64335 2007-10-19  Jim Meyering  <meyering@redhat.com>
64336
64337         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
64338         Don't bother testing specific errno values.  Just test ferror.
64339
64340         New module: xprintf
64341         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
64342
64343 2007-10-19  Bruno Haible  <bruno@clisp.org>
64344
64345         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
64346         syntax.
64347         * modules/javaexec (Makefile.am): Likewise.
64348         * modules/relocatable-prog (Makefile.am): Likewise.
64349         Suggested by Jim Meyering.
64350
64351 2007-10-18  Bruno Haible  <bruno@clisp.org>
64352
64353         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
64354         Reported by Jim Meyering.
64355
64356 2007-10-18  Eric Blake  <ebb9@byu.net>
64357
64358         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
64359
64360 2007-10-18  Bruno Haible  <bruno@clisp.org>
64361
64362         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
64363         the format string into writable memory. Needed in Fortify conditions.
64364
64365 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
64366             Bruno Haible  <bruno@clisp.org>
64367
64368         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
64369         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
64370         * modules/trim (Depends-on): Add mbchar.
64371         (configure.ac): Add gl_FUNC_MBRTOWC.
64372         (Makefile.am): Augment lib_SOURCES.
64373
64374 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
64375
64376         Modify glob.c to use fstatat and dirfd, to simplify it.
64377         Suggested by Eric Blake.
64378         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
64379         Don't include <stdbool.h>; not used.
64380         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
64381         (link_exists_p): Simplify implementation, since we can now assume
64382         dirfd and fstatat.
64383         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
64384
64385 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64386
64387         * gnulib-tool (func_get_dependencies): Fix sed script to
64388         match only tests.
64389
64390 2007-10-17  Bruno Haible  <bruno@clisp.org>
64391
64392         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
64393         allow locale names without encoding suffix.
64394         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
64395         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
64396
64397 2007-10-16  Bruno Haible  <bruno@clisp.org>
64398
64399         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
64400         * lib/getgroups.c (getgroups): Likewise.
64401         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
64402
64403 2007-10-16  Bruno Haible  <bruno@clisp.org>
64404
64405         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
64406         * modules/malloc-posix (License): Likewise.
64407         * modules/realloc-posix (License): Likewise.
64408         * modules/calloc-posix (License): Likewise.
64409         * modules/intprops (License): Change from GPL to LGPL, with
64410         Paul Eggert's approval.
64411
64412 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
64413
64414         Merge glibc changes into lib/glob.c.
64415
64416         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
64417         2007-10-15 04:59:03 UTC.  Here are the changes:
64418
64419         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
64420
64421         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
64422
64423         * lib/glob.c: Add some branch prediction throughout.
64424
64425         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
64426
64427         [BZ #5103]
64428         * lib/glob.c (glob): Recognize patterns starting \/.
64429
64430         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
64431
64432         [BZ #3996]
64433         * lib/glob.c (attribute_hidden): Define if not defined.
64434         (glob): Unescape dirname, filename or username when needed and not
64435         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
64436         is NULL.  Handle unescaped [ in pattern without closing ].
64437         Don't pass GLOB_CHECK down to recursive glob for directories.
64438         (__glob_pattern_type): New function.
64439         (__glob_pattern_p): Implement using __glob_pattern_type.
64440         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
64441         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
64442         Remove unreachable code.
64443
64444         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
64445
64446         * lib/glob.c (glob_in_dir): Add some comments and asserts to
64447         explain why there are no leaks.
64448
64449         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
64450
64451         [BZ #3253]
64452         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
64453         time, rather allocate increasingly bigger arrays of pointers, if
64454         possible with alloca, if too large with malloc.
64455
64456 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
64457
64458         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
64459         Problem reported by H.Merijn Brand in
64460         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
64461         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
64462         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
64463
64464 2007-10-15  Bruno Haible  <bruno@clisp.org>
64465
64466         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
64467         with explicit rpl_ prefix.
64468         * lib/fopen.c (fopen): Likewise.
64469         * lib/freopen.c (freopen): Likewise.
64470         * lib/iconv.c (iconv): Likewise.
64471         * lib/iconv_close.c (iconv_close): Likewise.
64472
64473 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64474
64475         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
64476
64477 2007-10-15  Bruno Haible  <bruno@clisp.org>
64478
64479         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
64480         <stddef.h> instead of <stdlib.h> since we only need NULL.
64481         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64482
64483 2007-10-15  Bruno Haible  <bruno@clisp.org>
64484
64485         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
64486         Replace paragraph talking about LIBOBJS.
64487         Reported by Colin Watson <cjwatson@debian.org>.
64488
64489 2007-10-15  Bruno Haible  <bruno@clisp.org>
64490
64491         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
64492         <stdlib.h> before using NULL.
64493
64494 2007-10-15  Simon Josefsson  <simon@josefsson.org>
64495
64496         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
64497         Reported by Albert Chin <china@thewrittenword.com>.
64498
64499 2007-10-14  Bruno Haible  <bruno@clisp.org>
64500
64501         * modules/iconv_open-utf-tests: New file.
64502         * tests/test-iconv-utf.c: New file.
64503
64504         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
64505         * modules/iconv_open-utf: New file.
64506         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
64507         (iconv, iconv_close): New declarations.
64508         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
64509         be defined.
64510         (iconv_open): Add special handling of conversion between UTF-8 and
64511         UTF-{16,32}{BE,LE}.
64512         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
64513         * lib/iconv_close.c: New file.
64514         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
64515         gl_FUNC_ICONV_OPEN.
64516         (gl_FUNC_ICONV_OPEN): Use it.
64517         (gl_FUNC_ICONV_OPEN_UTF): New macro.
64518         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
64519         and REPLACE_ICONV_UTF.
64520         * modules/iconv_open (Depends-on): Add c-strcase.
64521         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
64522         ICONV_CONST.
64523         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
64524
64525 2007-10-13  Albert Chin  <china@thewrittenword.com>
64526             Bruno Haible  <bruno@clisp.org>
64527
64528         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
64529         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
64530
64531 2007-10-13  Bruno Haible  <bruno@clisp.org>
64532
64533         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
64534         defined, use the ISO C99 inline semantics.
64535         * lib/argp.h (ARGP_EI): Likewise.
64536
64537 2007-10-13  Bruno Haible  <bruno@clisp.org>
64538
64539         Handle 'inline' change in gcc 4.3.0.
64540         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
64541         argp_fmtstream_write, argp_fmtstream_set_lmargin,
64542         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
64543         argp_fmtstream_point): Disable 'extern' declaration if the function
64544         definition is going to be provided inline.
64545         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
64546         semantics, not the ISO C99 inline semantics.
64547         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
64548         'extern' declaration if the function definition is going to be provided
64549         inline.
64550         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
64551         the GNU C inline semantics, not the ISO C99 inline semantics. With
64552         GCC 4.2, avoid a warning.
64553
64554 2007-10-13  Bruno Haible  <bruno@clisp.org>
64555
64556         * lib/freading.h (freading): Enable the use of __freading for
64557         glibc >= 2.7.
64558         * lib/freading.c (freading): Likewise.
64559
64560 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
64561
64562         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
64563         "warning: C99 inline functions are not supported; using GNU89".
64564
64565 2007-10-12  Bruno Haible  <bruno@clisp.org>
64566
64567         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
64568         of 2.
64569         * tests/test-ceilf2.c: New file.
64570         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
64571
64572         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
64573         * modules/ceilf-tests: Update.
64574
64575 2007-10-12  Bruno Haible  <bruno@clisp.org>
64576
64577         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
64578         of 2.
64579         * tests/test-floorf2.c: New file.
64580         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
64581
64582         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
64583         * modules/floorf-tests: Update.
64584
64585 2007-10-12  Bruno Haible  <bruno@clisp.org>
64586
64587         * tests/test-trunc2.c: New file.
64588         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
64589
64590         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
64591         * modules/trunc-tests: Update.
64592
64593 2007-10-12  Bruno Haible  <bruno@clisp.org>
64594
64595         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
64596         of 2.
64597         * tests/test-truncf2.c: New file.
64598         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
64599
64600         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
64601         * modules/truncf-tests: Update.
64602
64603 2007-10-11  Eric Blake  <ebb9@byu.net>
64604
64605         Don't claim strerror is broken on Interix.
64606         * doc/functions/strerror.texi (strerror): Known broken systems are
64607         now Solaris 8, and not Interix.
64608         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
64609         Interix on cross-compile.
64610         Reported by Martin Koeppe in
64611         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
64612
64613 2007-10-11  Bruno Haible  <bruno@clisp.org>
64614
64615         * modules/i-ring-tests: New file.
64616         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
64617         instead of assert.
64618
64619 2007-10-11  Bruno Haible  <bruno@clisp.org>
64620
64621         * modules/filenamecat-tests: New file.
64622         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
64623         * lib/filenamecat.c: Remove test code.
64624
64625 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
64626
64627         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
64628
64629         * lib/strerror.c: Include <string.h> always, to test interface,
64630         and to remove the need for the dummy.
64631         Include intprops.h to compute width instead of doing it ourselves
64632         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
64633         (strerror): Define it to return NULL if there's no system strerror.
64634         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
64635         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
64636         ancient pre-strerror Unix systems well any more.  Saying "unknown
64637         system error" is enough.
64638         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
64639         simpler strerror.c implementation.
64640         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
64641         Simplify the tests to reflect the simpler strerror implementation.
64642         * modules/strerror (Depends-on): Add intprops.
64643
64644 2007-10-09  Eric Blake  <ebb9@byu.net>
64645
64646         Silence test-fpending.
64647         * modules/fpending-tests (Files): Add wrapper script.
64648         * tests/test-fpending.sh: New file.
64649
64650 2007-10-09  Bruno Haible  <bruno@clisp.org>
64651
64652         * MODULES.html.sh (func_module): Don't create a hyperlink for
64653         function names like 'printf_frexp'.
64654         (Misc): Add crc, memxor.
64655         (Characteristics of floating types): New section.
64656         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
64657         isnanf-nolibm, signbit, trunc, truncf, truncl.
64658         (Enhancements for ISO C 99 functions): New subsection Input/output.
64659         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
64660         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
64661         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
64662         (Compatibility checks for POSIX:2001 functions): Add clock-time.
64663         (Enhancements for POSIX:2001 functions): Add chdir-long.
64664         (File system functions): Add areadlink, chdir-safer, read-file.
64665         Remove cycle-check.
64666         (File system as inode set): New section.
64667         (Date and time): Add gethrxtime.
64668         (Multithreading): Add openmp.
64669         (Internationalization functions): Add localename.
64670         (Unicode string functions): Add unistr/u*-mbsnlen.
64671         (Support for maintaining and releasing projects): Add git-version-gen.
64672         (Lone files): Remove directories.
64673
64674 2007-10-08  Ben Pfaff  <blp@gnu.org>
64675
64676         * lib/xmalloca.h: Fix typo in comment.
64677
64678 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
64679
64680         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
64681         when avoiding problems with integer overflow.  Use a portable test
64682         instead.
64683
64684 2007-10-08  Simon Josefsson  <simon@josefsson.org>
64685
64686         * modules/dummy (License): Change to LGPLv2+.
64687         * modules/float (License): Likewise
64688         * modules/realloc (License): Likewise
64689         * modules/stdlib (License): Likewise
64690
64691 2007-10-07  Bruno Haible  <bruno@clisp.org>
64692
64693         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
64694         * floor.c (TWO_MANT_DIG): Likewise.
64695         * ceil.c (TWO_MANT_DIG): Likewise.
64696         Reported by Ben Pfaff.
64697
64698 2007-10-07  Bruno Haible  <bruno@clisp.org>
64699
64700         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
64701         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
64702         * lib/frexp.c (FUNC): Likewise.
64703         * lib/printf-frexp.h (printf_frexp): Likewise.
64704         * lib/printf-frexpl.h (printf_frexpl): Likewise.
64705         * lib/printf-frexp.c (FUNC): Likewise.
64706         Suggested by Jim Meyering.
64707
64708 2007-10-07  Jim Meyering  <meyering@redhat.com>
64709
64710         Make xnanosleep's integer overflow test more robust.
64711         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
64712         so that gcc-4.3.0 doesn't optimize away this test for overflow.
64713
64714 2007-10-07  Bruno Haible  <bruno@clisp.org>
64715
64716         * NEWS: Mention the license change.
64717
64718         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
64719         abbreviations in the modules files.
64720
64721         Change copyright notice from GPLv2+ to GPLv3+.
64722         * README: Change copyright notice.
64723         * MODULES.html.sh: Likewise.
64724         * build-aux/bootstrap.conf: Likewise.
64725         * build-aux/config.libpath: Likewise.
64726         * build-aux/csharpcomp.sh.in: Likewise.
64727         * build-aux/csharpexec.sh.in: Likewise.
64728         * build-aux/install-reloc: Likewise.
64729         * build-aux/javacomp.sh.in: Likewise.
64730         * build-aux/javaexec.sh.in: Likewise.
64731         * build-aux/ldd.sh.in: Likewise.
64732         * build-aux/reloc-ldflags: Likewise.
64733         * build-aux/relocatable.sh.in: Likewise.
64734         * build-aux/x-to-1.in: Likewise.
64735         * check-module: Likewise.
64736         * config/srclistvars.sh: Likewise.
64737         * gnulib-tool: Likewise.
64738         * lib/acl-internal.h: Likewise.
64739         * lib/acl.c: Likewise.
64740         * lib/acl.h: Likewise.
64741         * lib/acl_entries.c: Likewise.
64742         * lib/areadlink-with-size.c: Likewise.
64743         * lib/areadlink.c: Likewise.
64744         * lib/areadlink.h: Likewise.
64745         * lib/argmatch.c: Likewise.
64746         * lib/argmatch.h: Likewise.
64747         * lib/argp-ba.c: Likewise.
64748         * lib/argp-eexst.c: Likewise.
64749         * lib/argp-fmtstream.c: Likewise.
64750         * lib/argp-fmtstream.h: Likewise.
64751         * lib/argp-fs-xinl.c: Likewise.
64752         * lib/argp-help.c: Likewise.
64753         * lib/argp-namefrob.h: Likewise.
64754         * lib/argp-parse.c: Likewise.
64755         * lib/argp-pin.c: Likewise.
64756         * lib/argp-pv.c: Likewise.
64757         * lib/argp-pvh.c: Likewise.
64758         * lib/argp-xinl.c: Likewise.
64759         * lib/argp.h: Likewise.
64760         * lib/at-func.c: Likewise.
64761         * lib/atanl.c: Likewise.
64762         * lib/backupfile.c: Likewise.
64763         * lib/backupfile.h: Likewise.
64764         * lib/basename.c: Likewise.
64765         * lib/binary-io.h: Likewise.
64766         * lib/byteswap.in.h: Likewise.
64767         * lib/c-stack.c: Likewise.
64768         * lib/c-stack.h: Likewise.
64769         * lib/c-strcasestr.c: Likewise.
64770         * lib/c-strcasestr.h: Likewise.
64771         * lib/c-strstr.c: Likewise.
64772         * lib/c-strstr.h: Likewise.
64773         * lib/c-strtod.c: Likewise.
64774         * lib/calloc.c: Likewise.
64775         * lib/canon-host.c: Likewise.
64776         * lib/canon-host.h: Likewise.
64777         * lib/canonicalize-lgpl.c: Likewise.
64778         * lib/canonicalize.c: Likewise.
64779         * lib/canonicalize.h: Likewise.
64780         * lib/ceil.c: Likewise.
64781         * lib/ceilf.c: Likewise.
64782         * lib/ceill.c: Likewise.
64783         * lib/chdir-long.c: Likewise.
64784         * lib/chdir-long.h: Likewise.
64785         * lib/chdir-safer.c: Likewise.
64786         * lib/chdir-safer.h: Likewise.
64787         * lib/chown.c: Likewise.
64788         * lib/classpath.c: Likewise.
64789         * lib/classpath.h: Likewise.
64790         * lib/clean-temp.c: Likewise.
64791         * lib/clean-temp.h: Likewise.
64792         * lib/cloexec.c: Likewise.
64793         * lib/close-stream.c: Likewise.
64794         * lib/closein.c: Likewise.
64795         * lib/closein.h: Likewise.
64796         * lib/closeout.c: Likewise.
64797         * lib/closeout.h: Likewise.
64798         * lib/concat-filename.c: Likewise.
64799         * lib/copy-file.c: Likewise.
64800         * lib/copy-file.h: Likewise.
64801         * lib/count-one-bits.h: Likewise.
64802         * lib/crc.c: Likewise.
64803         * lib/crc.h: Likewise.
64804         * lib/creat-safer.c: Likewise.
64805         * lib/csharpcomp.c: Likewise.
64806         * lib/csharpcomp.h: Likewise.
64807         * lib/csharpexec.c: Likewise.
64808         * lib/csharpexec.h: Likewise.
64809         * lib/cycle-check.c: Likewise.
64810         * lib/cycle-check.h: Likewise.
64811         * lib/diacrit.c: Likewise.
64812         * lib/diacrit.h: Likewise.
64813         * lib/diffseq.h: Likewise.
64814         * lib/dirchownmod.c: Likewise.
64815         * lib/dirent.in.h: Likewise.
64816         * lib/dirfd.c: Likewise.
64817         * lib/dirfd.h: Likewise.
64818         * lib/dirname.c: Likewise.
64819         * lib/dirname.h: Likewise.
64820         * lib/dummy.c: Likewise.
64821         * lib/dup-safer.c: Likewise.
64822         * lib/dup2.c: Likewise.
64823         * lib/eealloc.h: Likewise.
64824         * lib/error.c: Likewise.
64825         * lib/error.h: Likewise.
64826         * lib/euidaccess.c: Likewise.
64827         * lib/exclude.c: Likewise.
64828         * lib/exclude.h: Likewise.
64829         * lib/execute.c: Likewise.
64830         * lib/execute.h: Likewise.
64831         * lib/exitfail.c: Likewise.
64832         * lib/exitfail.h: Likewise.
64833         * lib/expl.c: Likewise.
64834         * lib/fatal-signal.c: Likewise.
64835         * lib/fatal-signal.h: Likewise.
64836         * lib/fbufmode.c: Likewise.
64837         * lib/fbufmode.h: Likewise.
64838         * lib/fchdir.c: Likewise.
64839         * lib/fchmodat.c: Likewise.
64840         * lib/fchownat.c: Likewise.
64841         * lib/fcntl--.h: Likewise.
64842         * lib/fcntl-safer.h: Likewise.
64843         * lib/fcntl.in.h: Likewise.
64844         * lib/fd-safer.c: Likewise.
64845         * lib/fflush.c: Likewise.
64846         * lib/file-has-acl.c: Likewise.
64847         * lib/file-set.c: Likewise.
64848         * lib/file-type.c: Likewise.
64849         * lib/file-type.h: Likewise.
64850         * lib/fileblocks.c: Likewise.
64851         * lib/filemode.c: Likewise.
64852         * lib/filemode.h: Likewise.
64853         * lib/filename.h: Likewise.
64854         * lib/filenamecat.c: Likewise.
64855         * lib/filenamecat.h: Likewise.
64856         * lib/findprog.c: Likewise.
64857         * lib/findprog.h: Likewise.
64858         * lib/float.in.h: Likewise.
64859         * lib/floor.c: Likewise.
64860         * lib/floorf.c: Likewise.
64861         * lib/floorl.c: Likewise.
64862         * lib/fopen-safer.c: Likewise.
64863         * lib/fopen.c: Likewise.
64864         * lib/fpending.c: Likewise.
64865         * lib/fpending.h: Likewise.
64866         * lib/fprintf.c: Likewise.
64867         * lib/fprintftime.h: Likewise.
64868         * lib/fpucw.h: Likewise.
64869         * lib/fpurge.c: Likewise.
64870         * lib/fpurge.h: Likewise.
64871         * lib/freadable.c: Likewise.
64872         * lib/freadable.h: Likewise.
64873         * lib/freadahead.c: Likewise.
64874         * lib/freadahead.h: Likewise.
64875         * lib/freading.c: Likewise.
64876         * lib/freading.h: Likewise.
64877         * lib/free.c: Likewise.
64878         * lib/freopen.c: Likewise.
64879         * lib/frexp.c: Likewise.
64880         * lib/frexpl.c: Likewise.
64881         * lib/fseek.c: Likewise.
64882         * lib/fseterr.c: Likewise.
64883         * lib/fseterr.h: Likewise.
64884         * lib/fstatat.c: Likewise.
64885         * lib/fstrcmp.c: Likewise.
64886         * lib/fstrcmp.h: Likewise.
64887         * lib/fsusage.c: Likewise.
64888         * lib/fsusage.h: Likewise.
64889         * lib/ftell.c: Likewise.
64890         * lib/ftello.c: Likewise.
64891         * lib/fts-cycle.c: Likewise.
64892         * lib/fts.c: Likewise.
64893         * lib/fts_.h: Likewise.
64894         * lib/full-read.c: Likewise.
64895         * lib/full-read.h: Likewise.
64896         * lib/full-write.c: Likewise.
64897         * lib/full-write.h: Likewise.
64898         * lib/fwritable.c: Likewise.
64899         * lib/fwritable.h: Likewise.
64900         * lib/fwriteerror.c: Likewise.
64901         * lib/fwriteerror.h: Likewise.
64902         * lib/fwriting.c: Likewise.
64903         * lib/fwriting.h: Likewise.
64904         * lib/gcd.c: Likewise.
64905         * lib/gcd.h: Likewise.
64906         * lib/getcwd.c: Likewise.
64907         * lib/getdate.h: Likewise.
64908         * lib/getdate.y: Likewise.
64909         * lib/getdomainname.c: Likewise.
64910         * lib/getdomainname.h: Likewise.
64911         * lib/getgroups.c: Likewise.
64912         * lib/gethostname.c: Likewise.
64913         * lib/gethrxtime.c: Likewise.
64914         * lib/gethrxtime.h: Likewise.
64915         * lib/getloadavg.c: Likewise.
64916         * lib/getndelim2.c: Likewise.
64917         * lib/getndelim2.h: Likewise.
64918         * lib/getnline.c: Likewise.
64919         * lib/getnline.h: Likewise.
64920         * lib/getopt.c: Likewise.
64921         * lib/getopt.in.h: Likewise.
64922         * lib/getopt1.c: Likewise.
64923         * lib/getopt_int.h: Likewise.
64924         * lib/getpagesize.h: Likewise.
64925         * lib/getsubopt.c: Likewise.
64926         * lib/gettime.c: Likewise.
64927         * lib/getugroups.c: Likewise.
64928         * lib/getugroups.h: Likewise.
64929         * lib/getusershell.c: Likewise.
64930         * lib/gl_anyavltree_list1.h: Likewise.
64931         * lib/gl_anyavltree_list2.h: Likewise.
64932         * lib/gl_anyhash_list1.h: Likewise.
64933         * lib/gl_anyhash_list2.h: Likewise.
64934         * lib/gl_anylinked_list1.h: Likewise.
64935         * lib/gl_anylinked_list2.h: Likewise.
64936         * lib/gl_anyrbtree_list1.h: Likewise.
64937         * lib/gl_anyrbtree_list2.h: Likewise.
64938         * lib/gl_anytree_list1.h: Likewise.
64939         * lib/gl_anytree_list2.h: Likewise.
64940         * lib/gl_anytree_oset.h: Likewise.
64941         * lib/gl_anytreehash_list1.h: Likewise.
64942         * lib/gl_anytreehash_list2.h: Likewise.
64943         * lib/gl_array_list.c: Likewise.
64944         * lib/gl_array_list.h: Likewise.
64945         * lib/gl_array_oset.c: Likewise.
64946         * lib/gl_array_oset.h: Likewise.
64947         * lib/gl_avltree_list.c: Likewise.
64948         * lib/gl_avltree_list.h: Likewise.
64949         * lib/gl_avltree_oset.c: Likewise.
64950         * lib/gl_avltree_oset.h: Likewise.
64951         * lib/gl_avltreehash_list.c: Likewise.
64952         * lib/gl_avltreehash_list.h: Likewise.
64953         * lib/gl_carray_list.c: Likewise.
64954         * lib/gl_carray_list.h: Likewise.
64955         * lib/gl_linked_list.c: Likewise.
64956         * lib/gl_linked_list.h: Likewise.
64957         * lib/gl_linkedhash_list.c: Likewise.
64958         * lib/gl_linkedhash_list.h: Likewise.
64959         * lib/gl_list.c: Likewise.
64960         * lib/gl_list.h: Likewise.
64961         * lib/gl_oset.c: Likewise.
64962         * lib/gl_oset.h: Likewise.
64963         * lib/gl_rbtree_list.c: Likewise.
64964         * lib/gl_rbtree_list.h: Likewise.
64965         * lib/gl_rbtree_oset.c: Likewise.
64966         * lib/gl_rbtree_oset.h: Likewise.
64967         * lib/gl_rbtreehash_list.c: Likewise.
64968         * lib/gl_rbtreehash_list.h: Likewise.
64969         * lib/gl_sublist.c: Likewise.
64970         * lib/gl_sublist.h: Likewise.
64971         * lib/group-member.c: Likewise.
64972         * lib/group-member.h: Likewise.
64973         * lib/hard-locale.c: Likewise.
64974         * lib/hard-locale.h: Likewise.
64975         * lib/hash-pjw.c: Likewise.
64976         * lib/hash-pjw.h: Likewise.
64977         * lib/hash-triple.c: Likewise.
64978         * lib/hash.c: Likewise.
64979         * lib/hash.h: Likewise.
64980         * lib/human.c: Likewise.
64981         * lib/human.h: Likewise.
64982         * lib/i-ring.c: Likewise.
64983         * lib/i-ring.h: Likewise.
64984         * lib/idcache.c: Likewise.
64985         * lib/imaxabs.c: Likewise.
64986         * lib/imaxdiv.c: Likewise.
64987         * lib/inet_pton.c: Likewise.
64988         * lib/inet_pton.h: Likewise.
64989         * lib/intprops.h: Likewise.
64990         * lib/inttostr.c: Likewise.
64991         * lib/inttostr.h: Likewise.
64992         * lib/inttypes.in.h: Likewise.
64993         * lib/isapipe.c: Likewise.
64994         * lib/isdir.c: Likewise.
64995         * lib/isnan.c: Likewise.
64996         * lib/isnan.h: Likewise.
64997         * lib/isnanf.c: Likewise.
64998         * lib/isnanf.h: Likewise.
64999         * lib/isnanl-nolibm.h: Likewise.
65000         * lib/isnanl.c: Likewise.
65001         * lib/isnanl.h: Likewise.
65002         * lib/javacomp.c: Likewise.
65003         * lib/javacomp.h: Likewise.
65004         * lib/javaexec.c: Likewise.
65005         * lib/javaexec.h: Likewise.
65006         * lib/javaversion.c: Likewise.
65007         * lib/javaversion.h: Likewise.
65008         * lib/javaversion.java: Likewise.
65009         * lib/lbrkprop.h: Likewise.
65010         * lib/lchmod.h: Likewise.
65011         * lib/lchown.c: Likewise.
65012         * lib/ldexpl.c: Likewise.
65013         * lib/linebreak.c: Likewise.
65014         * lib/linebreak.h: Likewise.
65015         * lib/linebuffer.c: Likewise.
65016         * lib/linebuffer.h: Likewise.
65017         * lib/locale.in.h: Likewise.
65018         * lib/logl.c: Likewise.
65019         * lib/long-options.c: Likewise.
65020         * lib/long-options.h: Likewise.
65021         * lib/lstat.c: Likewise.
65022         * lib/lstat.h: Likewise.
65023         * lib/math.in.h: Likewise.
65024         * lib/mbchar.c: Likewise.
65025         * lib/mbchar.h: Likewise.
65026         * lib/mbfile.h: Likewise.
65027         * lib/mbiter.h: Likewise.
65028         * lib/mbscasecmp.c: Likewise.
65029         * lib/mbscasestr.c: Likewise.
65030         * lib/mbschr.c: Likewise.
65031         * lib/mbscspn.c: Likewise.
65032         * lib/mbslen.c: Likewise.
65033         * lib/mbsncasecmp.c: Likewise.
65034         * lib/mbsnlen.c: Likewise.
65035         * lib/mbspbrk.c: Likewise.
65036         * lib/mbspcasecmp.c: Likewise.
65037         * lib/mbsrchr.c: Likewise.
65038         * lib/mbssep.c: Likewise.
65039         * lib/mbsspn.c: Likewise.
65040         * lib/mbsstr.c: Likewise.
65041         * lib/mbstok_r.c: Likewise.
65042         * lib/mbswidth.c: Likewise.
65043         * lib/mbswidth.h: Likewise.
65044         * lib/mbuiter.h: Likewise.
65045         * lib/memcasecmp.c: Likewise.
65046         * lib/memcasecmp.h: Likewise.
65047         * lib/memchr.c: Likewise.
65048         * lib/memcmp.c: Likewise.
65049         * lib/memcoll.c: Likewise.
65050         * lib/memcoll.h: Likewise.
65051         * lib/memcpy.c: Likewise.
65052         * lib/memrchr.c: Likewise.
65053         * lib/mkancesdirs.c: Likewise.
65054         * lib/mkdir-p.c: Likewise.
65055         * lib/mkdir-p.h: Likewise.
65056         * lib/mkdir.c: Likewise.
65057         * lib/mkdirat.c: Likewise.
65058         * lib/mkdtemp.c: Likewise.
65059         * lib/mkstemp-safer.c: Likewise.
65060         * lib/mkstemp.c: Likewise.
65061         * lib/modechange.c: Likewise.
65062         * lib/modechange.h: Likewise.
65063         * lib/mountlist.c: Likewise.
65064         * lib/mountlist.h: Likewise.
65065         * lib/mpsort.c: Likewise.
65066         * lib/nanosleep.c: Likewise.
65067         * lib/obstack.c: Likewise.
65068         * lib/obstack.h: Likewise.
65069         * lib/open-safer.c: Likewise.
65070         * lib/open.c: Likewise.
65071         * lib/openat-die.c: Likewise.
65072         * lib/openat-priv.h: Likewise.
65073         * lib/openat-proc.c: Likewise.
65074         * lib/openat.c: Likewise.
65075         * lib/openat.h: Likewise.
65076         * lib/pagealign_alloc.c: Likewise.
65077         * lib/pagealign_alloc.h: Likewise.
65078         * lib/physmem.c: Likewise.
65079         * lib/physmem.h: Likewise.
65080         * lib/pipe-safer.c: Likewise.
65081         * lib/pipe.c: Likewise.
65082         * lib/pipe.h: Likewise.
65083         * lib/posixtm.c: Likewise.
65084         * lib/posixtm.h: Likewise.
65085         * lib/posixver.c: Likewise.
65086         * lib/printf-frexp.c: Likewise.
65087         * lib/printf-frexp.h: Likewise.
65088         * lib/printf-frexpl.c: Likewise.
65089         * lib/printf-frexpl.h: Likewise.
65090         * lib/printf.c: Likewise.
65091         * lib/progname.c: Likewise.
65092         * lib/progname.h: Likewise.
65093         * lib/progreloc.c: Likewise.
65094         * lib/putenv.c: Likewise.
65095         * lib/quote.c: Likewise.
65096         * lib/quote.h: Likewise.
65097         * lib/quotearg.c: Likewise.
65098         * lib/quotearg.h: Likewise.
65099         * lib/raise.c: Likewise.
65100         * lib/readline.c: Likewise.
65101         * lib/readline.h: Likewise.
65102         * lib/readlink.c: Likewise.
65103         * lib/readtokens.c: Likewise.
65104         * lib/readtokens.h: Likewise.
65105         * lib/readtokens0.c: Likewise.
65106         * lib/readtokens0.h: Likewise.
65107         * lib/readutmp.c: Likewise.
65108         * lib/readutmp.h: Likewise.
65109         * lib/realloc.c: Likewise.
65110         * lib/relocwrapper.c: Likewise.
65111         * lib/rename-dest-slash.c: Likewise.
65112         * lib/rename.c: Likewise.
65113         * lib/rmdir.c: Likewise.
65114         * lib/rpmatch.c: Likewise.
65115         * lib/safe-read.c: Likewise.
65116         * lib/safe-read.h: Likewise.
65117         * lib/safe-write.c: Likewise.
65118         * lib/safe-write.h: Likewise.
65119         * lib/same-inode.h: Likewise.
65120         * lib/same.c: Likewise.
65121         * lib/same.h: Likewise.
65122         * lib/save-cwd.c: Likewise.
65123         * lib/save-cwd.h: Likewise.
65124         * lib/savedir.c: Likewise.
65125         * lib/savedir.h: Likewise.
65126         * lib/savewd.c: Likewise.
65127         * lib/savewd.h: Likewise.
65128         * lib/search.in.h: Likewise.
65129         * lib/setenv.c: Likewise.
65130         * lib/setenv.h: Likewise.
65131         * lib/settime.c: Likewise.
65132         * lib/sh-quote.c: Likewise.
65133         * lib/sh-quote.h: Likewise.
65134         * lib/sig2str.c: Likewise.
65135         * lib/sig2str.h: Likewise.
65136         * lib/signal.in.h: Likewise.
65137         * lib/signbitd.c: Likewise.
65138         * lib/signbitf.c: Likewise.
65139         * lib/signbitl.c: Likewise.
65140         * lib/sigprocmask.c: Likewise.
65141         * lib/sincosl.c: Likewise.
65142         * lib/sleep.c: Likewise.
65143         * lib/sprintf.c: Likewise.
65144         * lib/sqrtl.c: Likewise.
65145         * lib/stat-time.h: Likewise.
65146         * lib/stdio--.h: Likewise.
65147         * lib/stdio-safer.h: Likewise.
65148         * lib/stdlib--.h: Likewise.
65149         * lib/stdlib-safer.h: Likewise.
65150         * lib/stdlib.in.h: Likewise.
65151         * lib/stpcpy.c: Likewise.
65152         * lib/stpncpy.c: Likewise.
65153         * lib/strchrnul.c: Likewise.
65154         * lib/strcspn.c: Likewise.
65155         * lib/strerror.c: Likewise.
65156         * lib/strftime.c: Likewise.
65157         * lib/strftime.h: Likewise.
65158         * lib/striconveh.c: Likewise.
65159         * lib/striconveh.h: Likewise.
65160         * lib/striconveha.c: Likewise.
65161         * lib/striconveha.h: Likewise.
65162         * lib/stripslash.c: Likewise.
65163         * lib/strnlen1.c: Likewise.
65164         * lib/strnlen1.h: Likewise.
65165         * lib/strtod.c: Likewise.
65166         * lib/strtoimax.c: Likewise.
65167         * lib/strtok_r.c: Likewise.
65168         * lib/strtol.c: Likewise.
65169         * lib/strtoll.c: Likewise.
65170         * lib/strtoul.c: Likewise.
65171         * lib/strtoull.c: Likewise.
65172         * lib/sysexits.in.h: Likewise.
65173         * lib/tempname.c: Likewise.
65174         * lib/tempname.h: Likewise.
65175         * lib/timespec.h: Likewise.
65176         * lib/tls.c: Likewise.
65177         * lib/tls.h: Likewise.
65178         * lib/tmpdir.c: Likewise.
65179         * lib/tmpdir.h: Likewise.
65180         * lib/tmpfile-safer.c: Likewise.
65181         * lib/tmpfile.c: Likewise.
65182         * lib/trigl.c: Likewise.
65183         * lib/trigl.h: Likewise.
65184         * lib/trim.c: Likewise.
65185         * lib/trim.h: Likewise.
65186         * lib/trunc.c: Likewise.
65187         * lib/truncf.c: Likewise.
65188         * lib/truncl.c: Likewise.
65189         * lib/tsearch.c: Likewise.
65190         * lib/unicodeio.c: Likewise.
65191         * lib/unicodeio.h: Likewise.
65192         * lib/unistd--.h: Likewise.
65193         * lib/unistd-safer.h: Likewise.
65194         * lib/unistdio/ulc-fprintf.c: Likewise.
65195         * lib/unistdio/ulc-vfprintf.c: Likewise.
65196         * lib/unlinkdir.c: Likewise.
65197         * lib/unlinkdir.h: Likewise.
65198         * lib/unlocked-io.h: Likewise.
65199         * lib/unsetenv.c: Likewise.
65200         * lib/userspec.c: Likewise.
65201         * lib/utime.c: Likewise.
65202         * lib/utimecmp.c: Likewise.
65203         * lib/utimecmp.h: Likewise.
65204         * lib/utimens.c: Likewise.
65205         * lib/verify.h: Likewise.
65206         * lib/verror.c: Likewise.
65207         * lib/verror.h: Likewise.
65208         * lib/version-etc-fsf.c: Likewise.
65209         * lib/version-etc.c: Likewise.
65210         * lib/version-etc.h: Likewise.
65211         * lib/vfprintf.c: Likewise.
65212         * lib/vprintf.c: Likewise.
65213         * lib/vsprintf.c: Likewise.
65214         * lib/w32spawn.h: Likewise.
65215         * lib/wait-process.c: Likewise.
65216         * lib/wait-process.h: Likewise.
65217         * lib/wcwidth.c: Likewise.
65218         * lib/write-any-file.c: Likewise.
65219         * lib/xalloc-die.c: Likewise.
65220         * lib/xalloc.h: Likewise.
65221         * lib/xasprintf.c: Likewise.
65222         * lib/xgetcwd.c: Likewise.
65223         * lib/xgetcwd.h: Likewise.
65224         * lib/xgetdomainname.c: Likewise.
65225         * lib/xgetdomainname.h: Likewise.
65226         * lib/xgethostname.c: Likewise.
65227         * lib/xmalloc.c: Likewise.
65228         * lib/xmalloca.c: Likewise.
65229         * lib/xmalloca.h: Likewise.
65230         * lib/xmemcoll.c: Likewise.
65231         * lib/xnanosleep.c: Likewise.
65232         * lib/xreadlink.c: Likewise.
65233         * lib/xreadlink.h: Likewise.
65234         * lib/xsetenv.c: Likewise.
65235         * lib/xsetenv.h: Likewise.
65236         * lib/xstriconv.c: Likewise.
65237         * lib/xstriconv.h: Likewise.
65238         * lib/xstrndup.c: Likewise.
65239         * lib/xstrndup.h: Likewise.
65240         * lib/xstrtod.c: Likewise.
65241         * lib/xstrtod.h: Likewise.
65242         * lib/xstrtol-error.c: Likewise.
65243         * lib/xstrtol.c: Likewise.
65244         * lib/xstrtol.h: Likewise.
65245         * lib/xtime.h: Likewise.
65246         * lib/xvasprintf.c: Likewise.
65247         * lib/xvasprintf.h: Likewise.
65248         * lib/yesno.c: Likewise.
65249         * lib/yesno.h: Likewise.
65250         * posix-modules: Likewise.
65251         * tests/test-alloca-opt.c: Likewise.
65252         * tests/test-arcfour.c: Likewise.
65253         * tests/test-arctwo.c: Likewise.
65254         * tests/test-argmatch.c: Likewise.
65255         * tests/test-argp-2.sh: Likewise.
65256         * tests/test-argp.c: Likewise.
65257         * tests/test-arpa_inet.c: Likewise.
65258         * tests/test-array_list.c: Likewise.
65259         * tests/test-array_oset.c: Likewise.
65260         * tests/test-atexit.c: Likewise.
65261         * tests/test-avltree_list.c: Likewise.
65262         * tests/test-avltree_oset.c: Likewise.
65263         * tests/test-avltreehash_list.c: Likewise.
65264         * tests/test-base64.c: Likewise.
65265         * tests/test-binary-io.c: Likewise.
65266         * tests/test-byteswap.c: Likewise.
65267         * tests/test-c-ctype.c: Likewise.
65268         * tests/test-c-strcasecmp.c: Likewise.
65269         * tests/test-c-strcasestr.c: Likewise.
65270         * tests/test-c-strncasecmp.c: Likewise.
65271         * tests/test-c-strstr.c: Likewise.
65272         * tests/test-canonicalize-lgpl.c: Likewise.
65273         * tests/test-canonicalize.c: Likewise.
65274         * tests/test-carray_list.c: Likewise.
65275         * tests/test-ceilf.c: Likewise.
65276         * tests/test-ceill.c: Likewise.
65277         * tests/test-count-one-bits.c: Likewise.
65278         * tests/test-crc.c: Likewise.
65279         * tests/test-dirname.c: Likewise.
65280         * tests/test-fbufmode.c: Likewise.
65281         * tests/test-fcntl.c: Likewise.
65282         * tests/test-fflush.c: Likewise.
65283         * tests/test-floorf.c: Likewise.
65284         * tests/test-floorl.c: Likewise.
65285         * tests/test-fopen.c: Likewise.
65286         * tests/test-fprintf-posix.c: Likewise.
65287         * tests/test-fprintf-posix.h: Likewise.
65288         * tests/test-fpurge.c: Likewise.
65289         * tests/test-freadable.c: Likewise.
65290         * tests/test-freadahead.c: Likewise.
65291         * tests/test-freading.c: Likewise.
65292         * tests/test-freopen.c: Likewise.
65293         * tests/test-frexp.c: Likewise.
65294         * tests/test-frexpl.c: Likewise.
65295         * tests/test-fseek.c: Likewise.
65296         * tests/test-fseeko.c: Likewise.
65297         * tests/test-fseterr.c: Likewise.
65298         * tests/test-fstrcmp.c: Likewise.
65299         * tests/test-ftell.c: Likewise.
65300         * tests/test-ftello.c: Likewise.
65301         * tests/test-fwritable.c: Likewise.
65302         * tests/test-fwriting.c: Likewise.
65303         * tests/test-getaddrinfo.c: Likewise.
65304         * tests/test-getpass.c: Likewise.
65305         * tests/test-gettimeofday.c: Likewise.
65306         * tests/test-hmac-md5.c: Likewise.
65307         * tests/test-hmac-sha1.c: Likewise.
65308         * tests/test-iconv.c: Likewise.
65309         * tests/test-iconvme.c: Likewise.
65310         * tests/test-inttypes.c: Likewise.
65311         * tests/test-isnan.c: Likewise.
65312         * tests/test-isnanf.c: Likewise.
65313         * tests/test-isnanl-nolibm.c: Likewise.
65314         * tests/test-isnanl.c: Likewise.
65315         * tests/test-isnanl.h: Likewise.
65316         * tests/test-ldexpl.c: Likewise.
65317         * tests/test-linked_list.c: Likewise.
65318         * tests/test-linkedhash_list.c: Likewise.
65319         * tests/test-locale.c: Likewise.
65320         * tests/test-localename.c: Likewise.
65321         * tests/test-lock.c: Likewise.
65322         * tests/test-lseek.c: Likewise.
65323         * tests/test-malloca.c: Likewise.
65324         * tests/test-math.c: Likewise.
65325         * tests/test-mbscasecmp.c: Likewise.
65326         * tests/test-mbscasestr1.c: Likewise.
65327         * tests/test-mbscasestr2.c: Likewise.
65328         * tests/test-mbscasestr3.c: Likewise.
65329         * tests/test-mbscasestr4.c: Likewise.
65330         * tests/test-mbschr.c: Likewise.
65331         * tests/test-mbscspn.c: Likewise.
65332         * tests/test-mbsncasecmp.c: Likewise.
65333         * tests/test-mbspbrk.c: Likewise.
65334         * tests/test-mbspcasecmp.c: Likewise.
65335         * tests/test-mbsrchr.c: Likewise.
65336         * tests/test-mbsspn.c: Likewise.
65337         * tests/test-mbsstr1.c: Likewise.
65338         * tests/test-mbsstr2.c: Likewise.
65339         * tests/test-mbsstr3.c: Likewise.
65340         * tests/test-md5.c: Likewise.
65341         * tests/test-memmem.c: Likewise.
65342         * tests/test-netinet_in.c: Likewise.
65343         * tests/test-open.c: Likewise.
65344         * tests/test-printf-frexp.c: Likewise.
65345         * tests/test-printf-frexpl.c: Likewise.
65346         * tests/test-printf-posix.c: Likewise.
65347         * tests/test-printf-posix.h: Likewise.
65348         * tests/test-rbtree_list.c: Likewise.
65349         * tests/test-rbtree_oset.c: Likewise.
65350         * tests/test-rbtreehash_list.c: Likewise.
65351         * tests/test-read-file.c: Likewise.
65352         * tests/test-rijndael.c: Likewise.
65353         * tests/test-search.c: Likewise.
65354         * tests/test-signbit.c: Likewise.
65355         * tests/test-sleep.c: Likewise.
65356         * tests/test-snprintf-posix.c: Likewise.
65357         * tests/test-snprintf-posix.h: Likewise.
65358         * tests/test-snprintf.c: Likewise.
65359         * tests/test-sprintf-posix.c: Likewise.
65360         * tests/test-sprintf-posix.h: Likewise.
65361         * tests/test-stat-time.c: Likewise.
65362         * tests/test-stdbool.c: Likewise.
65363         * tests/test-stdint.c: Likewise.
65364         * tests/test-stdio.c: Likewise.
65365         * tests/test-stdlib.c: Likewise.
65366         * tests/test-stpncpy.c: Likewise.
65367         * tests/test-strcasestr.c: Likewise.
65368         * tests/test-striconv.c: Likewise.
65369         * tests/test-striconveh.c: Likewise.
65370         * tests/test-striconveha.c: Likewise.
65371         * tests/test-string.c: Likewise.
65372         * tests/test-sys_select.c: Likewise.
65373         * tests/test-sys_socket.c: Likewise.
65374         * tests/test-sys_stat.c: Likewise.
65375         * tests/test-sys_time.c: Likewise.
65376         * tests/test-sysexits.c: Likewise.
65377         * tests/test-time.c: Likewise.
65378         * tests/test-tls.c: Likewise.
65379         * tests/test-trunc.c: Likewise.
65380         * tests/test-truncf.c: Likewise.
65381         * tests/test-truncl.c: Likewise.
65382         * tests/test-unistd.c: Likewise.
65383         * tests/test-vasnprintf-posix.c: Likewise.
65384         * tests/test-vasnprintf-posix2.c: Likewise.
65385         * tests/test-vasnprintf.c: Likewise.
65386         * tests/test-vasprintf-posix.c: Likewise.
65387         * tests/test-vasprintf.c: Likewise.
65388         * tests/test-verify.c: Likewise.
65389         * tests/test-vfprintf-posix.c: Likewise.
65390         * tests/test-vprintf-posix.c: Likewise.
65391         * tests/test-vsnprintf-posix.c: Likewise.
65392         * tests/test-vsnprintf.c: Likewise.
65393         * tests/test-vsprintf-posix.c: Likewise.
65394         * tests/test-wchar.c: Likewise.
65395         * tests/test-wctype.c: Likewise.
65396         * tests/test-wcwidth.c: Likewise.
65397         * tests/test-xstrtol.c: Likewise.
65398         * tests/test-xvasprintf.c: Likewise.
65399         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
65400         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
65401         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
65402         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
65403         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
65404         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
65405         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
65406         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
65407         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
65408         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
65409         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
65410         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
65411         * tests/uniname/test-uninames.c: Likewise.
65412         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
65413         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
65414         * tests/unistdio/test-u16-printf1.h: Likewise.
65415         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
65416         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
65417         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
65418         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
65419         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
65420         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
65421         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
65422         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
65423         * tests/unistdio/test-u32-printf1.h: Likewise.
65424         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
65425         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
65426         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
65427         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
65428         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
65429         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
65430         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
65431         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
65432         * tests/unistdio/test-u8-printf1.h: Likewise.
65433         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
65434         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
65435         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
65436         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
65437         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
65438         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
65439         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
65440         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
65441         * tests/unistdio/test-ulc-printf1.h: Likewise.
65442         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
65443         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
65444         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
65445         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
65446         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
65447         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
65448         * tests/uniwidth/test-u16-strwidth.c: Likewise.
65449         * tests/uniwidth/test-u16-width.c: Likewise.
65450         * tests/uniwidth/test-u32-strwidth.c: Likewise.
65451         * tests/uniwidth/test-u32-width.c: Likewise.
65452         * tests/uniwidth/test-u8-strwidth.c: Likewise.
65453         * tests/uniwidth/test-u8-width.c: Likewise.
65454         * tests/uniwidth/test-uc_width.c: Likewise.
65455         * config/srclist-update: Likewise.
65456         (fixlicense): Update to GPLv3+.
65457
65458         Change copyright notice from LGPLv2.1+ to LGPLv3+.
65459         * tests/test-tsearch.c: Change copyright notice.
65460
65461         Change copyright notice from LGPLv2.0+ to LGPLv3+.
65462         * lib/c-strcaseeq.h: Change copyright notice.
65463         * lib/streq.h: Likewise.
65464         * lib/uniconv.h: Likewise.
65465         * lib/uniconv/u-conv-from-enc.h: Likewise.
65466         * lib/uniconv/u-conv-to-enc.h: Likewise.
65467         * lib/uniconv/u-strconv-from-enc.h: Likewise.
65468         * lib/uniconv/u-strconv-to-enc.h: Likewise.
65469         * lib/uniconv/u16-conv-from-enc.c: Likewise.
65470         * lib/uniconv/u16-conv-to-enc.c: Likewise.
65471         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
65472         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
65473         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
65474         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
65475         * lib/uniconv/u32-conv-from-enc.c: Likewise.
65476         * lib/uniconv/u32-conv-to-enc.c: Likewise.
65477         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
65478         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
65479         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
65480         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
65481         * lib/uniconv/u8-conv-from-enc.c: Likewise.
65482         * lib/uniconv/u8-conv-to-enc.c: Likewise.
65483         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
65484         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
65485         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
65486         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
65487         * lib/uniname.h: Likewise.
65488         * lib/uniname/uniname.c: Likewise.
65489         * lib/unistdio.h: Likewise.
65490         * lib/unistdio/u-asnprintf.h: Likewise.
65491         * lib/unistdio/u-asprintf.h: Likewise.
65492         * lib/unistdio/u-printf-args.c: Likewise.
65493         * lib/unistdio/u-printf-args.h: Likewise.
65494         * lib/unistdio/u-printf-parse.h: Likewise.
65495         * lib/unistdio/u-snprintf.h: Likewise.
65496         * lib/unistdio/u-sprintf.h: Likewise.
65497         * lib/unistdio/u-vasprintf.h: Likewise.
65498         * lib/unistdio/u-vsnprintf.h: Likewise.
65499         * lib/unistdio/u-vsprintf.h: Likewise.
65500         * lib/unistdio/u16-asnprintf.c: Likewise.
65501         * lib/unistdio/u16-asprintf.c: Likewise.
65502         * lib/unistdio/u16-printf-parse.c: Likewise.
65503         * lib/unistdio/u16-snprintf.c: Likewise.
65504         * lib/unistdio/u16-sprintf.c: Likewise.
65505         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
65506         * lib/unistdio/u16-u16-asprintf.c: Likewise.
65507         * lib/unistdio/u16-u16-snprintf.c: Likewise.
65508         * lib/unistdio/u16-u16-sprintf.c: Likewise.
65509         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
65510         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
65511         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
65512         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
65513         * lib/unistdio/u16-vasnprintf.c: Likewise.
65514         * lib/unistdio/u16-vasprintf.c: Likewise.
65515         * lib/unistdio/u16-vsnprintf.c: Likewise.
65516         * lib/unistdio/u16-vsprintf.c: Likewise.
65517         * lib/unistdio/u32-asnprintf.c: Likewise.
65518         * lib/unistdio/u32-asprintf.c: Likewise.
65519         * lib/unistdio/u32-printf-parse.c: Likewise.
65520         * lib/unistdio/u32-snprintf.c: Likewise.
65521         * lib/unistdio/u32-sprintf.c: Likewise.
65522         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
65523         * lib/unistdio/u32-u32-asprintf.c: Likewise.
65524         * lib/unistdio/u32-u32-snprintf.c: Likewise.
65525         * lib/unistdio/u32-u32-sprintf.c: Likewise.
65526         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
65527         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
65528         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
65529         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
65530         * lib/unistdio/u32-vasnprintf.c: Likewise.
65531         * lib/unistdio/u32-vasprintf.c: Likewise.
65532         * lib/unistdio/u32-vsnprintf.c: Likewise.
65533         * lib/unistdio/u32-vsprintf.c: Likewise.
65534         * lib/unistdio/u8-asnprintf.c: Likewise.
65535         * lib/unistdio/u8-asprintf.c: Likewise.
65536         * lib/unistdio/u8-printf-parse.c: Likewise.
65537         * lib/unistdio/u8-snprintf.c: Likewise.
65538         * lib/unistdio/u8-sprintf.c: Likewise.
65539         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
65540         * lib/unistdio/u8-u8-asprintf.c: Likewise.
65541         * lib/unistdio/u8-u8-snprintf.c: Likewise.
65542         * lib/unistdio/u8-u8-sprintf.c: Likewise.
65543         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
65544         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
65545         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
65546         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
65547         * lib/unistdio/u8-vasnprintf.c: Likewise.
65548         * lib/unistdio/u8-vasprintf.c: Likewise.
65549         * lib/unistdio/u8-vsnprintf.c: Likewise.
65550         * lib/unistdio/u8-vsprintf.c: Likewise.
65551         * lib/unistdio/ulc-asnprintf.c: Likewise.
65552         * lib/unistdio/ulc-asprintf.c: Likewise.
65553         * lib/unistdio/ulc-printf-parse.c: Likewise.
65554         * lib/unistdio/ulc-snprintf.c: Likewise.
65555         * lib/unistdio/ulc-sprintf.c: Likewise.
65556         * lib/unistdio/ulc-vasnprintf.c: Likewise.
65557         * lib/unistdio/ulc-vasprintf.c: Likewise.
65558         * lib/unistdio/ulc-vsnprintf.c: Likewise.
65559         * lib/unistdio/ulc-vsprintf.c: Likewise.
65560         * lib/unistr.h: Likewise.
65561         * lib/unistr/u-cpy-alloc.h: Likewise.
65562         * lib/unistr/u-cpy.h: Likewise.
65563         * lib/unistr/u-endswith.h: Likewise.
65564         * lib/unistr/u-move.h: Likewise.
65565         * lib/unistr/u-set.h: Likewise.
65566         * lib/unistr/u-startswith.h: Likewise.
65567         * lib/unistr/u-stpcpy.h: Likewise.
65568         * lib/unistr/u-stpncpy.h: Likewise.
65569         * lib/unistr/u-strcat.h: Likewise.
65570         * lib/unistr/u-strcpy.h: Likewise.
65571         * lib/unistr/u-strcspn.h: Likewise.
65572         * lib/unistr/u-strdup.h: Likewise.
65573         * lib/unistr/u-strlen.h: Likewise.
65574         * lib/unistr/u-strncat.h: Likewise.
65575         * lib/unistr/u-strncpy.h: Likewise.
65576         * lib/unistr/u-strnlen.h: Likewise.
65577         * lib/unistr/u-strpbrk.h: Likewise.
65578         * lib/unistr/u-strspn.h: Likewise.
65579         * lib/unistr/u-strstr.h: Likewise.
65580         * lib/unistr/u-strtok.h: Likewise.
65581         * lib/unistr/u16-check.c: Likewise.
65582         * lib/unistr/u16-chr.c: Likewise.
65583         * lib/unistr/u16-cmp.c: Likewise.
65584         * lib/unistr/u16-cpy-alloc.c: Likewise.
65585         * lib/unistr/u16-cpy.c: Likewise.
65586         * lib/unistr/u16-endswith.c: Likewise.
65587         * lib/unistr/u16-mblen.c: Likewise.
65588         * lib/unistr/u16-mbsnlen.c: Likewise.
65589         * lib/unistr/u16-mbtouc-aux.c: Likewise.
65590         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
65591         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
65592         * lib/unistr/u16-mbtouc.c: Likewise.
65593         * lib/unistr/u16-mbtoucr.c: Likewise.
65594         * lib/unistr/u16-move.c: Likewise.
65595         * lib/unistr/u16-next.c: Likewise.
65596         * lib/unistr/u16-prev.c: Likewise.
65597         * lib/unistr/u16-set.c: Likewise.
65598         * lib/unistr/u16-startswith.c: Likewise.
65599         * lib/unistr/u16-stpcpy.c: Likewise.
65600         * lib/unistr/u16-stpncpy.c: Likewise.
65601         * lib/unistr/u16-strcat.c: Likewise.
65602         * lib/unistr/u16-strchr.c: Likewise.
65603         * lib/unistr/u16-strcmp.c: Likewise.
65604         * lib/unistr/u16-strcpy.c: Likewise.
65605         * lib/unistr/u16-strcspn.c: Likewise.
65606         * lib/unistr/u16-strdup.c: Likewise.
65607         * lib/unistr/u16-strlen.c: Likewise.
65608         * lib/unistr/u16-strmblen.c: Likewise.
65609         * lib/unistr/u16-strmbtouc.c: Likewise.
65610         * lib/unistr/u16-strncat.c: Likewise.
65611         * lib/unistr/u16-strncmp.c: Likewise.
65612         * lib/unistr/u16-strncpy.c: Likewise.
65613         * lib/unistr/u16-strnlen.c: Likewise.
65614         * lib/unistr/u16-strpbrk.c: Likewise.
65615         * lib/unistr/u16-strrchr.c: Likewise.
65616         * lib/unistr/u16-strspn.c: Likewise.
65617         * lib/unistr/u16-strstr.c: Likewise.
65618         * lib/unistr/u16-strtok.c: Likewise.
65619         * lib/unistr/u16-to-u32.c: Likewise.
65620         * lib/unistr/u16-to-u8.c: Likewise.
65621         * lib/unistr/u16-uctomb-aux.c: Likewise.
65622         * lib/unistr/u16-uctomb.c: Likewise.
65623         * lib/unistr/u32-check.c: Likewise.
65624         * lib/unistr/u32-chr.c: Likewise.
65625         * lib/unistr/u32-cmp.c: Likewise.
65626         * lib/unistr/u32-cpy-alloc.c: Likewise.
65627         * lib/unistr/u32-cpy.c: Likewise.
65628         * lib/unistr/u32-endswith.c: Likewise.
65629         * lib/unistr/u32-mblen.c: Likewise.
65630         * lib/unistr/u32-mbsnlen.c: Likewise.
65631         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
65632         * lib/unistr/u32-mbtouc.c: Likewise.
65633         * lib/unistr/u32-mbtoucr.c: Likewise.
65634         * lib/unistr/u32-move.c: Likewise.
65635         * lib/unistr/u32-next.c: Likewise.
65636         * lib/unistr/u32-prev.c: Likewise.
65637         * lib/unistr/u32-set.c: Likewise.
65638         * lib/unistr/u32-startswith.c: Likewise.
65639         * lib/unistr/u32-stpcpy.c: Likewise.
65640         * lib/unistr/u32-stpncpy.c: Likewise.
65641         * lib/unistr/u32-strcat.c: Likewise.
65642         * lib/unistr/u32-strchr.c: Likewise.
65643         * lib/unistr/u32-strcmp.c: Likewise.
65644         * lib/unistr/u32-strcpy.c: Likewise.
65645         * lib/unistr/u32-strcspn.c: Likewise.
65646         * lib/unistr/u32-strdup.c: Likewise.
65647         * lib/unistr/u32-strlen.c: Likewise.
65648         * lib/unistr/u32-strmblen.c: Likewise.
65649         * lib/unistr/u32-strmbtouc.c: Likewise.
65650         * lib/unistr/u32-strncat.c: Likewise.
65651         * lib/unistr/u32-strncmp.c: Likewise.
65652         * lib/unistr/u32-strncpy.c: Likewise.
65653         * lib/unistr/u32-strnlen.c: Likewise.
65654         * lib/unistr/u32-strpbrk.c: Likewise.
65655         * lib/unistr/u32-strrchr.c: Likewise.
65656         * lib/unistr/u32-strspn.c: Likewise.
65657         * lib/unistr/u32-strstr.c: Likewise.
65658         * lib/unistr/u32-strtok.c: Likewise.
65659         * lib/unistr/u32-to-u16.c: Likewise.
65660         * lib/unistr/u32-to-u8.c: Likewise.
65661         * lib/unistr/u32-uctomb.c: Likewise.
65662         * lib/unistr/u8-check.c: Likewise.
65663         * lib/unistr/u8-chr.c: Likewise.
65664         * lib/unistr/u8-cmp.c: Likewise.
65665         * lib/unistr/u8-cpy-alloc.c: Likewise.
65666         * lib/unistr/u8-cpy.c: Likewise.
65667         * lib/unistr/u8-endswith.c: Likewise.
65668         * lib/unistr/u8-mblen.c: Likewise.
65669         * lib/unistr/u8-mbsnlen.c: Likewise.
65670         * lib/unistr/u8-mbtouc-aux.c: Likewise.
65671         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
65672         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
65673         * lib/unistr/u8-mbtouc.c: Likewise.
65674         * lib/unistr/u8-mbtoucr.c: Likewise.
65675         * lib/unistr/u8-move.c: Likewise.
65676         * lib/unistr/u8-next.c: Likewise.
65677         * lib/unistr/u8-prev.c: Likewise.
65678         * lib/unistr/u8-set.c: Likewise.
65679         * lib/unistr/u8-startswith.c: Likewise.
65680         * lib/unistr/u8-stpcpy.c: Likewise.
65681         * lib/unistr/u8-stpncpy.c: Likewise.
65682         * lib/unistr/u8-strcat.c: Likewise.
65683         * lib/unistr/u8-strchr.c: Likewise.
65684         * lib/unistr/u8-strcmp.c: Likewise.
65685         * lib/unistr/u8-strcpy.c: Likewise.
65686         * lib/unistr/u8-strcspn.c: Likewise.
65687         * lib/unistr/u8-strdup.c: Likewise.
65688         * lib/unistr/u8-strlen.c: Likewise.
65689         * lib/unistr/u8-strmblen.c: Likewise.
65690         * lib/unistr/u8-strmbtouc.c: Likewise.
65691         * lib/unistr/u8-strncat.c: Likewise.
65692         * lib/unistr/u8-strncmp.c: Likewise.
65693         * lib/unistr/u8-strncpy.c: Likewise.
65694         * lib/unistr/u8-strnlen.c: Likewise.
65695         * lib/unistr/u8-strpbrk.c: Likewise.
65696         * lib/unistr/u8-strrchr.c: Likewise.
65697         * lib/unistr/u8-strspn.c: Likewise.
65698         * lib/unistr/u8-strstr.c: Likewise.
65699         * lib/unistr/u8-strtok.c: Likewise.
65700         * lib/unistr/u8-to-u16.c: Likewise.
65701         * lib/unistr/u8-to-u32.c: Likewise.
65702         * lib/unistr/u8-uctomb-aux.c: Likewise.
65703         * lib/unistr/u8-uctomb.c: Likewise.
65704         * lib/unitypes.h: Likewise.
65705         * lib/uniwidth.h: Likewise.
65706         * lib/uniwidth/cjk.h: Likewise.
65707         * lib/uniwidth/u16-strwidth.c: Likewise.
65708         * lib/uniwidth/u16-width.c: Likewise.
65709         * lib/uniwidth/u32-strwidth.c: Likewise.
65710         * lib/uniwidth/u32-width.c: Likewise.
65711         * lib/uniwidth/u8-strwidth.c: Likewise.
65712         * lib/uniwidth/u8-width.c: Likewise.
65713         * lib/uniwidth/width.c: Likewise.
65714
65715 2007-10-07  Bruno Haible  <bruno@clisp.org>
65716
65717         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
65718         The file is still under LGPL (see modules/inttypes).
65719
65720 2007-10-06  Bruno Haible  <bruno@clisp.org>
65721
65722         * modules/trunc (Dependencies): Add 'extensions'.
65723         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
65724         Reported by Ben Pfaff <blp@gnu.org>.
65725
65726 2007-10-06  Bruno Haible  <bruno@clisp.org>
65727
65728         * modules/freopen-tests: New file.
65729         * tests/test-freopen.c: New file.
65730
65731         * modules/fopen-tests: New file.
65732         * tests/test-fopen.c: New file.
65733
65734         * modules/fopen: New file.
65735         * lib/fopen.c: New file.
65736         * m4/fopen.m4: New file.
65737         * modules/freopen: New file.
65738         * lib/freopen.c: New file.
65739         * m4/freopen.m4: New file.
65740         * lib/stdio.in.h (fopen, freopen): New declarations.
65741         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
65742         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
65743         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
65744         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
65745         * doc/functions/fopen.texi: Mention the 'fopen' module.
65746         * doc/functions/freopen.texi: Mention the 'freopen' module.
65747
65748 2007-10-06  Bruno Haible  <bruno@clisp.org>
65749
65750         * modules/open-tests: New file.
65751         * tests/test-open.c: New file.
65752
65753         * modules/open: New file.
65754         * lib/open.c: New file.
65755         * m4/open.m4: New file.
65756         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
65757         lib/open.c does.
65758         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
65759         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
65760         macros.
65761         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
65762         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
65763         REPLACE_OPEN.
65764         * doc/functions/open.texi: Mention the 'open' module.
65765
65766 2007-10-04  Bruno Haible  <bruno@clisp.org>
65767
65768         * modules/ceill-tests: New file.
65769         * tests/test-ceill.c: New file.
65770
65771         * modules/ceill: New file.
65772         * lib/ceill.c: Replace entire file.
65773         * m4/ceill.m4: New file.
65774         * lib/math.in.h (ceill): Replace declaration.
65775         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
65776         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
65777         * doc/functions/ceill.texi: Mention the 'ceill' module.
65778         * modules/mathl (Files): Remove lib/ceill.c.
65779         (Depends-on): Add ceill.
65780
65781 2007-10-04  Bruno Haible  <bruno@clisp.org>
65782
65783         * modules/ceilf-tests: New file.
65784         * tests/test-ceilf.c: New file.
65785
65786         * modules/ceilf: New file.
65787         * lib/ceil.c: New file.
65788         * lib/ceilf.c: New file.
65789         * m4/ceilf.m4: New file.
65790         * lib/math.in.h (ceilf): New declaration.
65791         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
65792         HAVE_DECL_CEILF.
65793         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
65794         HAVE_DECL_CEILF.
65795         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
65796
65797 2007-10-04  Bruno Haible  <bruno@clisp.org>
65798
65799         * modules/floorl-tests: New file.
65800         * tests/test-floorl.c: New file.
65801
65802         * modules/floorl: New file.
65803         * lib/floorl.c: Replace entire file.
65804         * m4/floorl.m4: New file.
65805         * lib/math.in.h (floorl): Replace declaration.
65806         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
65807         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
65808         * doc/functions/floorl.texi: Mention the 'floorl' module.
65809         * modules/mathl (Files): Remove lib/floorl.c.
65810         (Depends-on): Add floorl.
65811
65812 2007-10-04  Bruno Haible  <bruno@clisp.org>
65813
65814         * modules/floorf-tests: New file.
65815         * tests/test-floorf.c: New file.
65816
65817         * modules/floorf: New file.
65818         * lib/floor.c: New file.
65819         * lib/floorf.c: New file.
65820         * m4/floorf.m4: New file.
65821         * lib/math.in.h (floorf): New declaration.
65822         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
65823         HAVE_DECL_FLOORF.
65824         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
65825         HAVE_DECL_FLOORF.
65826         * doc/functions/floorf.texi: Mention the 'floorf' module.
65827
65828 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
65829             Bruno Haible  <bruno@clisp.org>
65830
65831         Advertise for the Git server instead of the CVS server.
65832         * doc/gnulib-intro.texi (Steady Development): Mention the Git
65833         repository instead of the CVS one.
65834         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
65835         about all VCS systems generically.
65836         * doc/gnulib.texi (Introduction): Capitalize `Git'.
65837
65838 2007-10-04  Bruno Haible  <bruno@clisp.org>
65839
65840         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
65841         means.
65842         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
65843
65844 2007-10-04  Bruno Haible  <bruno@clisp.org>
65845
65846         * modules/truncl-tests: New file.
65847         * tests/test-truncl.c: New file.
65848
65849         * modules/truncl: New file.
65850         * lib/truncl.c: New file.
65851         * m4/truncl.m4: New file.
65852         * lib/math.in.h (truncl): New declaration.
65853         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
65854         HAVE_DECL_TRUNCL.
65855         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
65856         HAVE_DECL_TRUNCL.
65857         * doc/functions/truncl.texi: Mention the 'truncl' module.
65858
65859 2007-10-04  Bruno Haible  <bruno@clisp.org>
65860
65861         * modules/truncf-tests: New file.
65862         * tests/test-truncf.c: New file.
65863
65864         * modules/truncf: New file.
65865         * lib/trunc.c: Make paramerizable through USE_* macros.
65866         * lib/truncf.c: New file.
65867         * m4/truncf.m4: New file.
65868         * lib/math.in.h (truncf): New declaration.
65869         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
65870         HAVE_DECL_TRUNCF.
65871         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
65872         HAVE_DECL_TRUNCF.
65873         * doc/functions/truncf.texi: Mention the 'truncf' module.
65874
65875 2007-10-03  Bruno Haible  <bruno@clisp.org>
65876
65877         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
65878         augmentation also for tests modules.
65879         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
65880         * modules/atexit-tests (Makefile.am): Likewise.
65881         * modules/binary-io-tests (Makefile.am): Likewise.
65882         * modules/c-strcase-tests (Makefile.am): Likewise.
65883         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
65884         * modules/canonicalize-tests (Makefile.am): Likewise.
65885         * modules/closein-tests (Makefile.am): Likewise.
65886         * modules/fprintf-posix-tests (Makefile.am): Likewise.
65887         * modules/freadahead-tests (Makefile.am): Likewise.
65888         * modules/fseek-tests (Makefile.am): Likewise.
65889         * modules/fseeko-tests (Makefile.am): Likewise.
65890         * modules/ftell-tests (Makefile.am): Likewise.
65891         * modules/ftello-tests (Makefile.am): Likewise.
65892         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
65893         * modules/isnanl-tests (Makefile.am): Likewise.
65894         * modules/lseek-tests (Makefile.am): Likewise.
65895         * modules/mbscasecmp-tests (Makefile.am): Likewise.
65896         * modules/mbscasestr-tests (Makefile.am): Likewise.
65897         * modules/mbschr-tests (Makefile.am): Likewise.
65898         * modules/mbscspn-tests (Makefile.am): Likewise.
65899         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
65900         * modules/mbspbrk-tests (Makefile.am): Likewise.
65901         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
65902         * modules/mbsrchr-tests (Makefile.am): Likewise.
65903         * modules/mbsspn-tests (Makefile.am): Likewise.
65904         * modules/mbsstr-tests (Makefile.am): Likewise.
65905         * modules/printf-posix-tests (Makefile.am): Likewise.
65906         * modules/snprintf-posix-tests (Makefile.am): Likewise.
65907         * modules/sprintf-posix-tests (Makefile.am): Likewise.
65908         * modules/tsearch-tests (Makefile.am): Likewise.
65909         * modules/uniname/uniname-tests (Makefile.am): Likewise.
65910         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
65911         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
65912         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
65913         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
65914         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
65915         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
65916         * modules/vprintf-posix-tests (Makefile.am): Likewise.
65917         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
65918         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
65919         * modules/xstrtoimax-tests (Makefile.am): Likewise.
65920         * modules/xstrtol-tests (Makefile.am): Likewise.
65921         * modules/xstrtoumax-tests (Makefile.am): Likewise.
65922         * modules/yesno-tests (Makefile.am): Likewise.
65923
65924 2007-10-03  Bruno Haible  <bruno@clisp.org>
65925
65926         * modules/trunc-tests: New file.
65927         * tests/test-trunc.c: New file.
65928
65929         * modules/trunc: New file.
65930         * lib/trunc.c: New file.
65931         * m4/trunc.m4: New file.
65932         * lib/math.in.h (trunc): New declaration.
65933         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
65934         HAVE_DECL_TRUNC.
65935         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
65936         HAVE_DECL_TRUNC.
65937         * doc/functions/trunc.texi: Mention the 'trunc' module.
65938
65939 2007-10-03  Bruno Haible  <bruno@clisp.org>
65940
65941         * tests/test-fpending.c: New file, mostly copied
65942         from coreutils/lib/t-fpending.c.
65943         * modules/fpending-tests: New file.
65944
65945 2007-10-03  Bruno Haible  <bruno@clisp.org>
65946
65947         Port the stdio extensions to QNX (untested).
65948         * lib/fseterr.c (fseterr): Add support for QNX.
65949         * lib/fbufmode.c (fbufmode): Likewise.
65950         * lib/freadable.c (freadable): Likewise.
65951         * lib/fwritable.c (fwritable): Likewise.
65952         * lib/freading.c (freading): Likewise.
65953         * lib/fwriting.c (fwriting): Likewise.
65954         * lib/freadahead.c (freadahed): Likewise.
65955         * lib/fpurge.c (fpurge): Likewise.
65956         * lib/fseeko.c (rpl_fseeko): Likewise.
65957
65958 2007-10-03  Bruno Haible  <bruno@clisp.org>
65959             Jim Meyering  <jim@meyering.net>
65960             Eric Blake  <ebb9@byu.net>
65961
65962         * doc/relocatable.texi: Use @command instead of @program.
65963
65964 2007-10-02  Jim Meyering  <jim@meyering.net>
65965
65966         Perform one more "_.h" -> ".in.h" substitution.
65967         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
65968         instead of unistd_.h here, too.
65969
65970 2007-10-01  Bruno Haible  <bruno@clisp.org>
65971
65972         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
65973         Needed for the alloca-opt module.
65974
65975 2007-09-30  Bruno Haible  <bruno@clisp.org>
65976
65977         * lib/alloca.in.h: Renamed from lib/alloca_.h.
65978         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
65979         alloca_.h.
65980         * lib/argz.in.h: Renamed from lib/argz_.h.
65981         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
65982         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
65983         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
65984         byteswap_.h.
65985         * lib/dirent.in.h: Renamed from lib/dirent_.h.
65986         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
65987         dirent_.h.
65988         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
65989         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
65990         fcntl_.h.
65991         * lib/float.in.h: Renamed from lib/float_.h.
65992         * modules/float (Files, Makefile.am): Use float.in.h instead of
65993         float_.h.
65994         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
65995         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
65996         fnmatch_.h.
65997         * lib/getopt.in.h: Renamed from lib/getopt_.h.
65998         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
65999         getopt_.h.
66000         * lib/glob.in.h: Renamed from lib/glob_.h.
66001         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
66002         * lib/iconv.in.h: Renamed from lib/iconv_.h.
66003         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
66004         iconv_.h.
66005         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
66006         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
66007         inttypes_.h.
66008         * lib/locale.in.h: Renamed from lib/locale_.h.
66009         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
66010         locale_.h.
66011         * lib/math.in.h: Renamed from lib/math_.h.
66012         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
66013         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
66014         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
66015         of netinet_in_.h. Add dependency.
66016         * lib/poll.in.h: Renamed from lib/poll_.h.
66017         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
66018         * lib/search.in.h: Renamed from lib/search_.h.
66019         * modules/search (Files, Makefile.am): Use search.in.h instead of
66020         search_.h.
66021         * lib/signal.in.h: Renamed from lib/signal_.h.
66022         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
66023         _signal.h.
66024         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
66025         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
66026         stdbool_.h.
66027         * lib/stdint.in.h: Renamed from lib/stdint_.h.
66028         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
66029         stdint_.h.
66030         * lib/stdio.in.h: Renamed from lib/stdio_.h.
66031         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
66032         stdio_.h.
66033         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
66034         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
66035         stdlib_.h.
66036         * lib/string.in.h: Renamed from lib/string_.h.
66037         * modules/string (Files, Makefile.am): Use string.in.h instead of
66038         string_.h.
66039         * doc/gnulib-tool.texi (Initial import): Update.
66040         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
66041         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
66042         of sys_select_.h. Add dependency.
66043         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
66044         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
66045         of sys_socket_.h.
66046         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
66047         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
66048         sys_stat_.h.
66049         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
66050         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
66051         sys_time_.h.
66052         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
66053         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
66054         sysexits_.h.
66055         * lib/time.in.h: Renamed from lib/time_.h.
66056         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
66057         * lib/unistd.in.h: Renamed from lib/unistd_.h.
66058         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
66059         unistd_.h.
66060         * lib/wchar.in.h: Renamed from lib/wchar_.h.
66061         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
66062         wchar_.h.
66063         * lib/wctype.in.h: Renamed from lib/wctype_.h.
66064         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
66065         wctype_.h.
66066         * build-aux/bootstrap (slurp): Update.
66067         * lib/.cppi-disable: Update.
66068
66069 2007-09-30  Bruno Haible  <bruno@clisp.org>
66070
66071         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
66072         Needed on BeOS.
66073
66074 2007-09-30  Bruno Haible  <bruno@clisp.org>
66075
66076         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
66077
66078 2007-09-29  Bruno Haible  <bruno@clisp.org>
66079
66080         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
66081
66082 2007-09-29  Bruno Haible  <bruno@clisp.org>
66083
66084         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
66085         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
66086         * build-aux/install-reloc: Compile also areadlink.c.
66087         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
66088
66089 2007-09-29  Bruno Haible  <bruno@clisp.org>
66090
66091         * gnulib-tool (func_emit_initmacro_done): Indentation.
66092
66093 2007-09-29  Bruno Haible  <bruno@clisp.org>
66094
66095         * README: Add CVS checkout update instructions.
66096         Info from Bob Proulx <bob@proulx.com>.
66097
66098 2007-09-28  Eric Blake  <ebb9@byu.net>
66099
66100         Provide move-if-change.
66101         * build-aux/move-if-change: New file, based on best practice
66102         rather than any canonical upstream location.
66103
66104 2007-09-28  Jim Meyering  <jim@meyering.net>
66105
66106         Fix canonicalize loop-detection corner case.
66107         Do not attempt to stat the symlink values stored via seen_triple.
66108         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
66109         on linux-2.6.18, (but not 2.6.22).
66110         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
66111         triple_compare.  The former compares dev,ino,filename, while the latter
66112         would actually stat dirname(filename) when dev and ino were equal.
66113         * lib/hash-triple.c: Install <string.h>.
66114         (STREQ): Define.
66115         (triple_compare_ino_str): New function.
66116         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
66117
66118 2007-09-28  Eric Blake  <ebb9@byu.net>
66119
66120         Enforce that AC_REPLACE_FUNCS files exist.
66121         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
66122         override check for typos.
66123
66124         Fix test-closein on Solaris 10.
66125         * tests/test-closein.c (main): Don't assume stdin can be inherited
66126         closed on all systems.
66127         * tests/test-closein.sh: Likewise.
66128         Reported by Piotr Tarnowski.
66129
66130 2007-09-28  Jim Meyering  <jim@meyering.net>
66131
66132         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
66133
66134 2007-09-27  Jim Meyering  <jim@meyering.net>
66135
66136         canonicalize: Avoid a false-positive cycle failure.
66137         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
66138         Sort.  Remove cycle-check.
66139         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
66140         not cycle-check.h.
66141         (seen_triple): New function.
66142         (canonicalize_filename_mode): Use it instead of cycle-check.
66143         * tests/test-canonicalize.c: Add a test for this bug.
66144         * tests/test-canonicalize.sh: Set up and run the test.
66145
66146         New module, file-set, from coreutils.
66147         * modules/file-set: Define it.
66148         * lib/file-set.c, lib/file-set.h: Implement.
66149
66150         New module, hash-triple, from coreutils.
66151         * modules/hash-triple: Define it.
66152         * lib/hash-triple.c, lib/hash-triple.h: Implement.
66153
66154 2007-09-25  Eric Blake  <ebb9@byu.net>
66155
66156         Fix strerror on Interix.
66157         * lib/string_.h (strerror): Declare replacement.
66158         * doc/functions/strerror.texi (strerror): Document the Interix
66159         shortcoming.
66160         * modules/string (Makefile.am): Support new hooks.
66161         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
66162         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
66163         gl_FUNC_STRERROR_SEPARATE.
66164         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
66165         * lib/strerror.c (rpl_strerror): Provide replacement.
66166         * modules/strerror (Depends-on): Add string.
66167         (configure.ac): Detect use of module.
66168         * tests/test-strerror.c: New file.
66169         * modules/strerror-tests: New test module.
66170         * modules/argp (Depends-on): Add strerror.
66171         * modules/error (Depends-on): Likewise.
66172         Reported by Martin Koeppe.
66173
66174 2007-09-24  Bruno Haible  <bruno@clisp.org>
66175
66176         * README: Update git instructions.
66177
66178 2007-09-24  Eric Blake  <ebb9@byu.net>
66179
66180         Revert fpending breakage from 2007-09-08.
66181         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
66182         __fpending.c.
66183
66184 2007-09-24  Jim Meyering  <jim@meyering.net>
66185
66186         filenamecat.c: Add a test.
66187         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
66188         showing how the function works when DIR is the empty string.
66189
66190 2007-09-21  Simon Josefsson  <simon@josefsson.org>
66191
66192         * tests/test-canonicalize.sh: Turn on executable bit.
66193
66194 2007-09-19  Eric Blake  <ebb9@byu.net>
66195
66196         * README: Update CVS instructions.
66197
66198 2007-09-18  Bruno Haible  <bruno@clisp.org>
66199
66200         * modules/areadlink: New file.
66201         * lib/areadlink.h (areadlink): New declaration.
66202         * lib/areadlink.c: New file, based on lib/xreadlink.c.
66203
66204 2007-09-17  Jim Meyering  <jim@meyering.net>
66205
66206         * lib/savewd.c (ESTALE) [!defined]: Define.
66207         Reported to be required on Interix by Martin Koeppe.
66208
66209 2007-09-17  Bruno Haible  <bruno@clisp.org>
66210
66211         * gnulib-tool (func_version): Use $version.
66212
66213 2007-09-16  Bruno Haible  <bruno@clisp.org>
66214
66215         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
66216         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
66217         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
66218         Reported by Greg Schafer <gschafer@zip.com.au>.
66219
66220 2007-09-15  Bruno Haible  <bruno@clisp.org>
66221
66222         * gnulib-tool (sed): Try a little harder to make bash understand the
66223         alias.
66224         Reported by Bruce Korb <bruce.korb@gmail.com>.
66225
66226 2007-09-13  Eric Blake  <ebb9@byu.net>
66227
66228         * ChangeLog: Remove conflict markers.
66229
66230 2007-09-13  Simon Josefsson  <simon@josefsson.org>
66231
66232         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
66233         Reported by Bruno Haible <bruno@clisp.org>.
66234
66235 2007-09-12  Bruno Haible  <bruno@clisp.org>
66236
66237         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
66238         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
66239         is not defined.
66240
66241 2007-09-12  Eric Blake  <ebb9@byu.net>
66242
66243         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
66244         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
66245         Autoconf definition.
66246         * modules/euidaccess (Depends-on): Add extensions, for
66247         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
66248         * modules/fnmatch (Depends-on): Likewise.
66249         * modules/getaddrinfo (Depends-on): Likewise.
66250         * modules/getdelim (Depends-on): Likewise.
66251         * modules/getline (Depends-on): Likewise.
66252         * modules/getsubopt (Depends-on): Likewise.
66253         * modules/gettext (Depends-on): Likewise.
66254         * modules/group-member (Depends-on): Likewise.
66255         * modules/mbchar (Depends-on): Likewise.
66256         * modules/memmem (Depends-on): Likewise.
66257         * modules/mempcpy (Depends-on): Likewise.
66258         * modules/memrchr (Depends-on): Likewise.
66259         * modules/pagealign_alloc (Depends-on): Likewise.
66260         * modules/readutmp (Depends-on): Likewise.
66261         * modules/stpcpy (Depends-on): Likewise.
66262         * modules/stpncpy (Depends-on): Likewise.
66263         * modules/strchrnul (Depends-on): Likewise.
66264         * modules/strndup (Depends-on): Likewise.
66265         * modules/strsep (Depends-on): Likewise.
66266         * modules/strverscmp (Depends-on): Likewise.
66267         * modules/vasprintf (Depends-on): Likewise.
66268         * modules/wcwidth (Depends-on): Likewise.
66269         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
66270         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
66271         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
66272         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
66273         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
66274         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
66275         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
66276         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
66277         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
66278         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
66279         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
66280         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
66281         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
66282         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
66283         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
66284         * m4/readutmp.m4 (gl_READUTMP): Likewise.
66285         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
66286         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
66287         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
66288         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
66289         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
66290         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
66291         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
66292         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
66293         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
66294         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
66295         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
66296         so that lock.m4 can be used in gettext without extensions module.
66297
66298 2007-09-11  Bruno Haible  <bruno@clisp.org>
66299
66300         * m4/isc-posix.m4: Remove file.
66301         Suggested by Eric Blake.
66302
66303 2007-09-11  Eric Blake  <ebb9@byu.net>
66304
66305         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
66306
66307 2007-09-10  Bruno Haible  <bruno@clisp.org>
66308
66309         * posix-modules: Fix typo in error message.
66310         Reported by Matt <mkraai@beckman.com>.
66311
66312 2007-09-09  Bruno Haible  <bruno@clisp.org>
66313
66314         * doc/functions/getdelim.texi: Update list of platforms lacking the
66315         function.
66316         * doc/functions/getline.texi: Likewise.
66317
66318 2007-09-09  Jim Meyering  <jim@meyering.net>
66319
66320         * lib/hash.c (hash_initialize): Detect calloc failure.
66321         Reported by Bruno Haible.
66322
66323 2007-09-09  Bruno Haible  <bruno@clisp.org>
66324
66325         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
66326         malloc or realloc fails.
66327
66328 2007-09-09  Bruno Haible  <bruno@clisp.org>
66329
66330         * modules/getcwd (Depends-on): Add malloc-posix.
66331         * modules/glob (Depends-on): Likewise.
66332         * modules/putenv (Depends-on): Likewise.
66333         * modules/strdup (Depends-on): Likewise.
66334         * modules/getdelim (Depends-on): Add realloc-posix.
66335         * modules/read-file (Depends-on): Likewise.
66336
66337 2007-09-09  Bruno Haible  <bruno@clisp.org>
66338
66339         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
66340         (gl_FUNC_MALLOC_POSIX): Require it.
66341         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
66342         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
66343         * modules/realloc (Files): Add m4/malloc.m4.
66344         * modules/calloc (Files): Likewise.
66345
66346 2007-09-09  Bruno Haible  <bruno@clisp.org>
66347
66348         * modules/malloc-posix: New file.
66349         * modules/malloc (Depends-on): Add malloc-posix.
66350         * lib/malloc.c: Include errno.h.
66351         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
66352         and a POSIX-compatible malloc into a single function. Set ENOMEM
66353         when returning NULL.
66354         * m4/malloc.m4: New file.
66355         * doc/functions/malloc.texi: Mention the malloc-posix module.
66356         * lib/stdlib_.h (malloc): New declaration.
66357         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
66358         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
66359         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
66360         and HAVE_MALLOC_POSIX.
66361
66362 2007-09-09  Bruno Haible  <bruno@clisp.org>
66363
66364         * modules/realloc-posix: New file.
66365         * modules/realloc (Depends-on): Add realloc-posix.
66366         * lib/realloc.c: Include errno.h.
66367         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
66368         and a POSIX-compatible realloc into a single function. Set ENOMEM
66369         when returning NULL.
66370         * m4/realloc.m4: New file.
66371         * doc/functions/realloc.texi: Mention the realloc-posix module.
66372         * lib/stdlib_.h (realloc): New declaration.
66373         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
66374         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
66375         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
66376         and HAVE_REALLOC_POSIX.
66377
66378 2007-09-09  Bruno Haible  <bruno@clisp.org>
66379
66380         * modules/calloc-posix: New file.
66381         * modules/calloc (Depends-on): Add calloc-posix.
66382         * lib/calloc.c: Include errno.h.
66383         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
66384         and a POSIX-compatible calloc into a single function. Set ENOMEM
66385         when returning NULL.
66386         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
66387         * doc/functions/calloc.texi: Mention the calloc-posix module.
66388         * lib/stdlib_.h (calloc): New declaration.
66389         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
66390         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
66391         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
66392         and HAVE_CALLOC_POSIX.
66393
66394 2007-09-09  Bruno Haible  <bruno@clisp.org>
66395
66396         Allow for modules to show an arbitrary notice.
66397         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
66398         * gnulib-tool: New option --extract-notice.
66399         (func_usage): Document it.
66400         (sed_extract_prog): Update.
66401         (func_get_notice): New function.
66402         (func_modules_notice): New function.
66403         (func_import, func_create_testdir): Invoke it.
66404         Suggested by Jim Meyering.
66405
66406 2007-09-09  Bruno Haible  <bruno@clisp.org>
66407
66408         * gnulib-tool: New options --verbose, --quiet.
66409         (func_usage): Document them.
66410         (verbose): New variable.
66411         (func_execute_command): New function.
66412         (func_import): Don't show the module list and the file list if
66413         $verbose < 0.
66414         (func_create_testdir): Likewise. Use func_execute_command.
66415         (func_create_megatestdir): Use func_execute_command.
66416
66417 2007-09-08  Bruno Haible  <bruno@clisp.org>
66418
66419         * gnulib-tool (func_import): Prefer rsync over wget when available,
66420         for fetching the PO files.
66421
66422 2007-09-08  Bruno Haible  <bruno@clisp.org>
66423
66424         * posix-modules: New file. Portions copied from gnulib-tool.
66425         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
66426
66427 2007-09-08  Jim Meyering  <jim@meyering.net>
66428
66429         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
66430         * lib/fpending.h: Rename from __fpending.h.
66431         * lib/fpending.c: Rename from __fpending.c.
66432         Include "fpending.h", not "__fpending.h".
66433         * lib/__fpending.h, lib/__fpending.c: Remove files.
66434         * modules/fpending (Files): Reflect new file names.
66435         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
66436
66437 2007-09-08  Bruno Haible  <bruno@clisp.org>
66438
66439         * m4/inttypes-h.m4: Remove stub file.
66440
66441 2007-09-07  Simon Josefsson  <simon@josefsson.org>
66442
66443         * doc/headers/stdint.texi: Discuss #include_next issue.
66444
66445 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
66446
66447         * build-aux/bootstrap: Remove obsolete comment about wget --help.
66448
66449 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66450
66451         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
66452         in variable name.
66453
66454 2007-09-03  Jim Meyering  <jim@meyering.net>
66455
66456         New module: git-version-gen.
66457         * modules/git-version-gen: New file.
66458
66459         Import changes from coreutils for bootstrap script.
66460
66461         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
66462
66463         bootstrap: uses rsync to download the .po files
66464         * build-aux/bootstrap (po_download_command_format): New global.
66465         (download_po_files): Use rsync.
66466         (update_po_files): Don't remove .po files after download,
66467         so future rsync runs can take advantage of the copies.
66468
66469         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
66470
66471         Solve the unnecessary-.po-file-regeneration problem once and for all.
66472         * build-aux/bootstrap (download_po_files): New function, renamed from
66473         get_translations.  Now, downloads, but doesn't update LINGUAS.
66474         (update_po_files): New function.
66475
66476         bootstrap: Ignore more.
66477         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
66478         uniwidth to e.g., lib/.gitignore.
66479         (slurp): Handle the sys_stat_.h -> sys mapping, too.
66480
66481         * build-aux/bootstrap: New setting: vc_ignore.
66482         (insert_sorted_if_absent): Create $file if absent.
66483         Adapt to new, possibly empty, list: $vc_ignore.
66484
66485         bootstrap: generate more ignorable names
66486         * build-aux/bootstrap (slurp): When generating ignorable names,
66487         also map .sin to .sed, .gperf to .c, and .y to .c.
66488
66489 2007-09-03  Jim Meyering  <jim@meyering.net>
66490
66491         * build-aux/git-version-gen: New file, from coreutils.  For details, see
66492         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
66493
66494 2007-09-02  Bruno Haible  <bruno@clisp.org>
66495
66496         Fix mis-recognition of 'mcs' on QNX 6.
66497         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
66498         output contains the string "Mono".
66499         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
66500         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
66501
66502 2007-09-01  Bruno Haible  <bruno@clisp.org>
66503
66504         Fix collision between uniwidth/* and linebreak modules.
66505         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
66506         u32_width): Remove declarations.
66507         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
66508         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
66509         streq3, streq2, streq1, streq0): Remove functions.
66510         (STREQ): Remove macro.
66511         (is_cjk_encoding): Remove function.
66512         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
66513         (uc_width, u8_width, u16_width, u32_width): Remove functions.
66514         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
66515         * NEWS: Document the change.
66516
66517 2007-09-01  Bruno Haible  <bruno@clisp.org>
66518
66519         * lib/streq.h: Add double-inclusion guard.
66520
66521 2007-09-01  Karl Berry  <karl@gnu.org>
66522
66523         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
66524
66525 2007-08-28  Jim Meyering  <jim@meyering.net>
66526
66527         Rename mreadlink_with_size to areadlink_with_size.
66528         * NEWS: Document the change.
66529         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
66530         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
66531         * lib/mreadlink.h: Rename this to...
66532         * lib/areadlink.h: ...this.
66533         * modules/mreadlink-with-size: Rename this to...
66534         * modules/areadlink-with-size: ...this.
66535         * lib/canonicalize.c: Reflect the renaming.
66536         * modules/canonicalize: Likewise.
66537
66538 2007-08-26  Bruno Haible  <bruno@clisp.org>
66539
66540         * gnulib-tool (func_import): When deciding which files to remove,
66541         consider also dangling symbolic links.
66542         Reported by Eric Blake.
66543
66544 2007-08-26  Bruno Haible  <bruno@clisp.org>
66545
66546         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
66547
66548 2007-08-23  Simon Josefsson  <simon@josefsson.org>
66549
66550         * lib/readline.c: Don't include getline.h, the prototype is now
66551         found in stdio.h.
66552
66553 2007-08-23  Jim Meyering  <jim@meyering.net>
66554
66555         Getdelim touchup.
66556         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
66557         around the funlockfile call, since funlockfile never sets errno.
66558         Don't set errno upon failed realloc.
66559
66560 2007-08-22  Eric Blake  <ebb9@byu.net>
66561
66562         Getline touchups.
66563         * lib/getdelim.c (getdelim): Revert regression that required *n to
66564         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
66565         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
66566         getdelim, rather than whether implementation is missing.
66567         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
66568         * lib/stdio_.h (getline): Also declare if replacement is
66569         required.
66570         * doc/functions/getdelim.texi: New file.
66571         * doc/functions/getline.texi: Likewise.
66572         * doc/gnulib.texi (Function Substitutes): Add new files.
66573         Reported by Bruno Haible.
66574
66575 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
66576
66577         * users.txt: Add Guile.
66578
66579 2007-08-22  Eric Blake  <ebb9@byu.net>
66580
66581         * tests/test-getdelim.c (main): Use remove, not unlink.
66582         * tests/test-getline.c (main): Likewise.
66583
66584         Move getline and getdelim into stdio.h, per POSIX 200x.
66585         * modules/getline (Files): Remove getline.h.
66586         (Depends-on): Add stdio.
66587         (configure.ac): Add module indicator.
66588         * modules/getdelim (Files): Remove getdelim.h.
66589         (Depends-on): Add stdio.
66590         (configure.ac): Add module indicator.
66591         * modules/stdio (Makefile.am): Work with new indicators.
66592         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
66593         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
66594         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
66595         * lib/getdelim.h: Delete.
66596         * lib/getline.h: Delete.
66597         * lib/stdio_.h (getdelim, getline): Declare.
66598         * modules/getdelim-tests: New module.
66599         * modules/getline-tests: Likewise.
66600         * tests/test-getdelim.c: New file.
66601         * tests/test-getline.c: Likewise.
66602         * NEWS: Document the change.
66603         * lib/getline.c: Update choice of header.
66604         * lib/csharpcomp.c: Likewise.
66605         * lib/getpass.c: Likewise.
66606         * lib/javacomp.c: Likewise.
66607         * lib/javaversion.c: Likewise.
66608         * lib/yesno.c: Likewise.
66609         * lib/getdelim.c: Likewise.
66610         (getdelim): Set errno on failure, and avoid memory leak.
66611
66612 2007-08-19  Bruno Haible  <bruno@clisp.org>
66613
66614         * modules/closein (Depends-on): Add freadahead.
66615         * lib/closein.c: Include freadahead.h.
66616         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
66617         is zero.
66618
66619 2007-08-19  Bruno Haible  <bruno@clisp.org>
66620
66621         * modules/freadahead-tests: New file.
66622         * tests/test-freadahead.sh: New file.
66623         * tests/test-freadahead.c: New file.
66624
66625         * modules/freadahead: New file.
66626         * lib/freadahead.h: New file.
66627         * lib/freadahead.c: New file.
66628         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
66629         fbufmode, fpurge, freadable, fwritable.
66630
66631 2007-08-19  Eric Blake  <ebb9@byu.net>
66632
66633         Test yesno in combination with closein.
66634         * lib/yesno.c (yesno): Document use of stdin.
66635         * modules/yesno-tests (Files): New module.
66636         * tests/test-yesno.c (main): New file.
66637         * tests/test-yesno.sh: Likewise.
66638
66639 2007-08-19  Bruno Haible  <bruno@clisp.org>
66640
66641         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
66642         * lib/fseeko.c (rpl_fseeko): Likewise.
66643         * lib/fseterr.c (fseterr): Likewise.
66644
66645 2007-08-19  Bruno Haible  <bruno@clisp.org>
66646
66647         * tests/test-lseek.c (main): Disable a test for BeOS.
66648         * doc/functions/lseek.texi: Document the BeOS bug.
66649
66650 2007-08-19  Bruno Haible  <bruno@clisp.org>
66651             Eric Blake  <ebb9@byu.net>
66652
66653         * lib/lseek.c: Include <sys/stat.h>.
66654         (rpl_lseek): Add workaround code also for Unix platforms.
66655         Needed for BeOS.
66656         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
66657         * doc/functions/lseek.texi: Document BeOS definiency.
66658
66659 2007-08-18  Bruno Haible  <bruno@clisp.org>
66660
66661         * modules/fstrcmp-tests: New file.
66662         * tests/test-fstrcmp.c: New file.
66663
66664 2007-08-18  Bruno Haible  <bruno@clisp.org>
66665
66666         * modules/fstrcmp: New file, from GNU gettext with modifications.
66667         * lib/fstrcmp.h: New file, from GNU gettext.
66668         * lib/fstrcmp.c: New file, from GNU gettext.
66669         * MODULES.html.sh (String handling): Add fstrcmp.
66670
66671 2007-08-18  Bruno Haible  <bruno@clisp.org>
66672
66673         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
66674         'bool'.
66675         (diag, compareseq): Remove const from the ctxt argument.
66676         (USE_HEURISTIC): Undefine at the end.
66677
66678 2007-08-18  Jim Meyering  <jim@meyering.net>
66679
66680         New file: lib/idcache.h
66681         * NEWS: Mention the addition.
66682         * modules/idcache (Files): Add lib/idcache.h
66683         * lib/idcache.c: Include "idcache.h".
66684         Don't include <sys/types.h>.
66685         Add a FIXME comment.
66686         Move file-scoped "static" declarations to the top.
66687         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
66688
66689 2007-08-17  Bruno Haible  <bruno@clisp.org>
66690         and Paul Eggert  <eggert@cs.ucla.edu>
66691
66692         * MODULES.html.sh: Add diffseq.
66693         * modules/diffseq: New file.
66694         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
66695         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
66696
66697 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66698
66699         Import changes from coreutils for bootstrap script.
66700
66701         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
66702
66703         * build-aux/bootstrap (slurp): Work even in environments where
66704         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
66705         current code does not slurp files whose names start with ".", and
66706         this looks like it might be a troublesome area.
66707
66708         2007-07-11  Jim Meyering  <jim@meyering.net>
66709
66710         If there's a GPL vN copyright comment, require that N == 3.
66711
66712         2007-07-08  Jim Meyering  <jim@meyering.net>
66713
66714         Run the coreutils-specific code only if tests/Makefile.am.in exists.
66715         * build-aux/bootstrap (mam_template): Move definition out of loop.
66716
66717         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
66718
66719         * build-aux/bootstrap (symlink_to_dir): Rename function from
66720         symlink_to_gnulib.  Add a directory parameter.  Update all
66721         callers.
66722         (cp_mark_as_generated): Also check for -- and link to -- files in
66723         gl/.
66724
66725         2007-07-08  Jim Meyering  <jim@meyering.net>
66726
66727         Adapt to deeper hierarchy in gnulib.
66728         * build-aux/bootstrap (symlink_to_dir): If the destination
66729         directory doesn't exist, create it. This is required at least for
66730         "lib/uniwidth/cjk.h".
66731
66732         2007-05-15  Jim Meyering  <jim@meyering.net>
66733
66734         * build-aux/bootstrap: Now that generated Makefile.am files
66735         are no longer under version control, they must be created at
66736         bootstrap time.
66737
66738 2007-08-14  Ben Pfaff  <blp@gnu.org>
66739
66740         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
66741
66742 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66743
66744         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
66745         given the changes below.
66746         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
66747         even on hosts that have padding bits beyond the supported 64.
66748
66749 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
66750
66751         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
66752         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
66753         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
66754         depends on it.
66755         (xstrtol_error): Remove.
66756         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
66757         but with a different signature.
66758         (ATTRIBUTE_NORETURN, __attribute__): New macros.
66759         * lib/xstrtol-error.c: Include exitfail.h.
66760         (xstrtol_fatal): New function, with a different signature from the
66761         old xstrtol_error, so that the caller need not worry about passing
66762         in an exit status, or about storage management of the option argument.
66763         (xstrtol_error): Now a static function.  Redo signature to
66764         implement xstrtol_fatal.  Output the correct number of hyphens in
66765         front of the option so that the caller need not worry about
66766         storage management.
66767         (N_): New macro.
66768         (_): Remove; not used now.
66769         * modules/xstrtol: Depend on getopt.
66770         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
66771         of old STRTOL_FATAL_ERROR macro.
66772         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
66773         of test program.
66774         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
66775         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
66776
66777 2007-08-08  Eric Blake  <ebb9@byu.net>
66778
66779         * lib/xstrtol-error.c: Add missing include.
66780
66781         Move xstrtol messages into gnulib domain, when --pobase is used.
66782         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
66783         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
66784         * modules/xstrtol (Files): Distribute new file.
66785         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
66786         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
66787         * tests/test-xstrtol.c: ...into new file.
66788         * tests/test-xstrtoul.c: Also test xstrtoul.
66789         * tests/test-xstrtoimax.c: Also test xstrtoimax.
66790         * tests/test-xstrtoumax.c: Also test xstrtoumax.
66791         * tests/test-xstrtol.sh: Drive the tests.
66792         * tests/test-xstrtoimax.sh: Likewise.
66793         * tests/test-xstrtoumax.sh: Likewise.
66794         * modules/xstrtol-tests: New module.
66795         * modules/xstrtoimax-tests: Likewise.
66796         * modules/xstrtoumax-tests: Likewise.
66797
66798 2007-08-08  Jim Meyering  <jim@meyering.net>
66799
66800         New function: mfile_name_concat.
66801         * lib/filenamecat.c (mfile_name_concat): New function, just like
66802         file_name_concat, but return NULL upon failure rather than exiting
66803         with a diagnostic.
66804         * lib/filenamecat.h: Declare it.
66805
66806 2007-08-07  Bruno Haible  <bruno@clisp.org>
66807
66808         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
66809         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
66810         warning from gcc.
66811         Reported by Eric Blake.
66812
66813 2007-08-07  Simon Josefsson  <simon@josefsson.org>
66814
66815         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
66816         * modules/crypto/arcfour (License): Likewise.
66817         * modules/crypto/des-tests (License): Likewise.
66818         * modules/crypto/gc-arctwo-tests (License): Likewise.
66819         * modules/crypto/gc-des-tests (License): Likewise.
66820         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
66821         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
66822         * modules/crypto/gc-md2-tests (License): Likewise.
66823         * modules/crypto/gc-md4-tests (License): Likewise.
66824         * modules/crypto/gc-md5-tests (License): Likewise.
66825         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
66826         * modules/crypto/gc-rijndael-tests (License): Likewise.
66827         * modules/crypto/gc-sha1-tests (License): Likewise.
66828         * modules/crypto/gc-tests (License): Likewise.
66829         * modules/crypto/hmac-md5 (License): Likewise.
66830         * modules/crypto/hmac-sha1 (License): Likewise.
66831         * modules/crypto/md2-tests (License): Likewise.
66832         * modules/crypto/md4-tests (License): Likewise.
66833         * modules/crypto/md5 (License): Likewise.
66834         * modules/crypto/rijndael (License): Likewise.
66835         * modules/crypto/sha1 (License): Likewise.
66836         * modules/memxor (License): Likewise.
66837
66838 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
66839         and Bruno Haible  <bruno@clisp.org>
66840
66841         * NEWS: Describe interface changes to human, xstrtol.
66842         * lib/human.h: Include <xstrtol.h>.
66843         (human_options): Return enum strtol_error, not int.  Remove
66844         bool arg; take int * instead.
66845         * lib/human.c: Don't include "gettext.h".
66846         (_): Remove; no longer used.
66847         Don't include <xstrtol.h>, since human.h does it.
66848         (human_options): Adjust to abovementioned interface changes.
66849         Do not report error to stderr; that's now the caller's
66850         responsibility.
66851         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
66852         interface change.
66853         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
66854         Str, Argument_type_string.  All uses changed.  Put " argument"
66855         in diagnostics to make them clearer.  Change wording of suffix
66856         message for clarity.
66857         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
66858         Argument_type_string.
66859         (STRTOL_FATAL_WARN): Remove; no longer used.
66860         * modules/human (Depends-on): Remove gettext-h.
66861
66862 2007-08-06  Simon Josefsson  <simon@josefsson.org>
66863
66864         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
66865
66866 2007-07-31  Bruno Haible  <bruno@clisp.org>
66867
66868         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
66869         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
66870         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
66871
66872 2007-07-31  Bruno Haible  <bruno@clisp.org>
66873
66874         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
66875         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
66876
66877 2007-07-30  Bruno Haible  <bruno@clisp.org>
66878
66879         * modules/base64 (License): Use the synonymous term "LGPLv2+".
66880         * modules/c-ctype (License): Likewise.
66881         * modules/c-strcase (License): Likewise.
66882         * modules/check-version (License): Likewise.
66883         * modules/iconv (License): Likewise.
66884         * modules/iconv_open (License): Likewise.
66885         * modules/read-file (License): Likewise.
66886         * modules/striconv (License): Likewise.
66887         * modules/strverscmp (License): Likewise.
66888         * modules/vasprintf (License): Likewise.
66889         * modules/crypto/des (License): Likewise.
66890         * modules/crypto/gc (License): Likewise.
66891         * modules/crypto/gc-arcfour (License): Likewise.
66892         * modules/crypto/gc-arctwo (License): Likewise.
66893         * modules/crypto/gc-des (License): Likewise.
66894         * modules/crypto/gc-hmac-md5 (License): Likewise.
66895         * modules/crypto/gc-hmac-sha1 (License): Likewise.
66896         * modules/crypto/gc-md2 (License): Likewise.
66897         * modules/crypto/gc-md4 (License): Likewise.
66898         * modules/crypto/gc-md5 (License): Likewise.
66899         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
66900         * modules/crypto/gc-random (License): Likewise.
66901         * modules/crypto/gc-rijndael (License): Likewise.
66902         * modules/crypto/gc-sha1 (License): Likewise.
66903         * modules/crypto/md2 (License): Likewise.
66904         * modules/crypto/md4 (License): Likewise.
66905
66906 2007-07-30  Jim Meyering  <jim@meyering.net>
66907
66908         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
66909         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
66910         it has valid stat data.  This bug would cause du not to count the
66911         sizes of inaccessible directories.
66912         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
66913         in <http://bugzilla.redhat.com/250077>.
66914
66915 2007-07-25  Peter O'Gorman  <peter@pogma.com>
66916             Bruno Haible  <bruno@clisp.org>
66917
66918         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
66919         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
66920         #include_next, gives a diagnostic about it, but reports no error in
66921         the exit code.
66922         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
66923
66924 2007-07-24  Ben Pfaff  <blp@gnu.org>
66925
66926         Improve name: "count-one-bits" is better than "popcount".
66927         * MODULES.html.sh: Update name.
66928         * lib/popcount.h: Renamed lib/count-one-bits.h.
66929         (popcount): Renamed count_one_bits.
66930         (popcountl): Renamed count_one_bits_l.
66931         (popcountll): Renamed count_one_bits_ll.
66932         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
66933         * modules/popcount: Renamed module/count-one-bits.
66934         * modules/popcount-tests: Renamed module/count-one-bits-tests.
66935         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
66936
66937 2007-07-23  Ben Pfaff  <blp@gnu.org>
66938
66939         * lib/popcount.h (popcount32): Reduce size of constants, to allow
66940         better code generation, and add U to large constants to avoid
66941         warnings, in non-GCC case.
66942         Suggested by Bruno Haible.
66943
66944 2007-07-23  Ben Pfaff  <blp@gnu.org>
66945
66946         * lib/popcount.h: Use verify_true instead of if...abort.
66947         * modules/popcount: Depend on verify module.
66948         Suggested by Jim Meyering.
66949
66950 2007-07-23  Bruno Haible  <bruno@clisp.org>
66951
66952         * gnulib-tool (func_import): Create a .cvsignore file also when the
66953         directory is not yet in CVS but the toplevel directory is. When
66954         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
66955         Reported by Karl Berry.
66956
66957 2007-07-22  Ben Pfaff  <blp@gnu.org>
66958
66959         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
66960         case.
66961         Suggested by Eric Blake.
66962
66963 2007-07-22  Ben Pfaff  <blp@gnu.org>
66964
66965         New module: popcount.
66966         * MODULES.html.sh: Add popcount.
66967         * modules/popcount: New file.
66968         * modules/popcount-tests: New file.
66969         * tests/test-popcount.c: New file.
66970         * lib/popcount.h: New file.
66971         * m4/popcount.m4: New file.
66972
66973 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66974
66975         * build-aux/announce-gen: Update to GPLv3.
66976
66977         * build-aux/config.guess: Update from config.
66978
66979 2007-07-21  Bruno Haible  <bruno@clisp.org>
66980
66981         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
66982         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
66983
66984 2007-07-20  Jim Meyering  <jim@meyering.net>
66985
66986         * check-module: Diagnose a self-dependency.
66987
66988 2007-07-19  Bruno Haible  <bruno@clisp.org>
66989
66990         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
66991         empty.
66992         Reported by Eric Blake.
66993
66994 2007-07-18  Bruno Haible  <bruno@clisp.org>
66995
66996         * gnulib-tool: New options --po-base, --po-domain.
66997         (func_usage): Document them.
66998         (pobase, po_domain): New variables.
66999         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
67000         DEFAULT_TEXT_DOMAIN.
67001         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
67002         (func_import): Consider pobase and po_domain. Create a po/ directory.
67003         (func_create_testdir): Set pobase and po_domain to empty.
67004         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
67005         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
67006
67007 2007-07-18  Bruno Haible  <bruno@clisp.org>
67008
67009         * gnulib-tool (func_get_automake_snippet): Synthesize also an
67010         EXTRA_DIST augmentation for files in build-aux/.
67011
67012 2007-07-16  Bruno Haible  <bruno@clisp.org>
67013
67014         * modules/lseek (License): Use the synonymous term "LGPLv2+".
67015         * modules/getdelim (License): Likewise.
67016
67017 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67018
67019         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
67020         * modules/d-type (License): Likewise.
67021         * modules/extensions (License): Likewise.
67022         * modules/fnmatch (License): Likewise.
67023         * modules/fseeko (License): Likewise.
67024         * modules/getaddrinfo (License): Likewise.
67025         * modules/getline (License): Likewise.
67026         * modules/getlogin_r (License): Likewise.
67027         * modules/getpass (License): Likewise.
67028         * modules/gettimeofday (License): Likewise.
67029         * modules/glob (License): Likewise.
67030         * modules/inet_ntop (License): Likewise.
67031         * modules/malloc (License): Likewise.
67032         * modules/malloca (License): Likewise.
67033         * modules/memmem (License): Likewise.
67034         * modules/mempcpy (License): Likewise.
67035         * modules/memset (License): Likewise.
67036         * modules/minmax (License): Likewise.
67037         * modules/mktime (License): Likewise.
67038         * modules/netinet_in (License): Likewise.
67039         * modules/pathmax (License): Likewise.
67040         * modules/poll (License): Likewise.
67041         * modules/regex (License): Likewise.
67042         * modules/snprintf (License): Likewise.
67043         * modules/stdbool (License): Likewise.
67044         * modules/stdint (License): Likewise.
67045         * modules/stdio (License): Likewise.
67046         * modules/strcase (License): Likewise.
67047         * modules/strcasestr (License): Likewise.
67048         * modules/strdup (License): Likewise.
67049         * modules/string (License): Likewise.
67050         * modules/strndup (License): Likewise.
67051         * modules/strnlen (License): Likewise.
67052         * modules/strpbrk (License): Likewise.
67053         * modules/strptime (License): Likewise.
67054         * modules/strsep (License): Likewise.
67055         * modules/sys_select (License): Likewise.
67056         * modules/sys_socket (License): Likewise.
67057         * modules/sys_stat (License): Likewise.
67058         * modules/sys_time (License): Likewise.
67059         * modules/time (License): Likewise.
67060         * modules/time_r (License): Likewise.
67061         * modules/timegm (License): Likewise.
67062         * modules/unistd (License): Likewise.
67063         * modules/vsnprintf (License): Likewise.
67064         * modules/wctype (License): Likewise.
67065
67066 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67067
67068         * modules/argz (License): LGPLv2+.
67069
67070 2007-07-15  Karl Berry  <karl@gnu.org>
67071
67072         * doc/gnulib.texi: revise node structure per new fdl.texi.
67073
67074 2007-07-14  Bruno Haible  <bruno@clisp.org>
67075
67076         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
67077         the output file.
67078         * lib/uniname/uninames.h: Regenerated.
67079
67080 2007-07-14  Karl Berry  <karl@gnu.org>
67081
67082         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
67083         omitting sectioning and index commands.
67084
67085 2007-07-13  Bruno Haible  <bruno@clisp.org>
67086
67087         New gnulib-tool option --more-symlinks.
67088         * gnulib-tool (func_usage): Document --more-symlinks.
67089         (do_copyrights): New variable.
67090         Recognize option --more-symlinks.
67091         (func_import): Don't add a copyright notice transform to
67092         sed_transform_lib_file if do_copyrights is empty.
67093
67094 2007-07-13  Bruno Haible  <bruno@clisp.org>
67095
67096         * lib/vasnprintf.c (decimal_point_char): Define also if
67097         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
67098         && !NEED_PRINTF_DIRECTIVE_A.
67099         Reported by Clemens Koller <clemens.koller@anagramm.de> via
67100         Gary V. Vaughan <gary@gnu.org>.
67101
67102 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
67103
67104         * lib/inttypes_.h: Undo previous change, since it was fixed
67105         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
67106
67107 2007-07-13  Bruno Haible  <bruno@clisp.org>
67108
67109         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
67110         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
67111
67112 2007-07-13  Jim Meyering  <jim@meyering.net>
67113
67114         df: Don't fail for Tru64's "file-on-file mount".
67115         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
67116         so we fall through and use statfs instead.  Details here:
67117         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
67118         Reported by Albert Chin.
67119
67120 2007-07-13  Bruno Haible  <bruno@clisp.org>
67121
67122         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
67123         * modules/configmake (License): Likewise.
67124         * modules/gettext (License): Likewise.
67125         * modules/gettext-h (License): Likewise.
67126         * modules/include_next (License): Likewise.
67127         * modules/link-warning (License): Likewise.
67128         * modules/localcharset (License): Likewise.
67129         * modules/localename (License): Likewise.
67130         * modules/lock (License): Likewise.
67131         * modules/relocatable-lib-lgpl (License): Likewise.
67132         * modules/size_max (License): Likewise.
67133         * modules/vasnprintf (License): Likewise.
67134         * modules/wchar (License): Likewise.
67135         * modules/xsize (License): Likewise.
67136
67137 2007-07-13  Bruno Haible  <bruno@clisp.org>
67138
67139         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
67140         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
67141
67142 2007-07-12  Bruno Haible  <bruno@clisp.org>
67143
67144         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
67145         in the modules files.
67146
67147 2007-07-11  Karl Berry  <karl@gnu.org>
67148
67149         * MODULES.html.sh (func_module): use
67150          sed -e '\|^'"${includefile}"'$|d'
67151          instead of /.../d, to avoid errors on $includefile's containing /.
67152
67153 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
67154
67155         * gnulib-tool (func_import): Avoid duplication of --avoid
67156         statements
67157         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
67158         names to `_' in variable names.
67159
67160 2007-07-10  Eric Blake  <ebb9@byu.net>
67161
67162         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
67163         * NEWS: Document this change.
67164
67165 2007-07-08  Bruno Haible  <bruno@clisp.org>
67166
67167         Update to Unicode 5.0.
67168         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
67169         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
67170         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
67171         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
67172         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
67173         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
67174         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
67175         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
67176         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
67177         U+10A3F, U+1D242..U+1D244.
67178         (nonspacing_table_ind): Update.
67179         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
67180         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
67181
67182 2007-07-08  Bruno Haible  <bruno@clisp.org>
67183
67184         Update to Unicode 5.0.
67185         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
67186         code transform. Extend the name index field of unicode_name_to_code and
67187         unicode_code_to_name from 16 to 24 bits.
67188         * lib/uniname/uniname.c (unicode_character_name,
67189         unicode_name_character): Add the range 0x12xxx to the code transform.
67190         * lib/uniname/uninames.h: Regenerated.
67191         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
67192
67193 2007-07-07  Bruno Haible  <bruno@clisp.org>
67194
67195         * modules/wcwidth-tests: New file.
67196         * tests/test-wcwidth.c: New file.
67197
67198         Work around MacOS X wcwidth() bug.
67199         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
67200         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
67201         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
67202         original wcwidth in non-UTF-8 locales.
67203         * modules/wcwidth (Depends-on): Add localcharset, streq,
67204         uniwidth/width.
67205         * doc/functions/wcwidth.texi: Update.
67206
67207 2007-07-07  Bruno Haible  <bruno@clisp.org>
67208
67209         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
67210         (wcwidth): New declaration.
67211         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
67212         macros.
67213         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
67214         here. Prepare for creating <wchar.h> unconditionally.
67215         * modules/wchar (Depends-on): Add link-warning.
67216         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
67217         REPLACE_WCWIDTH, and GL_LINK_WARNING.
67218         * lib/wcwidth.h: Remove file.
67219         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
67220         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
67221         * modules/wcwidth (Files): Remove lib/wcwidth.h.
67222         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
67223         (Include): Replace wcwidth.h with <wchar.h>.
67224         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
67225         * lib/mbchar.h: Don't include wcwidth.h.
67226         * lib/mbswidth.c: Likewise.
67227         * NEWS: Mention the change.
67228
67229 2007-07-07  Bruno Haible  <bruno@clisp.org>
67230
67231         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
67232         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
67233         definition with an external declaration.
67234         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
67235         defined as a function. Remove AC_C_INLINE requirement.
67236         * modules/wcwidth (Files): Add lib/wcwidth.c.
67237         (Makefile.am): Remove redundant statement.
67238
67239 2007-07-07  Bruno Haible  <bruno@clisp.org>
67240
67241         * MODULES.html.sh (Unicode string functions): Add the new modules.
67242
67243         * tests/uniwidth/test-u32-strwidth.c: New file.
67244         * modules/uniwidth/u32-strwidth-tests: New file.
67245
67246         * lib/uniwidth/u32-strwidth.c: New file.
67247         * modules/uniwidth/u32-strwidth: New file.
67248
67249         * tests/uniwidth/test-u16-strwidth.c: New file.
67250         * modules/uniwidth/u16-strwidth-tests: New file.
67251
67252         * lib/uniwidth/u16-strwidth.c: New file.
67253         * modules/uniwidth/u16-strwidth: New file.
67254
67255         * tests/uniwidth/test-u8-strwidth.c: New file.
67256         * modules/uniwidth/u8-strwidth-tests: New file.
67257
67258         * lib/uniwidth/u8-strwidth.c: New file.
67259         * modules/uniwidth/u8-strwidth: New file.
67260
67261         * tests/uniwidth/test-u32-width.c: New file.
67262         * modules/uniwidth/u32-width-tests: New file.
67263
67264         * lib/uniwidth/u32-width.c: New file.
67265         * modules/uniwidth/u32-width: New file.
67266
67267         * tests/uniwidth/test-u16-width.c: New file.
67268         * modules/uniwidth/u16-width-tests: New file.
67269
67270         * lib/uniwidth/u16-width.c: New file.
67271         * modules/uniwidth/u16-width: New file.
67272
67273         * tests/uniwidth/test-u8-width.c: New file.
67274         * modules/uniwidth/u8-width-tests: New file.
67275
67276         * lib/uniwidth/u8-width.c: New file.
67277         * modules/uniwidth/u8-width: New file.
67278
67279         * tests/uniwidth/test-uc_width.c: New file.
67280         * modules/uniwidth/width-tests: New file.
67281
67282         * lib/uniwidth/width.c: New file, from GNU libiconv.
67283         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
67284         * modules/uniwidth/width: New file.
67285
67286         * lib/uniwidth.h: New file, from GNU libiconv.
67287         * modules/uniwidth/base: New file.
67288
67289 2007-07-07  Bruno Haible  <bruno@clisp.org>
67290
67291         * lib/uniname.h: New file, from GNU gettext.
67292         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
67293         * lib/uniname/uninames.h: New file, from GNU gettext.
67294         * lib/uniname/uniname.c: New file, from GNU gettext.
67295         * tests/uniname/test-uninames.sh: New file.
67296         * tests/uniname/test-uninames.c: New file, from GNU gettext.
67297         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
67298         * modules/uniname/base: New file.
67299         * modules/uniname/uniname: New file.
67300         * modules/uniname/uniname-tests: New file.
67301         * MODULES.html.sh (Unicode string functions): Add the new modules.
67302
67303 2007-07-06  Bruno Haible  <bruno@clisp.org>
67304
67305         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
67306
67307 2007-07-06  Bruno Haible  <bruno@clisp.org>
67308
67309         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
67310         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
67311         includes <cygwin/sys_time.h> which includes <sys/select.h> which
67312         include <sys/time.h>.
67313         Reported by Eric Blake.
67314
67315 2007-07-06  Eric Blake  <ebb9@byu.net>
67316
67317         Fix testing canonicalize on cygwin.
67318         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
67319         Revert patch from 2007-06-19.
67320         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
67321         canonicalize module is also in use.
67322         * tests/test-canonicalize.c: New file.
67323         * tests/test-canonicalize.sh: Likewise.
67324         * modules/canonicalize-tests: Likewise.
67325
67326 2007-07-06  Jim Meyering  <jim@meyering.net>
67327
67328         * lib/getugroups.c (getugroups): Detect getgrent failure.
67329         Adjust comment to reflect reality: this function may return -1.
67330
67331 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
67332
67333         * build-aux/bootstrap (TP_URL,get_translations): Update to use
67334         the new TP address.
67335         (usage): Fix typo
67336         (gnulib_mk): New variable.
67337
67338 2007-07-05  Jim Meyering  <jim@meyering.net>
67339
67340         Don't let endgrent clobber errno, no matter how improbable.
67341         * lib/getugroups.c (getugroups): Save and restore errno around
67342         endgrent call.
67343
67344         Close the group DB even when failing with 2^31 or more members.
67345         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
67346
67347 2007-07-04  Jim Meyering  <jim@meyering.net>
67348
67349         * lib/getugroups.h: New file.
67350         * lib/getugroups.c: Include "getugroups.h".
67351         Remove uses of "register" keyword.
67352         Move local variable, "cp", down into scope where used.
67353         Give "username" parameter the "const" attribute.
67354         * modules/getugroups (Files): Add lib/getugroups.h
67355
67356 2007-07-04  Karl Berry  <karl@gnu.org>
67357
67358         * MODULES.html.sh (func_all_modules): Complete rename of
67359         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
67360
67361 2007-07-02  Bruno Haible  <bruno@clisp.org>
67362
67363         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
67364         mode, when inttypes.h comes from gnulib.
67365         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
67366
67367 2007-07-02  Simon Josefsson  <simon@josefsson.org>
67368
67369         * NEWS: Mention lgpl module name change.
67370
67371         * modules/lgpl-2.1: Renamed from lgpl.
67372
67373         * NEWS: Mention gpl module name change.
67374
67375         * modules/gpl-3.0: New file, based on gpl-2.0.
67376
67377         * modules/gpl-2.0: Renamed from gpl.
67378
67379         * modules/gpl: Fix filename, doc/gpl.texi is now found at
67380         doc/gpl-2.0.texi.
67381
67382 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
67383
67384         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
67385         #define __STDC_LIMIT_MACROS temporarily while including
67386         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
67387         Problem reported by Joel E. Denny in
67388         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
67389
67390 2007-07-01  Bruno Haible  <bruno@clisp.org>
67391
67392         * lib/unistdio.h: New file.
67393         * lib/unistdio/u-asnprintf.h: New file.
67394         * lib/unistdio/u-asprintf.h: New file.
67395         * lib/unistdio/u-printf-args.c: New file.
67396         * lib/unistdio/u-printf-args.h: New file.
67397         * lib/unistdio/u-printf-parse.h: New file.
67398         * lib/unistdio/u-snprintf.h: New file.
67399         * lib/unistdio/u-sprintf.h: New file.
67400         * lib/unistdio/u-vasprintf.h: New file.
67401         * lib/unistdio/u-vsnprintf.h: New file.
67402         * lib/unistdio/u-vsprintf.h: New file.
67403         * lib/unistdio/ulc-asnprintf.c: New file.
67404         * lib/unistdio/ulc-asprintf.c: New file.
67405         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
67406         * lib/unistdio/ulc-printf-parse.c: New file.
67407         * lib/unistdio/ulc-snprintf.c: New file.
67408         * lib/unistdio/ulc-sprintf.c: New file.
67409         * lib/unistdio/ulc-vasnprintf.c: New file.
67410         * lib/unistdio/ulc-vasprintf.c: New file.
67411         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
67412         * lib/unistdio/ulc-vsnprintf.c: New file.
67413         * lib/unistdio/ulc-vsprintf.c: New file.
67414         * lib/unistdio/u8-asnprintf.c: New file.
67415         * lib/unistdio/u8-asprintf.c: New file.
67416         * lib/unistdio/u8-printf-parse.c: New file.
67417         * lib/unistdio/u8-snprintf.c: New file.
67418         * lib/unistdio/u8-sprintf.c: New file.
67419         * lib/unistdio/u8-vasnprintf.c: New file.
67420         * lib/unistdio/u8-vasprintf.c: New file.
67421         * lib/unistdio/u8-vsnprintf.c: New file.
67422         * lib/unistdio/u8-vsprintf.c: New file.
67423         * lib/unistdio/u8-u8-asnprintf.c: New file.
67424         * lib/unistdio/u8-u8-asprintf.c: New file.
67425         * lib/unistdio/u8-u8-snprintf.c: New file.
67426         * lib/unistdio/u8-u8-sprintf.c: New file.
67427         * lib/unistdio/u8-u8-vasnprintf.c: New file.
67428         * lib/unistdio/u8-u8-vasprintf.c: New file.
67429         * lib/unistdio/u8-u8-vsnprintf.c: New file.
67430         * lib/unistdio/u8-u8-vsprintf.c: New file.
67431         * lib/unistdio/u16-asnprintf.c: New file.
67432         * lib/unistdio/u16-asprintf.c: New file.
67433         * lib/unistdio/u16-printf-parse.c: New file.
67434         * lib/unistdio/u16-snprintf.c: New file.
67435         * lib/unistdio/u16-sprintf.c: New file.
67436         * lib/unistdio/u16-vasnprintf.c: New file.
67437         * lib/unistdio/u16-vasprintf.c: New file.
67438         * lib/unistdio/u16-vsnprintf.c: New file.
67439         * lib/unistdio/u16-vsprintf.c: New file.
67440         * lib/unistdio/u16-u16-asnprintf.c: New file.
67441         * lib/unistdio/u16-u16-asprintf.c: New file.
67442         * lib/unistdio/u16-u16-snprintf.c: New file.
67443         * lib/unistdio/u16-u16-sprintf.c: New file.
67444         * lib/unistdio/u16-u16-vasnprintf.c: New file.
67445         * lib/unistdio/u16-u16-vasprintf.c: New file.
67446         * lib/unistdio/u16-u16-vsnprintf.c: New file.
67447         * lib/unistdio/u16-u16-vsprintf.c: New file.
67448         * lib/unistdio/u32-asnprintf.c: New file.
67449         * lib/unistdio/u32-asprintf.c: New file.
67450         * lib/unistdio/u32-printf-parse.c: New file.
67451         * lib/unistdio/u32-snprintf.c: New file.
67452         * lib/unistdio/u32-sprintf.c: New file.
67453         * lib/unistdio/u32-vasnprintf.c: New file.
67454         * lib/unistdio/u32-vasprintf.c: New file.
67455         * lib/unistdio/u32-vsnprintf.c: New file.
67456         * lib/unistdio/u32-vsprintf.c: New file.
67457         * lib/unistdio/u32-u32-asnprintf.c: New file.
67458         * lib/unistdio/u32-u32-asprintf.c: New file.
67459         * lib/unistdio/u32-u32-snprintf.c: New file.
67460         * lib/unistdio/u32-u32-sprintf.c: New file.
67461         * lib/unistdio/u32-u32-vasnprintf.c: New file.
67462         * lib/unistdio/u32-u32-vasprintf.c: New file.
67463         * lib/unistdio/u32-u32-vsnprintf.c: New file.
67464         * lib/unistdio/u32-u32-vsprintf.c: New file.
67465         * tests/unistdio/test-ulc-asnprintf1.c: New file.
67466         * tests/unistdio/test-ulc-asnprintf1.h: New file.
67467         * tests/unistdio/test-ulc-printf1.h: New file.
67468         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
67469         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
67470         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
67471         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
67472         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
67473         * tests/unistdio/test-ulc-vasprintf1.c: New file.
67474         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
67475         * tests/unistdio/test-ulc-vsprintf1.c: New file.
67476         * tests/unistdio/test-u8-asnprintf1.c: New file.
67477         * tests/unistdio/test-u8-asnprintf1.h: New file.
67478         * tests/unistdio/test-u8-printf1.h: New file.
67479         * tests/unistdio/test-u8-vasnprintf1.c: New file.
67480         * tests/unistdio/test-u8-vasnprintf2.c: New file.
67481         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
67482         * tests/unistdio/test-u8-vasnprintf3.c: New file.
67483         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
67484         * tests/unistdio/test-u8-vasprintf1.c: New file.
67485         * tests/unistdio/test-u8-vsnprintf1.c: New file.
67486         * tests/unistdio/test-u8-vsprintf1.c: New file.
67487         * tests/unistdio/test-u16-asnprintf1.c: New file.
67488         * tests/unistdio/test-u16-asnprintf1.h: New file.
67489         * tests/unistdio/test-u16-printf1.h: New file.
67490         * tests/unistdio/test-u16-vasnprintf1.c: New file.
67491         * tests/unistdio/test-u16-vasnprintf2.c: New file.
67492         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
67493         * tests/unistdio/test-u16-vasnprintf3.c: New file.
67494         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
67495         * tests/unistdio/test-u16-vasprintf1.c: New file.
67496         * tests/unistdio/test-u16-vsnprintf1.c: New file.
67497         * tests/unistdio/test-u16-vsprintf1.c: New file.
67498         * tests/unistdio/test-u32-asnprintf1.c: New file.
67499         * tests/unistdio/test-u32-asnprintf1.h: New file.
67500         * tests/unistdio/test-u32-printf1.h: New file.
67501         * tests/unistdio/test-u32-vasnprintf1.c: New file.
67502         * tests/unistdio/test-u32-vasnprintf2.c: New file.
67503         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
67504         * tests/unistdio/test-u32-vasnprintf3.c: New file.
67505         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
67506         * tests/unistdio/test-u32-vasprintf1.c: New file.
67507         * tests/unistdio/test-u32-vsnprintf1.c: New file.
67508         * tests/unistdio/test-u32-vsprintf1.c: New file.
67509         * modules/unistdio/base: New file.
67510         * modules/unistdio/u-printf-args: New file.
67511         * modules/unistdio/ulc-asnprintf: New file.
67512         * modules/unistdio/ulc-asprintf: New file.
67513         * modules/unistdio/ulc-fprintf: New file.
67514         * modules/unistdio/ulc-printf-parse: New file.
67515         * modules/unistdio/ulc-snprintf: New file.
67516         * modules/unistdio/ulc-sprintf: New file.
67517         * modules/unistdio/ulc-vasnprintf: New file.
67518         * modules/unistdio/ulc-vasprintf: New file.
67519         * modules/unistdio/ulc-vfprintf: New file.
67520         * modules/unistdio/ulc-vsnprintf: New file.
67521         * modules/unistdio/ulc-vsprintf: New file.
67522         * modules/unistdio/u8-asnprintf: New file.
67523         * modules/unistdio/u8-asprintf: New file.
67524         * modules/unistdio/u8-printf-parse: New file.
67525         * modules/unistdio/u8-snprintf: New file.
67526         * modules/unistdio/u8-sprintf: New file.
67527         * modules/unistdio/u8-vasnprintf: New file.
67528         * modules/unistdio/u8-vasprintf: New file.
67529         * modules/unistdio/u8-vsnprintf: New file.
67530         * modules/unistdio/u8-vsprintf: New file.
67531         * modules/unistdio/u8-u8-asnprintf: New file.
67532         * modules/unistdio/u8-u8-asprintf: New file.
67533         * modules/unistdio/u8-u8-snprintf: New file.
67534         * modules/unistdio/u8-u8-sprintf: New file.
67535         * modules/unistdio/u8-u8-vasnprintf: New file.
67536         * modules/unistdio/u8-u8-vasprintf: New file.
67537         * modules/unistdio/u8-u8-vsnprintf: New file.
67538         * modules/unistdio/u8-u8-vsprintf: New file.
67539         * modules/unistdio/u16-asnprintf: New file.
67540         * modules/unistdio/u16-asprintf: New file.
67541         * modules/unistdio/u16-printf-parse: New file.
67542         * modules/unistdio/u16-snprintf: New file.
67543         * modules/unistdio/u16-sprintf: New file.
67544         * modules/unistdio/u16-vasnprintf: New file.
67545         * modules/unistdio/u16-vasprintf: New file.
67546         * modules/unistdio/u16-vsnprintf: New file.
67547         * modules/unistdio/u16-vsprintf: New file.
67548         * modules/unistdio/u16-u16-asnprintf: New file.
67549         * modules/unistdio/u16-u16-asprintf: New file.
67550         * modules/unistdio/u16-u16-snprintf: New file.
67551         * modules/unistdio/u16-u16-sprintf: New file.
67552         * modules/unistdio/u16-u16-vasnprintf: New file.
67553         * modules/unistdio/u16-u16-vasprintf: New file.
67554         * modules/unistdio/u16-u16-vsnprintf: New file.
67555         * modules/unistdio/u16-u16-vsprintf: New file.
67556         * modules/unistdio/u32-asnprintf: New file.
67557         * modules/unistdio/u32-asprintf: New file.
67558         * modules/unistdio/u32-printf-parse: New file.
67559         * modules/unistdio/u32-snprintf: New file.
67560         * modules/unistdio/u32-sprintf: New file.
67561         * modules/unistdio/u32-vasnprintf: New file.
67562         * modules/unistdio/u32-vasprintf: New file.
67563         * modules/unistdio/u32-vsnprintf: New file.
67564         * modules/unistdio/u32-vsprintf: New file.
67565         * modules/unistdio/u32-u32-asnprintf: New file.
67566         * modules/unistdio/u32-u32-asprintf: New file.
67567         * modules/unistdio/u32-u32-snprintf: New file.
67568         * modules/unistdio/u32-u32-sprintf: New file.
67569         * modules/unistdio/u32-u32-vasnprintf: New file.
67570         * modules/unistdio/u32-u32-vasprintf: New file.
67571         * modules/unistdio/u32-u32-vsnprintf: New file.
67572         * modules/unistdio/u32-u32-vsprintf: New file.
67573         * modules/unistdio/ulc-asnprintf-tests: New file.
67574         * modules/unistdio/ulc-vasnprintf-tests: New file.
67575         * modules/unistdio/ulc-vasprintf-tests: New file.
67576         * modules/unistdio/ulc-vsnprintf-tests: New file.
67577         * modules/unistdio/ulc-vsprintf-tests: New file.
67578         * modules/unistdio/u8-asnprintf-tests: New file.
67579         * modules/unistdio/u8-vasnprintf-tests: New file.
67580         * modules/unistdio/u8-vasprintf-tests: New file.
67581         * modules/unistdio/u8-vsnprintf-tests: New file.
67582         * modules/unistdio/u8-vsprintf-tests: New file.
67583         * modules/unistdio/u16-asnprintf-tests: New file.
67584         * modules/unistdio/u16-vasnprintf-tests: New file.
67585         * modules/unistdio/u16-vasprintf-tests: New file.
67586         * modules/unistdio/u16-vsnprintf-tests: New file.
67587         * modules/unistdio/u16-vsprintf-tests: New file.
67588         * modules/unistdio/u32-asnprintf-tests: New file.
67589         * modules/unistdio/u32-vasnprintf-tests: New file.
67590         * modules/unistdio/u32-vasprintf-tests: New file.
67591         * modules/unistdio/u32-vsnprintf-tests: New file.
67592         * modules/unistdio/u32-vsprintf-tests: New file.
67593         * MODULES.html.sh (Unicode string functions): Add the new modules.
67594
67595 2007-07-01  Bruno Haible  <bruno@clisp.org>
67596
67597         * lib/sprintf.c (sprintf): Limit the available length estimation,
67598         to avoid address wraparound.
67599         * lib/vsprintf.c (vsprintf): Likewise.
67600         * modules/sprintf-posix (Dependencies): Add stdint.
67601         * modules/vsprintf-posix (Dependencies): Likewise.
67602
67603 2007-07-01  Bruno Haible  <bruno@clisp.org>
67604
67605         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
67606         Windows PATH as well. Conservative double-quoting. Comments.
67607
67608 2007-07-01  Bruno Haible  <bruno@clisp.org>
67609             Eric Blake  <ebb9@byu.net>
67610             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67611
67612         * gnulib-tool (self_abspathname): Fix algorithm to cope with
67613         empty components in $PATH, denoting '.'.
67614
67615 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67616
67617         * gnulib-tool: Fix indentation.
67618         (func_create_megatestdir): Likewise.
67619         Report by Bruno Haible.
67620
67621 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67622
67623         Sync from Automake.
67624         * build-aux/gnupload: Fix shell portability issues with for loops.
67625         Report by Karl Berry.
67626
67627 2007-06-29  Simon Josefsson  <simon@josefsson.org>
67628
67629         * build-aux/maint.mk (POURL): Use translationproject.org.
67630
67631 2007-06-27  Simon Josefsson  <simon@josefsson.org>
67632             Bruno Haible  <bruno@clisp.org>
67633
67634         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
67635         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
67636         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
67637         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
67638         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
67639
67640 2007-06-27  Bruno Haible  <bruno@clisp.org>
67641
67642         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
67643         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
67644
67645 2007-06-26  Karl Berry  <karl@gnu.org>
67646
67647         * MODULES.html.sh: remove xreadlink-with-size.
67648
67649 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
67650
67651         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
67652         method that I hope also handles the double-include problem noted
67653         by Bruno Haible in
67654         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
67655
67656 2007-06-23  Bruno Haible  <bruno@clisp.org>
67657
67658         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67659         Don't let the 'mostlyclean' target fail if the last subdirectory could
67660         not be removed.
67661         Reported by Karl Berry.
67662
67663 2007-06-23  Bruno Haible  <bruno@clisp.org>
67664
67665         * gnulib-tool (echo): Add a speedier workaround for ksh.
67666         * tests/test-echo.sh: Likewise.
67667
67668 2007-06-23  Bruno Haible  <bruno@clisp.org>
67669
67670         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
67671         * tests/test-echo.sh: Likewise.
67672
67673 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67674
67675         * gnulib-tool (IFS): Initialize early, so we don't set it to
67676         empty later.
67677         (self_abspathname): Rewrite algorithm to set it, reindent.
67678         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
67679         (func_create_megatestdir): Merge some sed scripts.
67680
67681 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
67682
67683         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
67684         exposed by Sun Studio 11 cc on Solaris 8.
67685
67686 2007-06-22  Bruno Haible  <bruno@clisp.org>
67687
67688         * gnulib-tool (echo): Ensure the echo primitive does not interpret
67689         backslashes.
67690         * tests/test-echo.sh: New file.
67691
67692 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67693
67694         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
67695         simplify `sed_replace_build_aux' scripts, they are portable but
67696         echoing them with `echo' is not.
67697         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
67698
67699 2007-06-21  Karl Berry  <karl@gnu.org>
67700
67701         * config/srclist.txt: guess we can't handle the licenses via
67702         srclist at the moment.
67703
67704 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
67705
67706         * MODULES.html.sh: Add include_next.
67707         * modules/include_next: New file.
67708
67709 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
67710
67711         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
67712         INCLUDE_NEXT.
67713         (gl_CHECK_NEXT_HEADERS): New macro.
67714         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
67715         the obsolescent gl_ABSOLUTE_HEADER.
67716         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
67717         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
67718         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
67719         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
67720         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
67721         * m4/math_h.m4 (gl_MATH_H): Likewise.
67722         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
67723         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
67724         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
67725         * m4/stdint.m4 (gl_STDINT_H): Likewise.
67726         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
67727         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
67728         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
67729         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
67730         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
67731         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
67732         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
67733         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
67734         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
67735         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
67736         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
67737         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
67738         * m4/inttypes.m4 (gl_INTTYPES_H): Define
67739         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
67740         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
67741         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
67742         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
67743         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
67744         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
67745         * lib/float_.h: Likewise.
67746         * lib/inttypes_.h: Likewise.
67747         * lib/math_.h: Likewise.
67748         * lib/search_.h: Likewise.
67749         * lib/signal_.h: Likewise.
67750         * lib/stdint_.h: Likewise.
67751         * lib/stdio_.h: Likewise.
67752         * lib/stdlib_.h: Likewise.
67753         * lib/string_.h: Likewise.
67754         * lib/sys_stat_.h: Likewise.
67755         * lib/sys_time_.h: Likewise.
67756         * lib/time_.h: Likewise.
67757         * lib/unistd_.h: Likewise.
67758         * lib/wchar_.h: Likewise.
67759         * lib/wctype_.h: Likewise.
67760         * lib/dirent_.h: Likewise.
67761         * lib/iconv_.h: Likewise.
67762         * lib/locale_.h: Likewise.
67763         * lib/netinet_in_.h: Likewise.
67764         * lib/sys_select_.h: Likewise.
67765         * lib/sys_socket_.h: Likewise.
67766         * lib/sysexits_.h: Likewise.
67767         * modules/fcntl (Depends-on): Depend on include_next, not
67768         absolute_header.
67769         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
67770         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
67771         * modules/fchdir: Likewise.
67772         * modules/float: Likewise.
67773         * modules/iconv_open: Likewise.
67774         * modules/inttypes: Likewise.
67775         * modules/locale: Likewise.
67776         * modules/math: Likewise.
67777         * modules/netinet_in: Likewise.
67778         * modules/search: Likewise.
67779         * modules/signal: Likewise.
67780         * modules/stdint: Likewise.
67781         * modules/stdio: Likewise.
67782         * modules/stdlib: Likewise.
67783         * modules/string: Likewise.
67784         * modules/sys_select: Likewise.
67785         * modules/sys_socket: Likewise.
67786         * modules/sys_stat: Likewise.
67787         * modules/sys_time: Likewise.
67788         * modules/sysexits: Likewise.
67789         * modules/time: Likewise.
67790         * modules/unistd: Likewise.
67791         * modules/wchar: Likewise.
67792         * modules/wctype: Likewise.
67793         * modules/sys_stat: Change maintainer to "all".
67794         * modules/unistd: Likewise.
67795
67796 2007-06-20  Karl Berry  <karl@gnu.org>
67797
67798         * config/srclist.txt: track www changes in license files.
67799
67800 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
67801
67802         * build-aux/bootstrap: Remove stray dot.
67803         Make sure build_aux settings are honored when linking
67804         gnulib_extra_files.
67805
67806 2007-06-19  Eric Blake  <ebb9@byu.net>
67807
67808         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
67809         Allow compilation on cygwin.
67810
67811 2007-06-19  Jim Meyering  <jim@meyering.net>
67812
67813         xreadlink-with-size: Remove module.  No longer used.
67814         Ex-callers now use xreadlink or mreadlink-with-size.
67815         * modules/xreadlink-with-size: Remove module.
67816         * lib/xreadlink-with-size.c: Remove file.
67817         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
67818         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
67819         just before the function definition *is* accurate.
67820
67821         Eliminate one way canonicalize_filename_mode could exit.
67822         * lib/canonicalize.c (canonicalize_filename_mode):
67823         Use mreadlink_with_size, not xreadlink_with_size.
67824
67825 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
67826
67827         Detect porting problems to FreeBSD/arm, which has time_t wider than
67828         long int.  Original problem reported for GNU diff by Xin Li in
67829         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
67830         * modules/getdate (Depends-on): Add intprops, verify.
67831         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
67832         is an integer type no wider than long int.
67833
67834 2007-06-18  Jim Meyering  <jim@meyering.net>
67835
67836         New module: mreadlink-with-size.
67837         * MODULES.html.sh: Add mreadlink-with-size.
67838         * modules/mreadlink-with-size: New module
67839         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
67840         not xreadlink-with-size.
67841         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
67842
67843 2007-06-16  Bruno Haible  <bruno@clisp.org>
67844
67845         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
67846         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
67847         Reported by Gary V. Vaughan <gary@gnu.org>.
67848
67849 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
67850
67851         Revamp lchown so that it lives in unistd.h where it belongs.
67852         * lib/lchown.h: Remove.
67853         * lib/dirchownmod.c: Don't include lib/lchown.h.
67854         * lib/fchownat.c: Likewise.
67855         * lib/openat.c: Likewise.
67856         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
67857         does not follow symlinks.
67858         (EOPNOTSUPP): Define if not defined.
67859         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
67860         is defined to 0.
67861         (lchown): New decl.
67862         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
67863         Do not check for lchown decl.
67864         Set REPLACE_LCHOWN.
67865         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
67866         REPLACE_LCHOWN.
67867         * modules/chown: Make it clear it follows symlinks.
67868         * modules/lchown: Make it clear it doesn't follow symlinks.
67869         (Files): Remove lib/lchown.h
67870         (Depends-on): Add unistd.
67871         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
67872         (Include): Include <unistd.h>, not "lchown.h".
67873         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
67874         REPLACE_LCHOWN.
67875
67876 2007-06-15  Jim Meyering  <jim@meyering.net>
67877
67878         Change license (GPL to LGPL) of fsusage and dependents.
67879         * modules/fsusage (License): Change to LGPL.
67880         * modules/full-read (License): Likewise.
67881         * modules/full-write (License): Likewise.
67882         * modules/safe-read (License): Likewise.
67883         * modules/safe-write (License): Likewise.
67884
67885 2007-06-14  Ben Pfaff  <blp@gnu.org>
67886
67887         Missing part of allocsa -> malloca transition.
67888         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
67889         gl_MALLOCA.
67890
67891 2007-06-12  Bruno Haible  <bruno@clisp.org>
67892
67893         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
67894         to ia64, x86_64, i386.
67895         Reported by Eric Blake.
67896
67897 2007-06-12  Bruno Haible  <bruno@clisp.org>
67898
67899         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
67900         cross-compiling to x86_64.
67901
67902 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
67903
67904         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
67905         glitch reported by Ralf Wildenhues in
67906         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
67907
67908         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
67909         Vin Shelton.
67910
67911 2007-06-11  Bruno Haible  <bruno@clisp.org>
67912
67913         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
67914         replacement string.
67915         Reported by Eric Blake.
67916
67917 2007-06-10  Bruno Haible  <bruno@clisp.org>
67918
67919         Prepare vasnprintf code for use with Unicode strings.
67920         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
67921         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
67922         TYPE_U32_STRING.
67923         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
67924         a_u32_string variants.
67925         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
67926         * lib/printf-args.c: Don't include config.h and the specification
67927         header if PRINTF_FETCHARGS is already defined.
67928         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
67929         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
67930         TYPE_U16_STRING, TYPE_U32_STRING.
67931         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
67932         u16_directive, u16_directives, u32_directive, u32_directives): New
67933         types.
67934         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
67935         New declarations.
67936         * lib/printf-parse.c: Don't include config.h and the specification
67937         header if PRINTF_PARSE is already defined. Eliminate the set of
67938         parameters for WIDE_CHAR_VERSION; the user of this file must provide
67939         them now. Include c-ctype.h.
67940         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
67941         directive and CHAR_T_ONLY_ASCII.
67942         * lib/vasnprintf.c: Don't include config.h and the specification header
67943         if VASNPRINTF is already defined.
67944         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
67945         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
67946         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
67947         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
67948         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
67949         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
67950         code accordingly.
67951         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
67952         pad_ourselves also in this case, with the 'c' and 's' directives, and
67953         with a different notion of "width".
67954         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
67955
67956 2007-06-10  Bruno Haible  <bruno@clisp.org>
67957
67958         * modules/unistr/u32-mbsnlen: New file.
67959         * lib/unistr/u32-mbsnlen.c: New file.
67960
67961         * modules/unistr/u16-mbsnlen: New file.
67962         * lib/unistr/u16-mbsnlen.c: New file.
67963
67964         * modules/unistr/u8-mbsnlen: New file.
67965         * lib/unistr/u8-mbsnlen.c: New file.
67966
67967         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
67968         declarations.
67969
67970 2007-06-10  Bruno Haible  <bruno@clisp.org>
67971
67972         * lib/string_.h (mbsnlen): New declaration.
67973         * lib/mbsnlen.c: New file.
67974         * m4/mbsnlen.m4: New file.
67975         * modules/mbsnlen: New file.
67976         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
67977         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
67978         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
67979
67980 2007-06-10  Bruno Haible  <bruno@clisp.org>
67981
67982         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
67983
67984 2007-06-10  Bruno Haible  <bruno@clisp.org>
67985
67986         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
67987         * lib/mbuiter.h: Likewise.
67988
67989 2007-06-10  Bruno Haible  <bruno@clisp.org>
67990
67991         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
67992         declaration.
67993
67994 2007-06-10  Karl Berry  <karl@gnu.org>
67995
67996         * config/srclist.txt: remove gettext entries, Bruno prefers
67997         to update individually.
67998
67999 2007-06-10  Bruno Haible  <bruno@clisp.org>
68000
68001         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
68002         'maxlen'. Ensure only length + width bytes are allocated, not
68003         length + 1 + width.
68004
68005 2007-06-09  Bruno Haible  <bruno@clisp.org>
68006
68007         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
68008         (CHAR_T): Remove macro.
68009         (VASNPRINTF): Update.
68010
68011 2007-06-09  Bruno Haible  <bruno@clisp.org>
68012
68013         * MODULES.html.sh (Unicode string functions): Add the new modules.
68014
68015         * modules/uniconv/u32-conv-to-enc: New file.
68016         * lib/uniconv/u32-conv-to-enc.c: New file.
68017         * modules/uniconv/u32-conv-to-enc-tests: New file.
68018         * tests/uniconv/test-u32-conv-to-enc.c: New file.
68019
68020         * modules/uniconv/u16-conv-to-enc: New file.
68021         * lib/uniconv/u16-conv-to-enc.c: New file.
68022         * lib/uniconv/u-conv-to-enc.h: New file.
68023         * modules/uniconv/u16-conv-to-enc-tests: New file.
68024         * tests/uniconv/test-u16-conv-to-enc.c: New file.
68025
68026         * modules/uniconv/u8-conv-to-enc: New file.
68027         * lib/uniconv/u8-conv-to-enc.c: New file.
68028         * modules/uniconv/u8-conv-to-enc-tests: New file.
68029         * tests/uniconv/test-u8-conv-to-enc.c: New file.
68030
68031         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
68032         u32_conv_to_encoding): New declarations.
68033
68034 2007-06-09  Bruno Haible  <bruno@clisp.org>
68035
68036         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
68037
68038 2007-06-09  Bruno Haible  <bruno@clisp.org>
68039
68040         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
68041         * modules/malloca: Renamed from modules/allocsa, updated.
68042         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
68043         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
68044         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
68045         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
68046         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
68047         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
68048         * modules/xmalloca: Renamed from modules/xallocsa, updated.
68049         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
68050         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
68051         * modules/c-strcasestr (Depends-on): Update.
68052         * lib/c-strcasestr.c: Update.
68053         * modules/c-strstr (Depends-on): Update.
68054         * lib/c-strstr.c: Update.
68055         * modules/canonicalize-lgpl (Depends-on): Update.
68056         * lib/canonicalize-lgpl.c: Update.
68057         * modules/clean-temp (Depends-on): Update.
68058         * lib/clean-temp.c: Update.
68059         * modules/csharpcomp (Depends-on): Update.
68060         * lib/csharpcomp.c: Update.
68061         * modules/csharpexec (Depends-on): Update.
68062         * lib/csharpexec.c: Update.
68063         * modules/javacomp (Depends-on): Update.
68064         * lib/javacomp.c: Update.
68065         * modules/javaexec (Depends-on): Update.
68066         * lib/javaexec.c: Update.
68067         * modules/mbscasestr (Depends-on): Update.
68068         * lib/mbscasestr.c: Update.
68069         * modules/mbsstr (Depends-on): Update.
68070         * lib/mbsstr.c: Update.
68071         * modules/setenv (Depends-on): Update.
68072         * lib/setenv.c: Update.
68073         * modules/strcasestr (Depends-on): Update.
68074         * lib/strcasestr.c: Update.
68075         * modules/striconveha (Depends-on): Update.
68076         * lib/striconveha.c: Update.
68077         * modules/relocatable-prog-wrapper (Files): Update.
68078         * lib/relocwrapper.c: Update.
68079         * build-aux/install-reloc: Update.
68080         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
68081
68082 2007-06-08  Bruno Haible  <bruno@clisp.org>
68083
68084         Port to uClibc.
68085         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
68086         * lib/fpurge.c (fpurge): Likewise.
68087         * lib/freading.c (freading): Likewise.
68088         * lib/fseeko.c (rpl_fseeko): Likewise.
68089         * lib/fseterr.c (fseterr): Likewise.
68090         * lib/fwriting.c (fwriting): Likewise.
68091         * tests/test-fflush.c (main): Avoid a failure on uClibc.
68092
68093 2007-06-08  Bruno Haible  <bruno@clisp.org>
68094
68095         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
68096         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
68097         * modules/gettext (Files): Add m4/intlmacosx.m4.
68098
68099 2007-06-07  Bruno Haible  <bruno@clisp.org>
68100
68101         * modules/localename-tests: New file.
68102         * tests/test-localename.c: New file.
68103
68104         New module 'localename'.
68105         * lib/localename.h: New file.
68106         * lib/localename.c: New file, from GNU gettext.
68107         * m4/localename.m4: New file.
68108         * modules/localename: New file.
68109
68110 2007-06-07  Bruno Haible  <bruno@clisp.org>
68111
68112         Work around the lack of <wchar.h> on some builds of uClibc.
68113         * doc/headers/wchar.texi: Update.
68114         * lib/wchar_.h: Include <wchar.h> only if it exists.
68115         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
68116         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
68117         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
68118         doesn't exist.
68119         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
68120         * modules/mbfile (Depends-on): Add wchar.
68121         * modules/mbiter (Depends-on): Likewise.
68122         * modules/mbuiter (Depends-on): Likewise.
68123         Reported by Simon Josefsson.
68124
68125 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
68126
68127         Work around problem reported by Steven M. Schweda in
68128         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
68129         Tru64 5.1B with the Compaq compiler environment installed declares
68130         an 'isblank' function but does not define it in the C library.
68131         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
68132         * lib/regex_internal.h (isblank): Likewise.
68133         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
68134         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
68135
68136 2007-06-05  Bruno Haible  <bruno@clisp.org>
68137
68138         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
68139         ia64.
68140         * modules/printf-safe: New file.
68141         * modules/fprintf-posix (Depends-on): Add printf-safe.
68142         * modules/printf-posix (Depends-on): Likewise.
68143         * modules/snprintf-posix (Depends-on): Likewise.
68144         * modules/sprintf-posix (Depends-on): Likewise.
68145         * modules/vasnprintf-posix (Depends-on): Likewise.
68146         * modules/vasprintf-posix (Depends-on): Likewise.
68147         * modules/vfprintf-posix (Depends-on): Likewise.
68148         * modules/vprintf-posix (Depends-on): Likewise.
68149         * modules/vsnprintf-posix (Depends-on): Likewise.
68150         * modules/vsprintf-posix (Depends-on): Likewise.
68151         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
68152         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
68153         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
68154         "no" on i386, x86_64, ia64.
68155         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
68156         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
68157         on i386, x86_64, ia64.
68158         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
68159         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
68160         on i386, x86_64, ia64.
68161         * tests/test-vasnprintf-posix.c: Include float.h.
68162         (LDBL80_WORDS): New macro.
68163         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
68164         on i386, x86_64, ia64.
68165         * tests/test-vasprintf-posix.c: Include float.h.
68166         (LDBL80_WORDS): New macro.
68167         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
68168         on i386, x86_64, ia64.
68169         * tests/test-snprintf-posix.c: Include float.h.
68170         * tests/test-sprintf-posix.c: Likewise.
68171         * tests/test-vsnprintf-posix.c: Likewise.
68172         * tests/test-vsprintf-posix.c: Likewise.
68173
68174 2007-06-05  Bruno Haible  <bruno@clisp.org>
68175
68176         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
68177         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
68178         non-IEEE numbers on i386, x86_64, ia64.
68179         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
68180         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
68181         * tests/test-isnanl.h: Include float.h.
68182         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
68183
68184 2007-06-05  Bruno Haible  <bruno@clisp.org>
68185
68186         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
68187         also the %a / %A. Handle the %a / %A code before this extra handling.
68188
68189 2007-06-05  Bruno Haible  <bruno@clisp.org>
68190
68191         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
68192         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
68193
68194 2007-06-05  Bruno Haible  <bruno@clisp.org>
68195
68196         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
68197         typo in variable name.
68198
68199 2007-06-05  Eric Blake  <ebb9@byu.net>
68200
68201         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
68202         Reported by Simon Josefsson.
68203
68204 2007-06-04  Bruno Haible  <bruno@clisp.org>
68205
68206         Avoid test failures on some PowerPC platforms.
68207         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
68208         Define differently for PowerPC.
68209         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
68210         Reported by Gary V. Vaughan <gary@gnu.org>.
68211
68212 2007-06-02  Bruno Haible  <bruno@clisp.org>
68213
68214         Fix test-stdint failure on FreeBSD/ia64.
68215         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
68216         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
68217         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
68218         * doc/headers/stdint.texi: Update.
68219
68220 2007-06-01  Bruno Haible  <bruno@clisp.org>
68221
68222         * tests/test-binary-io.c (main): Pass a third argument to open().
68223         Reported by Gary V. Vaughan <gary@gnu.org>.
68224
68225 2007-06-01  Bruno Haible  <bruno@clisp.org>
68226
68227         * doc/functions/frexpl.texi: Update for mingw.
68228
68229 2007-06-01  Bruno Haible  <bruno@clisp.org>
68230
68231         * tests/test-lseek.c (main): Disable test of errno for invalid third
68232         argument.
68233         * doc/functions/lseek.texi: Update.
68234         Reported by Gary V. Vaughan <gary@gnu.org>.
68235
68236 2007-05-28  Bruno Haible  <bruno@clisp.org>
68237
68238         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
68239
68240 2007-05-31  Eric Blake  <ebb9@byu.net>
68241
68242         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
68243         cross compiling.
68244
68245 2007-05-30  Eric Blake  <ebb9@byu.net>
68246         and Bruno Haible  <bruno@clisp.org>
68247
68248         Work around mingw test failures exposed by m4-1.4.9b.
68249         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
68250         * tests/test-unistd.c: Disable uid_t and git_t tests for the
68251         moment.
68252
68253 2007-05-30  Bruno Haible  <bruno@clisp.org>
68254
68255         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
68256         assuming that they are closed. Needed on HP-UX 11.
68257
68258 2007-05-29  Bruno Haible  <bruno@clisp.org>
68259
68260         Fix a problem with #include_next.
68261         * lib/dirent_.h: Split the double-inclusion guard.
68262         * lib/fcntl_.h: Likewise.
68263         * lib/float_.h: Likewise.
68264         * lib/iconv_.h: Likewise.
68265         * lib/inttypes_.h: Likewise.
68266         * lib/locale_.h: Likewise.
68267         * lib/math_.h: Likewise.
68268         * lib/netinet_in_.h: Likewise.
68269         * lib/search_.h: Likewise.
68270         * lib/signal_.h: Likewise.
68271         * lib/stdint_.h: Likewise.
68272         * lib/stdio_.h: Likewise.
68273         * lib/stdlib_.h: Likewise.
68274         * lib/string_.h: Likewise.
68275         * lib/sys_select_.h: Likewise.
68276         * lib/sys_socket_.h: Likewise.
68277         * lib/sys_stat_.h: Likewise.
68278         * lib/sys_time_.h: Likewise.
68279         * lib/sysexits_.h: Likewise.
68280         * lib/time_.h: Likewise.
68281         * lib/unistd_.h: Likewise.
68282         * lib/wchar_.h: Likewise.
68283         * lib/wctype_.h: Likewise.
68284
68285 2007-05-29  Bruno Haible  <bruno@clisp.org>
68286
68287         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
68288         for the moment.
68289
68290 2007-05-29  Bruno Haible  <bruno@clisp.org>
68291
68292         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
68293         invocation.
68294         Reported by Eric Blake.
68295
68296 2007-05-29  Bruno Haible  <bruno@clisp.org>
68297
68298         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
68299         compiling case.
68300
68301 2007-05-29  Eric Blake  <ebb9@byu.net>
68302             Bruno Haible  <bruno@clisp.org>
68303
68304         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
68305         cross compiles.
68306
68307 2007-05-28  Eric Blake  <ebb9@byu.net>
68308
68309         * modules/closein-tests (test_closein_LDADD): Support test on
68310         cygwin with libtool.
68311
68312 2007-05-28  Bruno Haible  <bruno@clisp.org>
68313
68314         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
68315         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
68316         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
68317         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
68318         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
68319         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
68320         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
68321         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
68322         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
68323
68324 2007-05-28  Eric Blake  <ebb9@byu.net>
68325
68326         Unconditionally include <config.h> in unit tests.
68327         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
68328         * tests/test-allocsa.c, tests/test-arcfour.c,
68329         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
68330         tests/test-array_list.c, tests/test-array_oset.c,
68331         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
68332         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
68333         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
68334         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
68335         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
68336         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
68337         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
68338         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
68339         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
68340         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
68341         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
68342         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
68343         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
68344         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
68345         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
68346         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
68347         test-md5.c, test-memmem.c, test-printf-posix.c,
68348         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
68349         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
68350         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
68351         test-strcasestr.c, test-striconv.c, test-striconveh.c,
68352         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
68353         test-vasnprintf-posix2.c, test-vasnprintf.c,
68354         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
68355         test-vfprintf-posix.c, test-vprintf-posix.c,
68356         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
68357         test-xvasprintf.c: Likewise.
68358
68359 2007-05-28  Bruno Haible  <bruno@clisp.org>
68360
68361         * gnulib-tool (func_import): Remember the --with-tests command-line
68362         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
68363         Reported by Eric Blake.
68364
68365 2007-05-28  Bruno Haible  <bruno@clisp.org>
68366
68367         * modules/ftell-tests: New file.
68368         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
68369         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
68370
68371         * lib/ftell.c: New file.
68372         * modules/ftell: New file.
68373         * m4/ftell.m4: New file.
68374         * doc/functions/ftell.texi: Update.
68375         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
68376         REPLACE_FTELL.
68377         * lib/stdio_.h (rpl_ftell): New declaration.
68378         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
68379         REPLACE_FTELL.
68380
68381 2007-05-28  Eric Blake  <ebb9@byu.net>
68382
68383         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
68384
68385 2007-05-28  Bruno Haible  <bruno@clisp.org>
68386
68387         * modules/fseek-tests: New file.
68388         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
68389         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
68390
68391         * lib/fseek.c: New file.
68392         * modules/fseek: New file.
68393         * m4/fseek.m4: New file.
68394         * doc/functions/fseek.texi: Update.
68395         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
68396         REPLACE_FSEEK.
68397         * lib/stdio_.h (rpl_fseek): New declaration.
68398         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
68399         REPLACE_FSEEK.
68400
68401 2007-05-28  Bruno Haible  <bruno@clisp.org>
68402
68403         * lib/stdio_.h (fflush): More comments.
68404
68405 2007-05-28  Bruno Haible  <bruno@clisp.org>
68406
68407         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
68408         runtime test.
68409
68410 2007-05-28  Eric Blake  <ebb9@byu.net>
68411
68412         Improve lseek module.
68413         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
68414         * lib/unistd_.h (lseek): Scale back link warning message.
68415         * tests/test-lseek.c: Beef up test.
68416         * tests/test-lseek.sh: Exercise more facets of lseek.
68417         Reported by Bruno Haible.
68418
68419 2007-05-28  Bruno Haible  <bruno@clisp.org>
68420
68421         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
68422         to define.
68423
68424 2007-05-27  Bruno Haible  <bruno@clisp.org>
68425
68426         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
68427
68428 2007-05-27  Bruno Haible  <bruno@clisp.org>
68429
68430         * modules/openmp: New file.
68431         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
68432         Noah Misch.
68433
68434 2007-05-26  Bruno Haible  <bruno@clisp.org>
68435
68436         * modules/chdir-long (Depends-on): Add fchdir.
68437         * modules/chdir-safer (Depends-on): Likewise.
68438         * modules/fts (Depends-on): Likewise.
68439         * modules/fts-lgpl (Depends-on): Likewise.
68440         * modules/openat (Depends-on): Likewise.
68441         * modules/savewd (Depends-on): Likewise.
68442
68443 2007-05-24  Eric Blake  <ebb9@byu.net>
68444
68445         Fix lseek on mingw.
68446         * modules/lseek: New module.
68447         * m4/lseek.m4: New file.
68448         * lib/lseek.c: New file.
68449         * modules/lseek-tests: New file.
68450         * tests/test-lseek.c: New file.
68451         * tests/test-lseek.sh: New file.
68452         * MODULES.html.sh: Document lseek module.
68453         * modules/fflush (Depends-on): Add lseek, fseeko.
68454         * modules/fseeko (Depends-on): Likewise.
68455         * modules/ftello (Depends-on): Likewise.
68456         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
68457         broken.
68458         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
68459         broken.
68460         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
68461         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
68462         * lib/ftello.c (rpl_ftello): Likewise.
68463         * tests/test-fseeko.c (main): Test this.
68464         * tests/test-fseeko.sh: Likewise.
68465         * tests/test-ftello.c (main): Likewise.
68466         * tests/test-ftello.sh: Likewise.
68467         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
68468         implies replacing fseek.
68469         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
68470         HAVE_FTELLO.
68471         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
68472         * modules/unistd (Makefile.am): Likewise.
68473         * lib/unistd_.h (lseek): Declare a replacement.
68474         * doc/functions/lseek.texi (lseek): Document this fix.
68475         * doc/functions/fseek.texi (fseek): Likewise.
68476         * doc/functions/ftell.texi (ftell): Likewise.
68477
68478 2007-05-24  Bruno Haible  <bruno@clisp.org>
68479
68480         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
68481         in the printed representation of a NaN.
68482         * tests/test-vasprintf-posix.c (test_function): Likewise.
68483         * tests/test-snprintf-posix.h (test_function): Likewise.
68484         * tests/test-sprintf-posix.h (test_function): Likewise.
68485         Reported by Eric Blake.
68486
68487 2007-05-23  Eric Blake  <ebb9@byu.net>
68488
68489         Fix fseeko/ftello on cygwin 1.5.24.
68490         * doc/functions/fseeko.texi (fseeko): Document the fix.
68491         * doc/functions/ftello.texi (ftello): Document the fix.
68492         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
68493         * doc/functions/stdout.text (stdout): New file.
68494         * doc/functions/stderr.text (stderr): New file.
68495         * doc/gnulib.texi (Function Substitutes): Use new files.
68496         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
68497         prior to 1.7.0.
68498         * tests/test-ftello.c (main): Likewise for ftello.
68499         * tests/test-fseeko.sh: New file.
68500         * tests/test-ftello.sh: New file.
68501         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
68502         with seekable stdin.
68503         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
68504         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
68505         (gl_REPLACE_FSEEKO): New macro.
68506         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
68507         * modules/fseeko (Files): Distribute fseeko.c.
68508         * modules/ftello (Files): Distribute ftello.c.
68509         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
68510         mode.
68511         * lib/ftello.c (rpl_ftello): New file.
68512         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
68513         fseeko, ftello.
68514         (gl_STDIN_LARGE_OFFSET): New macro.
68515         * modules/stdio (Makefile.am): Perform the replacement.
68516         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
68517
68518 2007-05-23  Bruno Haible  <bruno@clisp.org>
68519
68520         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
68521         GNULIB_POSIXCHECK is defined.
68522
68523 2007-05-21  Bruno Haible  <bruno@clisp.org>
68524
68525         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
68526         Check also the output for NaN arguments. When cross-compiling, guess
68527         no on IRIX.
68528         * lib/vasnprintf.c: Update comments.
68529         * tests/test-vasnprintf-posix.c (strisnan): New function.
68530         (test_function): Use it.
68531         * tests/test-vasprintf-posix.c (strisnan): New function.
68532         (test_function): Use it.
68533         * tests/test-snprintf-posix.h (strisnan): New function.
68534         (test_function): Use it.
68535         * tests/test-sprintf-posix.h (strisnan): New function.
68536         (test_function): Use it.
68537         Reported by Eric Blake.
68538
68539 2007-05-20  Bruno Haible  <bruno@clisp.org>
68540
68541         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
68542         numbers that fails on BeOS.
68543         * doc/functions/frexpl.texi: Update.
68544
68545 2007-05-20  Jim Meyering  <jim@meyering.net>
68546
68547         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
68548         forced upon us by glibc-2.6.
68549
68550 2007-05-20  Bruno Haible  <bruno@clisp.org>
68551
68552         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
68553         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
68554         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
68555         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
68556         NEED_PRINTF_INFINITE.
68557         (is_infinitel): New function.
68558         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
68559         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
68560         gl_PREREQ_VASNPRINTF_INFINITE.
68561         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
68562         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
68563         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
68564         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
68565         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
68566         gl_PREREQ_VASNPRINTF_INFINITE.
68567         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
68568         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68569         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68570         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68571         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68572         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68573         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68574         * doc/functions/fprintf.texi: Update.
68575         * doc/functions/printf.texi: Update.
68576         * doc/functions/snprintf.texi: Update.
68577         * doc/functions/sprintf.texi: Update.
68578         * doc/functions/vfprintf.texi: Update.
68579         * doc/functions/vprintf.texi: Update.
68580         * doc/functions/vsnprintf.texi: Update.
68581         * doc/functions/vsprintf.texi: Update.
68582
68583 2007-05-20  Bruno Haible  <bruno@clisp.org>
68584
68585         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
68586         was not found in libc.
68587         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
68588
68589 2007-05-20  Bruno Haible  <bruno@clisp.org>
68590
68591         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
68592         printed as "-nan" instead of "nan".
68593         * tests/test-vasprintf-posix.c (test_function): Likewise.
68594         * tests/test-snprintf-posix.h (test_function): Likewise.
68595         * tests/test-sprintf-posix.h (test_function): Likewise.
68596         Needed for HP-UX 11.
68597
68598 2007-05-20  Jim Meyering  <jim@meyering.net>
68599
68600         Fix buggy test for the fchownat-deref bug.
68601         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
68602         symlink required for the run-test.  Without it, this test would
68603         always declare that fchownat doesn't work, and client code would
68604         unnecessarily use the replacement function with fixed libc.
68605         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
68606         Reported by Greg Schafer.
68607
68608 2007-05-19  Bruno Haible  <bruno@clisp.org>
68609
68610         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
68611         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
68612         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
68613         Needed for IRIX 6.5 and Solaris 2.5.1.
68614
68615 2007-05-19  Bruno Haible  <bruno@clisp.org>
68616
68617         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
68618         (test_function): Skip tests involving -0.0 on platforms where
68619         -0.0 = 0.0.
68620         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
68621         (test_function): Skip tests involving -0.0 on platforms where
68622         -0.0 = 0.0.
68623         * tests/test-snprintf-posix.h (have_minus_zero): New function.
68624         (test_function): Skip tests involving -0.0 on platforms where
68625         -0.0 = 0.0.
68626         * tests/test-sprintf-posix.h (have_minus_zero): New function.
68627         (test_function): Skip tests involving -0.0 on platforms where
68628         -0.0 = 0.0.
68629         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
68630         tests.
68631         * tests/test-printf-posix.h (test_function): Likewise.
68632         * tests/test-printf-posix.output: Remove all -0.0 related results.
68633         Needed for IRIX 6.5.
68634
68635 2007-05-19  Bruno Haible  <bruno@clisp.org>
68636
68637         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
68638         printed as "nan0x7fffffff" instead of "nan".
68639         * tests/test-vasprintf-posix.c (test_function): Likewise.
68640         * tests/test-snprintf-posix.h (test_function): Likewise.
68641         * tests/test-sprintf-posix.h (test_function): Likewise.
68642         * tests/test-fprintf-posix.h (NaN): Remove macro.
68643         (test_function): Remove all NaN related tests.
68644         * tests/test-printf-posix.h (NaN): Remove macro.
68645         (test_function): Remove all NaN related tests.
68646         * tests/test-printf-posix.output: Remove all NaN related results.
68647         Needed for IRIX 6.5.
68648
68649 2007-05-19  Bruno Haible  <bruno@clisp.org>
68650
68651         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
68652         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
68653
68654 2007-05-19  Bruno Haible  <bruno@clisp.org>
68655
68656         * lib/float_.h: New file.
68657         * m4/float_h.m4: New file.
68658         * modules/float: New file.
68659         * modules/isnanl (Dependencies): Add float.
68660         * modules/isnanl-nolibm (Dependencies): Likewise.
68661         * modules/mathl (Dependencies): Likewise.
68662         * modules/printf-frexpl (Dependencies): Likewise.
68663         * modules/signbit (Dependencies): Likewise.
68664         * modules/vasnprintf (Dependencies): Likewise.
68665         * doc/headers/float.texi: Update.
68666
68667 2007-05-19  Jim Meyering  <jim@meyering.net>
68668
68669         * lib/utimens.c (gl_futimens): Rename from futimens,
68670         now that glibc-2.6 declares futimens.
68671         * lib/utimens.h: Likewise.
68672
68673 2007-05-19  Bruno Haible  <bruno@clisp.org>
68674
68675         Avoid test failures on mingw.
68676         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
68677         * tests/test-printf-posix.sh: Likewise.
68678         * tests/test-vfprintf-posix.sh: Likewise.
68679         * tests/test-vprintf-posix.sh: Likewise.
68680
68681 2007-05-19  Bruno Haible  <bruno@clisp.org>
68682
68683         Fix *printf result for NaN, Inf, -0.0 on mingw.
68684         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
68685         * lib/vasnprintf.c: Include math.h and isnan.h.
68686         (is_infinite_or_zero): New function.
68687         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
68688         values in the %f, %F, %e, %E, %g, %G directives.
68689         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
68690         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
68691         gl_PRINTF_INFINITE and test its result. Invoke
68692         gl_PREREQ_VASNPRINTF_INFINITE.
68693         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
68694         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68695         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68696         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68697         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68698         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68699         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68700         * doc/functions/fprintf.texi: Update.
68701         * doc/functions/printf.texi: Update.
68702         * doc/functions/snprintf.texi: Update.
68703         * doc/functions/sprintf.texi: Update.
68704         * doc/functions/vfprintf.texi: Update.
68705         * doc/functions/vprintf.texi: Update.
68706         * doc/functions/vsnprintf.texi: Update.
68707         * doc/functions/vsprintf.texi: Update.
68708
68709 2007-05-19  Bruno Haible  <bruno@clisp.org>
68710
68711         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
68712         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
68713         Instead of multiplying with 10^k, set extra_zeroes to k.
68714         (scale10_round_long_double): Remove function.
68715
68716 2007-05-18  Bruno Haible  <bruno@clisp.org>
68717
68718         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
68719         introduced on 2007-05-06.
68720
68721 2007-05-18  Bruno Haible  <bruno@clisp.org>
68722
68723         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
68724         %g directives.
68725         * tests/test-vasprintf-posix.c (test_function): Likewise.
68726         * tests/test-snprintf-posix.h (test_function): Likewise.
68727         * tests/test-sprintf-posix.h (test_function): Likewise.
68728
68729 2007-05-18  Bruno Haible  <bruno@clisp.org>
68730
68731         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
68732         (strmatch): New function.
68733         (test_function): Test the %f directive on numbers of various exponents.
68734         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
68735         (strmatch): New function.
68736         (test_function): Test the %f directive on numbers of various exponents.
68737         * tests/test-snprintf-posix.h (strmatch): New function.
68738         (test_function): Test the %f directive on numbers of various exponents.
68739         * tests/test-sprintf-posix.h (strmatch): New function.
68740         (test_function): Test the %f directive on numbers of various exponents.
68741         * tests/test-snprintf-posix.c (SIZEOF): New macro.
68742         * tests/test-sprintf-posix.c (SIZEOF): New macro.
68743         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
68744         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
68745
68746 2007-05-18  Bruno Haible  <bruno@clisp.org>
68747
68748         Add support for 'long double' number output.
68749         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
68750         * lib/vasnprintf.c: Include math.h and float+.h.
68751         (mp_limb_t): New type.
68752         (GMP_LIMB_BITS): New macro.
68753         (mp_twolimb_t): New type.
68754         (GMP_TWOLIMB_BITS): New macro.
68755         (mpn_t): New type.
68756         (multiply, divide, convert_to_decimal, decode_long_double,
68757         scale10_round_long_double, scale10_round_decimal_long_double,
68758         floorlog10l): New functions.
68759         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
68760         for the %f, %F, %e, %E, %g, %G directives.
68761         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
68762         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
68763         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
68764         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
68765         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
68766         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68767         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68768         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68769         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68770         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68771         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68772         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
68773         * modules/snprintf-posix (Depends-on): Likewise.
68774         * modules/sprintf-posix (Depends-on): Likewise.
68775         * modules/vasnprintf-posix (Depends-on): Likewise.
68776         * modules/vasprintf-posix (Depends-on): Likewise.
68777         * modules/vfprintf-posix (Depends-on): Likewise.
68778         * modules/vsnprintf-posix (Depends-on): Likewise.
68779         * modules/vsprintf-posix (Depends-on): Likewise.
68780         * modules/vasnprintf (Files): Add lib/float+.h.
68781         * doc/functions/fprintf.texi: Update.
68782         * doc/functions/printf.texi: Update.
68783         * doc/functions/snprintf.texi: Update.
68784         * doc/functions/sprintf.texi: Update.
68785         * doc/functions/vfprintf.texi: Update.
68786         * doc/functions/vprintf.texi: Update.
68787         * doc/functions/vsnprintf.texi: Update.
68788         * doc/functions/vsprintf.texi: Update.
68789
68790 2007-05-18  Bruno Haible  <bruno@clisp.org>
68791
68792         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
68793
68794 2007-05-18  Bruno Haible  <bruno@clisp.org>
68795
68796         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
68797         for printing 64-bit integers. Needed for mingw.
68798
68799 2007-05-18  Bruno Haible  <bruno@clisp.org>
68800
68801         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
68802         gl_FUNC_FREXPL_WORKS.
68803         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
68804
68805 2007-05-18  Bruno Haible  <bruno@clisp.org>
68806
68807         * modules/frexpl-nolibm-tests: New file.
68808
68809         * modules/frexpl-nolibm: New file.
68810         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
68811
68812 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
68813
68814         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
68815         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
68816         GCC 4.2, which otherwise issues a lot of warnings.
68817         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
68818         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
68819         Likewise.
68820         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
68821         * modules/iconv_open (iconv.h): Likewise.
68822         * modules/locale (locale.h): Likewise.
68823         * modules/netinet_in (netinet/in.h): Likewise.
68824         * modules/sys_select (sys_select.h): Likewise.
68825         * modules/sys_socket (sys/socket.h): Likewise.
68826         * modules/sys_stat (sys/stat.h): Likewise.
68827         * modules/sysexits (sysexits.h): Likewise.
68828         * modules/unistd (unistd.h): Likewise.
68829
68830 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68831
68832         * modules/closein-tests (Makefile.am): Distribute
68833         `test-closein.sh'.
68834
68835 2007-05-17  Bruno Haible  <bruno@clisp.org>
68836
68837         * tests/test-printf-posix.output: Renamed from
68838         tests/test-fprintf-posix.out.
68839         * modules/fprintf-posix-tests: Update.
68840         * modules/printf-posix-tests: Update.
68841         * modules/vfprintf-posix-tests: Update.
68842         * modules/vprintf-posix-tests: Update.
68843         * tests/test-fprintf-posix.sh: Update.
68844         * tests/test-printf-posix.sh: Update.
68845         * tests/test-vfprintf-posix.sh: Update.
68846         * tests/test-vprintf-posix.sh: Update.
68847         Reported by Ralf Wildenhues.
68848
68849 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
68850
68851         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
68852         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
68853         GCC 4.2, which otherwise issues a lot of warnings.
68854         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
68855         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
68856         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
68857         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
68858         it should no longer be needed.
68859         * lib/string_.h: Likewise.
68860         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
68861         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
68862         * modules/inttypes (inttypes.h): Likewise.
68863         * modules/math (math.h): Likewise.
68864         * modules/search (search.h): Likewise.
68865         * modules/signal (signal.h): Likewise.
68866         * modules/stdint (stdint.h): Likewise.
68867         * modules/stdio (stdio.h): Likewise.
68868         * modules/stdlib (stdlib.h): Likewise.
68869         * modules/string (string.h): Likewise.
68870         * modules/sys_time (sys/time.h): Likewise.
68871         * modules/time (time.h): Likewise.
68872         * modules/wchar (wchar.h): Likewise.
68873         * modules/wctype (wtype.h): Likewise.
68874
68875 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
68876
68877         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
68878
68879 2007-05-13  Bruno Haible  <bruno@clisp.org>
68880
68881         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
68882         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
68883         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
68884         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
68885         (gl_PREREQ_STRTOK_R): Don't require it here.
68886
68887 2007-05-13  Bruno Haible  <bruno@clisp.org>
68888
68889         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
68890         when used in C++ mode.
68891
68892 2007-05-12  Bruno Haible  <bruno@clisp.org>
68893
68894         * lib/linebuffer.h: Tweak doc.
68895         * lib/linebuffer.c: Likewise.
68896
68897 2007-05-12  James Youngman  <jay@gnu.org>
68898
68899         * lib/linebuffer.c (readlinebuffer_delim): New function,
68900         like readlinebuffer, but use a caller-specified delimiter.
68901         (readlinebuffer): Just call readlinebuffer_delim with '\n'
68902         as the delimiter.
68903         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
68904
68905 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
68906
68907         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
68908         * modules/openat (Files): Remove openat-die.c.
68909         (Depends-on): Add openat-die.
68910         * modules/openat-die: New module.
68911
68912 2007-05-06  Bruno Haible  <bruno@clisp.org>
68913
68914         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
68915         Update with info about Cygwin.
68916         * doc/functions/fprintf.texi: Update.
68917         * doc/functions/printf.texi: Update.
68918         * doc/functions/snprintf.texi: Update.
68919         * doc/functions/sprintf.texi: Update.
68920         * doc/functions/vfprintf.texi: Update.
68921         * doc/functions/vprintf.texi: Update.
68922         * doc/functions/vsnprintf.texi: Update.
68923         * doc/functions/vsprintf.texi: Update.
68924         Reported by Eric Blake.
68925
68926 2007-05-06  Bruno Haible  <bruno@clisp.org>
68927
68928         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
68929         padding ourselves for the floating-point directives.
68930         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
68931         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
68932         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
68933         gl_PRINTF_FLAG_ZERO and test its result. Invoke
68934         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
68935         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68936         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
68937         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68938         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68939         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68940         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68941         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68942         * tests/test-snprintf-posix.h (test_function): Also check the width
68943         and some flags in the %f directive.
68944         * tests/test-sprintf-posix.h (test_function): Likewise.
68945         * tests/test-vasnprintf-posix.c (test_function): Likewise.
68946         * tests/test-vasprintf-posix.c (test_function): Likewise.
68947         * doc/functions/fprintf.texi: Update.
68948         * doc/functions/printf.texi: Update.
68949         * doc/functions/snprintf.texi: Update.
68950         * doc/functions/sprintf.texi: Update.
68951         * doc/functions/vfprintf.texi: Update.
68952         * doc/functions/vprintf.texi: Update.
68953         * doc/functions/vsnprintf.texi: Update.
68954         * doc/functions/vsprintf.texi: Update.
68955
68956 2007-05-06  Bruno Haible  <bruno@clisp.org>
68957
68958         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
68959         pass the ' flag character to sprintf or snprintf.
68960         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
68961         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
68962         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
68963         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
68964         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
68965         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68966         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
68967         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68968         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68969         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68970         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68971         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68972         * tests/test-snprintf-posix.h (test_function): Also check the grouping
68973         flag.
68974         * tests/test-sprintf-posix.h (test_function): Likewise.
68975         * tests/test-vasnprintf-posix.c (test_function): Likewise.
68976         * tests/test-vasprintf-posix.c (test_function): Likewise.
68977         * doc/functions/fprintf.texi: Update.
68978         * doc/functions/printf.texi: Update.
68979         * doc/functions/snprintf.texi: Update.
68980         * doc/functions/sprintf.texi: Update.
68981         * doc/functions/vfprintf.texi: Update.
68982         * doc/functions/vprintf.texi: Update.
68983         * doc/functions/vsnprintf.texi: Update.
68984         * doc/functions/vsprintf.texi: Update.
68985
68986 2007-05-01  Bruno Haible  <bruno@clisp.org>
68987
68988         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
68989
68990 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
68991
68992         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
68993         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
68994
68995 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
68996
68997         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
68998         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
68999         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
69000
69001 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
69002
69003         * lib/argp-help.c (struct hol_entry): New member `ord'.
69004         (HOL_ENTRY_PTRCMP): Use ord for comparison
69005         (hol_sort): Initialize ord.
69006
69007 2007-05-01  Bruno Haible  <bruno@clisp.org>
69008
69009         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
69010         Reported by Eric Blake.
69011         * doc/gnulib.texi (Function Substitutes): Update.
69012
69013 2007-05-01  Bruno Haible  <bruno@clisp.org>
69014
69015         * doc/functions.texi: Remove file, now redundant through
69016         doc/functions/*.texi.
69017
69018 2007-05-01  Bruno Haible  <bruno@clisp.org>
69019
69020         * modules/argp (Depends-on): Add sleep.
69021
69022 2007-05-01  Bruno Haible  <bruno@clisp.org>
69023
69024         * modules/sleep-tests: New file.
69025         * tests/test-sleep.c: New file.
69026
69027         * modules/sleep: New file.
69028         * lib/sleep.c: New file.
69029         * m4/sleep.m4: New file.
69030         * lib/unistd_.h (sleep): New declaration.
69031         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
69032         HAVE_SLEEP.
69033         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
69034         * doc/functions/sleep.texi: Document the sleep module.
69035
69036 2007-05-01  Bruno Haible  <bruno@clisp.org>
69037
69038         * lib/sigprocmask.h: Remove file.
69039         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
69040         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
69041         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
69042         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
69043         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
69044         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
69045         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
69046         HAVE_SIGSET_T as a shell variable.
69047         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
69048         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
69049         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
69050         (Depends-on): Add signal. Remove verify.
69051         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
69052         (Include): Mention <signal.h> instead of sigprocmask.h.
69053         * NEWS: Mention the change.
69054         * lib/fatal-signal.c: Don't include sigprocmask.h.
69055
69056 2007-05-01  Bruno Haible  <bruno@clisp.org>
69057
69058         * modules/signal: New file.
69059         * lib/signal_.h: New file.
69060         * m4/signal_h.m4: New file.
69061
69062 2007-05-01  Bruno Haible  <bruno@clisp.org>
69063
69064         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
69065         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
69066         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
69067         HAVE_WCTYPE_CTMP_BUG into wctype.h.
69068
69069 2007-05-01  Bruno Haible  <bruno@clisp.org>
69070
69071         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
69072         configure time.
69073         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
69074         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
69075         * modules/sys_stat (Makefile.am): Substitute their values into
69076         sys/stat.h.
69077
69078 2007-05-01  Bruno Haible  <bruno@clisp.org>
69079
69080         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
69081         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
69082         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
69083
69084 2007-05-01  Bruno Haible  <bruno@clisp.org>
69085
69086         * doc/header/assert.texi: Undo last change: don't mention the gnulib
69087         'assert' module here.
69088
69089 2007-05-01  Bruno Haible  <bruno@clisp.org>
69090
69091         * doc/functions/*.texi: New files.
69092         * doc/functions/google-ranking.txt: New file.
69093         * doc/gnulib.texi (Function Substitutes): New chapter.
69094         (ctime, inet_ntoa): Remove sections.
69095         * doc/ctime.texi: Remove file.
69096         * doc/inet_ntoa.texi: Remove file.
69097         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
69098         dependencies.
69099         (%.info): New rule, specifying a --reference-limit.
69100
69101 2007-05-01  Bruno Haible  <bruno@clisp.org>
69102
69103         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
69104
69105 2007-05-01  Bruno Haible  <bruno@clisp.org>
69106
69107         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
69108         the portability of 'mkdir' to mingw systems.
69109
69110 2007-05-01  Bruno Haible  <bruno@clisp.org>
69111
69112         * doc/headers/google-ranking.txt: New file.
69113
69114 2007-04-30  Eric Blake  <ebb9@byu.net>
69115
69116         Prefer fseeko to fseek.
69117         * modules/getpass (Depends-on): Add fseeko.
69118         * lib/getpass.c (getpass): Use fseeko, not fseek.
69119
69120 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
69121
69122         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
69123         assumes the sorting is stable, while most qsort implementations
69124         are not.  Use argument addresses to ensure they never compare as
69125         equal.
69126
69127         * tests/test-argp-2.sh (usage-indent test): Fix output
69128         (func_compare): Restore diff options
69129         * tests/test-argp.c: Restore #include "progname.h"
69130
69131 2007-04-29  Bruno Haible  <bruno@clisp.org>
69132
69133         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
69134         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
69135         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
69136         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69137         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
69138         (configure.ac): Define CHECK_SNPRINTF_POSIX.
69139         (TESTS, check_PROGRAMS): Add test-snprintf.
69140         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
69141         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
69142         (TESTS, check_PROGRAMS): Add test-vsnprintf.
69143         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
69144         assertions that fail on HP-UX, OSF/1, or IRIX.
69145         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
69146
69147 2007-04-29  Bruno Haible  <bruno@clisp.org>
69148
69149         * MODULES.html.sh (posix_functions): Remove 'contents'.
69150
69151 2007-04-29  Karl Berry  <karl@gnu.org>
69152
69153         * config/srclist.txt (gendocs_template_min): new entry.
69154
69155 2007-04-29  Bruno Haible  <bruno@clisp.org>
69156
69157         Work around fpurge bug on BSD systems.
69158         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
69159         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
69160         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
69161         fpurge to rpl_fpurge if the system already has this function.
69162         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
69163         the case where the system already has this function. Correct invariants
69164         on BSD systems.
69165         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
69166         BSD systems.
69167
69168 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
69169
69170         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
69171         proposed by Sven Verdoolaege.
69172
69173         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
69174         options.
69175         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
69176         (usage and help tests): Update
69177
69178 2007-04-29  Bruno Haible  <bruno@clisp.org>
69179
69180         * tests/test-fflush.c (main): Use a file of size 17, not 10.
69181         Print more information in case of failure. Disable a test on BeOS.
69182
69183 2007-04-29  Bruno Haible  <bruno@clisp.org>
69184
69185         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
69186         This helps debugging on systems on which no gdb is available.
69187
69188 2007-04-29  Bruno Haible  <bruno@clisp.org>
69189
69190         * lib/freading.h: Improve comments.
69191         * lib/fwriting.h: Likewise.
69192         * tests/test-freading.c (main): Don't check freading immediately after
69193         repositioning. Needed for glibc.
69194
69195 2007-04-29  Bruno Haible  <bruno@clisp.org>
69196
69197         * lib/freading.c (freading): Trivial simplification.
69198
69199 2007-04-28  Bruno Haible  <bruno@clisp.org>
69200
69201         * tests/test-fwriting.c (main): Also test the interaction between
69202         fflush and fwriting.
69203         * modules/fwriting-tests (Depends-on): Add fflush.
69204
69205         * tests/test-freading.c (main): Also test the interaction between
69206         fflush and freading.
69207         * modules/freading-tests (Depends-on): Add fflush.
69208
69209 2007-04-28  Bruno Haible  <bruno@clisp.org>
69210
69211         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
69212         fseeko and ftello.
69213         Suggested by Eric Blake.
69214
69215 2007-04-28  Jim Meyering  <jim@meyering.net>
69216
69217         Avoid false-negative in gl_STDINT_H's C99 conformance test.
69218         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
69219         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
69220
69221 2007-04-27  Eric Blake  <ebb9@byu.net>
69222
69223         * doc/headers/assert.texi (assert.h): Document assert module use.
69224
69225 2007-04-27  Bruno Haible  <bruno@clisp.org>
69226
69227         * doc/headers/*.texi: New files.
69228         * doc/gnulib.texi (Header File Substitutes): New chapter.
69229         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
69230         dependencies.
69231         (standards.info ,standards.html, standards.dvi): Update dependencies.
69232         (mostlyclean, clean): New targets.
69233
69234 2007-04-27  Bruno Haible  <bruno@clisp.org>
69235
69236         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
69237         * modules/sysexits (Files, Makefile.am): Update.
69238
69239         * lib/sys_socket_.h: Renamed from lib/socket_.h.
69240         * modules/sys_socket (Files, Makefile.am): Update.
69241
69242         * lib/sys_stat_.h: Renamed from lib/stat_.h.
69243         * modules/sys_stat (Files, Makefile.am): Update.
69244
69245 2007-04-27  Eric Blake  <ebb9@byu.net>
69246
69247         * lib/freading.h: Improve comments.
69248         * lib/fwriting.h: Likewise.
69249         * lib/fflush.c: Likewise.
69250
69251         Fix closein for mingw.
69252         * modules/closein-tests: Add tests for closein.
69253         * tests/test-closein.c: New file.
69254         * tests/test-closein.sh: Likewise.
69255         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
69256         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
69257
69258 2007-04-27  Bruno Haible  <bruno@clisp.org>
69259
69260         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
69261         version is < 6.
69262         * lib/math_.h [__DECC]: Likewise.
69263         * lib/stdio_.h [__DECC]: Likewise.
69264         * lib/stdlib_.h [__DECC]: Likewise.
69265         * lib/string_.h [__DECC]: Likewise.
69266         * lib/time_.h [__DECC]: Likewise.
69267         * lib/wchar_.h [__DECC]: Likewise.
69268         * lib/wctype_.h [__DECC]: Likewise.
69269
69270 2007-04-27  Bruno Haible  <bruno@clisp.org>
69271
69272         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
69273
69274 2007-04-27  Bruno Haible  <bruno@clisp.org>
69275
69276         * lib/fflush.c: Add comments.
69277         * modules/fpurge-tests (Depends-on): Add fflush.
69278         * modules/freadable-tests (Depends-on): Likewise.
69279         * modules/fwritable-tests (Depends-on): Likewise.
69280
69281 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
69282
69283         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
69284         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
69285         Report by Bruno Haible <bruno@clisp.org>.
69286
69287 2007-04-26  Eric Blake  <ebb9@byu.net>
69288
69289         Fix fflush on mingw.
69290         * modules/fflush (Depends-on): Add freading.
69291         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
69292         but unread data.
69293
69294 2007-04-26  Eric Blake  <ebb9@byu.net>
69295         and Bruno Haible  <bruno@clisp.org>
69296
69297         Implement freading and fwriting.
69298         * lib/freading.c: New file.
69299         * lib/freading.h: Likewise.
69300         * m4/freading.m4: Likewise.
69301         * modules/freading: Likewise.
69302         * modules/freading-tests: Likewise.
69303         * tests/test-freading.c: Likewise.
69304         * lib/fwriting.c: New file.
69305         * lib/fwriting.h: Likewise.
69306         * m4/fwriting.m4: Likewise.
69307         * modules/fwriting: Likewise.
69308         * modules/fwriting-tests: Likewise.
69309         * tests/test-fwriting.c: Likewise.
69310         * MODULES.html.sh (File stream based Input/Output): Mention them.
69311
69312 2007-04-26  Bruno Haible  <bruno@clisp.org>
69313
69314         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
69315         'long' when we assume it.
69316         Suggested by Eric Blake.
69317
69318 2007-04-26  Bruno Haible  <bruno@clisp.org>
69319
69320         Ensure fseeko, ftello are declared on glibc systems.
69321         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
69322         * modules/fseeko (configure.ac-early): Likewise.
69323         * modules/ftello (configure.ac-early): Likewise.
69324         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
69325         AC_FUNC_FSEEKO for this.
69326         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
69327         (gl_CHECK_FSEEKO): Remove macro.
69328
69329 2007-04-26  Bruno Haible  <bruno@clisp.org>
69330
69331         * tests/test-fflush.c (main): Also check the ftell result after
69332         fflush and fseek/fseeko.
69333         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
69334         file descriptor position cache in the stream.
69335         * lib/fseeko.c (rpl_fseeko): Likewise.
69336
69337 2007-04-26  Bruno Haible  <bruno@clisp.org>
69338
69339         * modules/fflush-tests (Depends-on): Add fseeko.
69340
69341 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
69342             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69343
69344         * lib/argz_.h: ensure error_t definition is obtained in same
69345         mechanism system argz.h would have.
69346         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
69347         argz facilities are known bad.  Err on the side of caution if
69348         cross-compiling.
69349
69350 2007-04-25  Eric Blake  <ebb9@byu.net>
69351
69352         * lib/fpurge.c (includes): Use stdlib.h for free.
69353         * tests/test-fflush.c (main): Also test fflush-fseeko.
69354
69355 2007-04-25  Bruno Haible  <bruno@clisp.org>
69356
69357         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
69358         * lib/fseeko.c: New file.
69359         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
69360         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
69361         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
69362         gl_FUNC_FSEEKO.
69363         (gl_FUNC_FSEEKO): Invoke it.
69364         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
69365         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
69366         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
69367
69368 2007-04-25  Bruno Haible  <bruno@clisp.org>
69369
69370         * modules/fflush (Depends-on): Add ftello.
69371
69372 2007-04-25  Bruno Haible  <bruno@clisp.org>
69373
69374         * modules/ftello-tests: New file.
69375         * tests/test-ftello.c: New file.
69376
69377         * modules/ftello: New file.
69378         * m4/ftello.m4: New file.
69379         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
69380         HAVE_FTELLO.
69381         * lib/stdio_.h (ftello): New declaration.
69382         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
69383         HAVE_FTELLO.
69384
69385 2007-04-25  Bruno Haible  <bruno@clisp.org>
69386
69387         * modules/fseeko-tests: New file.
69388         * tests/test-fseeko.c: New file.
69389
69390         * modules/fseeko: New file.
69391         * m4/fseeko.m4: New file.
69392         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
69393         HAVE_FSEEKO.
69394         * lib/stdio_.h (fseeko): New declaration.
69395         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
69396         HAVE_FSEEKO.
69397
69398 2007-04-25  Bruno Haible  <bruno@clisp.org>
69399
69400         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
69401
69402 2007-04-25  Bruno Haible  <bruno@clisp.org>
69403
69404         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
69405         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
69406         * tests/test-unistd.c: Likewise.
69407         * tests/test-fcntl.c: Likewise.
69408
69409 2007-04-23  Eric Blake  <ebb9@byu.net>
69410
69411         * lib/fflush.c: Fix missing include.
69412         Reported by Bruno Haible.
69413
69414 2007-04-23  Bruno Haible  <bruno@clisp.org>
69415
69416         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
69417         Reported by Eric Blake.
69418
69419 2007-04-23  Bruno Haible  <bruno@clisp.org>
69420
69421         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
69422
69423 2007-04-23  Bruno Haible  <bruno@clisp.org>
69424
69425         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
69426
69427 2007-04-23  Bruno Haible  <bruno@clisp.org>
69428
69429         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
69430         Needed on HP-UX 11.
69431
69432 2007-04-16  Eric Blake  <ebb9@byu.net>
69433
69434         Make fflush rely on fpurge.
69435         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
69436         open coding all variants.
69437         * modules/fflush (Depends-on): Add fpurge and unistd.
69438         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
69439         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
69440
69441         Fix --with-tests compilation on cygwin.
69442         * modules/argmatch-tests (Makefile.am): List gnulib library first
69443         in LDADD.
69444         * modules/argp-tests (Makefile.am): Likewise.
69445         * modules/array-list-tests (Makefile.am): Likewise.
69446         * modules/array-oset-tests (Makefile.am): Likewise.
69447         * modules/avltree-list-tests (Makefile.am): Likewise.
69448         * modules/avltree-oset-tests (Makefile.am): Likewise.
69449         * modules/avltreehash-list-tests (Makefile.am): Likewise.
69450         * modules/carray-list-tests (Makefile.am): Likewise.
69451         * modules/dirname-tests (Makefile.am): Likewise.
69452         * modules/frexp-tests (Makefile.am): Likewise.
69453         * modules/isnanl-tests (Makefile.am): Likewise.
69454         * modules/linked-list-tests (Makefile.am): Likewise.
69455         * modules/linkedhash-list-tests (Makefile.am): Likewise.
69456         * modules/lock-tests (Makefile.am): Likewise.
69457         * modules/rbtree-list-tests (Makefile.am): Likewise.
69458         * modules/rbtree-oset-tests (Makefile.am): Likewise.
69459         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
69460         * modules/tls-tests (Makefile.am): Likewise.
69461         * modules/tsearch-tests (Makefile.am): Likewise.
69462         * modules/xvasprintf-tests (Makefile.am): Likewise.
69463
69464         Fix fpurge for cygwin.
69465         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
69466         value.
69467         * modules/fpurge-tests (Depends-on): Clean up trash.
69468
69469 2007-04-16  Simon Josefsson  <simon@josefsson.org>
69470
69471         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
69472
69473         * m4/autobuild.m4: Re-indent.
69474
69475 2007-04-13  Bruno Haible  <bruno@clisp.org>
69476
69477         * modules/fpurge-tests: New file.
69478         * tests/test-fpurge.c: New file.
69479
69480         * modules/fpurge: New file.
69481         * lib/fpurge.h: New file.
69482         * lib/fpurge.c: New file.
69483         * m4/fpurge.m4: New file.
69484
69485 2007-04-13  Bruno Haible  <bruno@clisp.org>
69486
69487         * modules/fbufmode-tests: New file.
69488         * tests/test-fbufmode.c: New file.
69489
69490         * modules/fbufmode: New file.
69491         * lib/fbufmode.h: New file.
69492         * lib/fbufmode.c: New file.
69493         * m4/fbufmode.m4: New file.
69494
69495 2007-04-13  Bruno Haible  <bruno@clisp.org>
69496
69497         * modules/fwritable-tests: New file.
69498         * tests/test-fwritable.c: New file.
69499
69500         * modules/fwritable: New file.
69501         * lib/fwritable.h: New file.
69502         * lib/fwritable.c: New file.
69503         * m4/fwritable.m4: New file.
69504
69505 2007-04-13  Bruno Haible  <bruno@clisp.org>
69506
69507         * modules/freadable-tests: New file.
69508         * tests/test-freadable.c: New file.
69509
69510         * modules/freadable: New file.
69511         * lib/freadable.h: New file.
69512         * lib/freadable.c: New file.
69513         * m4/freadable.m4: New file.
69514
69515 2007-04-13  Bruno Haible  <bruno@clisp.org>
69516
69517         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
69518         MOSTLYCLEANFILES.
69519
69520 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
69521
69522         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
69523         gzip bootstrap.conf to avoid dragging in i18n machinery.
69524         (gnulib_tool_option): Use it.
69525
69526 2007-04-13  Bruno Haible  <bruno@clisp.org>
69527
69528         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
69529         %F directives.
69530         * tests/test-vasprintf-posix.c (test_function): Likewise.
69531         * tests/test-snprintf-posix.h (test_function): Likewise.
69532         * tests/test-sprintf-posix.h (test_function): Likewise.
69533         * tests/test-fprintf-posix.h (test_function): Likewise.
69534         * tests/test-printf-posix.h (test_function): Likewise.
69535         * tests/test-fprintf-posix.out: Likewise.
69536
69537 2007-04-13  Bruno Haible  <bruno@clisp.org>
69538
69539         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
69540         * modules/tls-tests (configure.ac): Likewise.
69541         Reported by Arto C. Nirkko <anirkko@insel.ch>.
69542
69543 2007-04-13  Bruno Haible  <bruno@clisp.org>
69544
69545         * lib/tls.c (glthread_tls_get): Fix return type.
69546         Patch by Arto C. Nirkko <anirkko@insel.ch>.
69547
69548 2007-04-12  Eric Blake  <ebb9@byu.net>
69549
69550         * modules/gettime (Depends-on): Remove gettime.
69551         Reported by Dmitry V. Levin.
69552
69553 2007-04-12  Bruno Haible  <bruno@clisp.org>
69554
69555         * modules/fflush (Include): Mention <stdio.h>.
69556         * modules/strtoimax (Include): Mention <inttypes.h>.
69557         * modules/strtoumax (Include): Likewise.
69558
69559 2007-04-12  Eric Blake  <ebb9@byu.net>
69560
69561         * .cvsignore: New file.
69562         * .gitignore: Likewise.
69563
69564 2007-04-12  Bruno Haible  <bruno@clisp.org>
69565
69566         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
69567         not before, since $(LDADD) often contains libgnu.a.
69568         * modules/striconv-tests (test_striconv_LDADD): Likewise.
69569         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
69570         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
69571         Needed on Cygwin.
69572
69573 2007-04-12  Eric Blake  <ebb9@byu.net>
69574
69575         Work around glibc's failure to flush stdin on fclose.
69576         * lib/closein.c (close_stdin): Flush stdin before closing.
69577
69578         Work around glibc's failure to reset seekable stdin on exit.
69579         * modules/closein: New module.
69580         * lib/closein.c: New file.
69581         * lib/closein.h: Likewise.
69582         * m4/closein.m4: Likewise.
69583         * MODULES.html.sh (File stream based Input/Output): Document it.
69584
69585 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69586
69587         * gnulib-tool: Rename generated 'autobuild' script to
69588         'do-autobuild' in --create-megatestdir output.
69589
69590         * doc/gnulib.texi (Build robot for gnulib): Fix.
69591
69592 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69593
69594         * modules/sysexits (Depends-on): Add absolute-header.
69595
69596 2007-04-12  Eric Blake  <ebb9@byu.net>
69597
69598         No need to preserve errno on success.
69599         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
69600         Reported by Bruno Haible.
69601
69602 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69603
69604         * MODULES.html.sh (Support for maintaining and releasing
69605         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
69606
69607 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69608
69609         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
69610
69611 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69612
69613         * modules/autobuild: New module.
69614
69615         * m4/autobuild.m4: New file.
69616
69617 2007-04-11  Bruno Haible  <bruno@clisp.org>
69618
69619         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
69620         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
69621         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
69622         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
69623         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
69624         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69625         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69626         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
69627         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69628         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69629         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
69630         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69631         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69632         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
69633         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69634         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69635         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
69636         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69637         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69638         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
69639         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69640         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69641         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
69642         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69643         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69644         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
69645         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69646         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69647         Reported by Eric Blake.
69648
69649 2007-04-11  Bruno Haible  <bruno@clisp.org>
69650
69651         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
69652
69653 2007-04-10  Bruno Haible  <bruno@clisp.org>
69654
69655         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
69656         for NaN and Infinity. Needed on FreeBSD 6.1.
69657         * tests/test-vasnprintf-posix.c (test_function): Undo last change
69658         regarding results for "%010a" of Infinity and NaN.
69659         * tests/test-vasprintf-posix.c (test_function): Likewise.
69660         * tests/test-snprintf-posix.h (test_function): Likewise.
69661         * tests/test-sprintf-posix.h (test_function): Likewise.
69662         * tests/test-fprintf-posix.h (test_function): Likewise.
69663         * tests/test-printf-posix.h (test_function): Likewise.
69664         * tests/test-fprintf-posix.out: Likewise.
69665
69666 2007-04-10  Bruno Haible  <bruno@clisp.org>
69667
69668         * modules/locale-tests: New file.
69669         * tests/test-locale.c: New file.
69670
69671         * modules/locale: New file.
69672         * lib/locale_.h: New file.
69673         * m4/locale_h.m4: New file.
69674
69675 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
69676             Bruno Haible  <bruno@clisp.org>
69677
69678         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
69679         be determined, test for availability of the copysignf, copysign,
69680         copysignl functions.
69681         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
69682         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
69683         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
69684
69685 2007-04-09  Eric Blake  <ebb9@byu.net>
69686
69687         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
69688         * modules/stdio (Makefile.am): Support fflush.
69689         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
69690         * modules/fflush: New file.
69691         * lib/fflush.c: Likewise.
69692         * m4/fflush.m4: Likewise.
69693         * modules/fflush-tests: New test.
69694         * tests/test-fflush.c: Likewise.
69695         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
69696
69697 2007-04-06  Bruno Haible  <bruno@clisp.org>
69698
69699         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
69700         (VASNPRINTF): Use signbit for faster determination whether to print a
69701         minus sign.
69702         * modules/vasnprintf (Files): Remove lib/float+.h.
69703         * modules/fprintf-posix (Depends-on): Add signbit.
69704         * modules/snprintf-posix (Depends-on): Likewise.
69705         * modules/sprintf-posix (Depends-on): Likewise.
69706         * modules/vasnprintf-posix (Depends-on): Likewise.
69707         * modules/vasprintf-posix (Depends-on): Likewise.
69708         * modules/vfprintf-posix (Depends-on): Likewise.
69709         * modules/vsnprintf-posix (Depends-on): Likewise.
69710         * modules/vsprintf-posix (Depends-on): Likewise.
69711
69712 2007-04-06  Bruno Haible  <bruno@clisp.org>
69713
69714         * tests/test-frexp.c (main): Test also the sign bit of zero results.
69715         * tests/test-frexpl.c (main): Likewise.
69716         * tests/test-ldexpl.c (main): Likewise.
69717         * modules/frexp-tests (Depends-on): Add signbit.
69718         * modules/frexpl-tests (Depdends-on): Likewise.
69719         * modules/ldexpl-tests (Depdends-on): Likewise.
69720
69721 2007-04-06  Bruno Haible  <bruno@clisp.org>
69722
69723         * modules/signbit-tests: New file.
69724         * tests/test-signbit.c: New file.
69725
69726         * modules/signbit: New file.
69727         * lib/signbitf.c: New file.
69728         * lib/signbitd.c: New file.
69729         * lib/signbitl.c: New file.
69730         * m4/signbit.m4: New file.
69731         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
69732         (signbit): New macro.
69733         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
69734         REPLACE_SIGNBIT.
69735         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
69736         REPLACE_FREXPL into math.h.
69737
69738 2007-04-06  Bruno Haible  <bruno@clisp.org>
69739
69740         * modules/isnanf-nolibm-tests: New file.
69741         * tests/test-isnanf.c: New file.
69742
69743         * modules/isnanf-nolibm: New file.
69744         * lib/isnanf.h: New file.
69745         * lib/isnanf.c: New file.
69746         * lib/isnan.c: Consider the USE_FLOAT macro.
69747         * m4/isnanf.m4: New file.
69748
69749 2007-04-06  Bruno Haible  <bruno@clisp.org>
69750
69751         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
69752         (Link): New section.
69753
69754         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
69755
69756 2007-04-06  Bruno Haible  <bruno@clisp.org>
69757
69758         Assume the 'long double' type.
69759         * m4/longdouble.m4: Remove file.
69760         * config/srclist.txt: Don't mention longdouble.m4.
69761         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
69762         * lib/float+.h: Likewise.
69763         * lib/frexp.c: Likewise.
69764         * lib/printf-args.h: Likewise.
69765         * lib/printf-args.c: Likewise.
69766         * lib/printf-frexp.c: Likewise.
69767         * lib/printf-parse.c: Likewise.
69768         * lib/vasnprintf.c: Likewise.
69769         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
69770         * m4/intl.m4: Likewise.
69771         * m4/isnanl.m4: Likewise.
69772         * m4/printf.m4: Likewise.
69773         * m4/printf-frexpl.m4: Likewise.
69774         * m4/vasnprintf.m4: Likewise.
69775         * modules/allocsa (Files): Remove m4/longdouble.m4.
69776         * modules/gettext (Files): Likewise.
69777         * modules/relocatable-prog-wrapper (Files): Likewise.
69778         * modules/vasnprintf (Files): Likewise.
69779         * modules/isnanl (Files): Likewise.
69780         (Include): Simplify.
69781         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
69782         (Include): Simplify.
69783         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
69784         (Include): Simplify.
69785         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
69786         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69787         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
69788         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69789         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
69790         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69791         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
69792         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69793         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
69794         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69795         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
69796         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69797         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
69798         * tests/test-isnanl.c: Likewise.
69799         * tests/test-snprintf-posix.h: Likewise.
69800         * tests/test-sprintf-posix.h: Likewise.
69801         * tests/test-vasnprintf-posix.c: Likewise.
69802         * tests/test-vasnprintf-posix2.c: Likewise.
69803         * tests/test-vasprintf-posix.c: Likewise.
69804
69805 2007-04-06  Bruno Haible  <bruno@clisp.org>
69806
69807         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
69808         * lib/math_.h [__DECC]: Include the overridden include file through
69809         #include_next, outside the double-inclusion guard.
69810         * lib/stdio_.h [__DECC]: Likewise.
69811         * lib/stdlib_.h [__DECC]: Likewise.
69812         * lib/string_.h [__DECC]: Likewise.
69813         * lib/time_.h [__DECC]: Likewise.
69814         * lib/wchar_.h [__DECC]: Likewise.
69815         * lib/wctype_.h [__DECC]: Likewise.
69816         * lib/inttypes_.h [__DECC]: Likewise.
69817         Reported by Albert Chin <china@thewrittenword.com> in
69818         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
69819
69820 2007-04-04  Eric Blake  <ebb9@byu.net>
69821
69822         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
69823         1.5.x.
69824
69825 2007-04-04  Bruno Haible  <bruno@clisp.org>
69826
69827         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
69828         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
69829
69830 2007-04-04  Bruno Haible  <bruno@clisp.org>
69831
69832         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
69833         results for "%010a" of Infinity and NaN.
69834         * tests/test-vasprintf-posix.c (test_function): Likewise.
69835         * tests/test-snprintf-posix.h (test_function): Likewise.
69836         * tests/test-sprintf-posix.h (test_function): Likewise.
69837         * tests/test-fprintf-posix.h (test_function): Remove these tests.
69838         * tests/test-printf-posix.h (test_function): Likewise.
69839         * tests/test-fprintf-posix.out: Update.
69840         Needed for FreeBSD 6.1.
69841
69842 2007-04-04  Bruno Haible  <bruno@clisp.org>
69843
69844         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
69845         directly used by the gnulib modules nor by gnulib-tool.
69846
69847 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
69848
69849         * DEPENDENCIES: Give overall description of version dependency
69850         desirability.  Use more-typical names for apps.
69851         Add shell, coreutils, diffutils, grep, tar, gzip.
69852
69853 2007-04-04  Simon Josefsson  <simon@josefsson.org>
69854
69855         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
69856
69857 2007-04-04  Karl Berry  <karl@gnu.org>
69858
69859         * MODULES.html.sh (func_module): missing '.
69860
69861 2007-04-03  Bruno Haible  <bruno@clisp.org>
69862
69863         * modules/argmatch-tests (Makefile.am): New variable
69864         test_argmatch_LDADD.
69865         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
69866         * modules/array-list-tests (Makefile.am): New variable
69867         test_array_list_LDADD.
69868         * modules/array-oset-tests (Makefile.am): New variable
69869         test_array_oset_LDADD.
69870         * modules/avltree-list-tests (Makefile.am): New variable
69871         test_avltree_list_LDADD.
69872         * modules/avltree-oset-tests (Makefile.am): New variable
69873         test_avltree_oset_LDADD.
69874         * modules/avltreehash-list-tests (Makefile.am): New variable
69875         test_avltreehash_list_LDADD.
69876         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
69877         test_canonicalize_lgpl_LDADD.
69878         * modules/carray-list-tests (Makefile.am): New variable
69879         test_carray_list_LDADD.
69880         * modules/dirname-tests (Makefile.am): New variable
69881         test_dirname_LDADD.
69882         * modules/linked-list-tests (Makefile.am): New variable
69883         test_linked_list_LDADD.
69884         * modules/linkedhash-list-tests (Makefile.am): New variable
69885         test_linkedhash_list_LDADD.
69886         * modules/rbtree-list-tests (Makefile.am): New variable
69887         test_rbtree_list_LDADD.
69888         * modules/rbtree-oset-tests (Makefile.am): New variable
69889         test_rbtree_oset_LDADD.
69890         * modules/rbtreehash-list-tests (Makefile.am): New variable
69891         test_rbtreehash_list_LDADD.
69892         * modules/xvasprintf-tests (Makefile.am): New variable
69893         test_xvasprintf_LDADD.
69894         Reported by Eric Blake.
69895
69896 2007-04-03  Eric Blake  <ebb9@byu.net>
69897
69898         * DEPENDENCIES: Weaken m4 requirements.
69899
69900 2007-04-03  Bruno Haible  <bruno@clisp.org>
69901
69902         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
69903         * modules/isnanl-tests (configure.ac): Likewise.
69904
69905 2007-04-03  Ben Pfaff  <blp@gnu.org>
69906
69907         * modules/iconv_open: Add $(srcdir)/ to source directory
69908         references in Makefile fragments that call gperf, to fix VPATH
69909         builds.
69910
69911 2007-04-03  Bruno Haible  <bruno@clisp.org>
69912
69913         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
69914         * lib/ldexpl.c: Undo last change.
69915
69916 2007-04-03  Bruno Haible  <bruno@clisp.org>
69917
69918         * modules/printf-frexpl (Depends-on): Undo last change.
69919         (Files): Add m4/ldexpl.m4.
69920
69921 2007-04-03  Bruno Haible  <bruno@clisp.org>
69922
69923         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
69924         * modules/isnanl (Link): New section.
69925
69926         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
69927         * modules/frexp (Link): New section.
69928
69929         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
69930         * modules/frexpl (Link): New section.
69931
69932         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
69933         * modules/ldexpl (Link): New section.
69934
69935 2007-04-03  Bruno Haible  <bruno@clisp.org>
69936
69937         * modules/TEMPLATE-EXTENDED: New file.
69938         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
69939
69940 2007-04-03  Bruno Haible  <bruno@clisp.org>
69941
69942         * DEPENDENCIES: New file.
69943         Suggested by Simon Josefsson.
69944
69945 2007-04-03  Bruno Haible  <bruno@clisp.org>
69946
69947         * doc/gnulib.texi: Escape @.
69948
69949 2007-04-03  James Youngman  <jay@gnu.org>
69950         and Paul Eggert  <eggert@cs.ucla.edu>
69951
69952         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
69953         birthtime on all systems that have birthtime, not just those which
69954         use st_birthtimensec rather than st_birthtim.  Putting zero in
69955         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
69956         that the birth time is not available for files on an NFS mount.
69957
69958 2007-04-03  Simon Josefsson  <simon@josefsson.org>
69959
69960         * modules/memxor: Move back from crypto/, suggested by Bruno.
69961         * modules/crypto/hmac-sha1: Fix memxor dependency.
69962
69963         * modules/crypto/gc: Moved from ../.
69964
69965 2007-04-02  Eric Blake  <ebb9@byu.net>
69966
69967         * lib/ldexpl.c (includes): Avoid libm.
69968
69969         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
69970
69971 2007-04-02  Bruno Haible  <bruno@clisp.org>
69972
69973         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
69974         on IRIX.
69975
69976 2007-04-02  Bruno Haible  <bruno@clisp.org>
69977
69978         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
69979         x86 or x86_64 platforms running MacOS X.
69980         Reported by Ryan Schmidt <@ryandesign.com>.
69981
69982 2007-04-02  Bruno Haible  <bruno@clisp.org>
69983
69984         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
69985         i386.
69986
69987 2007-04-01  Simon Josefsson  <simon@josefsson.org>
69988
69989         * modules/crypto/arcfour: Moved from ../.
69990         * modules/crypto/arcfour-tests: Moved from ../.
69991         * modules/crypto/arctwo: Moved from ../.
69992         * modules/crypto/arctwo-tests: Moved from ../.
69993         * modules/crypto/des: Moved from ../.
69994         * modules/crypto/des-tests: Moved from ../.
69995         * modules/crypto/gc-arcfour: Moved from ../.
69996         * modules/crypto/gc-arcfour-tests: Moved from ../.
69997         * modules/crypto/gc-arctwo: Moved from ../.
69998         * modules/crypto/gc-arctwo-tests: Moved from ../.
69999         * modules/crypto/gc-des: Moved from ../.
70000         * modules/crypto/gc-des-tests: Moved from ../.
70001         * modules/crypto/gc-hmac-md5: Moved from ../.
70002         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
70003         * modules/crypto/gc-hmac-sha1: Moved from ../.
70004         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
70005         * modules/crypto/gc-md2: Moved from ../.
70006         * modules/crypto/gc-md2-tests: Moved from ../.
70007         * modules/crypto/gc-md4: Moved from ../.
70008         * modules/crypto/gc-md4-tests: Moved from ../.
70009         * modules/crypto/gc-md5: Moved from ../.
70010         * modules/crypto/gc-md5-tests: Moved from ../.
70011         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
70012         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
70013         * modules/crypto/gc-random: Moved from ../.
70014         * modules/crypto/gc-rijndael: Moved from ../.
70015         * modules/crypto/gc-rijndael-tests: Moved from ../.
70016         * modules/crypto/gc-sha1: Moved from ../.
70017         * modules/crypto/gc-sha1-tests: Moved from ../.
70018         * modules/crypto/gc-tests: Moved from ../.
70019         * modules/crypto/hmac-md5: Moved from ../.
70020         * modules/crypto/hmac-md5-tests: Moved from ../.
70021         * modules/crypto/hmac-sha1: Moved from ../.
70022         * modules/crypto/hmac-sha1-tests: Moved from ../.
70023         * modules/crypto/md2: Moved from ../.
70024         * modules/crypto/md2-tests: Moved from ../.
70025         * modules/crypto/md4: Moved from ../.
70026         * modules/crypto/md4-tests: Moved from ../.
70027         * modules/crypto/md5: Moved from ../.
70028         * modules/crypto/md5-tests: Moved from ../.
70029         * modules/crypto/memxor: Moved from ../.
70030         * modules/crypto/rijndael: Moved from ../.
70031         * modules/crypto/rijndael-tests: Moved from ../.
70032         * modules/crypto/sha1: Moved from ../.
70033
70034 2007-03-30  James Youngman  <jay@gnu.org>
70035
70036         * tests/test-stat-time.c (prepare_test): use chmod() rather than
70037         rename() to change the ctime of a file (because ctime is unaffected
70038         by rename on jfs2 on AIX 5.1).
70039         (main): Start by doing cleanup, in case a previous run failed leaving
70040         test files behind.
70041
70042 2007-03-31  Bruno Haible  <bruno@clisp.org>
70043
70044         Support old proprietary implementations of iconv.
70045         * modules/iconv_open: New file.
70046         * lib/iconv_.h: New file.
70047         * m4/iconv_h.m4: New file.
70048         * lib/iconv_open.c: New file.
70049         * lib/iconv_open-aix.gperf: New file.
70050         * lib/iconv_open-hpux.gperf: New file.
70051         * lib/iconv_open-irix.gperf: New file.
70052         * lib/iconv_open-osf.gperf: New file.
70053         * m4/iconv_open.m4: New file.
70054         * modules/linebreak (Depends-on): Add iconv_open.
70055         * modules/striconv (Depends-on): Likewise.
70056         * modules/striconveh (Depends-on): Likewise.
70057         * modules/unicodeio (Depends-on): Likewise.
70058         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
70059         (iconv_t)(-1).
70060         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
70061         conversion if cd is (iconv_t)(-1).
70062         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
70063         is not possible.
70064
70065 2007-03-31  Bruno Haible  <bruno@clisp.org>
70066
70067         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
70068         work on Solaris either. Protect also second use of "autodetect_jp".
70069
70070 2007-03-31  Bruno Haible  <bruno@clisp.org>
70071
70072         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
70073         the function is not present.
70074
70075 2007-03-31  Bruno Haible  <bruno@clisp.org>
70076
70077         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
70078         the function is not present.
70079
70080 2007-03-31  Bruno Haible  <bruno@clisp.org>
70081
70082         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
70083         a bug in HP-UX iconv_open().
70084
70085 2007-03-31  Bruno Haible  <bruno@clisp.org>
70086
70087         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
70088         (Mathematics <math.h>): New section, add fpieee.
70089         (Input/output <stdio.h>): Add fseterr.
70090         (Mathematics <math.h>): New section, add printf-frexp.
70091         (Container data structures): Add sublist.
70092         (Core language properties): Add fpucw, inline.
70093         (Functions for greatest-width integer types <inttypes.h>): Add
70094         imaxabs, imaxdiv, inttypes.
70095         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
70096         isnanl-nolibm, ldexp.
70097         (Mathematics <math.h>): New section, add printf-frexpl.
70098         (Support for systems lacking POSIX:2001): Add fprintf-posix,
70099         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
70100         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
70101         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
70102         (Unicode string functions): Add unistr/u*-mbtoucr.
70103         (Java): Add javacomp-script, javaexec-script.
70104         (C#): Add csharpcomp-script, csharpexec-script.
70105         (Support for building libraries and executables): Add havelib,
70106         relocatable-*.
70107         (Support for maintaining and releasing projects): Renamed from
70108         'Support for maintaining and release projects'. Add announce-gen.
70109
70110 2007-03-31  Bruno Haible  <bruno@clisp.org>
70111
70112         * README: Talk primarily about git.
70113         (git and CVS): Renamed from CVS.
70114         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
70115         gnulib is available through git.
70116         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
70117
70118 2007-03-30  Bruno Haible  <bruno@clisp.org>
70119
70120         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
70121         * lib/poll_.h: Likewise.
70122         * lib/stat_.h: Likewise.
70123         * lib/sys_time_.h: Likewise.
70124         * lib/sysexit_.h: Likewise.
70125         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
70126         * lib/stdbool_.h: Likewise.
70127         * lib/byteswap_.h: Add double-inclusion guard.
70128
70129 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
70130
70131         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
70132
70133 2007-03-30  Karl Berry  <karl@gnu.org>
70134
70135         * config/srclist-update: double space after USA in the license
70136         substitution, since that's how it's usually (?) written.
70137
70138 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
70139
70140         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
70141         reported by Bruno Haible.
70142
70143 2007-03-29  Bruno Haible  <bruno@clisp.org>
70144
70145         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
70146         a bug in AIX iconv().
70147
70148 2007-03-29  Bruno Haible  <bruno@clisp.org>
70149
70150         * modules/ldexpl-tests: New file.
70151         * tests/test-ldexpl.c: New file.
70152
70153 2007-03-29  Bruno Haible  <bruno@clisp.org>
70154
70155         * lib/ldexpl.c: Include fpucw.h.
70156         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
70157         multiplication.
70158         * modules/ldexpl (Depends-on): Add fpucw.
70159
70160 2007-03-29  Bruno Haible  <bruno@clisp.org>
70161
70162         * modules/ldexpl: New file.
70163         * m4/ldexpl.m4: New file.
70164         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
70165         set.
70166         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
70167         REPLACE_LDEXPL.
70168         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
70169         REPLACE_LDEXPL.
70170         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
70171         gl_FUNC_LDEXPL_WORKS.
70172         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
70173         * modules/mathl (Files): Remove lib/ldexpl.c.
70174         (Depends-on): Add ldexpl.
70175
70176 2007-03-29  Bruno Haible  <bruno@clisp.org>
70177
70178         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
70179
70180 2007-03-29  Bruno Haible  <bruno@clisp.org>
70181
70182         * tests/test-striconveh.c (main): Don't assume that a direct conversion
70183         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
70184         and possibly also HP-UX.
70185         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
70186         work on AIX, IRIX, HP-UX, OSF/1.
70187         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
70188         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
70189         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
70190         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
70191         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
70192         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
70193
70194 2007-03-29  Bruno Haible  <bruno@clisp.org>
70195
70196         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
70197
70198 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
70199
70200         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
70201         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
70202
70203 2007-03-29  Eric Blake  <ebb9@byu.net>
70204
70205         * lib/acl-internal.h: Remove redundant include.
70206         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
70207         Cygwin when a file is locked.
70208
70209 2007-03-29  Bruno Haible  <bruno@clisp.org>
70210
70211         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
70212         file.
70213         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
70214
70215 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
70216
70217         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
70218         try to remove a parent directory if the child couldn't be removed
70219         (except for the first rmdir, which could fail because the child
70220         doesn't exist).  Problem reported by Jeff Blaine in
70221         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
70222
70223 2007-03-28  Bruno Haible  <bruno@clisp.org>
70224
70225         * lib/striconveh.c (utf8conv_carefully): New function.
70226         (mem_cd_iconveh_internal): Invoke it.
70227
70228 2007-03-28  Bruno Haible  <bruno@clisp.org>
70229
70230         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
70231         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
70232         input.
70233         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
70234         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
70235         unistr/u8-uctomb.
70236
70237 2007-03-28  Bruno Haible  <bruno@clisp.org>
70238
70239         * modules/unistr/u8-mbtoucr: New file.
70240         * lib/unistr/u8-mbtoucr.c: New file.
70241         * modules/unistr/u16-mbtoucr: New file.
70242         * lib/unistr/u16-mbtoucr.c: New file.
70243         * modules/unistr/u16-mbtoucr: New file.
70244         * lib/unistr/u16-mbtoucr.c: New file.
70245         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
70246
70247 2007-03-27  Simon Josefsson  <simon@josefsson.org>
70248             Bruno Haible  <bruno@clisp.org>
70249
70250         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
70251         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
70252         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
70253
70254         * m4/stdio_h.m4: Add stubs for vasprintf too.
70255
70256         * modules/stdio: Support vasprintf in sed command.
70257
70258         * modules/vasprintf: Depend on stdio for prototypes.  Remove
70259         vasprintf.h.  Add stdio module indicator.
70260
70261         * lib/stdio_.h: Declare asprintf and vasprintf, based on
70262         vasprintf.h.
70263
70264         * lib/vasprintf.h: File removed.
70265
70266         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
70267         * lib/vasprintf.c: Ditto.
70268         * lib/xvasprintf.c: Ditto.
70269         * tests/test-vasprintf-posix.c: Ditto.
70270         * tests/test-vasprintf.c: Ditto.
70271
70272 2007-03-27  Bruno Haible  <bruno@clisp.org>
70273
70274         Make vasnprintf multithread-safe.
70275         * lib/vasnprintf.c (decimal_point_char): New function.
70276         (VASNPRINTF): Use it.
70277         Suggested by Simon Josefsson.
70278
70279 2007-03-27  Eric Blake  <ebb9@byu.net>
70280
70281         Support sub-second birthtime on cygwin.
70282         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
70283         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
70284         (get_stat_birthtime): Also work with st_birthtim.
70285
70286 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
70287
70288         * lib/stat-time.h (USE_BIRTHTIME): Remove.
70289         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
70290         (get_stat_birthtime_ns): Do not try to use "spare" fields.
70291         (get_stat_birthtime_ns): Simplify compile-time tests.
70292         (get_stat_birthtime): Change the API to look like
70293         get_stat_mtime etc., except return a negative tv_nsec on error.
70294         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
70295         Don't check for "spare" fields.
70296         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
70297         or for struct stat.st_birthtime, as these tests aren't used.
70298         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
70299
70300 2007-03-27  Bruno Haible  <bruno@clisp.org>
70301
70302         * lib/stat-time.h: Include <sys/stat.h>.
70303
70304 2007-03-27  James Youngman  <jay@gnu.org>
70305
70306         * lib/stat-time.h (get_stat_birthtime): New function for
70307           retrieving st_birthtime as provided by UFS2 (hence *BSD).
70308         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
70309           and its variants.
70310         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
70311         * modules/stat-time-test: New file.
70312         * tests/test-stat-time.c: New test, devised by Bruno Haible.
70313
70314 2007-03-26  Bruno Haible  <bruno@clisp.org>
70315
70316         Better support of signalling NaNs.
70317         * lib/atanl.c: Include isnanl.h.
70318         (atanl): Perform test for NaN at the beginning of the function and
70319         through a call to isnanl.
70320         * lib/cosl.c: Include isnanl.h.
70321         (cosl): Perform test for NaN at the beginning of the function and
70322         through a call to isnanl.
70323         * lib/ldexpl.c: Include isnanl.h.
70324         (ldexpl): Perform test for NaN through a call to isnanl.
70325         * lib/logl.c: Include isnanl.h.
70326         (logl): Perform test for NaN at the beginning of the function and
70327         through a call to isnanl.
70328         * lib/sinl.c: Include isnanl.h.
70329         (sinl): Perform test for NaN at the beginning of the function and
70330         through a call to isnanl.
70331         * lib/sqrtl.c: Include isnanl.h.
70332         (sqrtl): Perform test for NaN at the beginning of the function and
70333         through a call to isnanl.
70334         * lib/tanl.c: Include isnanl.h.
70335         (tanl): Perform test for NaN at the beginning of the function and
70336         through a call to isnanl.
70337         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
70338         * modules/mathl (Depends-on): Add isnanl.
70339
70340 2007-03-26  Eric Blake  <ebb9@byu.net>
70341
70342         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
70343         regression in logic sense of previous patch.
70344
70345 2007-03-26  Bruno Haible  <bruno@clisp.org>
70346
70347         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
70348         unportable shell command "if ! ...".
70349         Reported by Ralf Wildenhues.
70350
70351 2007-03-25  Bruno Haible  <bruno@clisp.org>
70352
70353         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
70354         <sysexits.h> file, and only add EX_CONFIG.
70355         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
70356         absolute file name and whether it is sufficient. Substitute also
70357         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
70358         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
70359         ABSOLUTE_SYSEXITS_H into sysexits.h.
70360
70361 2007-03-25  Bruno Haible  <bruno@clisp.org>
70362
70363         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
70364         hints is NULL.
70365
70366 2007-03-25  Bruno Haible  <bruno@clisp.org>
70367
70368         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
70369         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
70370
70371 2007-03-25  Bruno Haible  <bruno@clisp.org>
70372
70373         * lib/vasnprintf.c: Include langinfo.h.
70374         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
70375         multithread-safe.
70376         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
70377         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
70378         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
70379         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70380         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70381         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70382         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70383         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
70384         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70385         Reported by Simon Josefsson.
70386
70387 2007-03-25  Bruno Haible  <bruno@clisp.org>
70388
70389         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
70390         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
70391         * modules/vasnprintf (Depends-on): Add stdint.
70392
70393 2007-03-25  Bruno Haible  <bruno@clisp.org>
70394
70395         * modules/fpieee: New file.
70396         * m4/fpieee.m4: New file.
70397         * modules/isnan-nolibm (Depends-on): Add fpieee.
70398         * modules/isnanl-nolibm (Depends-on): Add fpieee.
70399         * modules/isnanl (Depends-on): Add fpieee.
70400
70401 2007-03-25  Bruno Haible  <bruno@clisp.org>
70402
70403         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
70404
70405 2007-03-25  Bruno Haible  <bruno@clisp.org>
70406
70407         Avoid test failures on IRIX 6.5.
70408         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
70409         (main): Use it.
70410         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
70411         macros.
70412         (main): Use them.
70413
70414 2007-03-25  Bruno Haible  <bruno@clisp.org>
70415
70416         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
70417         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
70418         exists but doesn't work.
70419         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
70420         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
70421         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
70422         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
70423         math.h.
70424
70425 2007-03-25  Bruno Haible  <bruno@clisp.org>
70426
70427         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
70428         returns inf. Needed on IRIX 6.5.
70429
70430 2007-03-25  Bruno Haible  <bruno@clisp.org>
70431
70432         * tests/test-frexpl.c: Include isnanl-nolibm.h.
70433         (main): Use isnanl instead of x != x idiom.
70434         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
70435
70436         * tests/test-frexp.c: Include isnan.h.
70437         (main): Use isnan instead of x != x idiom.
70438         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
70439
70440 2007-03-25  Bruno Haible  <bruno@clisp.org>
70441
70442         * tests/test-frexp.c (NaN): New function/macro.
70443         (main): Use it instead of 0.0 / 0.0.
70444         * tests/test-isnan.c (NaN): New function/macro.
70445         (main): Use it instead of 0.0 / 0.0.
70446         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
70447         (test_function): Use it instead of 0.0 / 0.0.
70448         * tests/test-vasprintf-posix.c (NaN): New function/macro.
70449         (test_function): Use it instead of 0.0 / 0.0.
70450         * tests/test-snprintf-posix.h (NaN): New function/macro.
70451         (test_function): Use it instead of 0.0 / 0.0.
70452         * tests/test-sprintf-posix.h (NaN): New function/macro.
70453         (test_function): Use it instead of 0.0 / 0.0.
70454         * tests/test-fprintf-posix.h (NaN): New function/macro.
70455         (test_function): Use it instead of 0.0 / 0.0.
70456         * tests/test-printf-posix.h (NaN): New function/macro.
70457         (test_function): Use it instead of 0.0 / 0.0.
70458
70459         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
70460
70461 2007-03-25  Bruno Haible  <bruno@clisp.org>
70462
70463         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
70464
70465 2007-03-25  Bruno Haible  <bruno@clisp.org>
70466
70467         * lib/regexec.c (merge_state_with_log): Make static.
70468
70469 2007-03-25  Bruno Haible  <bruno@clisp.org>
70470
70471         * lib/trigl.c (kernel_rem_pio2): Make static.
70472
70473 2007-03-25  Bruno Haible  <bruno@clisp.org>
70474
70475         * lib/sincosl.c (sincosl_table): Make static.
70476
70477 2007-03-25  Bruno Haible  <bruno@clisp.org>
70478
70479         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
70480         if the compiler does not support C99.
70481
70482 2007-03-25  Bruno Haible  <bruno@clisp.org>
70483
70484         * modules/time (Makefile.am): Ensure all rule action lines start with a
70485         tab.
70486
70487 2007-03-24  Bruno Haible  <bruno@clisp.org>
70488
70489         * modules/tsearch-tests: New file.
70490         * tests/test-tsearch.sh: New file.
70491         * tests/test-tsearch.c: New file, mostly copied from glibc.
70492
70493         * modules/search-tests: New file.
70494         * tests/test-search.c: New file.
70495
70496         * modules/search: New file.
70497         * lib/search_.h: New file, incorporating lib/tsearch.h.
70498         * m4/search_h.m4: New file.
70499         * lib/tsearch.h: Remove file.
70500         * lib/tsearch.c: Include search.h instead of tsearch.h.
70501         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
70502         HAVE_TSEARCH.
70503         * modules/tsearch (Files): Remove lib/tsearch.h.
70504         (Depends-on): Add search.
70505         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
70506         (Include): Change tsearch.h into search.h.
70507
70508 2007-03-24  Bruno Haible  <bruno@clisp.org>
70509
70510         * modules/fpucw: New file.
70511         * lib/fpucw.h: New file.
70512         * lib/frexp.c: Include fpucw.h.
70513         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
70514         (FUNC): Use them.
70515         * lib/printf-frexp.c: Include fpucw.h.
70516         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
70517         (FUNC): Use them.
70518         * lib/vasnprintf.c: Include fpucw.h.
70519         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
70520         'long double' calculations.
70521         * tests/test-frexpl.c: Include fpucw.h.
70522         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
70523         * tests/test-printf-frexpl.c: Include fpucw.h.
70524         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
70525         * modules/frexpl (Depends-on): Add fpucw.
70526         * modules/printf-frexpl (Depends-on): Likewise.
70527         * modules/fprintf-posix (Depends-on): Likewise.
70528         * modules/snprintf-posix (Depends-on): Likewise.
70529         * modules/sprintf-posix (Depends-on): Likewise.
70530         * modules/vasnprintf-posix (Depends-on): Likewise.
70531         * modules/vasprintf-posix (Depends-on): Likewise.
70532         * modules/vfprintf-posix (Depends-on): Likewise.
70533         * modules/vsnprintf-posix (Depends-on): Likewise.
70534         * modules/vsprintf-posix (Depends-on): Likewise.
70535         * modules/frexpl-tests (Depends-on): Likewise.
70536         * modules/printf-frexpl-tests (Depends-on): Likewise.
70537
70538 2007-03-24  Bruno Haible  <bruno@clisp.org>
70539
70540         * lib/float+.h: New file.
70541         * lib/isnan.c: Include float+.h.
70542         (SIZE): New macro.
70543         (FUNC): Compare only SIZE bytes of the value.
70544         * lib/vasnprintf.c: Include float+.h.
70545         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
70546         SIZEOF_LDBL or SIZEOF_DBL bytes.
70547         * modules/isnan-nolibm (Files): Add lib/float+.h.
70548         * modules/isnanl-nolibm (Files): Add lib/float+.h.
70549         * modules/isnanl (Files): Add lib/float+.h.
70550         * modules/vasnprintf (Files): Add lib/float+.h.
70551
70552 2007-03-24  Bruno Haible  <bruno@clisp.org>
70553
70554         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
70555         include isnanl-nolibm.h.
70556
70557 2007-03-24  Bruno Haible  <bruno@clisp.org>
70558
70559         * tests/test-read-file.c (main): Don't produce spurious output for
70560         expected situations. Make the test fail if it encountered unexpected
70561         results.
70562
70563 2007-03-24  Bruno Haible  <bruno@clisp.org>
70564
70565         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
70566         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
70567
70568 2007-03-24  Bruno Haible  <bruno@clisp.org>
70569
70570         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
70571
70572 2007-03-24  Bruno Haible  <bruno@clisp.org>
70573
70574         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
70575         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
70576
70577         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
70578         * modules/utf8-ucs4: Turn into a symbolic link to module
70579         unistr/u8-mbtouc.
70580
70581         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
70582         utf8-ucs4-unsafe.
70583         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
70584         unistr/u8-mbtouc-unsafe.
70585
70586         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
70587         * modules/utf16-ucs4: Turn into a symbolic link to module
70588         unistr/u16-mbtouc.
70589
70590         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
70591         utf16-ucs4-unsafe.
70592         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
70593         unistr/u16-mbtouc-unsafe.
70594
70595         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
70596         * modules/ucs4-utf8: Turn into a symbolic link to module
70597         unistr/u8-ubtomb.
70598
70599         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
70600         * modules/ucs4-utf16: Turn into a symbolic link to module
70601         unistr/u16-ubtomb.
70602
70603 2007-03-24  Bruno Haible  <bruno@clisp.org>
70604
70605         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
70606         Enable the function only if HAVE_INLINE.
70607         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
70608         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
70609         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
70610         Enable the function only if HAVE_INLINE.
70611         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
70612         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
70613         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
70614         Enable the function only if HAVE_INLINE.
70615         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
70616         Enable the function only if HAVE_INLINE.
70617         * modules/utf8-ucs4: Update.
70618         * modules/utf8-ucs4-unsafe: Update.
70619         * modules/utf16-ucs4: Update.
70620         * modules/utf16-ucs4-unsafe: Update.
70621         * modules/ucs4-utf8: Update.
70622         * modules/ucs4-utf16: Update.
70623
70624 2007-03-24  Bruno Haible  <bruno@clisp.org>
70625
70626         * lib/utf8-ucs4.h: Remove file.
70627         * lib/utf8-ucs4-unsafe.h: Remove file.
70628         * lib/utf16-ucs4.h: Remove file.
70629         * lib/utf16-ucs4-unsafe.h: Remove file.
70630         * lib/ucs4-utf8.h: Remove file.
70631         * lib/ucs4-utf16.h: Remove file.
70632         * lib/unistr.h: Include their previous contents.
70633         * m4/utf-ucs4.m4: Remove file.
70634         * m4/ucs4-utf.m4: Remove file.
70635         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
70636         (Depends-on): Add unistr/base.
70637         (configure.ac): Remove gl_UTF_UCS4.
70638         (Makefile.am): Update.
70639         (Include): Change to unistr.h.
70640         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
70641         (Depends-on): Add unistr/base.
70642         (configure.ac): Remove gl_UTF_UCS4.
70643         (Makefile.am): Update.
70644         (Include): Change to unistr.h.
70645         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
70646         (Depends-on): Add unistr/base.
70647         (configure.ac): Remove gl_UTF_UCS4.
70648         (Makefile.am): Update.
70649         (Include): Change to unistr.h.
70650         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
70651         (Depends-on): Add unistr/base.
70652         (configure.ac): Remove gl_UTF_UCS4.
70653         (Makefile.am): Update.
70654         (Include): Change to unistr.h.
70655         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
70656         (Depends-on): Add unistr/base.
70657         (configure.ac): Remove gl_UCS4_UTF.
70658         (Makefile.am): Update.
70659         (Include): Change to unistr.h.
70660         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
70661         (Depends-on): Add unistr/base.
70662         (configure.ac): Remove gl_UCS4_UTF.
70663         (Makefile.am): Update.
70664         (Include): Change to unistr.h.
70665         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
70666         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
70667         utf8-ucs4-unsafe.h.
70668         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
70669         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
70670         utf16-ucs4-unsafe.h.
70671         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
70672         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
70673         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
70674         * lib/unistr/u8-strchr.c: Likewise.
70675         * lib/unistr/u8-strrchr.c: Likewise.
70676         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
70677         * lib/unistr/u16-strchr.c: Likewise.
70678         * lib/unistr/u16-strrchr.c: Likewise.
70679         * lib/striconveh.c: Update.
70680         * lib/linebreak.c: Update.
70681
70682 2007-03-24  Bruno Haible  <bruno@clisp.org>
70683
70684         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
70685         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
70686
70687 2007-03-22  Bruno Haible  <bruno@clisp.org>
70688
70689         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
70690
70691 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
70692
70693         * MODULES.html.sh (File system functions): New module write-any-file.
70694         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
70695         * m4/write-any-file.m4: New files.
70696
70697 2007-03-23  Eric Blake  <ebb9@byu.net>
70698
70699         * gnulib-tool: Rearrange space-tab sequences, since some editors
70700         like to eat them.
70701
70702 2007-03-23  Eric Blake  <ebb9@byu.net>
70703
70704         * lib/version-etc.c (version_etc_va): Update license wording to
70705         be more concise.  Recommended by Richard Stallman.
70706
70707 2007-03-22  Bruno Haible  <bruno@clisp.org>
70708
70709         * lib/poll.c (MSG_PEEK): New fallback definition.
70710
70711 2007-03-22  Bruno Haible  <bruno@clisp.org>
70712
70713         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
70714         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
70715         (main): Update.
70716         Fixes a compilation error on BeOS.
70717
70718 2007-03-22  Bruno Haible  <bruno@clisp.org>
70719
70720         * modules/frexpl-tests: New file.
70721         * tests/test-frexpl.c: New file.
70722
70723         * modules/frexpl: New file.
70724         * m4/frexpl.m4: New file.
70725         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
70726         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
70727         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
70728         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
70729         (Depends-on): Add frexpl. Remove isnanl-nolibm.
70730         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
70731
70732 2007-03-22  Bruno Haible  <bruno@clisp.org>
70733
70734         * lib/frexpl.c: Share code with lib/frexp.c.
70735         * modules/mathl (Files): Add lib/frexp.c.
70736         (Depends-on): Add isnanl-nolibm.
70737
70738 2007-03-22  Bruno Haible  <bruno@clisp.org>
70739
70740         * modules/printf-frexp (Files): Add m4/frexp.m4.
70741         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
70742         only if the found frexp function actually works.
70743
70744 2007-03-22  Bruno Haible  <bruno@clisp.org>
70745
70746         * lib/frexp.c: Remove older implementation that uses divisions.
70747
70748 2007-03-21  Bruno Haible  <bruno@clisp.org>
70749
70750         * modules/frexp-tests: New file.
70751         * tests/test-frexp.c: New file.
70752
70753         * modules/frexp: New file.
70754         * lib/frexp.c: New file.
70755         * m4/frexp.m4: New file.
70756         * lib/math_.h (frexp): New declaration.
70757         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
70758         REPLACE_FREXP.
70759         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
70760
70761 2007-03-21  Bruno Haible  <bruno@clisp.org>
70762
70763         * modules/isnanl-tests: New file.
70764         * tests/test-isnanl.c: New file.
70765
70766         * modules/isnanl: New file.
70767         * lib/isnanl.h: New file.
70768         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
70769         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
70770         gl_FUNC_ISNANL_WORKS.
70771         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
70772         New macros.
70773
70774 2007-03-21  Bruno Haible  <bruno@clisp.org>
70775
70776         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
70777         lib/isnanl.h.
70778         (Include): Update.
70779         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
70780         * lib/vasnprintf.c: Update.
70781         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
70782         tests/test-isnanl.h, remove tests/test-isnanl.c.
70783         (Makefile.am): Update.
70784         * tests/test-isnanl-nolibm.c: New file.
70785         * tests/test-isnanl.h: New file.
70786         * tests/test-isnanl.c: Remove file.
70787
70788 2007-03-21  Jim Meyering  <jim@meyering.net>
70789
70790         When trying to open ".", treat ESTALE like EACCES.
70791         * lib/savewd.c (savewd_save): Resort to forking not just upon
70792         failure with EACCES, but also when errno is ESTALE.
70793
70794 2007-03-20  Bruno Haible  <bruno@clisp.org>
70795
70796         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
70797         Needed on AIX 5.1. Reported by Matthew Woehlke.
70798
70799 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
70800
70801         Suggestions by Bruno Haible:
70802         * lib/acl-internal.h: Include "gettext.h" rather than rolling
70803         our own.
70804         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
70805         * modules/acl (Depends-on): Add gettext.
70806
70807 2007-03-19  Bruno Haible  <bruno@clisp.org>
70808
70809         * modules/iconvme: Remove file.
70810         * lib/iconvme.h: Remove file.
70811         * lib/iconvme.c: Remove file.
70812         * m4/iconvme.m4: Remove file.
70813
70814 2007-03-19  Bruno Haible  <bruno@clisp.org>
70815
70816         * doc/relocatable-maint.texi: Break long shell script line.
70817         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
70818
70819 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
70820
70821         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
70822         handle file_has_acl.
70823         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
70824         * lib/acl.c: Move header inclusions and related macro defns into
70825         lib/acl-internal.h.
70826         (S_ISLNK): Remove defn, since that's now done for us.
70827         (file_has_acl): Move to lib/file-has-acl.c.
70828         Call acl_trivial if available.  This is the crucial part of the fix.
70829         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
70830         shared within the library.  Rewrite a bit, partly to make it compatible
70831         with the GNU coding style.
70832         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
70833         Remove unnecessary double-quotes.
70834         Don't test for acl_to_text; the build will catch that.
70835         Replace acl_entries if it doesn't exist and it is needed.
70836         Check for -lsec and acl_trivial (as used on Solaris 10).
70837         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
70838         lib/file-has-acl.c.
70839         (Depends-on): Add sys_stat, for S_ISLNK.
70840
70841 2007-03-19  Ben Pfaff  <blp@gnu.org>
70842
70843         * doc/gnulib.texi: Fix typos.
70844         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
70845
70846 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
70847
70848         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
70849         If size is zero here, buf must be zero.
70850
70851 2007-03-19  Simon Josefsson  <simon@josefsson.org>
70852
70853         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
70854         <bruno@clisp.org>.
70855
70856 2007-03-18  Bruno Haible  <bruno@clisp.org>
70857
70858         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
70859         Suggested by Eric Blake.
70860
70861 2007-03-18  Ben Pfaff  <blp@gnu.org>
70862
70863         * doc/relocatable.texi: Recommend using as prefix a directory
70864         that does not exist and will never be created.  Based on
70865         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
70866         and others.
70867
70868 2007-03-17  Bruno Haible  <bruno@clisp.org>
70869
70870         * lib/fchownat.c: Include lchown.h.
70871
70872 2007-03-17  Bruno Haible  <bruno@clisp.org>
70873
70874         Fix endless loop when the given allocated size was > INT_MAX.
70875         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
70876         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
70877         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
70878         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
70879         * lib/sprintf.c (sprintf): Likewise.
70880
70881 2007-03-17  Bruno Haible  <bruno@clisp.org>
70882
70883         * tests/test-argp-2.sh (func_compare): Output a context diff.
70884
70885 2007-03-17  Bruno Haible  <bruno@clisp.org>
70886
70887         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
70888         locale's decimal-point character.
70889
70890 2007-03-17  Bruno Haible  <bruno@clisp.org>
70891
70892         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
70893         before comparing it. Needed because on some platforms (e.g. x86) a
70894         'long double' occupies less bytes than sizeof (long double).
70895
70896 2007-03-17  Bruno Haible  <bruno@clisp.org>
70897
70898         * tests/test-crc.c (main): Make printf statements 64-bit clean.
70899         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
70900         * tests/test-getaddrinfo.c (simple): Likewise.
70901         * tests/test-read-file.c (main): Likewise.
70902
70903 2007-03-17  Bruno Haible  <bruno@clisp.org>
70904
70905         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
70906
70907 2007-03-17  Bruno Haible  <bruno@clisp.org>
70908
70909         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
70910         unused variable.
70911
70912 2007-03-17  Bruno Haible  <bruno@clisp.org>
70913
70914         * tests/test-c-strcasecmp.c: Include c-strcase.h.
70915         * tests/test-c-strncasecmp.c: Likewise.
70916
70917 2007-03-17  Bruno Haible  <bruno@clisp.org>
70918
70919         * modules/stdlib (Depends-on): Add unistd.
70920         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
70921         Needed for MacOS X 10.3.
70922
70923 2007-03-17  Bruno Haible  <bruno@clisp.org>
70924
70925         * lib/unistr/u-strdup.h: Include <stdlib.h>.
70926
70927 2007-03-17  Bruno Haible  <bruno@clisp.org>
70928
70929         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
70930
70931 2007-03-17  Bruno Haible  <bruno@clisp.org>
70932
70933         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
70934         to reflect files copied from gnulib (with or without modifications).
70935         Suggested by Jim Meyering.
70936
70937 2007-03-17  Eric Blake  <ebb9@byu.net>
70938
70939         * NEWS: Document stdlib change from 2007-02-18.
70940
70941 2007-03-17  Jim Meyering  <jim@meyering.net>
70942
70943         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
70944         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
70945         someone uses a name containing shell meta-characters.
70946         Reported by Alfred M. Szmidt.
70947
70948         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
70949
70950 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
70951
70952         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
70953         and copy gettext configuration files only if configure.ac contains
70954         a use of AM_GNU_GETTEXT_VERSION.
70955
70956 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
70957
70958         * build-aux/bootstrap (gnulib_name): New variable.
70959         (gnulib_tool_options): Use it.
70960
70961 2007-03-13  Simon Josefsson  <simon@josefsson.org>
70962
70963         * tests/test-des.c: Use new namespace.
70964
70965 2007-03-15  Bruno Haible  <bruno@clisp.org>
70966
70967         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
70968         Reported by James Youngman <jay@gnu.org>.
70969
70970 2007-03-15  Bruno Haible  <bruno@clisp.org>
70971
70972         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
70973         declared prototype. Needed with cc on OSF/1 5.1.
70974
70975 2007-03-15  Bruno Haible  <bruno@clisp.org>
70976
70977         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
70978         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
70979         (struct gl_list_implementation): Add dispose_fn argument to the
70980         'create_empty', 'create' methods.
70981         (struct gl_list_impl_base): Add field 'dispose_fn'.
70982         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
70983         argument.
70984         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
70985         dispose_fn argument.
70986         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
70987         dispose_fn on the dropped values.
70988         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
70989         dispose_fn argument.
70990         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
70991         dropped values.
70992         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
70993         (gl_tree_remove_node): Call dispose_fn on the dropped value.
70994         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
70995         (gl_tree_remove_node): Call dispose_fn on the dropped value.
70996         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
70997         argument.
70998         (gl_tree_list_free): Call dispose_fn on the dropped values.
70999         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
71000         the dropped values.
71001         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
71002         Add dispose_fn argument.
71003         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
71004         Call dispose_fn on the dropped values.
71005         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
71006         Add dispose_fn argument.
71007         (gl_sublist_create): Initialize the 'dispose_fn' field.
71008         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
71009         * tests/test-array_list.c (main): Update.
71010         * tests/test-carray_list.c (main): Update.
71011         * tests/test-avltree_list.c (main): Update.
71012         * tests/test-rbtree_list.c (main): Update.
71013         * tests/test-avltreehash_list.c (main): Update.
71014         * tests/test-rbtreehash_list.c (main): Update.
71015         * tests/test-linked_list.c (main): Update.
71016         * tests/test-linkedhash_list.c (main): Update.
71017         * tests/test-array_oset.c (main): Update.
71018
71019 2007-03-15  Bruno Haible  <bruno@clisp.org>
71020
71021         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
71022         (gl_oset_create_empty): Add dispose_fn argument.
71023         (struct gl_oset_implementation): Add dispose_fn argument to
71024         'create_empty' method.
71025         (struct gl_oset_impl_base): Add dispose_fn field.
71026         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
71027         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
71028         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
71029         values.
71030         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
71031         (gl_tree_oset_free): Call dispose_fn on the dropped values.
71032         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
71033         dropped value.
71034         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
71035         dropped value.
71036         * tests/test-array_oset.c (main): Update.
71037         * tests/test-avltree_oset.c (main): Update.
71038         * tests/test-rbtree_oset.c (main): Update.
71039         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
71040
71041 2007-03-13  Bruno Haible  <bruno@clisp.org>
71042
71043         * tests/test-stdbool.c (i): Update after last patch.
71044
71045 2007-03-12  Bruno Haible  <bruno@clisp.org>
71046
71047         * lib/quotearg.c: Include <wctype.h> early, before the definition of
71048         the iswprint macro. Needed on Solaris 2.5.1.
71049
71050 2007-03-12  Bruno Haible  <bruno@clisp.org>
71051
71052         * tests/test-printf-frexp.c (main): Declare x as volatile.
71053
71054 2007-03-12  Simon Josefsson  <simon@josefsson.org>
71055
71056         * doc/gnulib.texi (Build robot for gnulib): New section.
71057
71058 2007-03-12  Jim Meyering  <jim@meyering.net>
71059
71060         * build-aux/bootstrap: New file.
71061         * build-aux/bootstrap.conf: New file, from coreutils.
71062
71063 2007-03-11  Bruno Haible  <bruno@clisp.org>
71064
71065         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
71066
71067 2007-03-12  Simon Josefsson  <simon@josefsson.org>
71068
71069         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
71070         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
71071         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
71072
71073 2007-03-11  Bruno Haible  <bruno@clisp.org>
71074
71075         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
71076         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
71077
71078 2007-03-11  Bruno Haible  <bruno@clisp.org>
71079
71080         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
71081         formula. Needed for SunPRO C 5.0.
71082
71083 2007-03-11  Bruno Haible  <bruno@clisp.org>
71084
71085         * modules/long-options (Depends-on): Add getopt.
71086
71087 2007-03-11  Bruno Haible  <bruno@clisp.org>
71088
71089         * modules/modechange (Depends-on): Add stdbool.
71090
71091 2007-03-11  Bruno Haible  <bruno@clisp.org>
71092
71093         * modules/i-ring (Depends-on): Add stdbool.
71094
71095 2007-03-11  Bruno Haible  <bruno@clisp.org>
71096
71097         * modules/gc-des (Depends-on): Add stdbool.
71098
71099 2007-03-11  Bruno Haible  <bruno@clisp.org>
71100
71101         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
71102
71103 2007-03-11  Bruno Haible  <bruno@clisp.org>
71104
71105         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
71106
71107 2007-03-11  Bruno Haible  <bruno@clisp.org>
71108
71109         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
71110
71111 2007-03-11  Bruno Haible  <bruno@clisp.org>
71112
71113         * lib/vasnprintf.c (sprintf): Undefine.
71114
71115 2007-03-11  Bruno Haible  <bruno@clisp.org>
71116
71117         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
71118         initializers in SunPRO C and Compaq C compilers.
71119
71120 2007-03-11  Bruno Haible  <bruno@clisp.org>
71121
71122         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
71123         decrementing code ANSI C compliant.
71124
71125 2007-03-11  Bruno Haible  <bruno@clisp.org>
71126
71127         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
71128         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
71129
71130 2007-03-11  Bruno Haible  <bruno@clisp.org>
71131
71132         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
71133         <stdbool.h> substitute doesn't pass.
71134
71135 2007-03-11  Bruno Haible  <bruno@clisp.org>
71136
71137         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
71138
71139 2007-03-11  Bruno Haible  <bruno@clisp.org>
71140
71141         * gnulib-tool (func_create_megatestdir): Create also an autobuild
71142         script, for submission to autobuild.josefsson.org.
71143
71144 2007-03-10  Bruno Haible  <bruno@clisp.org>
71145
71146         * modules/canonicalize-lgpl-tests: New file.
71147         * tests/test-canonicalize-lgpl.sh: New file.
71148         * tests/test-canonicalize-lgpl.c: New file.
71149
71150         * modules/c-strcase-tests: New file.
71151         * tests/test-c-strcase.sh: New file.
71152         * tests/test-c-strcasecmp.c: New file.
71153         * tests/test-c-strncasecmp.c: New file.
71154
71155         * modules/atexit-tests: New file.
71156         * tests/test-atexit.sh: New file.
71157         * tests/test-atexit.c: New file.
71158
71159 2007-03-10  Bruno Haible  <bruno@clisp.org>
71160
71161         * tests/test-binary-io.sh: Use temporary filenames that are not so
71162         likely to clash with those of other tests (in a parallel make).
71163         * tests/test-binary-io.c: Likewise.
71164
71165 2007-03-10  Bruno Haible  <bruno@clisp.org>
71166
71167         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
71168         fallback; use #error instead.
71169         Suggested by Simon Josefsson.
71170
71171 2007-03-10  Bruno Haible  <bruno@clisp.org>
71172
71173         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
71174         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
71175         first and the last.
71176
71177 2007-03-10  Bruno Haible  <bruno@clisp.org>
71178
71179         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
71180
71181 2007-03-10  Bruno Haible  <bruno@clisp.org>
71182
71183         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
71184         "make distcheck".
71185         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
71186         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
71187         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
71188
71189 2007-03-10  Bruno Haible  <bruno@clisp.org>
71190
71191         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
71192         variable.
71193         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
71194         variable.
71195
71196 2007-03-09  Eric Blake  <ebb9@byu.net>
71197         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
71198
71199         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
71200         types are not being provided by gnulib.
71201         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
71202         types are supported.
71203
71204 2007-03-10  Bruno Haible  <bruno@clisp.org>
71205
71206         * lib/stdio_.h (__attribute__): New macro.
71207         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
71208         vsprintf): Specify __attribute__ __format__ for GCC.
71209         Suggested by Eric Blake.
71210
71211 2007-03-09  Bruno Haible  <bruno@clisp.org>
71212
71213         * modules/printf-posix-tests: New file.
71214         * tests/test-printf-posix.sh: New file.
71215         * tests/test-printf-posix.c: New file.
71216
71217         * modules/printf-posix: New file.
71218         * lib/printf.c: New file.
71219         * m4/printf-posix-rpl.m4: New file.
71220         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
71221         REPLACE_PRINTF.
71222         * lib/stdio_.h (printf): New declaration.
71223         (format, __format__, ____printf____, ____scanf____, ____strftime____,
71224         ____strfmon____): New macros.
71225         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
71226         REPLACE_PRINTF.
71227
71228 2007-03-09  Bruno Haible  <bruno@clisp.org>
71229
71230         * tests/test-vasnprintf-posix2.sh: New file.
71231         * tests/test-vasnprintf-posix2.c: New file.
71232         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
71233         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
71234         (Makefile.am): Activate test-vasnprintf-posix2.sh.
71235
71236         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
71237         a locale dependent decimal point, rather than always '.'.
71238
71239 2007-03-09  Eric Blake  <ebb9@byu.net>
71240
71241         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
71242         spite of platforms like Tandem/NSK that define it to -1.
71243
71244 2007-03-08  Bruno Haible  <bruno@clisp.org>
71245
71246         * modules/vprintf-posix-tests: New file.
71247         * tests/test-vprintf-posix.sh: New file.
71248         * tests/test-vprintf-posix.c: New file.
71249         * tests/test-printf-posix.h: New file.
71250
71251         * modules/vprintf-posix: New file.
71252         * lib/vprintf.c: New file.
71253         * m4/vprintf-posix.m4: New file.
71254         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
71255         REPLACE_VPRINTF.
71256         * lib/stdio_.h (vprintf): New declaration.
71257         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
71258         REPLACE_VPRINTF.
71259
71260 2007-03-08  Bruno Haible  <bruno@clisp.org>
71261
71262         * modules/fprintf-posix-tests: New file.
71263         * tests/test-fprintf-posix.sh: New file.
71264         * tests/test-fprintf-posix.c: New file.
71265
71266         * modules/fprintf-posix: New file.
71267         * lib/fprintf.c: New file.
71268         * m4/fprintf-posix.m4: New file.
71269         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
71270         REPLACE_FPRINTF.
71271         * lib/stdio_.h (fprintf): New declaration.
71272         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
71273         REPLACE_FPRINTF.
71274
71275 2007-03-08  Bruno Haible  <bruno@clisp.org>
71276
71277         * modules/vfprintf-posix-tests: New file.
71278         * tests/test-vfprintf-posix.sh: New file.
71279         * tests/test-vfprintf-posix.c: New file.
71280         * tests/test-fprintf-posix.h: New file.
71281         * tests/test-fprintf-posix.out: New file.
71282
71283         * modules/vfprintf-posix: New file.
71284         * lib/vfprintf.c: New file.
71285         * m4/vfprintf-posix.m4: New file.
71286         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
71287         REPLACE_VFPRINTF.
71288         * lib/stdio_.h (vfprintf): New declaration.
71289         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
71290         REPLACE_VFPRINTF.
71291
71292 2007-03-08  Bruno Haible  <bruno@clisp.org>
71293
71294         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
71295
71296 2007-03-08  Bruno Haible  <bruno@clisp.org>
71297
71298         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
71299         instead of 'expr' invocations.
71300         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
71301         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
71302         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
71303         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
71304         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
71305         Suggested by Paul Eggert.
71306
71307 2007-03-08  Bruno Haible  <bruno@clisp.org>
71308
71309         * modules/fseterr-tests: New file.
71310         * tests/test-fseterr.c: New file.
71311
71312         * modules/fseterr: New file.
71313         * lib/fseterr.h: New file.
71314         * lib/fseterr.c: New file.
71315
71316 2007-03-08  Bruno Haible  <bruno@clisp.org>
71317
71318         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
71319         * lib/getopt_.h: Likewise.
71320         * lib/mbswidth.h: Likewise.
71321         * lib/setenv.h: Likewise.
71322         * lib/vasnprintf.h: Likewise.
71323         * lib/vasprintf.h: Likewise.
71324         * lib/verror.h: Likewise.
71325         * lib/xsetenv.h: Likewise.
71326         * lib/xvasprintf.h: Likewise.
71327
71328 2007-03-08  Jim Meyering  <jim@meyering.net>
71329
71330         * users.txt: Add parted.
71331
71332         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
71333
71334 2007-03-07  Bruno Haible  <bruno@clisp.org>
71335
71336         * m4/printf.m4: Make the shell script snippets copy&pastable.
71337
71338 2007-03-02  Bruno Haible  <bruno@clisp.org>
71339
71340         * lib/netinet_in_.h: New file.
71341         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
71342         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
71343         * modules/netinet_in (Files): Add lib/netinet_in_.h.
71344         (Depends-on): Add absolute-header.
71345         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
71346         into netinet/in.h.
71347
71348 2007-03-03  Bruno Haible  <bruno@clisp.org>
71349
71350         * lib/sys_select_.h: New file.
71351         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
71352         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
71353         * modules/sys_select (Files): Add lib/sys_select_.h.
71354         (Depends-on): Add absolute-header.
71355         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
71356         into sys/select.h.
71357
71358 2007-03-02  Bruno Haible  <bruno@clisp.org>
71359
71360         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
71361         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
71362         values.
71363         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
71364         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
71365         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
71366         * modules/sys_socket (Depends-on): Add absolute-header.
71367         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
71368         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
71369         (Include): Remove requirement of inclusion of <sys/types.h>.
71370
71371 2007-03-02  Bruno Haible  <bruno@clisp.org>
71372
71373         * lib/byteswap_.h (bswap_32): Fix formula.
71374
71375 2007-03-06  Bruno Haible  <bruno@clisp.org>
71376
71377         * modules/sprintf-posix-tests: New file.
71378         * tests/test-sprintf-posix.c: New file.
71379
71380         * modules/sprintf-posix: New file.
71381         * lib/sprintf.c: New file.
71382         * m4/sprintf-posix.m4: New file.
71383         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
71384         REPLACE_SPRINTF.
71385         * lib/stdio_.h (sprintf): New declaration.
71386         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
71387         REPLACE_SPRINTF.
71388
71389 2007-03-06  Bruno Haible  <bruno@clisp.org>
71390
71391         * modules/vsprintf-posix-tests: New file.
71392         * tests/test-vsprintf-posix.c: New file.
71393         * tests/test-sprintf-posix.h: New file.
71394
71395         * modules/vsprintf-posix: New file.
71396         * lib/vsprintf.c: New file.
71397         * m4/vsprintf-posix.m4: New file.
71398         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
71399         REPLACE_VSPRINTF.
71400         * lib/stdio_.h (vsprintf): New declaration.
71401         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
71402         REPLACE_VSPRINTF.
71403
71404 2007-03-06  Bruno Haible  <bruno@clisp.org>
71405
71406         * modules/vsnprintf (Depend-on): Remove minmax.
71407
71408 2007-03-06  Bruno Haible  <bruno@clisp.org>
71409
71410         * modules/snprintf-posix-tests: New file.
71411         * tests/test-snprintf-posix.c: New file.
71412
71413         * modules/snprintf-posix: New file.
71414         * m4/snprintf-posix.m4: New file.
71415         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
71416         gl_FUNC_SNPRINTF.
71417         (gl_FUNC_SNPRINTF): Invoke it.
71418         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
71419         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
71420         is set.
71421         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
71422
71423 2007-03-06  Bruno Haible  <bruno@clisp.org>
71424
71425         * modules/vsnprintf-posix-tests: New file.
71426         * tests/test-vsnprintf-posix.c: New file.
71427         * tests/test-snprintf-posix.h: New file.
71428
71429         * modules/vsnprintf-posix: New file.
71430         * m4/vsnprintf-posix.m4: New file.
71431         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
71432         gl_FUNC_VSNPRINTF.
71433         (gl_FUNC_VSNPRINTF): Invoke it.
71434         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
71435         * lib/stdio_.h (vsnprintf): Define as a replacement if
71436         REPLACE_VSNPRINTF is set.
71437         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
71438
71439 2007-03-06  Bruno Haible  <bruno@clisp.org>
71440
71441         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
71442         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
71443
71444 2007-03-06  Bruno Haible  <bruno@clisp.org>
71445
71446         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
71447         (asinl): Declare also if HAVE_DECL_ASINL is set.
71448         (atanl): Declare also if HAVE_DECL_ATANL is set.
71449         (ceill): Declare also if HAVE_DECL_CEILL is set.
71450         (cosl): Declare also if HAVE_DECL_COSL is set.
71451         (expl): Declare also if HAVE_DECL_EXPL is set.
71452         (floorl): Declare also if HAVE_DECL_FLOORL is set.
71453         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
71454         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
71455         (logl): Declare also if HAVE_DECL_LOGL is set.
71456         (sinl): Declare also if HAVE_DECL_SINL is set.
71457         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
71458         (tanl): Declare also if HAVE_DECL_TANL is set.
71459         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
71460         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
71461         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
71462         declaration of frexpl, ldexpl.
71463         * modules/printf-frexpl (Depends-on): Add math.
71464         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
71465
71466 2007-03-05  Bruno Haible  <bruno@clisp.org>
71467
71468         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
71469         frexpl and ldexpl are declared.
71470         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
71471
71472 2007-03-05  Bruno Haible  <bruno@clisp.org>
71473
71474         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
71475         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
71476
71477 2007-03-05  Bruno Haible  <bruno@clisp.org>
71478
71479         * lib/stdio_.h: Include <stddef.h>.
71480
71481 2007-03-05  Bruno Haible  <bruno@clisp.org>
71482
71483         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
71484
71485 2007-03-05  Bruno Haible  <bruno@clisp.org>
71486
71487         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
71488         NetBSD 4, from Ralf Wildenhues.
71489
71490 2007-03-04  Bruno Haible  <bruno@clisp.org>
71491
71492         * lib/vasprintf.h: Update #if logic for the case when the functions
71493         exist but are overridden.
71494
71495 2007-03-04  Bruno Haible  <bruno@clisp.org>
71496
71497         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
71498         implementations: glibc-2.4 and MacOS X 10.3.
71499         * tests/test-vasnprintf-posix.c (test_function): Test also the case
71500         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
71501         * tests/test-vasprintf-posix.c (test_function): Likewise.
71502
71503 2007-03-04  Bruno Haible  <bruno@clisp.org>
71504
71505         * modules/vasprintf-posix-tests: New file.
71506         * tests/test-vasprintf-posix.c: New file.
71507
71508         * modules/vasprintf-posix: New file.
71509         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
71510         defined.
71511         * m4/vasprintf-posix.m4: New file.
71512         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
71513         gl_FUNC_VASPRINTF.
71514         (gl_FUNC_VASPRINTF): Invoke it.
71515         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
71516         here.
71517         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
71518
71519 2007-03-04  Bruno Haible  <bruno@clisp.org>
71520
71521         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
71522         REPLACE_GETTIMEOFDAY.
71523         * modules/sys_time (Makefile.am): Likewise.
71524         * m4/sys_time_h.m4: Likewise.
71525         * m4/gettimeofday.m4: Likewise.
71526
71527 2007-03-04  Bruno Haible  <bruno@clisp.org>
71528
71529         * modules/vasnprintf-posix-tests: New file.
71530         * tests/test-vasnprintf-posix.c: New file.
71531
71532         * modules/vasnprintf-posix: New file.
71533         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
71534         printf-frexpl.h.
71535         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
71536         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
71537         REPLACE_VASNPRINTF is defined.
71538         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
71539         gl_FUNC_VASNPRINTF.
71540         (gl_FUNC_VASNPRINTF): Invoke it.
71541         * m4/vasnprintf-posix.m4: New file.
71542         * m4/printf.m4: New file.
71543
71544 2007-03-04  Bruno Haible  <bruno@clisp.org>
71545
71546         Compile progreloc.c only if --enable-relocatable is specified.
71547         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
71548         if --enable-relocatable was specified.
71549         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
71550         lib_SOURCES.
71551
71552 2007-03-04  Jim Meyering  <jim@meyering.net>
71553
71554         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
71555         Use it consistently, rather than enumerating errno constants.
71556
71557 2007-03-04  Bruno Haible  <bruno@clisp.org>
71558
71559         * modules/xvasprintf-tests: New file.
71560         * tests/test-xvasprintf.c: New file.
71561
71562         * modules/vasprintf-tests: New file.
71563         * tests/test-vasprintf.c: New file.
71564
71565         * modules/vasnprintf-tests: New file.
71566         * tests/test-vasnprintf.c: New file.
71567
71568         * modules/vsnprintf-tests: New file.
71569         * tests/test-vsnprintf.c: New file.
71570
71571         * modules/snprintf-tests: New file.
71572         * tests/test-snprintf.c: New file.
71573
71574 2007-03-04  Bruno Haible  <bruno@clisp.org>
71575
71576         Compile relocatable.c only if --enable-relocatable is specified.
71577         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
71578         gl_RELOCATABLE_LIBRARY.
71579         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
71580         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
71581         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
71582         gl_RELOCATABLE_LIBRARY.
71583         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
71584         (Makefile.am): Remove lib_SOURCES.
71585         * modules/relocatable-lib-lgpl (configure.ac): Invoke
71586         gl_RELOCATABLE_LIBRARY.
71587         (Makefile.am): Remove lib_SOURCES.
71588         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
71589         always.
71590         * modules/relocatable-prog-wrapper (configure.ac): Invoke
71591         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
71592
71593 2007-03-04  Bruno Haible  <bruno@clisp.org>
71594
71595         * modules/argmatch-tests: New file.
71596         * tests/test-argmatch.c: New file.
71597
71598         * tests/test-allocsa.c (main): Halve the number of loop runs.
71599
71600         * modules/alloca-opt-tests: New file.
71601         * tests/test-alloca-opt.c: New file.
71602
71603 2007-03-04  Jim Meyering  <jim@meyering.net>
71604
71605         Work around difference between Linux ACLs and Solaris 10 ZFS.
71606         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
71607         for EINVAL.
71608
71609 2007-03-03  Bruno Haible  <bruno@clisp.org>
71610
71611         * modules/relocatable-prog (Depends-on): Add back progreloc's
71612         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
71613
71614 2007-03-03  Bruno Haible  <bruno@clisp.org>
71615
71616         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
71617         * modules/relocatable-lib: New file.
71618
71619 2007-03-03  Bruno Haible  <bruno@clisp.org>
71620
71621         * modules/relocatable-prog: Renamed from modules/relocatable.
71622         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
71623
71624 2007-03-03  Bruno Haible  <bruno@clisp.org>
71625
71626         * modules/relocatable-script (Files): Add doc/relocatable.texi,
71627         m4/relocatable-lib.m4.
71628         (Depends-on): Remove 'relocatable'.
71629         (configure.ac): Add gl_RELOCATABLE_NOP.
71630
71631 2007-03-03  Bruno Haible  <bruno@clisp.org>
71632
71633         * modules/relocatable-prog-wrapper: New file.
71634         * modules/relocatable (Depends-on): Add it. Remove all other
71635         dependencies except progname.
71636         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
71637
71638         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
71639         (gl_FUNC_STRERROR): Nop.
71640         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
71641
71642         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
71643         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
71644
71645         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
71646         (gl_FUNC_READLINK): Update.
71647
71648         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
71649
71650 2007-03-03  Bruno Haible  <bruno@clisp.org>
71651
71652         * lib/xreadlink.c: Include <unistd.h> unconditionally.
71653         * modules/xreadlink (Depends-on): Add unistd.
71654         * modules/xreadlink-with-size (Depends-on): Likewise.
71655
71656 2007-03-03  Bruno Haible  <bruno@clisp.org>
71657
71658         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
71659         extracted from gt_FUNC_SETENV.
71660         (gt_FUNC_SETENV): Remove macro.
71661         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
71662         remove gt_FUNC_SETENV.
71663
71664 2007-03-03  Bruno Haible  <bruno@clisp.org>
71665
71666         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
71667         ENABLE_RELOCATABLE here.
71668         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
71669
71670 2007-03-03  Bruno Haible  <bruno@clisp.org>
71671
71672         * modules/rbtreehash-list-tests (Depends-on): Add progname.
71673         * tests/test-rbtreehash_list.c: Include progname.h.
71674         (main): Call set_program_name.
71675
71676         * modules/rbtree-oset-tests (Depends-on): Add progname.
71677         * tests/test-rbtree_oset.c: Include progname.h.
71678         (main): Call set_program_name.
71679
71680         * modules/rbtree-list-tests (Depends-on): Add progname.
71681         * tests/test-rbtree_list.c: Include progname.h.
71682         (main): Call set_program_name.
71683
71684         * modules/linked-list-tests (Depends-on): Add progname.
71685         * tests/test-linked_list.c: Include progname.h.
71686         (main): Call set_program_name.
71687
71688 2007-03-03  Bruno Haible  <bruno@clisp.org>
71689
71690         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
71691         All uses of __restrict changed to _Restrict_.
71692         * lib/glob_.h (__restrict): Remove macro.
71693
71694 2007-03-02  Bruno Haible  <bruno@clisp.org>
71695
71696         * modules/gettext (configure.ac): Require gettext infrastructure
71697         from version 0.16.1.
71698
71699 2007-03-02  Bruno Haible  <bruno@clisp.org>
71700
71701         * modules/linkedhash-list-tests (Depends-on): Add progname.
71702         * tests/test-linkedhash_list.c: Include progname.h.
71703         (main): Call set_program_name.
71704
71705         * modules/carray-list-tests (Depends-on): Add progname.
71706         * tests/test-carray_list.c: Include progname.h.
71707         (main): Call set_program_name.
71708
71709         * modules/avltreehash-list-tests (Depends-on): Add progname.
71710         * tests/test-avltreehash_list.c: Include progname.h.
71711         (main): Call set_program_name.
71712
71713         * modules/avltree-oset-tests (Depends-on): Add progname.
71714         * tests/test-avltree_oset.c: Include progname.h.
71715         (main): Call set_program_name.
71716
71717         * modules/avltree-list-tests (Depends-on): Add progname.
71718         * tests/test-avltree_list.c: Include progname.h.
71719         (main): Call set_program_name.
71720
71721         * modules/array-oset-tests (Depends-on): Add progname.
71722         * tests/test-array_oset.c: Include progname.h.
71723         (main): Call set_program_name.
71724
71725         * modules/array-list-tests (Depends-on): Add progname.
71726         * tests/test-array_list.c: Include progname.h.
71727         (main): Call set_program_name.
71728
71729         * modules/argp-tests (Depends-on): Add progname.
71730         * tests/test-argp.c: Include argp.h first. Include progname.h.
71731         (main): Call set_program_name.
71732
71733 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
71734
71735         * doc/gnulib-tool.texi (Initial import): Reword description of
71736         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
71737         limited effect even if defined after the first system include.
71738
71739 2007-03-01  Bruno Haible  <bruno@clisp.org>
71740
71741         * build-aux/config.libpath: Update to libtool-1.5.22.
71742         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
71743
71744 2007-03-01  Bruno Haible  <bruno@clisp.org>
71745
71746         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
71747         foo_CFLAGS.
71748         Reported by Ralf Wildenhues.
71749
71750 2007-03-01  Bruno Haible  <bruno@clisp.org>
71751
71752         * build-aux/install-reloc: Remove object files left over by some
71753         compilers.
71754         Reported by Ralf Wildenhues.
71755
71756 2007-03-01  Bruno Haible  <bruno@clisp.org>
71757
71758         * build-aux/install-reloc: Break long lines.
71759
71760 2007-03-01  Bruno Haible  <bruno@clisp.org>
71761
71762         * doc/relocatable.texi: Document that it may not work on OpenBSD.
71763         Reported by Ralf Wildenhues.
71764
71765 2007-03-01  Bruno Haible  <bruno@clisp.org>
71766
71767         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
71768         include ordering constraints.
71769
71770 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
71771
71772         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
71773         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
71774         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
71775         as another example.
71776         * lib/time_.h: Fix misspelling.
71777         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
71778         Require gl_HEADER_TIME_H_DEFAULTS.
71779         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
71780         * m4/time_r.m4 (gl_TIME_R): Likewise.
71781         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
71782
71783 2007-03-01  Bruno Haible  <bruno@clisp.org>
71784
71785         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
71786         * m4/utimens.m4 (gl_UTIMENS): Likewise.
71787
71788 2007-03-01  Jim Meyering  <jim@meyering.net>
71789
71790         * modules/xreadlink (Maintainer): Add my name.
71791         * modules/xreadlink-with-size (Depends-on): Alphabetize.
71792
71793 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
71794             Bruno Haible  <bruno@clisp.org>
71795
71796         * build-aux/install-reloc: Compile also c-ctype.c.
71797         * build-aux/relocatable.sh.in: New file.
71798         * doc/relocatable.texi: New file.
71799         * doc/relocatable-maint.texi: New file.
71800         * doc/gnulib.texi: Include relocatable-maint.texi.
71801         * lib/progreloc.c: Include unistd.h unconditionally.
71802         * lib/relocwrapper.c: Include unistd.h unconditionally.
71803         Include c-ctype.h.
71804         (add_dotbin): Use c_tolower.
71805         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
71806         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
71807         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
71808         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
71809         to m4/relocatable-lib.m4.
71810         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
71811         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
71812         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
71813         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
71814         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
71815         * modules/relocatable: New file.
71816         * modules/relocatable-lib: New file.
71817         * modules/relocatable-script: New file.
71818
71819 2007-02-28  Bruno Haible  <bruno@clisp.org>
71820
71821         Import --enable-relocatable infrastructure.
71822         * build-aux/config.libpath: New file, from GNU gettext.
71823         * build-aux/install-reloc: New file, from GNU gettext.
71824         * build-aux/reloc-ldflags: New file, from GNU gettext.
71825         * lib/relocatable.h: New file, from GNU gettext.
71826         * lib/relocatable.c: New file, from GNU gettext.
71827         * lib/relocwrapper.c: New file, from GNU gettext.
71828         * m4/relocatable.m4: New file, from GNU gettext.
71829
71830 2007-02-28  Bruno Haible  <bruno@clisp.org>
71831
71832         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
71833
71834         * modules/xreadlink: New file, from GNU gettext with modifications.
71835         * lib/xreadlink.c: New file, from GNU gettext.
71836         * lib/xreadlink.h: Add comments.
71837         (xreadlink): New declaration.
71838
71839         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
71840         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
71841         lib/xreadlink-with-size.c.
71842         (configure.ac): Remove gl_XREADLINK invocation.
71843         (Makefile.am): Augment lib_SOURCES.
71844         * m4/xreadlink.m4: Remove file.
71845         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
71846         (xreadlink_with_size): Renamed from xreadink.
71847         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
71848         * modules/canonicalize (Depends-on): Replace xreadlink with
71849         xreadlink-with-size.
71850         * lib/canonicalize.c (canonicalize_filename_mode): Update.
71851
71852 2007-02-25  Jim Meyering  <jim@meyering.net>
71853
71854         * build-aux/announce-gen: When complaining about excess arguments,
71855         list them.
71856
71857 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
71858
71859         * README: Document signed integer overflow situation more
71860         accurately.
71861
71862 2007-02-25  Bruno Haible  <bruno@clisp.org>
71863
71864         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
71865         'a' or 'A' conversion.
71866
71867 2007-02-25  Bruno Haible  <bruno@clisp.org>
71868
71869         * modules/filename: Renamed from modules/pathname.
71870         (Files): Replace lib/pathname.h with lib/filename.h. Replace
71871         lib/concatpath.c with lib/concat-filename.c.
71872         (Makefile.am): Update.
71873         (Include): Replace pathname.h with filename.h.
71874         * lib/filename.h: Renamed from lib/pathname.h.
71875         (concatenated_filename): Renamed from concatenated_pathname.
71876         * lib/concat-filename.c: Renamed from lib/concatpath.c.
71877         (concatenated_filename): Renamed from concatenated_pathname.
71878         * lib/findprog.c: Include filename.h instead of pathname.h.
71879         (find_in_path): Update.
71880         * lib/javacomp.c: Include filename.h instead of pathname.h.
71881         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
71882         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
71883         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
71884         is_oldgcj_14_13_usable, is_javac_usable): Update.
71885         * lib/javaexec.c: Include filename.h instead of pathname.h.
71886         (execute_java_class): Update.
71887         * modules/findprog: Update.
71888         * modules/javacomp: Update.
71889         * modules/javaexec: Update.
71890         * MODULES.html.sh (File system functions): Add 'filename', remove
71891         'pathname'.
71892
71893 2007-02-25  Bruno Haible  <bruno@clisp.org>
71894
71895         * modules/printf-frexpl-tests: New file.
71896         * tests/test-printf-frexpl.c: New file.
71897
71898         * modules/printf-frexpl: New file.
71899         * lib/printf-frexpl.h: New file.
71900         * lib/printf-frexpl.c: New file.
71901         * m4/printf-frexpl.m4: New file.
71902
71903 2007-02-25  Bruno Haible  <bruno@clisp.org>
71904
71905         * modules/printf-frexp-tests: New file.
71906         * tests/test-printf-frexp.c: New file.
71907
71908         * modules/printf-frexp: New file.
71909         * lib/printf-frexp.h: New file.
71910         * lib/printf-frexp.c: New file.
71911         * m4/printf-frexp.m4: New file.
71912
71913 2007-02-25  Bruno Haible  <bruno@clisp.org>
71914
71915         Assume automake >= 1.10 for the tests.
71916         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
71917         * modules/arctwo-tests: Likewise.
71918         * modules/argp-tests: Likewise.
71919         * modules/avltree-list-tests: Likewise.
71920         * modules/avltree-oset-tests: Likewise.
71921         * modules/avltreehash-list-tests: Likewise.
71922         * modules/carray-list-tests: Likewise.
71923         * modules/crc-tests: Likewise.
71924         * modules/des-tests: Likewise.
71925         * modules/gc-arcfour-tests: Likewise.
71926         * modules/gc-arctwo-tests: Likewise.
71927         * modules/gc-des-tests: Likewise.
71928         * modules/gc-hmac-md5-tests: Likewise.
71929         * modules/gc-hmac-sha1-tests: Likewise.
71930         * modules/gc-md2-tests: Likewise.
71931         * modules/gc-md4-tests: Likewise.
71932         * modules/gc-md5-tests: Likewise.
71933         * modules/gc-pbkdf2-sha1-tests: Likewise.
71934         * modules/gc-rijndael-tests: Likewise.
71935         * modules/gc-sha1-tests: Likewise.
71936         * modules/gc-tests: Likewise.
71937         * modules/getaddrinfo-tests: Likewise.
71938         * modules/hmac-md5-tests: Likewise.
71939         * modules/hmac-sha1-tests: Likewise.
71940         * modules/linked-list-tests: Likewise.
71941         * modules/linkedhash-list-tests: Likewise.
71942         * modules/lock-tests: Likewise.
71943         * modules/md2-tests: Likewise.
71944         * modules/md4-tests: Likewise.
71945         * modules/md5-tests: Likewise.
71946         * modules/rbtree-list-tests: Likewise.
71947         * modules/rbtree-oset-tests: Likewise.
71948         * modules/rbtreehash-list-tests: Likewise.
71949         * modules/read-file-tests: Likewise.
71950         * modules/rijndael-tests: Likewise.
71951         * modules/stdint-tests: Likewise.
71952         * modules/tls-tests: Likewise.
71953
71954 2007-02-24  Bruno Haible  <bruno@clisp.org>
71955
71956         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
71957         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
71958         function; instead check whether isnan with a double argument links.
71959         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
71960         function; instead check whether isnan with a 'long double' argument
71961         links.
71962         Reported by Eric Blake <ebb9@byu.net>.
71963
71964 2007-02-24  Bruno Haible  <bruno@clisp.org>
71965
71966         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
71967         defined.
71968         * lib/isnanl.c: Remove all code. Just include isnan.c.
71969         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
71970
71971 2007-02-25  Jim Meyering  <jim@meyering.net>
71972
71973         Avoid conflicting types for 'unsetenv' on FreeBSD.
71974         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
71975         conflicting with FreeBSD's (5.0 and 6.1) function declaration
71976         in stdlib.h.
71977
71978 2007-02-24  Bruno Haible  <bruno@clisp.org>
71979
71980         * modules/isnanl-nolibm-tests: New file.
71981         * tests/test-isnanl.c: New file.
71982
71983         * modules/isnanl-nolibm: New file.
71984         * lib/isnanl.h: New file.
71985         * lib/isnanl.c: New file.
71986         * m4/isnanl.m4: New file.
71987
71988 2007-02-24  Bruno Haible  <bruno@clisp.org>
71989
71990         * modules/isnan-nolibm-tests: New file.
71991         * tests/test-isnan.c: New file.
71992
71993         * modules/isnan-nolibm: New file.
71994         * lib/isnan.h: New file.
71995         * lib/isnan.c: New file.
71996         * m4/isnan.m4: New file.
71997
71998 2007-02-24  Bruno Haible  <bruno@clisp.org>
71999
72000         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
72001         assume that an exponent fits in 20 bits.
72002
72003 2007-02-24  Jim Meyering  <jim@meyering.net>
72004
72005         * m4/regex.m4: Update the description of the configure-time option,
72006         --without-included-regex, to state accurately what the defaults are,
72007         and perhaps to give people an idea why using this option is risky.
72008
72009 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
72010
72011         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
72012         loops on small arguments.  This attempts to avoid the problem
72013         Bruno Haible reported for AIX 4.3.2 in
72014         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
72015
72016 2007-02-23  Bruno Haible  <bruno@clisp.org>
72017
72018         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
72019         Needed for help2man.
72020
72021 2007-02-23  Karl Berry  <karl@gnu.org>
72022
72023         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
72024         exists, foo.h should be cvs-ignored, not committed.
72025
72026 2007-02-23  Eric Blake  <ebb9@byu.net>
72027
72028         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
72029         * lib/stat-time.h (includes): Likewise.
72030         * lib/utimecmp.c (includes): Likewise.
72031         * lib/utimens.h (includes): Likewise.
72032         * lib/getdate.y (includes): Also include "timespec.h" for use
72033         internal to the module.
72034         * modules/utimens (Depends-on): Revert yesterday's patch.
72035         * modules/nanosleep (Depends-on): Add missing dependency.
72036
72037 2007-02-22  Bruno Haible  <bruno@clisp.org>
72038
72039         * lib/glob.c: Don't include getlogin_r.h.
72040
72041 2007-02-22  Jim Meyering  <jim@meyering.net>
72042
72043         * modules/utimens (Depends-on): Add timespec, required for
72044         utimens.h's inclusion of timespec.h.
72045
72046 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
72047
72048         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
72049         long unreadable paths in GNU/Linux.  Problem reported by Andreas
72050         Schwab in
72051         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
72052         I'll try to think of a better way to fix the Solaris problem.
72053
72054         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
72055         like glibc; on Solaris 10, it fails with errno == EINVAL.
72056         POSIX says the behavior is unspecified if the first argument is NULL,
72057         so play it safe and never pass NULL to the system getcwd.
72058
72059 2007-02-21  Jim Meyering  <jim@meyering.net>
72060
72061         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
72062         of gettimeofday.  It would conflict with the one now always
72063         provided via sys_time_.h.  Reported by Matthew Woehlke, as
72064         an IRIX 6.5 build failure.
72065
72066 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
72067
72068         Minor fixups to port to Solaris 10 with Sun C 5.8.
72069         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
72070         * modules/getcwd (Depends-on): Add dirfd.
72071         * lib/putenv.c (putenv): #undef it.
72072         (rpl_putenv): New decl.
72073         (malloc, free): Include <stdlib.h> rather than prototyping separately.
72074
72075 2007-02-20  Bruno Haible  <bruno@clisp.org>
72076
72077         * modules/stdio-tests: New file.
72078         * tests/test-stdio.c: New file.
72079
72080         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
72081         (Depends-on): Add stdio.
72082         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
72083         (Include): Use <stdio.h> instead of vsnprintf.h.
72084         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
72085         HAVE_DECL_VSNPRINTF.
72086         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
72087
72088         * modules/snprintf (Files): Remove lib/snprintf.h.
72089         (Depends-on): Add stdio.
72090         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
72091         (Include): Use <stdio.h> instead of snprintf.h.
72092         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
72093         HAVE_DECL_SNPRINTF.
72094         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
72095         * lib/getaddrinfo.c: Likewise.
72096
72097         * modules/stdio: New file.
72098         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
72099         * lib/snprintf.h: Remove file.
72100         * lib/vsnprintf.h: Remove file.
72101         * lib/.cppi-disable: Remove snprintf.h.
72102         * m4/stdio_h.m4: New file.
72103         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
72104
72105 2007-02-20  Jim Meyering  <jim@meyering.net>
72106
72107         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
72108         used by e.g., mingw.  From Bruno Haible.
72109
72110 2007-02-19  Bruno Haible  <bruno@clisp.org>
72111
72112         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
72113         warnings.
72114         Reported by Ben Pfaff <blp@cs.stanford.edu>.
72115
72116 2007-02-19  Bruno Haible  <bruno@clisp.org>
72117
72118         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
72119         from mingw users.
72120
72121 2007-02-19  Bruno Haible  <bruno@clisp.org>
72122
72123         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
72124         warnings.
72125         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
72126
72127 2007-02-19  Jim Meyering  <jim@meyering.net>
72128
72129         Don't use FD after a successful "fdopendir (fd)".
72130         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
72131         Reset it by calling dirfd on the just-obtained DIR*.
72132
72133         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
72134         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
72135
72136 2007-02-18  Bruno Haible  <bruno@clisp.org>
72137
72138         * lib/readlink.c: Include <unistd.h>.
72139         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
72140         HAVE_READLINK.
72141         * modules/readlink (Depends-on): Add unistd.
72142         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72143         (Include): Add <unistd.h>.
72144
72145         * lib/getlogin_r.h: Remove file.
72146         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
72147         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
72148         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
72149         HAVE_DECL_GETLOGIN_R.
72150         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
72151         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72152         (Include): Use <unistd.h> instead of getlogin_r.h.
72153
72154         * lib/getcwd.h: Remove file.
72155         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
72156         * lib/xgetcwd.c: Likewise.
72157         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
72158         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
72159         * modules/getcwd (Files): Remove lib/getcwd.h.
72160         (Depends-on): Add unistd.
72161         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72162         (Include): Use <unistd.h> instad of getcwd.h.
72163
72164         * lib/ftruncate.c: Include <unistd.h> first.
72165         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
72166         Set HAVE_FTRUNCATE.
72167         * modules/ftruncate (Depends-on): Add unistd.
72168         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72169
72170         * lib/fchdir.c: Include <unistd.h> first.
72171         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
72172         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
72173         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
72174         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72175         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
72176
72177         * lib/dup2.c: Include <unistd.h> first.
72178         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
72179         HAVE_DUP2.
72180         * modules/dup2 (Depends-on): Add unistd.
72181         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72182
72183         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
72184         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
72185         REPLACE_CHOWN. Don't define chown as a macro here.
72186         * modules/chown (Depends-on): Add unistd.
72187         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72188
72189         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
72190         Add definition for GL_LINK_WARNING.
72191         (chown, dup2): New declarations.
72192         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
72193         link warning.
72194         (ftruncate): New declaration.
72195         (getcwd): New declaration, taken from old getcwd.h.
72196         (getlogin_r): New declaration, taken from old getlogin_r.h.
72197         (readlink): New declaration.
72198         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
72199         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
72200         (gl_PREREQ_UNISTD): Remove macro.
72201         (gl_UNISTD_MODULE_INDICATOR): New macro.
72202         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
72203         many new variables. Don't set UNISTD_H.
72204         * modules/unistd (Description): Change.
72205         (Depends-on): Add link-warning.
72206         (configure.ac): Update.
72207         (Makefile.am): Create unistd.h always. Substitute many new variables
72208         into it.
72209
72210 2007-02-18  Bruno Haible  <bruno@clisp.org>
72211
72212         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
72213         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
72214         HAVE_GETSUBOPT.
72215         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
72216         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
72217         * lib/getsubopt.h: Remove file.
72218         * modules/getsubopt (Files): Remove lib/getsubopt.h.
72219         (Depends-on): Add stdlib.
72220         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
72221         (Includes): Use <stdlib.h> instead of getsubopt.h.
72222         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
72223         Set HAVE_GETSUBOPT.
72224         * lib/getsubopt.c: Don't include getsubopt.h.
72225
72226 2007-02-18  Bruno Haible  <bruno@clisp.org>
72227
72228         * modules/fchdir (Depends-on): Add dup2.
72229
72230 2007-02-18  Bruno Haible  <bruno@clisp.org>
72231
72232         * lib/stdlib_.h: Handle glibc's special invocation convention
72233         specially.
72234
72235 2007-02-18  Bruno Haible  <bruno@clisp.org>
72236
72237         * modules/stdlib-tests: New file.
72238         * tests/test-stdlib.c: New file.
72239
72240         * modules/mkstemp (Files): Remove lib/mkstemp.h.
72241         (Depends-on): Add stdlib.
72242         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
72243         (Includes): Use <stdlib.h> instead of mkstemp.h.
72244         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
72245         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
72246         * lib/mkstemp.c: Don't include mkstemp.h.
72247         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
72248         * lib/stdlib--.h: Don't include mkstemp.h.
72249
72250         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
72251         (Depends-on): Add stdlib.
72252         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
72253         (Includes): Use <stdlib.h> instead of mkdtemp.h.
72254         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
72255         HAVE_MKDTEMP.
72256         * lib/mkdtemp.c: Don't include mkdtemp.h.
72257         * lib/clean-temp.c: Don't include mkdtemp.h.
72258
72259         * modules/exit (Files): Remove lib/exit.h.
72260         (Depends-on): Add stdlib.
72261         (Makefile.am): Remove lib_SOURCES.
72262         (Include): Use <stdlib.h> instead of exit.h.
72263         * lib/argmatch.c: Don't include exit.h.
72264         * lib/execute.c: Likewise.
72265         * lib/pagealign_alloc.c: Likewise.
72266         * lib/pipe.c: Likewise.
72267         * lib/wait-process.c: Likewise.
72268         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
72269         * lib/exitfail.c: Likewise.
72270         * lib/savewd.c: Likewise.
72271         * lib/xsetenv.c: Likewise.
72272
72273         * modules/stdlib: New file.
72274         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
72275         and extra comments about mkstemp().
72276         * lib/exit.h: Remove file.
72277         * lib/mkdtemp.h: Remove file.
72278         * lib/mkstemp.h: Remove file.
72279         * m4/stdlib_h.m4: New file.
72280         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
72281
72282 2007-02-18  Bruno Haible  <bruno@clisp.org>
72283
72284         * modules/math-tests: New file.
72285         * tests/test-math.c: New file.
72286
72287         * modules/math: New file.
72288         * modules/mathl (Files): Remove lib/mathl.h.
72289         (Depends-on): Add math.
72290         (Makefile.am): Don't mention mathl.h.
72291         (Include): Use <math.h> instead of mathl.h.
72292         * lib/math_.h: New file.
72293         * lib/mathl.h: Remove file.
72294         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
72295         mathl.h.
72296         * lib/asinl.c: Likewise.
72297         * lib/atanl.c: Likewise.
72298         * lib/ceill.c: Likewise.
72299         * lib/cosl.c: Likewise.
72300         * lib/expl.c: Likewise.
72301         * lib/floorl.c: Likewise.
72302         * lib/frexpl.c: Likewise.
72303         * lib/ldexpl.c: Likewise.
72304         * lib/logl.c: Likewise.
72305         * lib/sincosl.c: Likewise.
72306         * lib/sinl.c: Likewise.
72307         * lib/sqrtl.c: Likewise.
72308         * lib/tanl.c: Likewise.
72309         * lib/trigl.c: Likewise.
72310         * m4/math_h.m4: New file.
72311         * MODULES.html.sh (Mathematics): Add math.
72312
72313 2007-02-17  Bruno Haible  <bruno@clisp.org>
72314
72315         * modules/wctype-tests: New file.
72316         * tests/test-wctype.c: New file.
72317
72318         * modules/wchar-tests: New file.
72319         * tests/test-wchar.c: New file.
72320
72321         * modules/unistd-tests: New file.
72322         * tests/test-unistd.c: New file.
72323
72324         * modules/time-tests: New file.
72325         * tests/test-time.c: New file.
72326
72327         * modules/sysexits-tests: New file.
72328         * tests/test-sysexits.c: New file.
72329
72330         * modules/sys_time-tests: New file.
72331         * tests/test-sys_time.c: New file.
72332
72333         * modules/sys_stat-tests: New file.
72334         * tests/test-sys_stat.c: New file.
72335
72336         * modules/sys_socket-tests: New file.
72337         * tests/test-sys_socket.c: New file.
72338
72339         * modules/sys_select-tests: New file.
72340         * tests/test-sys_select.c: New file.
72341
72342         * modules/string-tests: New file.
72343         * tests/test-string.c: New file.
72344
72345         * modules/stdbool-tests: New file.
72346         * tests/test-stdbool.c: New file.
72347
72348         * modules/netinet_in-tests: New file.
72349         * tests/test-netinet_in.c: New file.
72350
72351         * modules/inttypes-tests: New file.
72352         * tests/test-inttypes.c: New file.
72353
72354         * modules/fcntl-tests: New file.
72355         * tests/test-fcntl.c: New file.
72356
72357         * modules/byteswap-tests: New file.
72358         * tests/test-byteswap.c: New file.
72359
72360         * modules/arpa_inet-tests: New file.
72361         * tests/test-arpa_inet.c: New file.
72362
72363 2007-02-17  Bruno Haible  <bruno@clisp.org>
72364
72365         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
72366         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
72367         if the corresponding module is not enabled. Emit link warnings if
72368         the function is used nevertheless.
72369         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
72370         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
72371         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
72372         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
72373         * modules/inttypes (Depends-on): Add link-warning.
72374         (Makefile.am): Copy the contents of build-aux/link-warning.h into
72375         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
72376         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
72377         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
72378         * modules/imaxdiv (configure.ac): Likewise.
72379         * modules/strtoimax (configure.ac): Likewise.
72380         * modules/strtoumax (configure.ac): Likewise.
72381
72382 2007-02-17  Bruno Haible  <bruno@clisp.org>
72383
72384         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
72385         gl_STRING_MODULE_INDICATOR_DEFAULTS.
72386         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
72387         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
72388
72389 2007-02-17  Bruno Haible  <bruno@clisp.org>
72390
72391         * modules/link-warning: New file.
72392         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
72393         * lib/string_.h (GL_LINK_WARNING): Remove definition.
72394         * modules/string (Depends-on): Add link-warning.
72395         (Makefile.am): Copy the contents of build-aux/link-warning.h into
72396         string.h.
72397         * MODULES.html.sh (Support for building libraries and executables): Add
72398         link-warning.
72399
72400 2007-02-17  Bruno Haible  <bruno@clisp.org>
72401
72402         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
72403         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
72404         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
72405         long lines.
72406
72407 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
72408             Bruno Haible  <bruno@clisp.org>
72409
72410         * modules/tmpfile: New file.
72411         * lib/tmpfile.c: New file.
72412         * m4/tmpfile.m4: New file.
72413         * MODULES.html.sh (func_all_modules): New section "Input/output".
72414
72415 2007-02-15  Bruno Haible  <bruno@clisp.org>
72416
72417         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
72418         (supports_delete_on_close): New function.
72419         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
72420
72421 2007-02-14  Bruno Haible  <bruno@clisp.org>
72422
72423         * modules/mbspcasecmp-tests: New file.
72424         * tests/test-mbspcasecmp.sh: New file.
72425         * tests/test-mbspcasecmp.c: New file.
72426
72427         New module mbspcasecmp.
72428         * modules/mbspcasecmp: New file.
72429         * lib/mbspcasecmp.c: New file.
72430         * lib/string_.h (strncasecmp): Change warning message.
72431         (mbspcasecmp): New declaration.
72432         * m4/mbspcasecmp.m4: New file.
72433         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72434         GNULIB_MBSPCASECMP.
72435         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
72436         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
72437
72438 2007-02-14  Bruno Haible  <bruno@clisp.org>
72439
72440         * modules/mbsncasecmp-tests: New file.
72441         * tests/test-mbsncasecmp.sh: New file.
72442         * tests/test-mbsncasecmp.c: New file.
72443
72444         New module mbsncasecmp.
72445         * modules/mbsncasecmp: New file.
72446         * lib/mbsncasecmp.c: New file.
72447         * lib/string_.h (mbsncasecmp): New declaration.
72448         * m4/mbsncasecmp.m4: New file.
72449         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72450         GNULIB_MBSNCASECMP.
72451         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
72452         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
72453
72454 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
72455
72456         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
72457         Verify that it doesn't overlap with our flags.
72458         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
72459         do not have the desired effect in multibyte locales; instead, use
72460         mbscasecmp.
72461         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
72462         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
72463         we don't require GNU fnmatch ourselves (if our users require it, they
72464         should do so explicitly).
72465
72466         Fix regex code so it doesn't rely on strcasecmp.
72467         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
72468         Otherwise, include gnulib's langinfo.h.
72469         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
72470         undesirable behavior in non-C locales.  Instead, rely on localecharset.
72471         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
72472         * modules/regex (FILES): Remove m4/codeset.m4.
72473         (Depends-on): Add localcharset.  Remove strcase.
72474
72475 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72476
72477         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
72478         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
72479
72480 2007-02-13  Bruno Haible  <bruno@clisp.org>
72481
72482         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
72483         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72484
72485 2007-02-12  Bruno Haible  <bruno@clisp.org>
72486
72487         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
72488         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
72489         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
72490         time warning rather than a link error.
72491
72492 2007-02-12  Bruno Haible  <bruno@clisp.org>
72493
72494         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
72495         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
72496         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72497
72498 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
72499
72500         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
72501         args, not 2.
72502
72503 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
72504
72505         New module 'time', so that apps can include <time.h> as per
72506         POSIX and GNU instead of separate include files like time_r.h
72507         and timegm.h.  This implementation tries out a simpler approach
72508         for replacing decls in standard include files (as compared to
72509         the string module), somewhat as an experiment.
72510
72511         * config/srclist.txt: Comment out mktime.c for now.
72512         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
72513         since it doesn't apply any more.  Use generic wording instead.
72514         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
72515         'time'.
72516         * lib/time_.h, m4/time_h.m4, modules/time: New files.
72517         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
72518         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
72519         Don't include <sys/types.h>; no longer needed since we assume C89.
72520         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
72521         * lib/strftime.c: Likewise.
72522         * lib/time_r.c: Likewise.
72523         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
72524         * lib/nanosleep.c: Include <time.h> first, to check interface.
72525         * lib/strptime.c: Likewise.
72526         * lib/time_r.c: Likewise.
72527         * lib/timegm.c: Likewise.
72528         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
72529         needed.
72530         * lib/timegm.c: Don't include timegm.h; no longer needed.
72531         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
72532         time.h now handles any problems in that area.
72533         (struct timespec, nanosleep): Remove; time.h now arranges for these.
72534         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
72535         that time.h defines struct timespec.
72536         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
72537         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
72538         handles that.
72539         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
72540         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
72541         needed.  Set REPLACE_LOCALTIME.
72542         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
72543         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
72544         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
72545         nanosleep; time_h.m4 now does that.  Don't require
72546         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
72547         module handles this now.
72548         * modules/getdate (Depends-on): Remove timespec.  Add time.
72549         * modules/nanosleep (Depends-on): Likewise.
72550         * modules/stat-time (Depends-on): Likewise.
72551         * modules/nanosleep (Include): Include time.h, not timespec.h.
72552         * modules/strptime (Files): Remove lib/strptime.h.
72553         (Depends-on): Add extensions, time.
72554         (Include): Include time.h, not strptime.h.
72555         * modules/time_r (Files): Remove lib/time_r.h.
72556         (Depends-on): Add time.
72557         (Include): Include time.h, not time_r.h.
72558         * modules/timegm: Likewise.
72559         * modules/timespec (Description): Now does timespec-related decls
72560         of our own, instead of struct timespec itself.
72561         (Depends-on): Add time; remove extensions.
72562         (Maintainer): Add self.
72563         * modules/utimecmp (Depends-on): Add time; remove timespec.
72564         * modules/utimens (Depends-on): Likewise.
72565         * modules/xnanosleep (Depends-on): Likewise.
72566
72567 2007-02-11  Bruno Haible  <bruno@clisp.org>
72568
72569         * lib/c-strstr.c: Include allocsa.h.
72570         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
72571         * lib/c-strcasestr.c: Include allocsa.h.
72572         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
72573         * lib/strcasestr.c: Include allocsa.h.
72574         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
72575         * lib/mbsstr.c: Include allocsa.h.
72576         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
72577         allocsa/freesa instead of malloc/free.
72578         * lib/mbscasestr.c: Include allocsa.h.
72579         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
72580         allocsa/freesa instead of malloc/free.
72581         * modules/c-strstr (Depends-on): Add allocsa.
72582         * modules/c-strcasestr (Depends-on): Likewise.
72583         * modules/strcasestr (Depends-on): Likewise.
72584         * modules/mbsstr (Depends-on): Likewise.
72585         * modules/mbscasestr (Depends-on): Likewise.
72586
72587 2007-02-11  Bruno Haible  <bruno@clisp.org>
72588
72589         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
72590
72591         * modules/mbsspn-tests: New file.
72592         * tests/test-mbsspn.sh: New file.
72593         * tests/test-mbsspn.c: New file.
72594
72595 2007-02-11  Bruno Haible  <bruno@clisp.org>
72596
72597         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
72598
72599         * modules/mbspbrk-tests: New file.
72600         * tests/test-mbspbrk.sh: New file.
72601         * tests/test-mbspbrk.c: New file.
72602
72603 2007-02-11  Bruno Haible  <bruno@clisp.org>
72604
72605         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
72606         unneeded cast.
72607
72608         * modules/mbscspn-tests: New file.
72609         * tests/test-mbscspn.sh: New file.
72610         * tests/test-mbscspn.c: New file.
72611
72612 2007-02-11  Bruno Haible  <bruno@clisp.org>
72613
72614         * modules/mbscasecmp-tests: New file.
72615         * tests/test-mbscasecmp.sh: New file.
72616         * tests/test-mbscasecmp.c: New file.
72617
72618 2007-02-11  Bruno Haible  <bruno@clisp.org>
72619
72620         Ensure O(n) worst-case complexity of mbscasestr.
72621         * lib/mbscasestr.c: Include stdbool.h.
72622         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
72623         functions.
72624         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
72625         the bookkeeping indicates that it's worth it.
72626         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
72627
72628         * modules/mbscasestr-tests: New file.
72629         * tests/test-mbscasestr1.c: New file.
72630         * tests/test-mbscasestr2.sh: New file.
72631         * tests/test-mbscasestr2.c: New file.
72632         * tests/test-mbscasestr3.sh: New file.
72633         * tests/test-mbscasestr3.c: New file.
72634         * tests/test-mbscasestr4.sh: New file.
72635         * tests/test-mbscasestr4.c: New file.
72636         * m4/locale-tr.m4: New file.
72637
72638 2007-02-11  Bruno Haible  <bruno@clisp.org>
72639
72640         Ensure O(n) worst-case complexity of mbsstr.
72641         * lib/mbsstr.c: Include stdbool.h.
72642         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
72643         functions.
72644         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
72645         bookkeeping indicates that it's worth it.
72646         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
72647
72648         * modules/mbsstr-tests: New file.
72649         * tests/test-mbsstr1.c: New file.
72650         * tests/test-mbsstr2.sh: New file.
72651         * tests/test-mbsstr2.c: New file.
72652         * tests/test-mbsstr3.sh: New file.
72653         * tests/test-mbsstr3.c: New file.
72654         * m4/locale-fr.m4: New file.
72655
72656 2007-02-11  Bruno Haible  <bruno@clisp.org>
72657
72658         * lib/mbsrchr.c (mbsrchr): Fix bug.
72659
72660         * modules/mbsrchr-tests: New file.
72661         * tests/test-mbsrchr.sh: New file.
72662         * tests/test-mbsrchr.c: New file.
72663
72664 2007-02-11  Bruno Haible  <bruno@clisp.org>
72665
72666         * lib/mbschr.c (mbschr): Fix bug.
72667
72668         * modules/mbschr-tests: New file.
72669         * tests/test-mbschr.sh: New file.
72670         * tests/test-mbschr.c: New file.
72671         * m4/locale-zh.m4: New file.
72672
72673 2007-02-11  Bruno Haible  <bruno@clisp.org>
72674
72675         Support for copying multibyte string iterators.
72676         * lib/mbiter.h: Include <string.h>.
72677         (mbiter_multi_copy): New function.
72678         (mbi_copy): New macro.
72679         * lib/mbuiter.h: Include <string.h>.
72680         (mbuiter_multi_copy): New function.
72681         (mbui_copy): New macro.
72682
72683 2007-02-11  Bruno Haible  <bruno@clisp.org>
72684
72685         New module mbslen.
72686         * modules/mbslen: New file.
72687         * lib/mbslen.c: New file.
72688         * lib/string_.h (mbslen): New declaration.
72689         * m4/mbslen.m4: New file.
72690         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72691         GNULIB_MBSLEN.
72692         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
72693         * MODULES.html.sh (Internationalization functions): Add mbslen.
72694
72695 2007-02-11  Bruno Haible  <bruno@clisp.org>
72696
72697         Ensure O(n) worst-case complexity of strcasestr substitute.
72698         * lib/strcasestr.c: Include stdbool.h.
72699         (knuth_morris_pratt): New function.
72700         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
72701         bookkeeping indicates that it's worth it.
72702         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
72703
72704         * modules/strcasestr-tests: New file.
72705         * tests/test-strcasestr.c: New file.
72706
72707 2007-02-11  Bruno Haible  <bruno@clisp.org>
72708
72709         Ensure O(n) worst-case complexity of c_strcasestr.
72710         * lib/c-strcasestr.c: Include stdbool.h, string.h.
72711         (knuth_morris_pratt): New function.
72712         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
72713         the bookkeeping indicates that it's worth it.
72714         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
72715
72716         * modules/c-strcasestr-tests: New file.
72717         * tests/test-c-strcasestr.c: New file.
72718
72719 2007-02-11  Bruno Haible  <bruno@clisp.org>
72720
72721         Ensure O(n) worst-case complexity of c_strstr.
72722         * lib/c-strstr.c: Include stdbool.h, string.h.
72723         (knuth_morris_pratt): New function.
72724         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
72725         bookkeeping indicates that it's worth it.
72726         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
72727
72728         * lib/c-strstr.c: Complete rewrite for maintainability.
72729
72730         * modules/c-strstr-tests: New file.
72731         * tests/test-c-strstr.c: New file.
72732
72733 2007-02-11  Bruno Haible  <bruno@clisp.org>
72734
72735         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
72736         5.2.1 and earlier, whereby \055 was treated just like the range
72737         delimiter '-'.
72738         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
72739
72740 2007-02-08  Bruno Haible  <bruno@clisp.org>
72741
72742         * modules/regex (Depends-on): Add stdbool.
72743         Reported by Dalibor Topic <robilad@kaffe.org>.
72744
72745 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
72746
72747         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
72748         Prefer returning from main to exiting from it.
72749         Remove unnecessary parens after sizeof.
72750
72751 2007-02-05  Bruno Haible  <bruno@clisp.org>
72752
72753         New module mbssep.
72754         * modules/mbssep: New file.
72755         * lib/mbssep.c: New file.
72756         * lib/string_.h (strsep): Add a conditional link warning.
72757         (mbssep): New declaration.
72758         * m4/mbssep.m4: New file.
72759         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72760         GNULIB_MBSSEP.
72761         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
72762         * MODULES.html.sh (Internationalization functions): Add mbssep.
72763
72764 2007-02-05  Bruno Haible  <bruno@clisp.org>
72765
72766         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
72767         Optimize search in case of 1 delimiter.
72768
72769 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
72770
72771         * lib/acl.h: Include sys/types.h before sys/acl.h.
72772
72773 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
72774
72775         Merge upstream fix for glibc bugzilla #3957:
72776
72777         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
72778
72779         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
72780         bit for RE_HAT_LISTS_NOT_NEWLINE.
72781         (build_charclass_op): Remove bogus comment.
72782
72783 2007-02-05  Simon Josefsson  <simon@josefsson.org>
72784
72785         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
72786
72787 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
72788
72789         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
72790         * lib/memmem.c [!defined _LIBC]: Include config.h.
72791
72792 2007-02-04  Bruno Haible  <bruno@clisp.org>
72793
72794         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
72795         warning message.
72796
72797 2007-02-04  Bruno Haible  <bruno@clisp.org>
72798
72799         New module mbstok_r.
72800         * modules/mbstok_r: New file.
72801         * lib/mbstok_r.c: New file.
72802         * lib/string_.h (strtok_r): Change argument names to match the
72803         comments. Add a conditional link warning.
72804         (mbstok_r): New declaration.
72805         * m4/mbstok_r.m4: New file.
72806         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72807         GNULIB_MBSTOK_R.
72808         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
72809         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
72810
72811 2007-02-04  Bruno Haible  <bruno@clisp.org>
72812
72813         New module mbsspn.
72814         * modules/mbsspn: New file.
72815         * lib/mbsspn.c: New file.
72816         * lib/string_.h (strspn): Add a conditional link warning.
72817         (mbsspn): New declaration.
72818         * m4/mbsspn.m4: New file.
72819         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72820         GNULIB_MBSSPN.
72821         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
72822         * MODULES.html.sh (Internationalization functions): Add mbsspn.
72823
72824 2007-02-04  Bruno Haible  <bruno@clisp.org>
72825
72826         New module mbspbrk.
72827         * modules/mbspbrk: New file.
72828         * lib/mbspbrk.c: New file.
72829         * lib/string_.h (strpbrk): Add a conditional link warning.
72830         (mbspbrk): New declaration.
72831         * m4/mbspbrk.m4: New file.
72832         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72833         GNULIB_MBSPBRK.
72834         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
72835         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
72836
72837 2007-02-04  Bruno Haible  <bruno@clisp.org>
72838
72839         New module mbscspn.
72840         * modules/mbscspn: New file.
72841         * lib/mbscspn.c: New file.
72842         * lib/string_.h (strcspn): Add a conditional link warning.
72843         (mbscspn): New declaration.
72844         * m4/mbscspn.m4: New file.
72845         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72846         GNULIB_MBSCSPN.
72847         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
72848         * MODULES.html.sh (Internationalization functions): Add mbscspn.
72849
72850 2007-02-04  Bruno Haible  <bruno@clisp.org>
72851
72852         New module mbscasestr, reduced goal of strcasestr.
72853         * modules/mbscasestr: New file.
72854         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
72855         (mbscasestr): Renamed from strcasestr.
72856         * lib/strcasestr.c: Don't include mbuiter.h.
72857         (strcasestr): Remove support for multibyte locales.
72858         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
72859         Change the conditional link warning.
72860         (mbscasestr): New declaration.
72861         * m4/mbscasestr.m4: New file.
72862         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
72863         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
72864         REPLACE_STRCASESTR.
72865         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
72866         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
72867         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
72868         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
72869         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
72870         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
72871         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
72872         (Depends-on): Remove mbuiter.
72873         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
72874
72875 2007-02-04  Bruno Haible  <bruno@clisp.org>
72876
72877         Simplify handling of strncasecmp.
72878         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
72879         the conditional link warning.
72880         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
72881         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
72882         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
72883         * modules/strcase (configure.ac): Don't invoke
72884         gl_STRING_MODULE_INDICATOR.
72885         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
72886
72887 2007-02-04  Bruno Haible  <bruno@clisp.org>
72888
72889         New module mbscasecmp, reduced goal of strcasecmp.
72890         * modules/mbscasecmp: New file.
72891         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
72892         (mbscasecmp): Renamed from strcasecmp.
72893         * lib/strcasecmp.c: Don't include mbuiter.h.
72894         (strcasecmp): Remove support for multibyte locales.
72895         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
72896         Change the conditional link warning.
72897         (mbscasecmp): New declaration.
72898         * m4/mbscasecmp.m4: New file.
72899         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
72900         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
72901         REPLACE_STRCASECMP.
72902         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
72903         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72904         GNULIB_MBSCASECMP.
72905         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
72906         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
72907         * modules/strcase (Files): Remove m4/mbrtowc.m4.
72908         (Depends-on): Remove mbuiter.
72909         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
72910
72911 2007-02-04  Bruno Haible  <bruno@clisp.org>
72912
72913         New module mbsstr. Remove module strstr.
72914         * modules/mbsstr: New file.
72915         * modules/strstr: Remove file.
72916         * lib/mbsstr.c: Renamed from lib/strstr.c.
72917         (mbsstr): Renamed from strstr.
72918         * lib/string_.h (strstr): Remove declaration. Change the conditional
72919         link warning.
72920         (mbsstr): New declaration.
72921         * m4/mbsstr.m4: New file.
72922         * m4/strstr.m4: Remove file.
72923         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
72924         REPLACE_STRSTR.
72925         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
72926         Don't initialize GNULIB_STRSTR.
72927         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
72928         substitute GNULIB_STRSTR and REPLACE_STRSTR.
72929         * MODULES.html.sh (Internationalization functions): Add mbsstr.
72930         (Support for systems lacking ANSI C 89): Remove strstr.
72931
72932 2007-02-04  Bruno Haible  <bruno@clisp.org>
72933
72934         New module mbsrchr.
72935         * modules/mbsrchr: New file.
72936         * lib/mbsrchr.c: New file.
72937         * lib/string_.h (strrchr): Add a conditional link warning.
72938         (mbsrchr): New declaration.
72939         * m4/mbsrchr.m4: New file.
72940         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72941         GNULIB_MBSRCHR.
72942         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
72943         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
72944
72945 2007-02-04  Bruno Haible  <bruno@clisp.org>
72946
72947         New module mbschr.
72948         * modules/mbschr: New file.
72949         * lib/mbschr.c: New file.
72950         * lib/string_.h (strchr): Add a conditional link warning.
72951         (mbschr): New declaration.
72952         * m4/mbschr.m4: New file.
72953         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72954         GNULIB_MBSCHR.
72955         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
72956         * MODULES.html.sh (Internationalization functions): Add mbschr.
72957
72958 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
72959
72960         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
72961
72962         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
72963
72964 2007-02-04  Bruno Haible  <bruno@clisp.org>
72965
72966         New module description section 'configure.ac-early'.
72967         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
72968         (func_get_autoconf_early_snippet): New function.
72969         (func_import, func_create_testdir): Use it. Remove special cases for
72970         modules 'extensions' and 'lock'.
72971         * modules/extensions (configure.ac-early): Require
72972         gl_USE_SYSTEM_EXTENSIONS.
72973         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
72974
72975 2007-02-04  Bruno Haible  <bruno@clisp.org>
72976
72977         Make use of gcj-4.3's -fsource and -ftarget option.
72978         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
72979         and if so try the options -fsource and -ftarget.
72980         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
72981         source_version, ftarget_option, target_version arguments.
72982         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
72983         (is_envjavac_oldgcj_14_14_usable): Renamed from
72984         is_envjavac_gcj_14_14_usable.
72985         (is_envjavac_oldgcj_14_13_usable): Renamed from
72986         is_envjavac_gcj_14_13_usable.
72987         (is_gcj_present): Update.
72988         (is_gcj_43, is_gcj43_usable): New functions.
72989         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
72990         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
72991         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
72992         try the options -fsource and -ftarget.
72993
72994 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
72995
72996         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
72997         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
72998         larger value.
72999
73000 2007-02-03  Jim Meyering  <jim@meyering.net>
73001
73002         Give tools a better chance to allocate space for very large buffers.
73003         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
73004
73005         Make pwd and readlink work also when run with an unreadable parent dir
73006         on systems with openat support.
73007         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
73008         provided getcwd function, even when we have openat support.
73009         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
73010
73011 2007-02-02  Bruno Haible  <bruno@clisp.org>
73012
73013         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
73014         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
73015         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
73016         portability problems if one of these functions is only used on specific
73017         platforms.
73018         Reported by Paul Eggert.
73019
73020 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
73021
73022         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
73023         is causing more trouble than it's curing.
73024         * lib/regex_internal.h (__mempcpy): Remove.
73025         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
73026         (and make the code a tad smaller to boot).
73027         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
73028
73029 2007-02-02  Jim Meyering  <jim@meyering.net>
73030
73031         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
73032         section, not in the Makefile.am: one.
73033
73034 2007-02-02  Eric Blake  <ebb9@byu.net>
73035
73036         * lib/strchrnul.c: Always include config.h first.
73037
73038         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
73039         gnulib strstr is not necessary here.
73040
73041 2007-02-02  Simon Josefsson  <simon@josefsson.org>
73042
73043         * m4/socklen.m4: Fix typo.
73044
73045 2007-02-02  Eric Blake  <ebb9@byu.net>
73046
73047         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
73048         * modules/netinet_in (Makefile.am): Likewise.
73049
73050 2007-02-01  Bruno Haible  <bruno@clisp.org>
73051
73052         * lib/string_.h (GL_LINK_WARNING): New macro.
73053         (strcasecmp, strstr, strcasestr): If provided by the system,
73054         conditionally define as a macro that leads to a warning instead of to
73055         an error.
73056         (strncasecmp): Conditionally define as a macro that leads to a warning.
73057
73058 2007-02-01  Karl Berry  <karl@gnu.org>
73059
73060         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
73061
73062 2007-02-01  Bruno Haible  <bruno@clisp.org>
73063
73064         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
73065         renamings.
73066
73067 2007-02-01  Eric Blake  <ebb9@byu.net>
73068
73069         * modules/regex (Depends-on): Revert dependence on mempcpy.
73070         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
73071         module's definition of mempcpy.
73072         Reported by Paul Eggert.
73073
73074 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
73075
73076         * lib/string_.h: If the gnulib module XYZ is not present, undefine
73077         the symbol XYZ before redefining it.  This fixes a problem with
73078         programs that don't use XYZ, when compiled on systems that define
73079         XYZ to something else.
73080
73081 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
73082
73083         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
73084         occurs when "mkdir -m foo" creates a setgid directory that is (1)
73085         writeable to group or other and (2) is intended to have a special
73086         mode bit that is set or cleared.  In such a case, the directory
73087         should be neither group- nor other-writeable until the special
73088         mode bits are right.
73089
73090 2007-01-31  Eric Blake  <ebb9@byu.net>
73091
73092         * modules/mountlist (Depends-on): Add strstr.
73093
73094         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
73095         bug.
73096         * modules/string (Makefile.am): Remove redundant replacement.
73097         * modules/regex (Depends-on): Add mempcpy.
73098
73099 2007-01-31  Bruno Haible  <bruno@clisp.org>
73100
73101         New module description field 'Link'.
73102         * gnulib-tool (func_usage): Document --extract-link-directive.
73103         (sed_extract_prog): Recognize 'Link' directive.
73104         (func_get_link_directive): New function.
73105         (func_import): Show summary of link directives.
73106         Handle --extract-link-directive option.
73107         * modules/acl (Link): New section.
73108         * modules/clock-time (Link): New section.
73109         * modules/euidaccess (Link): New section.
73110         * modules/gettext (Link): New section.
73111         * modules/iconv (Link): New section.
73112         * modules/lock (Link): New section.
73113         * modules/nanosleep (Link): New section.
73114         * modules/readline (Link): New section.
73115
73116 2007-01-27  Bruno Haible  <bruno@clisp.org>
73117
73118         Enforce the use of gnulib modules for unportable <string.h> functions.
73119         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
73120         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
73121         (gl_HEADER_STRING_H_BODY): Require it.
73122         * lib/string_.h: If the gnulib module XYZ is not present, redefine
73123         the symbol XYZ to one that gives a link error.
73124         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
73125         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
73126         * modules/mempcpy (configure.ac): Likewise.
73127         * modules/memrchr (configure.ac): Likewise.
73128         * modules/stpcpy (configure.ac): Likewise.
73129         * modules/stpncpy (configure.ac): Likewise.
73130         * modules/strcase (configure.ac): Likewise.
73131         * modules/strcasestr (configure.ac): Likewise.
73132         * modules/strchrnul (configure.ac): Likewise.
73133         * modules/strdup (configure.ac): Likewise.
73134         * modules/strndup (configure.ac): Likewise.
73135         * modules/strnlen (configure.ac): Likewise.
73136         * modules/strpbrk (configure.ac): Likewise.
73137         * modules/strsep (configure.ac): Likewise.
73138         * modules/strstr (configure.ac): Likewise.
73139         * modules/strtok_r (configure.ac): Likewise.
73140
73141 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
73142
73143         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
73144
73145 2007-01-30  Jim Meyering  <jim@meyering.net>
73146
73147         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
73148
73149 2007-01-29  Bruno Haible  <bruno@clisp.org>
73150
73151         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
73152         * lib/execute.c: Likewise.
73153         * lib/pipe.c: Likewise.
73154         * lib/printf-args.h: Likewise.
73155         * lib/printf-args.c: Likewise.
73156         * lib/printf-parse.c: Likewise.
73157         * lib/vasnprintf.c: Likewise.
73158
73159 2007-01-29  Eric Blake  <ebb9@byu.net>
73160
73161         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
73162         declaration.
73163
73164 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
73165
73166         * lib/strptime.h (strptime): Use 'restrict' for args where
73167         POSIX requires this.
73168         * lib/strptime.c (strptime): Likewise.
73169         Change license notice from LGPL to GPL, since gnulib-tool will
73170         change this as needed.
73171         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
73172         defined.
73173         Include "strptime.h" first, to check interface.
73174         Do not #undef _LIBC and _NL_CURRENT.
73175         Do not include <stdlib.h>; no longer needed.
73176         Include "time_r.h" and declare ptime_locale_status
73177         only if _LIBC is not defined.
73178         (__P): Remove unused macro.
73179         (match_string): Bring back glibc version, but use it only if _LIBC
73180         is defined.
73181         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
73182         Remove unnecessary assertion and abort() call.
73183         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
73184         * m4/strptime.m4: Fix serial number comment.
73185         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
73186         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
73187         (Depends-on): Add time_r.
73188
73189 2007-01-29  Bruno Haible  <bruno@clisp.org>
73190
73191         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73192         strptime.
73193         * modules/strptime (Depends-on): Add stdbool.
73194         * lib/strptime.h: Include <time.h> always. Add comments.
73195
73196 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73197
73198         * modules/strptime: New file.
73199         * lib/strptime.h: New file.
73200         * lib/strptime.c: New file.
73201         * m4/strptime.m4: New file.
73202
73203 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
73204
73205         * MODULES.html.sh: New module mpsort.
73206         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
73207
73208         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
73209         a circularity problem with HP-UX ia64 reported by Bob Proulx in
73210         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
73211         All uses changed.
73212         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
73213         All uses changed.
73214         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
73215         to _Restrict_.
73216         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
73217         the parameter matches the prototype.
73218
73219 2007-01-28  Jim Meyering  <jim@meyering.net>
73220
73221         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
73222         sys/time.h here, reverting that part of the previous patch:
73223         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
73224
73225 2007-01-28  Bruno Haible  <bruno@clisp.org>
73226
73227         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
73228         value of $(SYS_TIME_H).
73229         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
73230         remove it conditionally, too. [added by Jim Meyering]
73231         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
73232         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
73233         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
73234         GETTIMEOFDAY_REPLACEMENT to 1.
73235
73236 2007-01-28  Bruno Haible  <bruno@clisp.org>
73237
73238         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
73239         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
73240         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
73241         Set UNISTD_H instead of UNISTD_H2.
73242         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
73243
73244 2007-01-28  Bruno Haible  <bruno@clisp.org>
73245
73246         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
73247         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
73248
73249 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73250
73251         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
73252         (func_create_testdir): Ensure C locale for `grep' and `tr'
73253         character ranges.
73254         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
73255         ACLOCAL_AMFLAGS parsing state machine.
73256
73257 2007-01-27  Bruno Haible  <bruno@clisp.org>
73258
73259         * modules/unistr/base: Update.
73260
73261 2007-01-27  Bruno Haible  <bruno@clisp.org>
73262
73263         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
73264         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
73265         * modules/unistr/u32-mbtouc-unsafe: Renamed from
73266         modules/unistr/u32-mbtouc.
73267         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
73268         * lib/unistr.h: Update.
73269         * lib/linebreak.c: Update.
73270         * modules/unistr/u32-mbtouc: Renamed from
73271         modules/unistr/u32-mbtouc-safe.
73272         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
73273         * lib/unistr.h: Update.
73274         * lib/unistr/u32-to-u8.c: Update.
73275         * lib/unistr/u32-to-u16.c: Update.
73276
73277 2007-01-27  Bruno Haible  <bruno@clisp.org>
73278
73279         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
73280         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
73281         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
73282         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
73283         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
73284         * modules/unistr/u16-mbtouc-unsafe: Renamed from
73285         modules/unistr/u16-mbtouc.
73286         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
73287         * lib/unistr.h: Update.
73288         * lib/linebreak.c: Update.
73289         * modules/linebreak: Update.
73290         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
73291         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
73292         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
73293         * modules/unistr/u16-mbtouc: Renamed from
73294         modules/unistr/u16-mbtouc-safe.
73295         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
73296         * lib/unistr.h: Update.
73297         * lib/unistr/u16-to-u8.c: Update.
73298         * modules/unistr/u16-to-u8: Update.
73299         * lib/unistr/u16-to-u32.c: Update.
73300         * modules/unistr/u16-to-u32: Update.
73301
73302 2007-01-27  Bruno Haible  <bruno@clisp.org>
73303
73304         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
73305         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
73306         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
73307         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
73308         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
73309         * modules/unistr/u8-mbtouc-unsafe: Renamed from
73310         modules/unistr/u8-mbtouc.
73311         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
73312         * lib/unistr.h: Update.
73313         * lib/striconveh.c: Update.
73314         * modules/striconveh: Update.
73315         * lib/linebreak.c: Update.
73316         * modules/linebreak: Update.
73317         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
73318         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
73319         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
73320         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
73321         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
73322         * lib/unistr.h: Update.
73323         * lib/striconveh.c: Update.
73324         * modules/striconveh: Update.
73325         * lib/unistr/u8-to-u16.c: Update.
73326         * modules/unistr/u8-to-u16: Update.
73327         * lib/unistr/u8-to-u32.c: Update.
73328         * modules/unistr/u8-to-u32: Update.
73329
73330 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73331
73332         Sync from Libtool.
73333         * lib/argz.c: Do not include strings.h nor memory.h, include
73334         string.h unconditionally.  Patch by Simon Josefsson.
73335
73336 2007-01-27  Bruno Haible  <bruno@clisp.org>
73337
73338         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
73339         from gl_HEADER_STRING_H_BODY.
73340         (gl_HEADER_STRING_H_BODY): Require it.
73341         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
73342         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
73343         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
73344         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
73345         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
73346         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
73347         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
73348         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
73349         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
73350         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
73351         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
73352         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
73353         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
73354         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
73355         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
73356
73357 2007-01-27  Bruno Haible  <bruno@clisp.org>
73358
73359         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
73360         check_PROGRAMS into noinst_PROGRAMS.
73361         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
73362         check_PROGRAMS in this case.
73363         (func_import): Set for_test to false.
73364         (func_create_testdir): Set for_test to true.
73365
73366 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
73367             Bruno Haible  <bruno@clisp.org>
73368
73369         * modules/strcasestr (Files): Remove lib/strcasestr.h.
73370         (Depends-on): Add string.
73371         (Includes): Use <string.h> instead of strcasestr.h.
73372         * modules/string (Makefile.am): Also substitute the value of
73373         REPLACE_STRCASESTR.
73374         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
73375         assume strcasestr is declared in <string.h> not <strings.h>. Also
73376         set REPLACE_STRCASESTR.
73377         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
73378         REPLACE_STRCASESTR.
73379         * lib/strcasestr.h: Remove file.
73380         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
73381         * lib/string_.h (strcasestr): New declaration.
73382
73383 2007-01-27  Bruno Haible  <bruno@clisp.org>
73384
73385         * lib/string_.h: Use 'extern'.
73386
73387 2007-01-27  Jim Meyering  <jim@meyering.net>
73388
73389         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
73390         of set-but-not-used local, "q".
73391
73392         * lib/mempcpy.c: Include <config.h> before <string.h>.
73393         This fixes a compilation error on HP-UX, due to the system's
73394         "restrict"-using mempcpy prototype.
73395
73396 2007-01-26  Bruno Haible  <bruno@clisp.org>
73397
73398         Small optimization.
73399         * lib/javacomp.c: Include c-strstr.h.
73400          (is_envjavac_gcj): Use c_strstr instead of strstr.
73401         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
73402
73403 2007-01-26  Bruno Haible  <bruno@clisp.org>
73404
73405         * MODULES.html.sh (Unicode string functions): Add the new modules.
73406
73407         * modules/uniconv/u32-strconv-to-locale: New file.
73408         * lib/uniconv/u32-strconv-to-locale.c: New file.
73409
73410         * modules/uniconv/u16-strconv-to-locale: New file.
73411         * lib/uniconv/u16-strconv-to-locale.c: New file.
73412
73413         * modules/uniconv/u8-strconv-to-locale: New file.
73414         * lib/uniconv/u8-strconv-to-locale.c: New file.
73415
73416         * modules/uniconv/u32-strconv-from-locale: New file.
73417         * lib/uniconv/u32-strconv-from-locale.c: New file.
73418
73419         * modules/uniconv/u16-strconv-from-locale: New file.
73420         * lib/uniconv/u16-strconv-from-locale.c: New file.
73421
73422         * modules/uniconv/u8-strconv-from-locale: New file.
73423         * lib/uniconv/u8-strconv-from-locale.c: New file.
73424
73425         * modules/uniconv/u32-strconv-to-enc: New file.
73426         * lib/uniconv/u32-strconv-to-enc.c: New file.
73427         * modules/uniconv/u32-strconv-to-enc-tests: New file.
73428         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
73429
73430         * modules/uniconv/u16-strconv-to-enc: New file.
73431         * lib/uniconv/u16-strconv-to-enc.c: New file.
73432         * lib/uniconv/u-strconv-to-enc.h: New file.
73433         * modules/uniconv/u16-strconv-to-enc-tests: New file.
73434         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
73435
73436         * modules/uniconv/u8-strconv-to-enc: New file.
73437         * lib/uniconv/u8-strconv-to-enc.c: New file.
73438         * modules/uniconv/u8-strconv-to-enc-tests: New file.
73439         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
73440
73441         * modules/uniconv/u32-strconv-from-enc: New file.
73442         * lib/uniconv/u32-strconv-from-enc.c: New file.
73443         * modules/uniconv/u32-strconv-from-enc-tests: New file.
73444         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
73445
73446         * modules/uniconv/u16-strconv-from-enc: New file.
73447         * lib/uniconv/u16-strconv-from-enc.c: New file.
73448         * modules/uniconv/u16-strconv-from-enc-tests: New file.
73449         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
73450
73451         * modules/uniconv/u8-strconv-from-enc: New file.
73452         * lib/uniconv/u8-strconv-from-enc.c: New file.
73453         * lib/uniconv/u-strconv-from-enc.h: New file.
73454         * modules/uniconv/u8-strconv-from-enc-tests: New file.
73455         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
73456
73457         * modules/uniconv/u32-conv-from-enc: New file.
73458         * lib/uniconv/u32-conv-from-enc.c: New file.
73459         * modules/uniconv/u32-conv-from-enc-tests: New file.
73460         * tests/uniconv/test-u32-conv-from-enc.c: New file.
73461
73462         * modules/uniconv/u16-conv-from-enc: New file.
73463         * lib/uniconv/u16-conv-from-enc.c: New file.
73464         * lib/uniconv/u-conv-from-enc.h: New file.
73465         * modules/uniconv/u16-conv-from-enc-tests: New file.
73466         * tests/uniconv/test-u16-conv-from-enc.c: New file.
73467
73468         * modules/uniconv/u8-conv-from-enc: New file.
73469         * lib/uniconv/u8-conv-from-enc.c: New file.
73470         * modules/uniconv/u8-conv-from-enc-tests: New file.
73471         * tests/uniconv/test-u8-conv-from-enc.c: New file.
73472
73473         * modules/uniconv/base: New file.
73474         * lib/uniconv.h: New file.
73475
73476 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
73477
73478         * doc/gnulib-tool.texi (Initial import): Update to match current
73479         behavior with strdup module.
73480         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
73481         * lib/memmem.h: Remove; all uses removed.  This is now done
73482         by <string.h>.
73483         * lib/mempcpy.h: Likewise.
73484         * lib/memrchr.h: Likewise.
73485         * lib/stpcpy.h: Likewise.
73486         * lib/stpncpy.h: Likewise.
73487         * lib/strcase.h: Likewise.
73488         * lib/strchrnul.h: Likewise.
73489         * lib/strdup.h: Likewise.
73490         * lib/strndup.h: Likewise.
73491         * lib/strnlen.h: Likewise.
73492         * lib/strpbrk.h: Likewise.
73493         * lib/strsep.h: Likewise.
73494         * lib/strstr.h: Likewise.
73495         * lib/strtok_r.h: Likewise.
73496         * lib/string_.h: New file.
73497         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
73498         Rely on <string.h> instead.
73499         * lib/canon-host.c: Likewise.
73500         * lib/chdir-long.c: Likewise.
73501         * lib/concatpath.c: Likewise.
73502         * lib/exclude.c: Likewise.
73503         * lib/fchdir.c: Likewise.
73504         * lib/getaddrinfo.c: Likewise.
73505         * lib/getcwd.c: Likewise.
73506         * lib/getsubopt.c: Likewise.
73507         * lib/glob.c: Likewise.
73508         * lib/hard-locale.c: Likewise.
73509         * lib/iconvme.c: Likewise.
73510         * lib/javacomp.c: Likewise.
73511         * lib/mempcpy.c: Likewise.
73512         * lib/memrchr.c: Likewise.
73513         * lib/regex_internal.h: Likewise.
73514         * lib/stpncpy.c: Likewise.
73515         * lib/strcasecmp.c: Likewise.
73516         * lib/strchrnul.c: Likewise.
73517         * lib/strdup.c: Likewise.
73518         * lib/striconv.c: Likewise.
73519         * lib/striconveh.c: Likewise.
73520         * lib/striconveha.c: Likewise.
73521         * lib/strncasecmp.c: Likewise.
73522         * lib/strndup.c: Likewise.
73523         * lib/strnlen.c: Likewise.
73524         * lib/strsep.c: Likewise.
73525         * lib/strstr.c: Likewise.
73526         * lib/strtok_r.c: Likewise.
73527         * lib/userspec.c: Likewise.
73528         * lib/w32spawn.h: Likewise.
73529         * lib/xstrndup.c: Likewise.
73530         * lib/mountlist.c (strstr): Remove decl.
73531         * m4/string_h.m4: New file.
73532         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
73533         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
73534         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
73535         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
73536         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
73537         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
73538         Set REPLACE_STRCASECMP if necessary.
73539         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
73540         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
73541         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
73542         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
73543         HAVE_DECL_STRDUP if necessary.
73544         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
73545         since gl_FUNC_STRNDUP does that now.
73546         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
73547         Check for decl here...
73548         (gl_PREREQ_STRNLEN): ... not here.
73549         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
73550         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
73551         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
73552         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
73553         necessary.
73554         * modules/string: New file.
73555         * modules/memmem (Files): Remove special-purpose include file.
73556         (Depends-on): Add string.
73557         (Include): Include <string.h>, not the removed file.
73558         * modules/mempcpy: Likewise.
73559         * modules/memrchr: Likewise.
73560         * modules/stpcpy: Likewise.
73561         * modules/stpncpy: Likewise.
73562         * modules/strcase: Likewise.
73563         * modules/strchrnul: Likewise.
73564         * modules/strdup: Likewise.
73565         * modules/strndup: Likewise.
73566         * modules/strnlen: Likewise.
73567         * modules/strpbrk: Likewise.
73568         * modules/strsep: Likewise.
73569         * modules/strstr: Likewise.
73570         * modules/strtok_r: Likewise.
73571         * tests/test-dirname.c: Don't include "strdup.h", since
73572         <string.h> now suffices.
73573         * tests/test-memmem.c: Don't include "memmem.h", since
73574         <string.h> now suffices.
73575
73576 2007-01-25  Bruno Haible  <bruno@clisp.org>
73577
73578         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
73579         *resultp is 0.
73580
73581         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
73582         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
73583         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
73584         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
73585
73586         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
73587         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
73588         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
73589         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
73590         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
73591         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
73592
73593 2007-01-24  Bruno Haible  <bruno@clisp.org>
73594
73595         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
73596         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
73597         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
73598         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
73599         gl_FUNC_FTS_CORE.
73600         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
73601         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
73602         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
73603         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
73604         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
73605         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
73606         gl_FUNC_FCHOWNAT.
73607         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
73608         gl_FUNC_STRFTIME.
73609         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
73610         Reported by Ralf Wildenhues.
73611
73612 2007-01-24  Bruno Haible  <bruno@clisp.org>
73613
73614         Drop AC_REQUIRE calls that are redundant with the module dependencies.
73615         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
73616         gl_GETADDRINFO.
73617         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
73618         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
73619         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
73620
73621 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
73622
73623         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
73624         Don't use 'exit'; just return from 'main'.
73625         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
73626
73627         * lib/fnmatch_.h: Readjust white space and comments to match
73628         glibc, to avoid spurious diffs.
73629
73630 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73631
73632         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
73633         2004-12-01 change by Jakub Jelinek, since this code won't compile
73634         if !LIBC.  Problem reported by Bob Proulx.
73635
73636 2007-01-23  Bruno Haible  <bruno@clisp.org>
73637
73638         * lib/striconveh.c: Include c-strcaseeq.h.
73639         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
73640         * modules/striconveh (Depends-on): Add c-strcaseeq.
73641
73642 2007-01-23  Bruno Haible  <bruno@clisp.org>
73643
73644         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
73645
73646         * modules/c-strcaseeq: New file.
73647         * lib/c-strcaseeq.h: New file.
73648
73649         * modules/streq: New file.
73650         * lib/streq.h: New file.
73651
73652 2007-01-23  Bruno Haible  <bruno@clisp.org>
73653
73654         * modules/striconveha-tests: New file.
73655         * tests/test-striconveha.c: New file.
73656
73657         * lib/striconveha.h: Include <stdbool.h>.
73658         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
73659         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
73660         (mem_iconveha_notranslit): Renamed from mem_iconveha.
73661         (mem_iconveha): New function.
73662         (str_iconveha_notranslit): Renamed from str_iconveha.
73663         (str_iconveha): New function.
73664         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
73665         c-strcase.
73666
73667 2007-01-23  Bruno Haible  <bruno@clisp.org>
73668
73669         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
73670         encodings without forgiving before trying any encoding with handler.
73671         (str_iconveha): Try all encodings without forgiving before trying any
73672         encoding with handler.
73673
73674 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73675
73676         Import the following changes from libc.
73677
73678         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
73679
73680         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
73681
73682         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
73683
73684         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
73685         normal_bracket label.
73686
73687         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
73688
73689         [BZ #361]
73690         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
73691         to normal_bracket after fetching the next character.
73692
73693 2007-01-22  Bruno Haible  <bruno@clisp.org>
73694
73695         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
73696         argument.
73697         * lib/striconveh.c (iconv_carefully_1): New function.
73698         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
73699         argument.
73700         (str_cd_iconveh): Update.
73701         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
73702         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
73703         * tests/test-striconveh.c (MAGIC): New macro.
73704         (new_offsets): New function.
73705         (main): Test call with and without offsets.
73706
73707 2007-01-22  Bruno Haible  <bruno@clisp.org>
73708
73709         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
73710         * modules/sys_select (Makefile.am): Likewise.
73711         * modules/sys_socket (Makefile.am): Likewise.
73712         * modules/sys_time (Makefile.am): Likewise.
73713
73714 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
73715
73716         * modules/gettimeofday (License): Change from GPL to LGPL, since
73717         gettimeofday is a library function.
73718
73719 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73720
73721         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
73722
73723 2007-01-21  Bruno Haible  <bruno@clisp.org>
73724
73725         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
73726
73727 2007-01-21  Bruno Haible  <bruno@clisp.org>
73728
73729         * modules/striconveha: New file.
73730         * lib/striconveha.h: New file.
73731         * lib/striconveha.c: New file.
73732         * MODULES.html.sh (Internationalization functions): Add striconveha.
73733         * lib/striconv.c (str_iconv): Optimize the case of an empty input
73734         string.
73735         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
73736
73737 2007-01-21  Bruno Haible  <bruno@clisp.org>
73738
73739         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
73740         * lib/striconveh.c (str_iconveh): Likewise.
73741
73742 2007-01-21  Bruno Haible  <bruno@clisp.org>
73743
73744         * lib/striconveh.h (mem_iconveh): New declaration.
73745         * lib/striconveh.c (mem_iconveh): New function.
73746         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
73747
73748 2007-01-21  Bruno Haible  <bruno@clisp.org>
73749
73750         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
73751
73752         * lib/striconveh.h (mem_cd_iconveh): Change specification.
73753         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
73754         original result buffer.
73755         (str_cd_iconveh): Update.
73756         * tests/test-striconveh.c (main): Update.
73757
73758         * lib/striconv.h (mem_cd_iconv): Change specification.
73759         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
73760         result buffer.
73761         (str_cd_iconv): Update.
73762         * tests/test-striconv.c (main): Update.
73763
73764 2007-01-21  Bruno Haible  <bruno@clisp.org>
73765
73766         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
73767
73768 2007-01-20  Jim Meyering  <jim@meyering.net>
73769
73770         * lib/userspec.c (parse_with_separator): If a user or group string
73771         starts with "+", skip the corresponding name-to-ID look-up, since
73772         such a look-up must fail: user and group names may not include "+".
73773
73774 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
73775
73776         * lib/poll.c: Include sys/time.h and time.h unconditionally,
73777         since we now assume the sys_time module.
73778         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
73779         check for sys/time.h; no longer needed.
73780         * modules/poll (Depends-on): Depend on sys_time.
73781
73782 2007-01-18  Bruno Haible  <bruno@clisp.org>
73783
73784         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
73785         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
73786
73787         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
73788         gettimeofday.
73789
73790         * tests/test-gettimeofday.c: Include <time.h>.
73791         (dummy): Remove variable.
73792
73793         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
73794         gl_HEADER_SYS_TIME_H.
73795         (gl_HEADER_SYS_TIME_H): New macro.
73796
73797         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
73798         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73799         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
73800         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
73801         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73802         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
73803         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
73804         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73805         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
73806         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
73807         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73808
73809         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
73810         last change; it caused a compilation error when cross-compiling to
73811         Cygwin.
73812
73813 2007-01-18  Jim Meyering  <jim@meyering.net>
73814
73815         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
73816         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
73817         than the race-prone "test -d sys || mkdir sys".
73818         (configure.ac): Use AC_PROG_MKDIR_P.
73819         * modules/sys_select: Likewise.
73820         * modules/sys_socket: Likewise.
73821         * modules/sys_time: Likewise.
73822
73823 2007-01-18  Eric Blake  <ebb9@byu.net>
73824
73825         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
73826         replace gettimeofday.
73827         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
73828         name, to avoid infinite recursion.
73829
73830 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
73831
73832         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
73833         module sys_time.
73834         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
73835         assume timespec.h defines struct timeval.
73836         * lib/settime.c: Likewise.
73837         * lib/utimens.c: Likewise.
73838         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
73839         since we now assume the gettimeofday module.
73840         * lib/tempname.c (__gen_tempname): Likewise.
73841         * lib/gettimeofday.h: Remove.
73842         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
73843         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
73844         Include <time.h>, for 'time()'.
73845         (localtime_buffer_addr): Also use this workaround if
73846         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
73847         to simplify the uses.  All uses changed.
73848         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
73849         that #undef is inside {}, and 'const' follows type name consistently.
73850         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
73851         (gettimeofday): Do not use the maximum possible value for
73852         tv->tv_usec, since that might break usages other than ls.c.
73853         Instead, we'll leave ls.c alone.  This undoes today's patch
73854         by Bruno.  Add a compile-time warning for 1s-clock resolution;
73855         we've never observed the problem but might as well keep the
73856         canary.
73857         * lib/nanosleep.c: Include timespec.h first, for interface check.
73858         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
73859         now assume the sys_time module.
73860         * lib/tempname.c: Likewise.
73861         * lib/timespec.h: Likewise.
73862         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
73863         needed.
73864         * lib/strftime.c: Likewise.
73865         * lib/timespec.h: Likewise.
73866         * lib/posixtm.c: Include posixtm.h first, for interface check.
73867         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
73868         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
73869         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
73870         * lib/sys_time_.h: New file.
73871         * lib/timespec.h (struct timespec): Use long int, not long.
73872         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
73873         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
73874         Remove obsolescent call to AC_HEADER_TIME.
73875         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
73876         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
73877         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
73878         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
73879         Likewise.
73880         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
73881         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
73882         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
73883         into the sys_time module.  Check for gettimeofday just once.
73884         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
73885         for gettimeofday signature to just check the signature.  Merely
73886         compile it, since linking doesn't test signature.  Improve test for
73887         whether gettimeofday.o is actually needed.
73888         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
73889         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
73890         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
73891         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73892         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
73893         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
73894         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
73895         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
73896         than worrying about sys/time.h.
73897         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
73898         Don't bother worrying about TIME_WITH_SYS_TIME.
73899         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
73900         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
73901         * m4/sys_time_h.m4: New file.
73902         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
73903         Don't include sys/time.h.  Return from main rather than exiting.
73904         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
73905         all uses changed.
73906         * modules/gethrxtime (Depends-on): Add sys_time.
73907         * modules/gettime (Depends-on): Likewise.
73908         * modules/gettimeofday (Depends-on): Likewise.
73909         * modules/nanosleep (Depends-on): Likewise.
73910         * modules/settime (Depends-on): Likewise.
73911         * modules/tempname (Depends-on): Likewise.
73912         * modules/utimens (Depends-on): Likewise.
73913         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
73914         (Include): Change back to <sys/time.h>.
73915         (Maintainer): Add self.
73916         * modules/sys_time: New file.
73917         * modules/tempname (Depends-on): Add gettimeofday.
73918         * tests/test-gettimeofday.c: Include <sys/time.h>
73919         rather than gettimeofday.h.
73920
73921 2007-01-17  Bruno Haible  <bruno@clisp.org>
73922
73923         * gnulib-tool (func_get_license): Revert last patch. Instead, let
73924         the license default to GPL.
73925         (func_create_testdir): Don't complain if a module is LGPL and its
73926         tests module depends on GPLed modules.
73927
73928 2007-01-17  Bruno Haible  <bruno@clisp.org>
73929
73930         * lib/gettimeofday.c (gettimeofday): Add code for the case
73931         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
73932         maximum possible value for tv->tv_usec, rather than the minimum one.
73933
73934 2005-10-08  Martin Lambers  <marlam@marlam.de>
73935 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
73936 2007-01-16  Bruno Haible  <bruno@clisp.org>
73937
73938         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
73939         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
73940         gl_FUNC_GETTIMEOFDAY.
73941         (Include): Add gettimeofday.h.
73942         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
73943         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
73944         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
73945         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
73946         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
73947         * lib/gettimeofday.h: New file.
73948         * lib/gettimeofday.c: Include <sys/timeb.h>.
73949         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
73950         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73951         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
73952         fall back on time().
73953
73954         * tests/test-gettimeofday.c: New file.
73955         * modules/gettimeofday-tests: New file.
73956
73957 2007-01-16  Eric Blake  <ebb9@byu.net>
73958
73959         * modules/fnmatch (Depends-on): Depend on wchar.
73960         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
73961         * m4/fnmatch.m4: Likewise.
73962         * modules/mbchar (Makefile.am): Assume <wchar.h>.
73963         * m4/mbchar.m4: Likewise.
73964         * modules/mbswidth (Depends-on): Depend on wchar.
73965         * lib/mbswidth.c: Assume <wchar.h>.
73966         * m4/mbswidth.m4: Likewise.
73967         * modules/quotearg (Depends-on): Depend on wchar.
73968         * lib/quotearg.c: Assume <wchar.h>.
73969         * m4/quotearg.m4: Likewise.
73970         * modules/regex (Depends-on): Depend on wchar.
73971         * lib/regex_internal.h: Assume <wchar.h>.
73972         * m4/regex.m4: Likewise.
73973         * modules/stdint (Depends-on): Depend on wchar.
73974         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
73975         * m4/stdint.m4: Likewise.
73976         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
73977         * modules/strftime (Depends-on): Depend on wchar.
73978         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
73979         * modules/strtol (Depends-on): Depend on wchar.
73980         * lib/strtol.c: Assume <wchar.h>.
73981         * modules/wcwidth (Depends-on): Depend on wchar.
73982         * lib/wcwidth.h: Assume <wchar.h>.
73983         * m4/wcwidth.m4: Likewise.
73984
73985 2007-01-16  Bruno Haible  <bruno@clisp.org>
73986
73987         * modules/csharpexec-script: New, created from...
73988         * modules/csharpexec: ... this.
73989
73990 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
73991
73992         * modules/javaexec-script: New, created from...
73993         * modules/javaexec: ... this.
73994
73995 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73996
73997         * modules/poll (Dependencies): Add sys_select.
73998
73999 2007-01-15  Jim Meyering  <jim@meyering.net>
74000
74001         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
74002         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
74003         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
74004         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
74005
74006 2007-01-15  Bruno Haible  <bruno@clisp.org>
74007
74008         * modules/striconveh: New file.
74009         * lib/striconveh.h: New file.
74010         * lib/striconveh.c: New file.
74011         * MODULES.html.sh (Internationalization functions): Add striconveh.
74012
74013         * modules/striconveh-tests: New file.
74014         * tests/test-striconveh.c: New file.
74015
74016 2007-01-15  Bruno Haible  <bruno@clisp.org>
74017
74018         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
74019         not from GNU libiconv or GNU libc.
74020
74021 2007-01-15  Bruno Haible  <bruno@clisp.org>
74022
74023         * doc/gnulib-intro.texi (Copyright): Explain the different license
74024         terms for module descriptions, autoconf macros, tests, documentation.
74025
74026 2007-01-14  Bruno Haible  <bruno@clisp.org>
74027
74028         * modules/striconv-tests: New file.
74029         * tests/test-striconv.c: New file.
74030
74031 2007-01-14  Bruno Haible  <bruno@clisp.org>
74032
74033         * modules/iconv-tests: New file.
74034         * tests/test-iconv.c: New file.
74035
74036 2007-01-14  Bruno Haible  <bruno@clisp.org>
74037
74038         * gnulib-tool (func_get_license): For test modules, use the license of
74039         the main module.
74040
74041 2007-01-14  Bruno Haible  <bruno@clisp.org>
74042
74043         * modules/iconv (Include): Clarify that <iconv.h> can only be included
74044         if iconv is found to exist.
74045
74046 2007-01-14  Bruno Haible  <bruno@clisp.org>
74047
74048         * modules/c-ctype-tests: New file.
74049         * tests/test-c-ctype.c: New file.
74050
74051 2007-01-14  Bruno Haible  <bruno@clisp.org>
74052
74053         * modules/binary-io-tests: New file.
74054         * tests/test-binary-io.sh: New file.
74055         * tests/test-binary-io.c: New file.
74056
74057 2007-01-14  Bruno Haible  <bruno@clisp.org>
74058
74059         * modules/array-oset-tests: New file.
74060         * tests/test-array_oset.c: New file.
74061
74062 2007-01-14  Bruno Haible  <bruno@clisp.org>
74063
74064         * modules/array-list-tests: New file.
74065         * tests/test-array_list.c: New file.
74066
74067 2007-01-14  Bruno Haible  <bruno@clisp.org>
74068
74069         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
74070         and make.
74071         Reported by Simon Josefsson in
74072         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
74073
74074 2007-01-14  Bruno Haible  <bruno@clisp.org>
74075
74076         * modules/allocsa-tests: New file.
74077         * tests/test-allocsa.c: New file.
74078
74079 2007-01-14  Bruno Haible  <bruno@clisp.org>
74080
74081         * modules/fchdir (Depends-on): Add absolute-header.
74082         * modules/unistd (Depends-on): Likewise.
74083
74084 2006-12-30  Bruno Haible  <bruno@clisp.org>
74085
74086         * modules/fchdir: New file.
74087         * modules/unistd (Files): Add lib/unistd_.h.
74088         (Makefile.am): Generate unistd.h from unistd_.h.
74089         * lib/fchdir.c: New file.
74090         * lib/dirent_.h: New file.
74091         * lib/unistd_.h: New file.
74092         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
74093         * m4/fchdir.m4: New file.
74094         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
74095         (gl_HEADER_UNISTD): Invoke it.
74096         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
74097         function.
74098         * lib/backupfile.c (opendir, closedir): Undefine.
74099         * lib/chown.c (open, close): Undefine.
74100         * lib/clean-temp.c (open, close): Undefine.
74101         * lib/copy-file.c (open, close): Undefine.
74102         * lib/execute.c (open, close): Undefine.
74103         * lib/fsusage.c (open, close): Undefine.
74104         * lib/gc-gnulib.c (open, close): Undefine.
74105         * lib/getcwd.c (opendir, closedir): Undefine.
74106         * lib/glob.c (opendir, closedir): Undefine.
74107         * lib/javacomp.c (open, close): Undefine.
74108         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
74109         * lib/openat-proc.c (open, close): Undefine.
74110         * lib/pagealign_alloc.c (open, close): Undefine.
74111         * lib/pipe.c (open, close): Undefine.
74112         * lib/progreloc.c (open, close): Undefine.
74113         * lib/savedir.c (opendir, closedir): Undefine.
74114         * lib/utime.c (open, close): Undefine.
74115         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
74116
74117 2007-01-10  Bruno Haible  <bruno@clisp.org>
74118
74119         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
74120
74121 2007-01-12  Eric Blake  <ebb9@byu.net>
74122
74123         Provide a robust <wchar.h>.  Further simplifications are now
74124         possible in other modules, but not included here.
74125         * modules/wchar: New module.
74126         * m4/wchar.m4: New file.
74127         * lib/wchar_.h: Likewise.
74128         * modules/mbchar (Depends-on): Depend on wchar, as the first use
74129         of the new module.
74130         * MODULES.html.sh (Extended multibyte and wide character utilities):
74131         New section.
74132
74133 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
74134
74135         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
74136         to a reasonable default for memory allocation.
74137         (xreadlink): Don't allocate a huge buffer, to work around a buggy
74138         file system that reports garbage st_size values for symlinks.
74139         Problem reported by Liyang Hu.
74140
74141 2007-01-11  Simon Josefsson  <simon@josefsson.org>
74142
74143         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
74144         Emacs .#* auto-save files).
74145
74146 2007-01-11  Bruno Haible  <bruno@clisp.org>
74147
74148         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
74149         directory.
74150
74151 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
74152
74153         Use @...@ consistently in lib/wctype_.h.
74154         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
74155         on it being set to 1 or 0.
74156         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
74157         go back to AC_SUBSTing it.
74158         * modules/wctype (Makefile.am): Undo previous change.
74159
74160 2007-01-10  Eric Blake  <ebb9@byu.net>
74161
74162         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
74163         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
74164         * modules/wctype (Makefile.am): Likewise.
74165         Reported by Chris McGuire.
74166
74167 2007-01-10  Jim Meyering  <jim@meyering.net>
74168
74169         fts.c: a small readability/maintainability improvement
74170         * lib/fts.c (fts_read): Make this code slightly more readable and
74171         maintainable by hoisting the "sp->fts_cur = p" assignments to
74172         immediately follow the statements that set P.  Derived from
74173         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
74174
74175 2007-01-10  Eric Blake  <ebb9@byu.net>
74176
74177         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
74178         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
74179         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
74180         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
74181         Reported by Chris McGuire.
74182
74183 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74184
74185         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
74186         in sed script.
74187
74188 2007-01-09  Bruno Haible  <bruno@clisp.org>
74189
74190         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
74191         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
74192         variables.
74193         (func_module): Use them.
74194
74195 2007-01-09  Bruno Haible  <bruno@clisp.org>
74196
74197         * modules/unistr/base: New file.
74198         * lib/unistr.h: New file.
74199
74200         * modules/unistr/u8-to-u16: New file.
74201         * lib/unistr/u8-to-u16.c: New file.
74202
74203         * modules/unistr/u8-to-u32: New file.
74204         * lib/unistr/u8-to-u32.c: New file.
74205
74206         * modules/unistr/u16-to-u8: New file.
74207         * lib/unistr/u16-to-u8.c: New file.
74208
74209         * modules/unistr/u16-to-u32: New file.
74210         * lib/unistr/u16-to-u32.c: New file.
74211
74212         * modules/unistr/u32-to-u8: New file.
74213         * lib/unistr/u32-to-u8.c: New file.
74214
74215         * modules/unistr/u32-to-u16: New file.
74216         * lib/unistr/u32-to-u16.c: New file.
74217
74218         * modules/unistr/u8-check: New file.
74219         * modules/unistr/u16-check: New file.
74220         * modules/unistr/u32-check: New file.
74221         * lib/unistr/u8-check.c: New file.
74222         * lib/unistr/u16-check.c: New file.
74223         * lib/unistr/u32-check.c: New file.
74224
74225         * modules/unistr/u8-chr: New file.
74226         * modules/unistr/u16-chr: New file.
74227         * modules/unistr/u32-chr: New file.
74228         * lib/unistr/u8-chr.c: New file.
74229         * lib/unistr/u16-chr.c: New file.
74230         * lib/unistr/u32-chr.c: New file.
74231
74232         * modules/unistr/u8-cmp: New file.
74233         * modules/unistr/u16-cmp: New file.
74234         * modules/unistr/u32-cmp: New file.
74235         * lib/unistr/u8-cmp.c: New file.
74236         * lib/unistr/u16-cmp.c: New file.
74237         * lib/unistr/u32-cmp.c: New file.
74238
74239         * modules/unistr/u8-cpy: New file.
74240         * modules/unistr/u16-cpy: New file.
74241         * modules/unistr/u32-cpy: New file.
74242         * lib/unistr/u8-cpy.c: New file.
74243         * lib/unistr/u16-cpy.c: New file.
74244         * lib/unistr/u32-cpy.c: New file.
74245         * lib/unistr/u-cpy.h: New file.
74246
74247         * modules/unistr/u8-cpy-alloc: New file.
74248         * modules/unistr/u16-cpy-alloc: New file.
74249         * modules/unistr/u32-cpy-alloc: New file.
74250         * lib/unistr/u8-cpy-alloc.c: New file.
74251         * lib/unistr/u16-cpy-alloc.c: New file.
74252         * lib/unistr/u32-cpy-alloc.c: New file.
74253         * lib/unistr/u-cpy-alloc.h: New file.
74254
74255         * modules/unistr/u8-endswith: New file.
74256         * modules/unistr/u16-endswith: New file.
74257         * modules/unistr/u32-endswith: New file.
74258         * lib/unistr/u8-endswith.c: New file.
74259         * lib/unistr/u16-endswith.c: New file.
74260         * lib/unistr/u32-endswith.c: New file.
74261         * lib/unistr/u-endswith.h: New file.
74262
74263         * modules/unistr/u8-mblen: New file.
74264         * modules/unistr/u16-mblen: New file.
74265         * modules/unistr/u32-mblen: New file.
74266         * lib/unistr/u8-mblen.c: New file.
74267         * lib/unistr/u16-mblen.c: New file.
74268         * lib/unistr/u32-mblen.c: New file.
74269
74270         * modules/unistr/u8-mbtouc: New file.
74271         * modules/unistr/u16-mbtouc: New file.
74272         * modules/unistr/u32-mbtouc: New file.
74273         * lib/unistr/u8-mbtouc.c: New file.
74274         * lib/unistr/u16-mbtouc.c: New file.
74275         * lib/unistr/u32-mbtouc.c: New file.
74276
74277         * modules/unistr/u8-mbtouc-safe: New file.
74278         * modules/unistr/u16-mbtouc-safe: New file.
74279         * modules/unistr/u32-mbtouc-safe: New file.
74280         * lib/unistr/u8-mbtouc-safe.c: New file.
74281         * lib/unistr/u16-mbtouc-safe.c: New file.
74282         * lib/unistr/u32-mbtouc-safe.c: New file.
74283
74284         * modules/unistr/u8-move: New file.
74285         * modules/unistr/u16-move: New file.
74286         * modules/unistr/u32-move: New file.
74287         * lib/unistr/u8-move.c: New file.
74288         * lib/unistr/u16-move.c: New file.
74289         * lib/unistr/u32-move.c: New file.
74290         * lib/unistr/u-move.h: New file.
74291
74292         * modules/unistr/u8-next: New file.
74293         * modules/unistr/u16-next: New file.
74294         * modules/unistr/u32-next: New file.
74295         * lib/unistr/u8-next.c: New file.
74296         * lib/unistr/u16-next.c: New file.
74297         * lib/unistr/u32-next.c: New file.
74298
74299         * modules/unistr/u8-prev: New file.
74300         * modules/unistr/u16-prev: New file.
74301         * modules/unistr/u32-prev: New file.
74302         * lib/unistr/u8-prev.c: New file.
74303         * lib/unistr/u16-prev.c: New file.
74304         * lib/unistr/u32-prev.c: New file.
74305
74306         * modules/unistr/u8-set: New file.
74307         * modules/unistr/u16-set: New file.
74308         * modules/unistr/u32-set: New file.
74309         * lib/unistr/u8-set.c: New file.
74310         * lib/unistr/u16-set.c: New file.
74311         * lib/unistr/u32-set.c: New file.
74312         * lib/unistr/u-set.h: New file.
74313
74314         * modules/unistr/u8-startswith: New file.
74315         * modules/unistr/u16-startswith: New file.
74316         * modules/unistr/u32-startswith: New file.
74317         * lib/unistr/u8-startswith.c: New file.
74318         * lib/unistr/u16-startswith.c: New file.
74319         * lib/unistr/u32-startswith.c: New file.
74320         * lib/unistr/u-startswith.h: New file.
74321
74322         * modules/unistr/u8-stpcpy: New file.
74323         * modules/unistr/u16-stpcpy: New file.
74324         * modules/unistr/u32-stpcpy: New file.
74325         * lib/unistr/u8-stpcpy.c: New file.
74326         * lib/unistr/u16-stpcpy.c: New file.
74327         * lib/unistr/u32-stpcpy.c: New file.
74328         * lib/unistr/u-stpcpy.h: New file.
74329
74330         * modules/unistr/u8-stpncpy: New file.
74331         * modules/unistr/u16-stpncpy: New file.
74332         * modules/unistr/u32-stpncpy: New file.
74333         * lib/unistr/u8-stpncpy.c: New file.
74334         * lib/unistr/u16-stpncpy.c: New file.
74335         * lib/unistr/u32-stpncpy.c: New file.
74336         * lib/unistr/u-stpncpy.h: New file.
74337
74338         * modules/unistr/u8-strcat: New file.
74339         * modules/unistr/u16-strcat: New file.
74340         * modules/unistr/u32-strcat: New file.
74341         * lib/unistr/u8-strcat.c: New file.
74342         * lib/unistr/u16-strcat.c: New file.
74343         * lib/unistr/u32-strcat.c: New file.
74344         * lib/unistr/u-strcat.h: New file.
74345
74346         * modules/unistr/u8-strchr: New file.
74347         * modules/unistr/u16-strchr: New file.
74348         * modules/unistr/u32-strchr: New file.
74349         * lib/unistr/u8-strchr.c: New file.
74350         * lib/unistr/u16-strchr.c: New file.
74351         * lib/unistr/u32-strchr.c: New file.
74352
74353         * modules/unistr/u8-strcmp: New file.
74354         * modules/unistr/u16-strcmp: New file.
74355         * modules/unistr/u32-strcmp: New file.
74356         * lib/unistr/u8-strcmp.c: New file.
74357         * lib/unistr/u16-strcmp.c: New file.
74358         * lib/unistr/u32-strcmp.c: New file.
74359
74360         * modules/unistr/u8-strcpy: New file.
74361         * modules/unistr/u16-strcpy: New file.
74362         * modules/unistr/u32-strcpy: New file.
74363         * lib/unistr/u8-strcpy.c: New file.
74364         * lib/unistr/u16-strcpy.c: New file.
74365         * lib/unistr/u32-strcpy.c: New file.
74366         * lib/unistr/u-strcpy.h: New file.
74367
74368         * modules/unistr/u8-strcspn: New file.
74369         * modules/unistr/u16-strcspn: New file.
74370         * modules/unistr/u32-strcspn: New file.
74371         * lib/unistr/u8-strcspn.c: New file.
74372         * lib/unistr/u16-strcspn.c: New file.
74373         * lib/unistr/u32-strcspn.c: New file.
74374         * lib/unistr/u-strcspn.h: New file.
74375
74376         * modules/unistr/u8-strdup: New file.
74377         * modules/unistr/u16-strdup: New file.
74378         * modules/unistr/u32-strdup: New file.
74379         * lib/unistr/u8-strdup.c: New file.
74380         * lib/unistr/u16-strdup.c: New file.
74381         * lib/unistr/u32-strdup.c: New file.
74382         * lib/unistr/u-strdup.h: New file.
74383
74384         * modules/unistr/u8-strlen: New file.
74385         * modules/unistr/u16-strlen: New file.
74386         * modules/unistr/u32-strlen: New file.
74387         * lib/unistr/u8-strlen.c: New file.
74388         * lib/unistr/u16-strlen.c: New file.
74389         * lib/unistr/u32-strlen.c: New file.
74390         * lib/unistr/u-strlen.h: New file.
74391
74392         * modules/unistr/u8-strmblen: New file.
74393         * modules/unistr/u16-strmblen: New file.
74394         * modules/unistr/u32-strmblen: New file.
74395         * lib/unistr/u8-strmblen.c: New file.
74396         * lib/unistr/u16-strmblen.c: New file.
74397         * lib/unistr/u32-strmblen.c: New file.
74398
74399         * modules/unistr/u8-strmbtouc: New file.
74400         * modules/unistr/u16-strmbtouc: New file.
74401         * modules/unistr/u32-strmbtouc: New file.
74402         * lib/unistr/u8-strmbtouc.c: New file.
74403         * lib/unistr/u16-strmbtouc.c: New file.
74404         * lib/unistr/u32-strmbtouc.c: New file.
74405
74406         * modules/unistr/u8-strncat: New file.
74407         * modules/unistr/u16-strncat: New file.
74408         * modules/unistr/u32-strncat: New file.
74409         * lib/unistr/u8-strncat.c: New file.
74410         * lib/unistr/u16-strncat.c: New file.
74411         * lib/unistr/u32-strncat.c: New file.
74412         * lib/unistr/u-strncat.h: New file.
74413
74414         * modules/unistr/u8-strncmp: New file.
74415         * modules/unistr/u16-strncmp: New file.
74416         * modules/unistr/u32-strncmp: New file.
74417         * lib/unistr/u8-strncmp.c: New file.
74418         * lib/unistr/u16-strncmp.c: New file.
74419         * lib/unistr/u32-strncmp.c: New file.
74420
74421         * modules/unistr/u8-strncpy: New file.
74422         * modules/unistr/u16-strncpy: New file.
74423         * modules/unistr/u32-strncpy: New file.
74424         * lib/unistr/u8-strncpy.c: New file.
74425         * lib/unistr/u16-strncpy.c: New file.
74426         * lib/unistr/u32-strncpy.c: New file.
74427         * lib/unistr/u-strncpy.h: New file.
74428
74429         * modules/unistr/u8-strnlen: New file.
74430         * modules/unistr/u16-strnlen: New file.
74431         * modules/unistr/u32-strnlen: New file.
74432         * lib/unistr/u8-strnlen.c: New file.
74433         * lib/unistr/u16-strnlen.c: New file.
74434         * lib/unistr/u32-strnlen.c: New file.
74435         * lib/unistr/u-strnlen.h: New file.
74436
74437         * modules/unistr/u8-strpbrk: New file.
74438         * modules/unistr/u16-strpbrk: New file.
74439         * modules/unistr/u32-strpbrk: New file.
74440         * lib/unistr/u8-strpbrk.c: New file.
74441         * lib/unistr/u16-strpbrk.c: New file.
74442         * lib/unistr/u32-strpbrk.c: New file.
74443         * lib/unistr/u-strpbrk.h: New file.
74444
74445         * modules/unistr/u8-strrchr: New file.
74446         * modules/unistr/u16-strrchr: New file.
74447         * modules/unistr/u32-strrchr: New file.
74448         * lib/unistr/u8-strrchr.c: New file.
74449         * lib/unistr/u16-strrchr.c: New file.
74450         * lib/unistr/u32-strrchr.c: New file.
74451
74452         * modules/unistr/u8-strspn: New file.
74453         * modules/unistr/u16-strspn: New file.
74454         * modules/unistr/u32-strspn: New file.
74455         * lib/unistr/u8-strspn.c: New file.
74456         * lib/unistr/u16-strspn.c: New file.
74457         * lib/unistr/u32-strspn.c: New file.
74458         * lib/unistr/u-strspn.h: New file.
74459
74460         * modules/unistr/u8-strstr: New file.
74461         * modules/unistr/u16-strstr: New file.
74462         * modules/unistr/u32-strstr: New file.
74463         * lib/unistr/u8-strstr.c: New file.
74464         * lib/unistr/u16-strstr.c: New file.
74465         * lib/unistr/u32-strstr.c: New file.
74466         * lib/unistr/u-strstr.h: New file.
74467
74468         * modules/unistr/u8-strtok: New file.
74469         * modules/unistr/u16-strtok: New file.
74470         * modules/unistr/u32-strtok: New file.
74471         * lib/unistr/u8-strtok.c: New file.
74472         * lib/unistr/u16-strtok.c: New file.
74473         * lib/unistr/u32-strtok.c: New file.
74474         * lib/unistr/u-strtok.h: New file.
74475
74476         * modules/unistr/u8-uctomb: New file.
74477         * modules/unistr/u16-uctomb: New file.
74478         * modules/unistr/u32-uctomb: New file.
74479         * lib/unistr/u8-uctomb.c: New file.
74480         * lib/unistr/u16-uctomb.c: New file.
74481         * lib/unistr/u32-uctomb.c: New file.
74482
74483         * MODULES.html.sh (Unicode string functions): Add the new modules.
74484
74485 2007-01-08  Bruno Haible  <bruno@clisp.org>
74486
74487         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
74488         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
74489         subdirectories.
74490
74491 2007-01-08  Karl Berry  <karl@gnu.org>
74492
74493         * doc/error.texi: mention that main() fns must set program_name
74494         when progname is used.
74495
74496 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
74497
74498         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
74499         WCTYPE_H is empty, for the benefit of builds from non-distclean
74500         directories.  Problem reported by Eric Blake in
74501         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
74502
74503 2007-01-08  Bruno Haible  <bruno@clisp.org>
74504
74505         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
74506         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
74507         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
74508         PROVIDE_CANONICALIZE_FILENAME_MODE.
74509         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
74510
74511 2007-01-08  Bruno Haible  <bruno@clisp.org>
74512
74513         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
74514         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
74515         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
74516         * lib/fts.c: Likewise.
74517         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
74518
74519 2006-12-25  Bruno Haible  <bruno@clisp.org>
74520
74521         * modules/utf8-ucs4-safe: New file.
74522         * lib/utf8-ucs4-safe.h: New file.
74523         * lib/unistr/utf8-ucs4-safe.c: New file.
74524
74525         * modules/utf16-ucs4-safe: New file.
74526         * lib/utf16-ucs4-safe.h: New file.
74527         * lib/unistr/utf16-ucs4-safe.c: New file.
74528
74529         * MODULES.html.sh (Unicode string functions): Add the new modules.
74530
74531 2007-01-08  Bruno Haible  <bruno@clisp.org>
74532
74533         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
74534         (Depends-on): Add unitypes.
74535         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
74536         (u8_mbtouc_aux): Move out to separate file.
74537         (u8_mbtouc): Use ucs4_t, uint8_t types.
74538         * lib/unistr/utf8-ucs4.c: New file.
74539
74540         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
74541         (Depends-on): Add unitypes.
74542         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
74543         (u16_mbtouc_aux): Move out to separate file.
74544         (u16_mbtouc): Use ucs4_t, uint16_t types.
74545         * lib/unistr/utf16-ucs4.c: New file.
74546
74547         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
74548         (Depends-on): Add unitypes.
74549         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
74550         (u8_uctomb_aux): Move out to separate file.
74551         (u8_uctomb): Use ucs4_t, uint8_t types.
74552         * lib/unistr/ucs4-utf8.c: New file.
74553
74554         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
74555         (Depends-on): Add unitypes.
74556         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
74557         (u16_uctomb_aux): Move out to separate file.
74558         (u16_uctomb): Use ucs4_t, uint16_t types.
74559         * lib/unistr/ucs4-utf16.c: New file.
74560
74561 2006-12-25  Bruno Haible  <bruno@clisp.org>
74562
74563         * modules/unitypes: New file.
74564         * lib/unitypes.h: New file.
74565         * MODULES.html.sh (func_all_modules): New section "Unicode string
74566         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
74567         this section. Add unitypes.
74568
74569 2007-01-08  Bruno Haible  <bruno@clisp.org>
74570
74571         Avoid variable names that conflict with those from libtool.
74572         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
74573         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
74574         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
74575         library_names_spec to acl_library_names_spec, hardcode_* to
74576         acl_hardcode_*.
74577         Reported by Ralf Wildenhues.
74578
74579 2007-01-08  Bruno Haible  <bruno@clisp.org>
74580
74581         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
74582         definition.
74583         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
74584         definition.
74585         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
74586         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
74587         definition.
74588         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
74589         definition.
74590         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
74591         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
74592         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
74593         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
74594         definition.
74595         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
74596         definition.
74597         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
74598         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
74599         GC_USE_<algorithm>.
74600         * lib/gc-libgcrypt.c: Likewise.
74601         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
74602         * modules/gc-arctwo (configure.ac): Likewise.
74603         * modules/gc-des (configure.ac): Likewise.
74604         * modules/gc-hmac-md5 (configure.ac): Likewise.
74605         * modules/gc-hmac-sha1 (configure.ac): Likewise.
74606         * modules/gc-md2 (configure.ac): Likewise.
74607         * modules/gc-md4 (configure.ac): Likewise.
74608         * modules/gc-md5 (configure.ac): Likewise.
74609         * modules/gc-random (configure.ac): Likewise.
74610         * modules/gc-rijndael (configure.ac): Likewise.
74611         * modules/gc-sha1 (configure.ac): Likewise.
74612
74613 2007-01-08  Bruno Haible  <bruno@clisp.org>
74614
74615         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
74616         macro definition.
74617         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
74618         definition.
74619         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
74620         definition.
74621         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
74622         * modules/fcntl-safer (configure.ac): Likewise.
74623         * modules/fopen-safer (configure.ac): Likewise.
74624         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
74625         GNULIB_FWRITEERROR macro definition.
74626
74627 2007-01-08  Bruno Haible  <bruno@clisp.org>
74628
74629         * m4/gnulib-common.m4: New file.
74630         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
74631         (func_get_filelist): Add m4/gnulib-common.m4.
74632
74633 2007-01-08  Bruno Haible  <bruno@clisp.org>
74634
74635         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
74636         command.
74637
74638 2007-01-08  Jim Meyering  <jim@meyering.net>
74639
74640         Use a more robust test for a "can't happen" condition.
74641         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
74642         narrowed the st_size value.  Presuming the "can't happen" condition
74643         is true, that narrowing could conceivably convert an invalid st_size
74644         value into a valid one.  Instead, use a change based on Matthew
74645         Woehlke's original patch.
74646
74647         Slight readability improvement: use an assert-like macro
74648         in place of literal "abort ()" uses.
74649         * lib/fts.c (fts_assert): Define.
74650         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
74651         Use this macro instead of a bare 'abort'.
74652
74653 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
74654
74655         Don't worry about using IRIX 5.3's wctype.h broken definitions;
74656         simply work around them.
74657         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
74658         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
74659         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
74660         declaring.
74661         Don't bother to define as macros, since the standard doesn't require it.
74662         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
74663         longer worry about IRIX 5.3.
74664         (HAVE_WCTYPE_CTMP_BUG): Remove.
74665
74666 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74667
74668         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
74669         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
74670         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
74671         Problems reported by Georg Schwarz for IRIX 5.3.
74672
74673         * gnulib-tool (autoconf_minversion): Take the maximum version number
74674         found, not the minimum.  Problem reported by James Youngman.
74675
74676 2007-01-03  Karl Berry  <karl@gnu.org>
74677
74678         * doc/error.texi: new file, explaining interaction with progname.
74679         * doc/gnulib.texi: include it.  Update copyright.
74680
74681 2007-01-03  Simon Josefsson  <simon@josefsson.org>
74682
74683         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
74684         AC_CANONICAL_HOST, to improve autobuild outputs.
74685
74686 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
74687             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
74688
74689         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
74690         sockets, server sockets, and other file descriptors.  Count errors
74691         to compute the return value.  Reorder the code a bit to be easier
74692         to follow.  Don't set event bits that were not requested (except
74693         POLLERR and POLLHUP).
74694
74695 2007-01-01  Bruno Haible  <bruno@clisp.org>
74696
74697         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
74698
74699 2007-01-03  Jim Meyering  <jim@meyering.net>
74700
74701         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
74702
74703 2007-01-02  Bruno Haible  <bruno@clisp.org>
74704
74705         * modules/settime (Include): Require timespec.h.
74706         * modules/nanosleep (Include): Likewise.
74707
74708 2007-01-01  Bruno Haible  <bruno@clisp.org>
74709
74710         * gnulib-tool (func_emit_copyright_notice): Bump year.
74711         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
74712
74713 2007-01-01  Bruno Haible  <bruno@clisp.org>
74714
74715         Improve support for OpenBSD.
74716         * build-aux/config.rpath (libname_spec): Export.
74717         (library_names_spec): New variable. Export.
74718         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
74719         library_names_spec from the config.rpath output. Locate shared library
74720         through the name pattern in library_names_spec.
74721
74722 2007-01-01  Eric Blake  <ebb9@byu.net>
74723
74724         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
74725
74726 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
74727
74728         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
74729         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
74730         assume the C locale, and avoid an "eval" that could cause trouble.
74731         Problem with SORT reported by Bob Proulx.
74732
74733         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
74734         Define.  Trivial patch from Henning Nielsen Lund, originally
74735         sent to bug-grep@gnu.org today.
74736
74737 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
74738
74739         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
74740         struct stat.  Problem reported by Henning Nielsen Lund.
74741         * lib/acl.c: Include acl.h first, to check interface.  Don't
74742         bother to include sys/types.h and sys/stat.h again.
74743
74744 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
74745
74746         Import the following change from libc; problem reported by
74747         Sven Verdoolaege.
74748
74749         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
74750
74751         [BZ #1373]
74752         * lib/argp.h: Remove __NTH for __argp_usage inline function.
74753
74754 2006-12-28  Jim Meyering  <jim@meyering.net>
74755
74756         * build-aux/announce-gen: Do not assume that the package
74757         builds any of tar.gz, tar.bz2, and .xdelta files.
74758         Suggestion from Simon Josefsson.
74759
74760 2006-12-28  Simon Josefsson  <simon@josefsson.org>
74761
74762         * modules/announce-gen: New file.
74763
74764 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
74765
74766         * lib/mbchar.h: Just include <wctype.h>; the wctype module
74767         handles its gotchas now.
74768         * lib/mbswidth.c: Likewise.
74769         * lib/wcwidth.h: Likewise.
74770         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
74771         and iswcntrl; the wctype module does this stuff now.
74772         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
74773         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
74774         * modules/mbchar (Depends-on): Add wctype.
74775         * modules/mbswidth (Depends-on): Likewise.
74776         * modules/wcwidth (Depends-on): Likewise.
74777
74778 2006-12-27  Eric Blake  <ebb9@byu.net>
74779
74780         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
74781         module uses more than what <wctype.h> is required to provide.
74782
74783 2006-12-26  Eric Blake  <ebb9@byu.net>
74784
74785         * gnulib-tool (sed_extract_prog): Avoid space-tab.
74786
74787 2006-12-26  Eric Blake  <ebb9@byu.net>
74788
74789         * modules/absolute-header: New module.
74790         * modules/fcntl (Depends-on): Depend on it.
74791         * modules/inttypes (Depends-on): Likewise.
74792         * modules/stdint (Depends-on): Likewise.
74793         * modules/sys_stat (Depends-on): Likewise.
74794         * modules/wctype (Depends-on): Likewise.
74795         * MODULES.html.sh (Support for building libraries and
74796         executables): Document it.
74797
74798 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
74799
74800         * gnulib-tool (SED): Remove, undoing previous change.
74801         The problem was that it broke coreutils on Solaris, because
74802         "sed --posix" leaked into a makefile.
74803         (sed): New alias, if 'alias' and GNU sed.
74804
74805 2006-12-24  Jim Meyering  <jim@meyering.net>
74806
74807         Work around an fchownat bug in glibc-2.4:
74808         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
74809         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
74810         in spite of the -P option.
74811         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
74812         New macros.
74813         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
74814         * modules/openat (Files): Add lib/fchownat.c.
74815         * lib/openat.c (fchownat): Don't define here.  Move to...
74816         * lib/fchownat.c: ...this new file.
74817
74818 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
74819
74820         Fix bug reported by Bruno Haible in
74821         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
74822         where quotearg.c didn't compile on Mac OS X 10.2 because it
74823         lacks <wchar.h> and wint_t.
74824         * lib/wctype_.h (__wctype_wint_t): New type.
74825         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
74826         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
74827         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
74828         Arg is now of type __wctype_wint_t, not wint_t.
74829         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
74830         substitute HAVE_WINT_T.
74831         * modules/wctype (Files): Add m4/wint_t.m4.
74832         (wctype.h): Substitute HAVE_WINT_T.
74833
74834 2006-12-23  Bruno Haible  <bruno@clisp.org>
74835
74836         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
74837
74838 2006-12-23  Bruno Haible  <bruno@clisp.org>
74839
74840         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
74841         S_ISLNK.
74842         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
74843         mingw.
74844
74845 2006-12-22  Bruno Haible  <bruno@clisp.org>
74846
74847         * lib/copy-file.c: Include acl.h.
74848         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
74849         Close the file descriptors only after being done with copy_acl.
74850         * modules/copy-file (Depends-on): Add acl.
74851
74852 2006-12-22  Bruno Haible  <bruno@clisp.org>
74853
74854         * gnulib-tool (SED): New variable.
74855         Use $SED instead of sed everywhere.
74856
74857 2006-12-22  Bruno Haible  <bruno@clisp.org>
74858
74859         * modules/no-c++: New file.
74860         * m4/no-c++.m4: New file.
74861         * MODULES.html.sh (Support for building libraries and executables):
74862         Add no-c++.
74863
74864 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
74865
74866         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
74867         Include <limits.h>, and use its INT_MAX to rewrite the
74868         j loop so that it does not overflow 'int'.  Problem reported by
74869         Ralf Wildenhues in
74870         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
74871         Play it safe by shifting left by 1 rather than multiplying by 2,
74872         as GCC is less likely to optimize this away when the value
74873         is signed (when it assumes overflow leads to undefined behavior).
74874         Also, don't assume time_t uses two's complement.
74875
74876 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
74877
74878         * MODULES.html.sh: New module wctype.
74879         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
74880         * lib/fnmatch.c: Don't bother to include <wchar.h> before
74881         <wctype.h>, since the new wctype module should fix this.
74882         * lib/quotearg.c: Include <wctype.h> unconditionally, since
74883         the wctype module should arrange for it.
74884         * lib/regex_internal.h: Likewise.
74885         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
74886         since the wctype module should handle this now.
74887         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
74888         * modules/fnmatch (Depends-on): Add wctype.
74889         * modules/quotearg (Depends-on): Likewise.
74890         * modules/regex (Depends-on): Likewise.
74891
74892 2006-12-19  Bruno Haible  <bruno@clisp.org>
74893
74894         * lib/strdup.h [C++]: Wrap definitions in extern "C".
74895         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
74896
74897 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74898
74899         * modules/savewd (Depends-on): Fix dependency on fcntl.
74900
74901 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
74902
74903         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
74904         conforms to C99, rather than relying on the user's environment
74905         setting of STDINT_H.
74906
74907 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
74908         and Eric Blake  <ebb9@byu.net>
74909
74910         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
74911         This is more consistent with the other defines here.
74912         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
74913         Port to z/OS.  Problem reported by Paul Gilmartin.
74914         Change local vars to use gl_ prefix rather than ac_.
74915         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
74916         with other defines.
74917         * modules/double-slash-root: New module.
74918         * modules/dirname (Files): Remove m4/double-slash-root.m4.
74919         (Depends-on): Add double-slash-root.
74920         * MODULES.html.sh (File system functions): Mention new module.
74921
74922 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
74923
74924         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
74925         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
74926         This is for the benefit of gzip, which doesn't do i18n.
74927
74928 2006-12-12  Jim Meyering  <jim@meyering.net>
74929
74930         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
74931         Reported by Andreas Schwab <schwab@suse.de>.
74932
74933 2006-12-12  Bruno Haible  <bruno@clisp.org>
74934
74935         Merge these changes.
74936         2006-09-05  Bruno Haible  <bruno@clisp.org>
74937         * lib/iconvme.c (iconv_string): No need to save and restore errno when
74938         iconv_alloc succeeded.
74939         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
74940         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
74941         test for " && dest " at the end - dest is always != NULL there. Call
74942         iconv with 4xNULL arguments initially, to reset the state. Call iconv
74943         with 2xNULL arguments, also to flush the state storage. Handle the
74944         IRIX iconv behaviour. Realloc the final result, to throw away unused
74945         memory.
74946
74947 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
74948
74949         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
74950         and fchmodat unconditionally, since glibc 2.4 has them.
74951         Problem reported by Arkadiusz Miskiewicz.
74952
74953 2006-12-10  Bruno Haible  <bruno@clisp.org>
74954
74955         * gnulib-tool (func_import): Show the include files only for those
74956         modules that are copied and specified.
74957         Reported by Karl Berry.
74958
74959 2006-12-08  Jim Meyering  <jim@meyering.net>
74960
74961         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
74962         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
74963
74964         * build-aux/announce-gen: Add two new options, both optional:
74965         --bootstrap-tools=TOOL_LIST
74966               a comma-separated list of tools, e.g.,
74967               autoconf,automake,bison,gnulib
74968         --gnulib-snapshot-date=DATE
74969               if gnulib is in the bootstrap tool list,
74970               then report this as the snapshot date.
74971               If not specified, use the current date/time.
74972               If you specify a date here, be sure it's UTC.
74973
74974 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74975
74976         * tests/test-argp-2.sh: Fix test to match actual output.
74977         (func_compare): Fix sed script to be portable.
74978
74979 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
74980
74981         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
74982         workaround for this case.  It is not autoconfigured now; offhand
74983         it's hard to see how to autoconfigure it.
74984
74985 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
74986
74987         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
74988         a directory that is about to be chowned.  Such a directory's
74989         initial file permissions should permit the owner only and this
74990         should not be changed until after the chown, since the group and
74991         other bits would be incorrect if they granted permission before
74992         the chown.
74993
74994         Fix porting problem for iswctype reported by Georg Schwarz in:
74995         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
74996         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
74997         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
74998         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
74999         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
75000
75001 2006-12-03  Jim Meyering  <jim@meyering.net>
75002
75003         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
75004         p->fts_statp may not yet be defined.
75005         (fts_read): Instead, set it in the caller, once p->fts_statp is
75006         sure to be defined, and corresponds to a top-level directory.
75007         This bug made du -x fail.  Here's the coreutils test case:
75008         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
75009         Reported by Mike Frysinger.
75010
75011 2006-12-01  Jim Meyering  <jim@meyering.net>
75012
75013         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
75014         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
75015         Reported by Simon Josefsson.
75016
75017 2006-11-30  Jim Meyering  <jim@meyering.net>
75018
75019         * m4/warning.m4: Use the all-permissive copyright notice
75020         recommended by RMS (rather than LGPL).
75021         * m4/vararrays.m4: Likewise.
75022         * m4/flexmember.m4: Likewise.
75023
75024 2006-11-29  Bruno Haible  <bruno@clisp.org>
75025
75026         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
75027         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
75028         using +=.
75029         Reported by Simon Josefsson <simon@josefsson.org>.
75030
75031 2006-11-28  James Youngman <jay@gnu.org>
75032
75033         * README: Advise users that they might find the bug-gnulib@gnu.org
75034         and autotools-announce@gnu.org mailing lists useful.
75035
75036 2006-11-28  Bruno Haible  <bruno@clisp.org>
75037
75038         * m4/ptrdiff_max.m4: Remove file.
75039
75040 2006-11-21  Bruno Haible  <bruno@clisp.org>
75041
75042         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
75043         _AC_COMPUTE_INT.
75044         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
75045         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
75046         _AC_COMPUTE_INT.
75047         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
75048         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
75049         _AC_COMPUTE_INT.
75050         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
75051
75052 2006-11-28  Jim Meyering  <jim@meyering.net>
75053
75054         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
75055         warning from "gcc -Wshadow" about shadowing the builtin.
75056
75057 2006-11-27  Bruno Haible  <bruno@clisp.org>
75058
75059         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
75060         _AC_COMPUTE_INT.
75061         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
75062
75063 2006-11-27  Bruno Haible  <bruno@clisp.org>
75064             Paul Eggert  <eggert@cs.ucla.edu>
75065
75066         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
75067
75068 2006-11-26  Bruno Haible  <bruno@clisp.org>
75069
75070         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
75071         noinst_LTLIBRARIES.
75072
75073 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
75074             Bruno Haible  <bruno@clisp.org>
75075
75076         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
75077         if compiling with "gcc -ansi".
75078
75079 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
75080
75081         Fix some incompatibilities with gcc -ansi -pedantic.
75082         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
75083         if compiling pedantically with GCC, unless it's C99 or later.
75084         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
75085         it mishandles gcc -ansi -pedantic as well.
75086         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
75087         if gcc -pedantic.
75088         * lib/regexec.c (check_node_accept_bytes): Don't use auto
75089         initializers for struct if -pedantic, unless it's C99 or later.
75090
75091 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
75092
75093         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
75094         Don't close an fd more than once. Identical atimes indicate
75095         success, not failure.
75096
75097 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
75098
75099         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
75100
75101 2006-11-23  Jim Meyering  <jim@meyering.net>
75102
75103         * build-aux/announce-gen: New file.  From coreutils.
75104
75105 2006-11-22  Jim Meyering  <jim@meyering.net>
75106
75107         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
75108         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
75109         (fts_read): Use a temporary to narrow the overused st_size member
75110         before using it in a switch statement.  Reported by Matthew Woehlke.
75111
75112         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
75113         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
75114
75115 2006-11-20  Bruno Haible  <bruno@clisp.org>
75116
75117         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
75118         changequote instead of pairs of brackets.
75119         Reported by Andreas Schwab <schwab@suse.de>.
75120
75121 2006-11-21  Jim Meyering  <jim@meyering.net>
75122
75123         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
75124         so as to remain compatible with older compilers.
75125         Patch from Michael Deutschmann.
75126
75127 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
75128
75129         * MODULES.html.sh (File system functions): Add openat.
75130
75131         * lib/openat.h (rpl_fstatat): New macro, if
75132         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
75133         (fstatat): Define to rpl_fstatat under the same conditions,
75134         unless COMPILING_FSTATAT.
75135         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
75136         seems to have the bug.
75137         * lib/fstatat.c: New file.
75138         * modules/openat (Files): Add it.
75139
75140 2006-11-20  Bruno Haible  <bruno@clisp.org>
75141
75142         * Makefile: New file.
75143
75144 2006-11-20  Jim Meyering  <jim@meyering.net>
75145
75146         The beginnings of syntax-related checks for gnulib.
75147         * lib/Makefile: New file.
75148         * lib/t-idcache: New script.  Ensure that the two halves of
75149         idcache.c stay in sync.
75150
75151         * lib/idcache.c: Adjust comments in user- and group- portions to
75152         be more accurate, and to be consistent with one another.
75153
75154 2006-11-20  Jim Meyering  <jim@meyering.net>
75155
75156         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
75157         continue using the flexible array member (thus, this module performs
75158         half as many malloc calls), with the addition that...
75159         (getgroup, getuser): Consistently record a non-match via an empty
75160         "name" string, and map an empty string match to a NULL return value.
75161         * modules/idcache (Depends-on): Re-add flexmember.
75162
75163         * lib/idcache.c (getuser): Remove all uses of the register keyword.
75164         (getuidbyname, getgroup, getgidbyname): Likewise.
75165
75166         Use cleaner syntax: NULL rather than 0.
75167         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
75168
75169 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
75170
75171         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
75172         It mishandled the case where the group was missing.
75173         Problem reported by Greg Schafer.
75174         * modules/idcache: Likewise.
75175
75176 2006-11-18  Jim Meyering  <jim@meyering.net>
75177
75178         * check-module (%exempt_header): Add exception for some
75179         conditionally-included headers.
75180
75181         * modules/i-ring (Depends-on): Add verify.
75182         (License): Change to LGPL.
75183
75184 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75185
75186         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
75187         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
75188         and inttostr.h.  Use snprintf rather than uinttostr, so that
75189         LGPLed code doesn't depend on GPLed.
75190
75191 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
75192
75193         * modules/inline (License): Change from GPL to LGPL.
75194
75195 2006-11-17  Jim Meyering  <jim@meyering.net>
75196
75197         * modules/d-type (License): Switch to LGPL.
75198
75199 2006-11-15  Bruno Haible  <bruno@clisp.org>
75200
75201         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
75202
75203 2006-11-15  Eric Blake  <ebb9@byu.net>
75204
75205         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
75206         the module dependency.
75207
75208 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75209             Bruno Haible  <bruno@clisp.org>
75210
75211         * gnulib-tool (func_create_testdir): Add license consistency check.
75212
75213 2006-11-15  Eric Blake  <ebb9@byu.net>
75214
75215         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
75216         random "(cached)" in configure output.
75217
75218 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75219
75220         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
75221         test for conforming inttypes.h is both announced and cached.
75222
75223         * MODULES.html.sh (seen_modules, seen_files): New variables.
75224         (func_module): Rewrite to use a few less gnulib-tool and sed
75225         invocations.  Avoid a couple of quadratic algorithms for ...
75226         (missed_modules, missed_files): ... these, with ...
75227         (func_append, func_tmpdir): ... these new functions, from
75228         gnulib-tool.  Analogously, install traps for cleanup.
75229
75230         * tests/test-gc.c (main): Remove unused variables.
75231         * tests/test-read-file.c: Include stdlib.h, for 'free'.
75232
75233 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
75234
75235         * modules/inttostr (License): Change to LGPL.
75236
75237 2006-11-14  Eric Blake  <ebb9@byu.net>
75238
75239         * modules/tempname (License): Change to LGPL.
75240
75241 2006-11-14  Eric Blake  <ebb9@byu.net>
75242
75243         * doc/functions.texi (Function Portability): *printf functions on
75244         Cygwin now understand all POSIX size specifiers.
75245
75246 2006-11-14  Bruno Haible  <bruno@clisp.org>
75247
75248         * modules/c-ctype (License): Change to LGPL.
75249
75250 2006-11-12  Bruno Haible  <bruno@clisp.org>
75251
75252         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
75253         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
75254         for GNOME libraries, for which the include files are installed in
75255         subdirectories of $prefix/include.
75256
75257 2006-11-12  Bruno Haible  <bruno@clisp.org>
75258
75259         * m4/lib-link.m4: Require at least autoconf-2.54.
75260         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
75261         name to underscores for the --with option.
75262
75263 2006-11-13  Bruno Haible  <bruno@clisp.org>
75264
75265         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
75266         the tests directory.
75267         Reported by Ralf Wildenhues.
75268
75269 2006-11-13  Bruno Haible  <bruno@clisp.org>
75270
75271         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
75272         (func_emit_initmacro_end): Undo the override here.
75273         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
75274         Works around the famous automake error in coreutils.
75275
75276 2006-11-13  Eric Blake  <ebb9@byu.net>
75277
75278         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
75279         element, not its node.
75280
75281 2006-11-12  Bruno Haible  <bruno@clisp.org>
75282
75283         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
75284         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
75285
75286 2006-11-12  Bruno Haible  <bruno@clisp.org>
75287
75288         * gnulib-tool: New option --local-symlink.
75289         (func_usage): Document it.
75290         (lsymbolic): New variable.
75291         (func_import, func_create_testdir): If --symlink was not specified,
75292         test whether --local-symlink was specified and the file comes from
75293         the local_gnulib_dir.
75294
75295 2006-11-12  Bruno Haible  <bruno@clisp.org>
75296
75297         * gnulib-tool (func_ln): New function.
75298         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
75299
75300 2006-11-12  Bruno Haible  <bruno@clisp.org>
75301
75302         Finish support for source files in subdirectories.
75303         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
75304         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
75305         AUTOMAKE_OPTIONS.
75306         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
75307
75308 2006-11-12  Bruno Haible  <bruno@clisp.org>
75309
75310         * gnulib-tool (func_get_automake_snippet): Synthesize also an
75311         EXTRA_lib_SOURCES augmentation.
75312         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
75313
75314 2006-11-12  Jim Meyering  <jim@meyering.net>
75315
75316         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
75317         file descriptors.  This also averts a failure on systems with
75318         native openat support when a traversed directory lacks "x" access.
75319         * lib/fts_.h: Include "i-ring.h"
75320         (struct FTS) [fts_fd_ring]: New member.
75321         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
75322         (FCHDIR): Add parentheses.
75323         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
75324         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
75325         When descending, rather than simply closing the previous
75326         fts_cwd_fd value, push that file descriptor onto the ring.
75327         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
75328         (fts_open): Initialize the new fd_ring member.
75329         (fts_close): Clear the ring.
75330         (fts_safe_changedir): When possible, use our new fd_ring to skip
75331         the diropen and fstat and dev/ino comparison that would normally
75332         accompany a virtual `chdir ("..")'.
75333
75334         * modules/fts (Depends-on): Add i-ring.
75335         * modules/i-ring: New module.
75336         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
75337         * m4/i-ring.m4: New file.
75338
75339 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75340
75341         * gnulib-tool (func_create_testdir): Fix replacement of
75342         `build-aux' in configure.ac.  Run autotools in gltests
75343         subdirectory.
75344         (func_create_testdir, func_create_megatestdir, test): There is
75345         no need for '--force' in most autotool invocations in a new
75346         tree.  Actually fail the whole test if any of the tools, or the
75347         configure or make stages fail.
75348
75349         Sync from Automake.
75350         * build-aux/gnupload: Revert last change.  Add pointer to upload
75351         instructions of the GNU Maintenance Instructions.
75352         Suggestion by Karl Berry.
75353
75354 2006-11-10  Jim Meyering  <jim@meyering.net>
75355
75356         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
75357
75358 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
75359
75360         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
75361         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
75362         (bind_textdomain_codeset) [! ENABLE_NLS]:
75363         Evaluate all the arguments.  That way, callers get compatible behavior
75364         if the arguments have side effects.  Also, it avoids some GCC
75365         diagnostics in some cases; Joel E. Denny reported problems when Bison
75366         was configured with --enable-gcc-warnigs.
75367
75368 2006-11-10  Jim Meyering  <jim@meyering.net>
75369
75370         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
75371         relevant options in CFLAGS (like -O, -fno-inline) are taken into
75372         account.
75373
75374 2006-11-10  Jim Meyering  <jim@meyering.net>
75375
75376         * modules/inline: New file/module.
75377         * modules/xalloc (Files): Remove m4/inline.m4.
75378         (Depends-on): Add inline, instead.
75379         * modules/oset: Likewise.
75380         * modules/list: Likewise.
75381
75382 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
75383
75384         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
75385         Problem reported by Matthew Woehlke.
75386
75387 2006-11-09  Bruno Haible  <bruno@clisp.org>
75388
75389         * lib/tempname.c (gen_tempname): Remove variant that invokes
75390         __gen_tempname.
75391         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
75392         __gen_tempname.
75393
75394 2006-11-08  Bruno Haible  <bruno@clisp.org>
75395
75396         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
75397         to 'yes' instead of 'cross-compiling'.
75398
75399 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
75400
75401         * lib/quotearg.h (quotearg_free): New decl.
75402         * lib/quotearg.c (quotearg_free): New function.
75403         (slot0, nslots, slotvec0, slotvec):
75404         Now file-scope so that quotearg_free can get at them.
75405
75406 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75407
75408         Sync from Automake.
75409         * build-aux/gnupload: Add missing 'gnu' to example URL.
75410         Report by Karl Berry.
75411
75412 2006-11-08  Bruno Haible  <bruno@clisp.org>
75413
75414         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
75415         Suggested by Paul Eggert.
75416
75417 2006-11-08  Jim Meyering  <jim@meyering.net>
75418
75419         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
75420         It's already included if !_LIBC.
75421         (fts_safe_changedir): Add a comment.
75422
75423 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
75424
75425         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
75426         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
75427         Matthew Woehlke.
75428
75429         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
75430         definitions up, to avoid colliding with change below.
75431         (static_inline) [HAVE_INLINE]: New macro.
75432         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
75433         Provide extern decls when !HAVE_INLINE.  Do not define unless
75434         static_inline is defined, either by us or by xmalloc.c.  Use
75435         static_inline rather than static inline.
75436         (XCALLOC): Optimize sizeof(T) = 1 case.
75437         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
75438
75439 2006-11-07  Bruno Haible  <bruno@clisp.org>
75440
75441         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
75442         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
75443         AC_C_INLINE.
75444         * modules/xalloc (Files): Add m4/inline.m4.
75445
75446 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75447
75448         * README: Fix typo.
75449         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
75450         (Miscellanous Notes): ...from this.
75451
75452 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
75453
75454         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
75455         Mention that offsetof should be used instead of sizeof.
75456         From Bruno Haible.
75457
75458 2006-11-07  Bruno Haible  <bruno@clisp.org>
75459
75460         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
75461
75462 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
75463
75464         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
75465         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
75466         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
75467         (gl_tree_add_before, gl_tree_add_after):
75468         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
75469         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
75470         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
75471         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
75472         (gl_linked_add_after, gl_linked_add_at): Likewise.
75473         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
75474         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
75475         (gl_tree_add_before, gl_tree_add_after): Likewise.
75476         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
75477         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
75478         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
75479
75480 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75481
75482         * lib/gl_oset.h: Use C comment style, not C++ comment style.
75483
75484 2006-11-06  Bruno Haible  <bruno@clisp.org>
75485
75486         * m4/inline.m4: New file.
75487         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
75488         * modules/list (Files): Add m4/inline.m4.
75489         * modules/oset (Files): Likewise.
75490
75491 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
75492
75493         * lib/idcache.c: Include <stddef.h>, for offsetof.
75494         (struct userid.name): Change from char * to a flexible array member.
75495         All uses changed.
75496         * modules/idcache (Depends-on): Add flexmember.
75497
75498         * MODULES.html.sh (Core language properties): New module flexmember.
75499         * modules/flexmember, m4/flexmember.m4: New files.
75500
75501         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
75502         inline functions that are identical with the old xnmalloc_inline,
75503         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
75504         that we can avoid some unnecessary integer multiplications and
75505         divisions in the common case where the element size is known at
75506         compile time.
75507         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
75508         needed.
75509         (xnboundedmalloc): Remove.
75510         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
75511         arguments, for consistency with rest of this header.
75512         (xcharalloc): Rewrite using XNMALLOC.
75513         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
75514         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
75515         versions have been moved to lib/xalloc.h and renamed to be the
75516         non-*_inline versions.
75517         (xmalloc, xrealloc): Implement without reference to the xnmalloc
75518         and xnrealloc functions, since those functions are now inline and
75519         now call us.
75520         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
75521         renaming described above.
75522         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
75523         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
75524         captures the dependency in AC_C_INLINE.
75525
75526         New module canonicalize-lgpl, proposed by Charles Wilson in
75527         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
75528         with a few small changes afterwards.
75529         * MODULES.html.sh (File system functions): New module
75530         canonicalize-lgpl.
75531         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
75532         and canonicalize_file_name.
75533         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
75534         * modules/canonicalize-lgpl: New files.
75535
75536 2006-11-05  Bruno Haible  <bruno@clisp.org>
75537
75538         * gnulib-tool (func_import, func_create_testdir): Create directories
75539         also for files in subdirectories of lib/.
75540
75541 2006-11-05  Bruno Haible  <bruno@clisp.org>
75542
75543         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
75544         ANSI C compliant.
75545
75546 2006-11-03  Bruno Haible  <bruno@clisp.org>
75547
75548         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
75549         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
75550         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
75551         (xnboundedmalloc): New inline function.
75552         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
75553         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
75554         xmalloc.
75555         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
75556         xmalloc.
75557         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
75558         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
75559         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
75560         xmalloc.
75561         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
75562         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
75563         xmalloc.
75564         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
75565         gl_tree_add_after): Use XMALLOC instead of xmalloc.
75566         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
75567         xmalloc.
75568         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
75569         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
75570         gl_tree_add_after): Use XMALLOC instead of xmalloc.
75571         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
75572         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
75573         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
75574         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
75575
75576 2006-11-03  Bruno Haible  <bruno@clisp.org>
75577
75578         * lib/c-ctype.h [C++]: Define functions without name mangling.
75579         * lib/fwriteerror.h [C++]: Likewise.
75580         * lib/gcd.h [C++]: Likewise.
75581         * lib/linebreak.h [C++]: Likewise.
75582
75583 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
75584
75585         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
75586         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
75587         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
75588         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
75589         Check for functions and headers just once.
75590         Check for declaration of canonicalize_file_name.
75591         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
75592
75593 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
75594
75595         * gnulib-tool (func_import): Fix typo in actioncmd.
75596
75597 2006-11-02  Bruno Haible  <bruno@clisp.org>
75598
75599         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
75600         newline sequence in the Makefile.am snippet as a space, like "make"
75601         does.
75602         Reported by Roger Persson <perrog@gmail.com>.
75603
75604 2006-11-01  Bruno Haible  <bruno@clisp.org>
75605
75606         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
75607         already declared in <string.h>.
75608         * lib/strcase.h (strncasecmp): Don't declare it if yes.
75609
75610 2006-11-01  Bruno Haible  <bruno@clisp.org>
75611
75612         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
75613         * lib/strcase.h: Include <string.h>.
75614         (strcasecmp): Define to rpl_strcasecmp here.
75615
75616 2006-11-01  Bruno Haible  <bruno@clisp.org>
75617
75618         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
75619
75620 2006-11-01  Eric Blake  <ebb9@byu.net>
75621
75622         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
75623
75624         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
75625
75626 2006-10-29  Bruno Haible  <bruno@clisp.org>
75627
75628         Make it compile in C++ mode.
75629         * lib/full-write.c (full_rw): Add a cast.
75630
75631 2006-11-01  Bruno Haible  <bruno@clisp.org>
75632
75633         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
75634         be POSIX compliant.
75635         Reported by Roger Persson <perrog@gmail.com>.
75636
75637 2006-11-01  Eric Blake  <ebb9@byu.net>
75638
75639         * lib/getopt_.h: Fix comments.
75640
75641 2006-10-31  Eric Blake  <ebb9@byu.net>
75642
75643         * modules/tmpdir (Depends-on): Add sys_stat.
75644         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
75645         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
75646         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
75647         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
75648         tempname.
75649
75650 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
75651
75652         Avoid some C++ diagnostics reported by Bruno Haible.
75653         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
75654         xmalloc.
75655         (quotearg_alloc): Use xcharalloc rather than xmalloc.
75656         (struct slotvec): Move to top level.
75657         (quotearg_n_options): Rewrite to avoid xmalloc.
75658         * lib/xalloc.h (xcharalloc): New function.
75659         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
75660         [defined __cplusplus]: Add function template that provides result
75661         type propagation.  This part of the change is from Bruno Haible.
75662
75663 2006-10-29  Bruno Haible  <bruno@clisp.org>
75664
75665         Make it compile in C++ mode.
75666         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
75667         * lib/strnlen1.c (strnlen1): Cast memchr result.
75668         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
75669         * lib/clean-temp.c (string_equals, string_hash): Add casts.
75670         (create_temp_dir): Rename local variable 'template'.
75671         (compile_csharp_using_sscli): Add cast.
75672         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
75673         * lib/findprog.c (find_in_path): Likewise.
75674         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
75675         * lib/wait-process.c (register_slave_subprocess): Likewise.
75676
75677 2006-10-22  Bruno Haible  <bruno@clisp.org>
75678
75679         * modules/tsearch: New file.
75680         * lib/tsearch.h: New file.
75681         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
75682         * m4/tsearch.m4: New file.
75683         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
75684
75685 2006-10-29  Eric Blake  <ebb9@byu.net>
75686
75687         * lib/arcfour.c: Assume config.h.
75688         * lib/arctwo.c: Likewise.
75689         * lib/base64.c: Likewise.
75690         * lib/check-version.c: Likewise.
75691         * lib/crc.c: Likewise.
75692         * lib/des.c: Likewise.
75693         * lib/gc-gnulib.c: Likewise.
75694         * lib/gc-libgcrypt.c: Likewise.
75695         * lib/gc-pbkdf2-sha1.c: Likewise.
75696         * lib/getaddrinfo.c: Likewise.
75697         * lib/getdelim.c: Likewise.
75698         * lib/getline.c: Likewise.
75699         * lib/hmac-md5.c: Likewise.
75700         * lib/hmac-sha1.c: Likewise.
75701         * lib/iconvme.c: Likewise.
75702         * lib/md2.c: Likewise.
75703         * lib/md4.c: Likewise.
75704         * lib/memxor.c: Likewise.
75705         * lib/read-file.c: Likewise.
75706         * lib/readline.c: Likewise.
75707         * lib/rijndael-alg-fst.c: Likewise.
75708         * lib/rijndael-api-fst.c: Likewise.
75709         * lib/xgetdomainname.c: Likewise.
75710
75711 2006-10-28  Eric Blake  <ebb9@byu.net>
75712
75713         * lib/xstrndup.c: Assume config.h.
75714
75715 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
75716
75717         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
75718         stat-macros.h is now for our own macros, whereas stat_h is for
75719         macros in the <sys/stat.h> name space.
75720         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
75721         (STAT_MACROS_H): Remove.
75722         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
75723         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
75724         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
75725         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
75726         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
75727         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
75728         Move these macros to ...
75729         * lib/stat_.h: here.  Don't include stat-macros.h.
75730         * lib/canonicalize.c: Don't include stat-macros.h.
75731         * lib/chown.c: Likewise.
75732         * lib/euidaccess.c: Likewise.
75733         * lib/file-type.c: Likewise.
75734         * lib/filemode.c: Likewise.
75735         * lib/glob.c: Likewise.
75736         * lib/isapipe.c: Likewise.
75737         * lib/lchown.c: Likewise.
75738         * lib/lstat.c: Likewise.
75739         * lib/mkdir-p.c: Likewise.
75740         * lib/rmdir.c: Likewise.
75741         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
75742         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
75743         unless mkdir isn't declared, to speed up 'configure'.
75744         Always create sys/stat.h, since it's unlikely any real sys/stat.h
75745         would define all the S_* symbols.
75746         * modules/canonicalize (Depends-on):
75747         Depend on sys_stat, not stat-macros.
75748         * modules/chown: Likewise.
75749         * modules/euidaccess: Likewise.
75750         * modules/filemode: Likewise.
75751         * modules/file-type: Likewise.
75752         * modules/glob: Likewise.
75753         * modules/isapipe: Likewise.
75754         * modules/lchown: Likewise.
75755         * modules/lstat: Likewise.
75756         * modules/mkancesdirs: Likewise.
75757         * modules/rmdir: Likewise.
75758         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
75759         * modules/modechange: Likewise.
75760         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
75761         (configure.ac): Remove gl_STAT_MACROS.
75762         * modules/sys_stat (Depends-on): Remove stat-macros.
75763
75764 2006-10-27  Bruno Haible  <bruno@clisp.org>
75765
75766         * m4/signed.m4: Remove file.
75767         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
75768         invocation.
75769         * modules/vasnprintf (Files): Remove m4/signed.m4.
75770
75771 2006-10-27  Bruno Haible  <bruno@clisp.org>
75772
75773         Update to GNU gettext 0.16.
75774         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
75775         m4/inttypes-h.m4, m4/signed.m4.
75776         * m4/gettext.m4: Update to GNU gettext 0.16.
75777         * m4/intl.m4: New file, from GNU gettext.
75778         * m4/intldir.m4: New file, from GNU gettext.
75779         * config/srclist.txt: Update
75780
75781 2006-10-27  Eric Blake  <ebb9@byu.net>
75782
75783         * MODULES.html.sh: Document tempname.
75784         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
75785         dependencies.
75786         (Files): Move lib/tempname.c...
75787         * modules/tempname: ...to this new module.
75788         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
75789         (gl_PREREQ_TEMPNAME): Move...
75790         * m4/tempname.m4: ...to this new file.
75791         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
75792         * modules/sys_stat (Depends-on): Add stat-macros.
75793         * lib/stat_.h (includes): Pick up stat macros.
75794         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
75795         if stat macros are broken.
75796         * lib/tempname.c (includes): No need to include "stat-macros.h".
75797         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
75798         (direxists, __path_search) [!_LIBC]: Don't compile these in
75799         gnulib; the tmpdir module covers that.
75800         * lib/tempname.h: New file.
75801
75802 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
75803
75804         * COPYING: Explain how gnulib-tool converts licence headers.
75805         Almost all wording by Eric Blake.
75806
75807 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
75808
75809         * lib/mbchar.h (is_basic_table): Make read-only.
75810         * lib/mbchar.c (is_basic_table): Likewise.
75811         Reported by John Darrington.
75812
75813 2006-10-25  Bruno Haible  <bruno@clisp.org>
75814
75815         * lib/progname.h (set_program_name): Undefine before defining.
75816
75817 2006-10-25  Bruno Haible  <bruno@clisp.org>
75818
75819         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
75820         false for non-gcc C++ compilers.
75821         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
75822
75823 2006-10-24  Bruno Haible  <bruno@clisp.org>
75824
75825         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
75826         iconv implementations like Irix iconv.
75827
75828 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75829
75830         * modules/vararrays: New file.
75831         * m4/vararrays.m4: New file, taken from diffutils.
75832         * MODULES.html.sh: New module vararrays.
75833
75834 2006-10-24  Karl Berry  <karl@gnu.org>
75835
75836         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
75837         Don't call GNU Unix.
75838
75839 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75840
75841         * users.txt: Add Libtool.
75842
75843         Sync from Libtool:
75844
75845         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75846
75847         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
75848         to gnulib's policy of including config.h unconditionally.
75849
75850 2006-10-24  Bruno Haible  <bruno@clisp.org>
75851
75852         * modules/wcwidth (Files): Add m4/wint_t.m4.
75853         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
75854         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
75855
75856 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75857
75858         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
75859         to pacify GCC with some -W flags enabled.  Problem reported by
75860         Bruno Haible.
75861
75862 2006-10-24  Jim Meyering  <jim@meyering.net>
75863
75864         * MODULES.html.sh: Remove uinttostr.  It's not a module.
75865         Reported by Karl Berry.
75866
75867 2006-10-23  Bruno Haible  <bruno@clisp.org>
75868
75869         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
75870
75871 2006-10-24  Bruno Haible  <bruno@clisp.org>
75872
75873         * lib/gl_list.h: Use C comment style, not C++ comment style.
75874
75875 2006-10-23  Eric Blake  <ebb9@byu.net>
75876
75877         * lib/getaddrinfo.c (includes): Add missing include.
75878
75879 2006-10-23  Bruno Haible  <bruno@clisp.org>
75880             Paul Eggert  <eggert@cs.ucla.edu>
75881
75882         Ability to rename obstack_free.
75883         * lib/obstack.h (__obstack_free): New macro. Declare instead of
75884         obstack_free.
75885         (obstack_free): Invoke the __obstack_free macro.
75886         * lib/obstack.c (obstack_free): Use __obstack_free macro.
75887
75888 2006-10-23  Bruno Haible  <bruno@clisp.org>
75889             Paul Eggert  <eggert@cs.ucla.edu>
75890
75891         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
75892         __argc, __argv from the declaration. (They are defined as macros on
75893         mingw.)
75894
75895 2006-10-22  Bruno Haible  <bruno@clisp.org>
75896
75897         * doc/gnulib-intro.texi: New file.
75898         * doc/gnulib.texi: Include it.
75899
75900 2006-10-21  Bruno Haible  <bruno@clisp.org>
75901
75902         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
75903         "Introduction", "Miscellanous Notes", "Particular Modules".
75904
75905 2006-10-21  Bruno Haible  <bruno@clisp.org>
75906
75907         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75908         Change mostlyclean-local rule to avoid sh syntax error from bash
75909         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
75910
75911 2006-10-23  Jim Meyering  <jim@meyering.net>
75912
75913         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
75914         in place of snprintf.
75915
75916         * modules/inttostr (Files): Add lib/uinttostr.c.
75917         * lib/uinttostr.c (inttostr): New file/function.
75918         * lib/inttostr.h (uinttostr): Declare.
75919         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
75920         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
75921         Add uinttostr.
75922         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
75923
75924 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
75925
75926         * lib/canonicalize.c (ELOOP): Define if not already defined.
75927         Problem reported by Bruno Haible in
75928         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
75929
75930 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
75931
75932         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
75933         Problem reported by Perry Smith and Ville Laurikari.
75934
75935         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
75936         uses.
75937
75938 2006-10-19  Bruno Haible  <bruno@clisp.org>
75939
75940         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
75941         for mingw.
75942
75943 2006-10-19  Bruno Haible  <bruno@clisp.org>
75944
75945         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
75946         Needed for mingw.
75947
75948 2006-10-19  Bruno Haible  <bruno@clisp.org>
75949
75950         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
75951
75952 2006-10-19  Bruno Haible  <bruno@clisp.org>
75953
75954         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
75955         it.
75956
75957 2006-10-19  Bruno Haible  <bruno@clisp.org>
75958
75959         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
75960         invocation.
75961
75962 2006-10-19  Bruno Haible  <bruno@clisp.org>
75963
75964         * gnulib-tool (func_create_testdir): Don't include ftruncate and
75965         mountlist by default.
75966
75967 2006-10-16  Bruno Haible  <bruno@clisp.org>
75968
75969         * lib/c-strstr.c: Include c-strstr.h.
75970
75971 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
75972
75973         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
75974         in a slash.
75975
75976 2006-10-18  Bruno Haible  <bruno@clisp.org>
75977
75978         * lib/lock.h [C++]: Wrap definitions in extern "C".
75979
75980 2006-10-18  Bruno Haible  <bruno@clisp.org>
75981
75982         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
75983         gl_LIBOBJS list.
75984
75985 2006-10-18  Bruno Haible  <bruno@clisp.org>
75986
75987         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
75988
75989 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
75990
75991         * lib/xstrtol.h: Include gettext.h.
75992         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
75993         Problem reported by Eric Blake.
75994         * modules/xstrtol (Depends-on): Add gettext-h.
75995
75996 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
75997
75998         * lib/strftime.c (advance): New macro.
75999         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
76000         incomplete type, so you can't add 0 to it.  Problem and patch
76001         reported by Eelco Dolstra for dietlibc.
76002
76003 2006-10-18  Jim Meyering  <jim@meyering.net>
76004
76005         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
76006         type for a local, and rename it: s/up/user_proc/.
76007
76008 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
76009
76010         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
76011         READ_UTMP_USER_PROCESS.
76012         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
76013
76014 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
76015
76016         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
76017         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
76018
76019 2006-10-17  Eric Blake  <ebb9@byu.net>
76020
76021         * lib/sigprocmask.c (sigprocmask): Fix typo.
76022
76023         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
76024
76025         * modules/clean-temp (Makefile.am): Don't add to make output...
76026         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
76027         config.h.
76028
76029 2006-10-17  Bruno Haible  <bruno@clisp.org>
76030
76031         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
76032         differently if DEFAULT_TEXT_DOMAIN is set.
76033
76034 2006-10-16  Bruno Haible  <bruno@clisp.org>
76035
76036         * lib/clean-temp.c: Include fwriteerror.h.
76037
76038 2006-10-16  Bruno Haible  <bruno@clisp.org>
76039
76040         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
76041
76042 2006-10-16  Bruno Haible  <bruno@clisp.org>
76043
76044         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
76045         * lib/sigprocmask.h: Include <sys/types.h>.
76046         (sigset_t): Use the system's definition if present.
76047
76048 2006-10-17  Eric Blake  <ebb9@byu.net>
76049
76050         * lib/xvasprintf.c (includes): Assume config.h.
76051         * lib/xasprintf.c (includes): Likewise.
76052
76053 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
76054
76055         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
76056         at least as wide as intmax_t.
76057
76058 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
76059
76060         (Imported from Automake.)
76061         * build-aux/gnupload: Update to version 1.1 of directive file.
76062
76063 2006-10-16  Eric Blake  <ebb9@byu.net>
76064
76065         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
76066         match Automake 1.10a.
76067
76068 2006-10-14  Bruno Haible  <bruno@clisp.org>
76069
76070         * modules/sigprocmask: New file.
76071         * lib/sigprocmask.h: New file.
76072         * lib/sigprocmask.c: New file.
76073         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
76074         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
76075         request sigprocmask.o.
76076         (gl_PREREQ_SIGPROCMASK): New macro.
76077         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
76078         (Depends-on): Add sigprocmask.
76079         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
76080         gt_SIGNALBLOCKING. Test for 'raise' only once.
76081         * lib/fatal-signal.c: Include sigprocmask.h.
76082         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
76083         unblock_fatal_signals): Define always.
76084         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76085         sigprocmask.
76086
76087 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
76088
76089         Sync from Automake.
76090         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
76091         which incorrectly sets the mode of an existing destination
76092         directory.  In some cases the unpatched install-sh could do the
76093         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
76094         system.  We hope this is rare in practice, but it's clearly worth
76095         fixing.  Problem reported by Alex Unleashed in
76096         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
76097         Also, don't bother to check for -m bugs unless we're using -m;
76098         suggested by Stepan Kasal.
76099
76100 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76101
76102         Sync from Automake.
76103         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
76104         `-c' flag, so they appear at the same position as in %FASTDEP%
76105         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
76106         which ignores unknown options only after the first non-option.
76107         Bug report against M4 by Nelson H. F. Beebe.
76108
76109 2006-10-13  Jim Meyering  <jim@meyering.net>
76110
76111         Fix a bug in yesterday's change.
76112         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
76113         p->fts_statp->st_dev would be used uninitialized.
76114         Ensures that we always call fts_stat on the very first entry.
76115         Miklos Szeredi reported that find -xdev stopped working.
76116
76117 2006-10-12  Bruno Haible  <bruno@clisp.org>
76118
76119         * gnulib-tool (func_get_automake_snippet): Append an automatically
76120         computed EXTRA_DIST augmentation.
76121         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
76122         * modules/alloca-opt (Makefile.am): Likewise.
76123         * modules/allocsa (Makefile.am): Likewise.
76124         * modules/arcfour (Makefile.am): Likewise.
76125         * modules/arctwo (Makefile.am): Likewise.
76126         * modules/argmatch (Makefile.am): Likewise.
76127         * modules/argz (Makefile.am): Likewise.
76128         * modules/atexit (Makefile.am): Likewise.
76129         * modules/backupfile (Makefile.am): Likewise.
76130         * modules/byteswap (Makefile.am): Likewise.
76131         * modules/c-strtod (Makefile.am): Likewise.
76132         * modules/c-strtold (Makefile.am): Likewise.
76133         * modules/calloc (Makefile.am): Likewise.
76134         * modules/canon-host (Makefile.am): Likewise.
76135         * modules/canonicalize (Makefile.am): Likewise.
76136         * modules/chdir-long (Makefile.am): Likewise.
76137         * modules/chdir-safer (Makefile.am): Likewise.
76138         * modules/check-version (Makefile.am): Likewise.
76139         * modules/chown (Makefile.am): Likewise.
76140         * modules/cloexec (Makefile.am): Likewise.
76141         * modules/close-stream (Makefile.am): Likewise.
76142         * modules/closeout (Makefile.am): Likewise.
76143         * modules/crc (Makefile.am): Likewise.
76144         * modules/csharpexec (Makefile.am): Likewise.
76145         * modules/cycle-check (Makefile.am): Likewise.
76146         * modules/des (Makefile.am): Likewise.
76147         * modules/dev-ino (Makefile.am): Likewise.
76148         * modules/dirfd (Makefile.am): Likewise.
76149         * modules/dirname (Makefile.am): Likewise.
76150         * modules/dup2 (Makefile.am): Likewise.
76151         * modules/eealloc (Makefile.am): Likewise.
76152         * modules/error (Makefile.am): Likewise.
76153         * modules/euidaccess (Makefile.am): Likewise.
76154         * modules/exclude (Makefile.am): Likewise.
76155         * modules/exitfail (Makefile.am): Likewise.
76156         * modules/fcntl-safer (Makefile.am): Likewise.
76157         * modules/fcntl (Makefile.am): Likewise.
76158         * modules/file-type (Makefile.am): Likewise.
76159         * modules/fileblocks (Makefile.am): Likewise.
76160         * modules/filemode (Makefile.am): Likewise.
76161         * modules/filenamecat (Makefile.am): Likewise.
76162         * modules/fnmatch (Makefile.am): Likewise.
76163         * modules/fopen-safer (Makefile.am): Likewise.
76164         * modules/fpending (Makefile.am): Likewise.
76165         * modules/fprintftime (Makefile.am): Likewise.
76166         * modules/free (Makefile.am): Likewise.
76167         * modules/fsusage (Makefile.am): Likewise.
76168         * modules/ftruncate (Makefile.am): Likewise.
76169         * modules/fts (Makefile.am): Likewise.
76170         * modules/gc-arcfour (Makefile.am): Likewise.
76171         * modules/gc-des (Makefile.am): Likewise.
76172         * modules/gc-hmac-md5 (Makefile.am): Likewise.
76173         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
76174         * modules/gc-md4 (Makefile.am): Likewise.
76175         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
76176         * modules/gc-sha1 (Makefile.am): Likewise.
76177         * modules/gc (Makefile.am): Likewise.
76178         * modules/getaddrinfo (Makefile.am): Likewise.
76179         * modules/getcwd (Makefile.am): Likewise.
76180         * modules/getdelim (Makefile.am): Likewise.
76181         * modules/getdomainname (Makefile.am): Likewise.
76182         * modules/getgroups (Makefile.am): Likewise.
76183         * modules/gethostname (Makefile.am): Likewise.
76184         * modules/gethrxtime (Makefile.am): Likewise.
76185         * modules/getline (Makefile.am): Likewise.
76186         * modules/getloadavg (Makefile.am): Likewise.
76187         * modules/getlogin_r (Makefile.am): Likewise.
76188         * modules/getndelim2 (Makefile.am): Likewise.
76189         * modules/getopt (Makefile.am): Likewise.
76190         * modules/getpagesize (Makefile.am): Likewise.
76191         * modules/getpass-gnu (Makefile.am): Likewise.
76192         * modules/getpass (Makefile.am): Likewise.
76193         * modules/getsubopt (Makefile.am): Likewise.
76194         * modules/gettime (Makefile.am): Likewise.
76195         * modules/gettimeofday (Makefile.am): Likewise.
76196         * modules/getugroups (Makefile.am): Likewise.
76197         * modules/getusershell (Makefile.am): Likewise.
76198         * modules/glob (Makefile.am): Likewise.
76199         * modules/group-member (Makefile.am): Likewise.
76200         * modules/hard-locale (Makefile.am): Likewise.
76201         * modules/hash (Makefile.am): Likewise.
76202         * modules/hmac-md5 (Makefile.am): Likewise.
76203         * modules/hmac-sha1 (Makefile.am): Likewise.
76204         * modules/human (Makefile.am): Likewise.
76205         * modules/idcache (Makefile.am): Likewise.
76206         * modules/imaxabs (Makefile.am): Likewise.
76207         * modules/imaxdiv (Makefile.am): Likewise.
76208         * modules/inet_ntop (Makefile.am): Likewise.
76209         * modules/inet_pton (Makefile.am): Likewise.
76210         * modules/intprops (Makefile.am): Likewise.
76211         * modules/inttostr (Makefile.am): Likewise.
76212         * modules/inttypes (Makefile.am): Likewise.
76213         * modules/isapipe (Makefile.am): Likewise.
76214         * modules/javaversion (Makefile.am): Likewise.
76215         * modules/lchmod (Makefile.am): Likewise.
76216         * modules/lchown (Makefile.am): Likewise.
76217         * modules/localcharset (Makefile.am): Likewise.
76218         * modules/long-options (Makefile.am): Likewise.
76219         * modules/lstat (Makefile.am): Likewise.
76220         * modules/malloc (Makefile.am): Likewise.
76221         * modules/mathl (Makefile.am): Likewise.
76222         * modules/mbchar (Makefile.am): Likewise.
76223         * modules/md2 (Makefile.am): Likewise.
76224         * modules/md4 (Makefile.am): Likewise.
76225         * modules/md5 (Makefile.am): Likewise.
76226         * modules/memcasecmp (Makefile.am): Likewise.
76227         * modules/memchr (Makefile.am): Likewise.
76228         * modules/memcmp (Makefile.am): Likewise.
76229         * modules/memcoll (Makefile.am): Likewise.
76230         * modules/memcpy (Makefile.am): Likewise.
76231         * modules/memmem (Makefile.am): Likewise.
76232         * modules/memmove (Makefile.am): Likewise.
76233         * modules/mempcpy (Makefile.am): Likewise.
76234         * modules/memrchr (Makefile.am): Likewise.
76235         * modules/memset (Makefile.am): Likewise.
76236         * modules/memxor (Makefile.am): Likewise.
76237         * modules/mkancesdirs (Makefile.am): Likewise.
76238         * modules/mkdir-p (Makefile.am): Likewise.
76239         * modules/mkdir (Makefile.am): Likewise.
76240         * modules/mkdtemp (Makefile.am): Likewise.
76241         * modules/mkstemp (Makefile.am): Likewise.
76242         * modules/mktime (Makefile.am): Likewise.
76243         * modules/modechange (Makefile.am): Likewise.
76244         * modules/mountlist (Makefile.am): Likewise.
76245         * modules/nanosleep (Makefile.am): Likewise.
76246         * modules/obstack (Makefile.am): Likewise.
76247         * modules/openat (Makefile.am): Likewise.
76248         * modules/pagealign_alloc (Makefile.am): Likewise.
76249         * modules/pathmax (Makefile.am): Likewise.
76250         * modules/physmem (Makefile.am): Likewise.
76251         * modules/poll (Makefile.am): Likewise.
76252         * modules/posixtm (Makefile.am): Likewise.
76253         * modules/posixver (Makefile.am): Likewise.
76254         * modules/putenv (Makefile.am): Likewise.
76255         * modules/quote (Makefile.am): Likewise.
76256         * modules/quotearg (Makefile.am): Likewise.
76257         * modules/raise (Makefile.am): Likewise.
76258         * modules/read-file (Makefile.am): Likewise.
76259         * modules/readline (Makefile.am): Likewise.
76260         * modules/readlink (Makefile.am): Likewise.
76261         * modules/readtokens (Makefile.am): Likewise.
76262         * modules/readutmp (Makefile.am): Likewise.
76263         * modules/realloc (Makefile.am): Likewise.
76264         * modules/regex (Makefile.am): Likewise.
76265         * modules/rename-dest-slash (Makefile.am): Likewise.
76266         * modules/rename (Makefile.am): Likewise.
76267         * modules/rijndael (Makefile.am): Likewise.
76268         * modules/rmdir (Makefile.am): Likewise.
76269         * modules/rpmatch (Makefile.am): Likewise.
76270         * modules/safe-read (Makefile.am): Likewise.
76271         * modules/safe-write (Makefile.am): Likewise.
76272         * modules/same-inode (Makefile.am): Likewise.
76273         * modules/same (Makefile.am): Likewise.
76274         * modules/save-cwd (Makefile.am): Likewise.
76275         * modules/savedir (Makefile.am): Likewise.
76276         * modules/setenv (Makefile.am): Likewise.
76277         * modules/settime (Makefile.am): Likewise.
76278         * modules/sha1 (Makefile.am): Likewise.
76279         * modules/sig2str (Makefile.am): Likewise.
76280         * modules/snprintf (Makefile.am): Likewise.
76281         * modules/stat-macros (Makefile.am): Likewise.
76282         * modules/stat-time (Makefile.am): Likewise.
76283         * modules/stdbool (Makefile.am): Likewise.
76284         * modules/stdint (Makefile.am): Likewise.
76285         * modules/stdlib-safer (Makefile.am): Likewise.
76286         * modules/stpcpy (Makefile.am): Likewise.
76287         * modules/stpncpy (Makefile.am): Likewise.
76288         * modules/strcase (Makefile.am): Likewise.
76289         * modules/strcasestr (Makefile.am): Likewise.
76290         * modules/strchrnul (Makefile.am): Likewise.
76291         * modules/strcspn (Makefile.am): Likewise.
76292         * modules/strdup (Makefile.am): Likewise.
76293         * modules/strerror (Makefile.am): Likewise.
76294         * modules/strftime (Makefile.am): Likewise.
76295         * modules/strndup (Makefile.am): Likewise.
76296         * modules/strnlen (Makefile.am): Likewise.
76297         * modules/strpbrk (Makefile.am): Likewise.
76298         * modules/strsep (Makefile.am): Likewise.
76299         * modules/strstr (Makefile.am): Likewise.
76300         * modules/strtod (Makefile.am): Likewise.
76301         * modules/strtoimax (Makefile.am): Likewise.
76302         * modules/strtok_r (Makefile.am): Likewise.
76303         * modules/strtol (Makefile.am): Likewise.
76304         * modules/strtoll (Makefile.am): Likewise.
76305         * modules/strtoul (Makefile.am): Likewise.
76306         * modules/strtoull (Makefile.am): Likewise.
76307         * modules/strtoumax (Makefile.am): Likewise.
76308         * modules/strverscmp (Makefile.am): Likewise.
76309         * modules/sys_socket (Makefile.am): Likewise.
76310         * modules/sys_stat (Makefile.am): Likewise.
76311         * modules/sysexits (Makefile.am): Likewise.
76312         * modules/time_r (Makefile.am): Likewise.
76313         * modules/timegm (Makefile.am): Likewise.
76314         * modules/timespec (Makefile.am): Likewise.
76315         * modules/tmpfile-safer (Makefile.am): Likewise.
76316         * modules/trim (Makefile.am): Likewise.
76317         * modules/unistd-safer (Makefile.am): Likewise.
76318         * modules/unlinkdir (Makefile.am): Likewise.
76319         * modules/unlocked-io (Makefile.am): Likewise.
76320         * modules/userspec (Makefile.am): Likewise.
76321         * modules/utime (Makefile.am): Likewise.
76322         * modules/utimecmp (Makefile.am): Likewise.
76323         * modules/utimens (Makefile.am): Likewise.
76324         * modules/vasnprintf (Makefile.am): Likewise.
76325         * modules/vasprintf (Makefile.am): Likewise.
76326         * modules/vsnprintf (Makefile.am): Likewise.
76327         * modules/xalloc (Makefile.am): Likewise.
76328         * modules/xgetcwd (Makefile.am): Likewise.
76329         * modules/xnanosleep (Makefile.am): Likewise.
76330         * modules/xreadlink (Makefile.am): Likewise.
76331         * modules/xstrtod (Makefile.am): Likewise.
76332         * modules/xstrtol (Makefile.am): Likewise.
76333         * modules/xstrtold (Makefile.am): Likewise.
76334         * modules/yesno (Makefile.am): Likewise.
76335         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
76336
76337 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
76338
76339         * modules/error (Makefile.am): Distribute files through
76340         EXTRA_DIST, not lib_SOURCES.
76341
76342 2006-10-12  Eric Blake  <ebb9@byu.net>
76343
76344         * modules/error (Makefile.am): Distribute files in /lib.
76345         * modules/obstack (Makefile.am): Likewise.
76346
76347 2006-10-12  Bruno Haible  <bruno@clisp.org>
76348
76349         * modules/acl (Makefile.am): Distribute all files in lib/ through
76350         EXTRA_DIST.
76351         * modules/arcfour (Makefile.am): Likewise.
76352         * modules/arctwo (Makefile.am): Likewise.
76353         * modules/argmatch (Makefile.am): Likewise.
76354         * modules/argz (Makefile.am): Likewise.
76355         * modules/atexit (Makefile.am): Likewise.
76356         * modules/backupfile (Makefile.am): Likewise.
76357         * modules/c-strtod (Makefile.am): Likewise.
76358         * modules/c-strtold (Makefile.am): Likewise.
76359         * modules/calloc (Makefile.am): Likewise.
76360         * modules/canon-host (Makefile.am): Likewise.
76361         * modules/canonicalize (Makefile.am): Likewise.
76362         * modules/chdir-long (Makefile.am): Likewise.
76363         * modules/chdir-safer (Makefile.am): Likewise.
76364         * modules/check-version (Makefile.am): Likewise.
76365         * modules/chown (Makefile.am): Likewise.
76366         * modules/cloexec (Makefile.am): Likewise.
76367         * modules/close-stream (Makefile.am): Likewise.
76368         * modules/closeout (Makefile.am): Likewise.
76369         * modules/crc (Makefile.am): Likewise.
76370         * modules/cycle-check (Makefile.am): Likewise.
76371         * modules/des (Makefile.am): Likewise.
76372         * modules/dirfd (Makefile.am): Likewise.
76373         * modules/dirname (Makefile.am): Likewise.
76374         * modules/dup2 (Makefile.am): Likewise.
76375         * modules/euidaccess (Makefile.am): Likewise.
76376         * modules/exclude (Makefile.am): Likewise.
76377         * modules/exitfail (Makefile.am): Likewise.
76378         * modules/fcntl-safer (Makefile.am): Likewise.
76379         * modules/file-type (Makefile.am): Likewise.
76380         * modules/fileblocks (Makefile.am): Likewise.
76381         * modules/filemode (Makefile.am): Likewise.
76382         * modules/filenamecat (Makefile.am): Likewise.
76383         * modules/fnmatch (Makefile.am): Likewise.
76384         * modules/fopen-safer (Makefile.am): Likewise.
76385         * modules/fpending (Makefile.am): Likewise.
76386         * modules/fprintftime (Makefile.am): Likewise.
76387         * modules/free (Makefile.am): Likewise.
76388         * modules/fsusage (Makefile.am): Likewise.
76389         * modules/ftruncate (Makefile.am): Likewise.
76390         * modules/fts (Makefile.am): Likewise.
76391         * modules/gc (Makefile.am): Likewise.
76392         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
76393         * modules/getaddrinfo (Makefile.am): Likewise.
76394         * modules/getcwd (Makefile.am): Likewise.
76395         * modules/getdelim (Makefile.am): Likewise.
76396         * modules/getdomainname (Makefile.am): Likewise.
76397         * modules/getgroups (Makefile.am): Likewise.
76398         * modules/gethostname (Makefile.am): Likewise.
76399         * modules/gethrxtime (Makefile.am): Likewise.
76400         * modules/getline (Makefile.am): Likewise.
76401         * modules/getloadavg (Makefile.am): Likewise.
76402         * modules/getlogin_r (Makefile.am): Likewise.
76403         * modules/getopt (Makefile.am): Likewise.
76404         * modules/getpass (Makefile.am): Likewise.
76405         * modules/getpass-gnu (Makefile.am): Likewise.
76406         * modules/getsubopt (Makefile.am): Likewise.
76407         * modules/gettime (Makefile.am): Likewise.
76408         * modules/gettimeofday (Makefile.am): Likewise.
76409         * modules/getugroups (Makefile.am): Likewise.
76410         * modules/getusershell (Makefile.am): Likewise.
76411         * modules/glob (Makefile.am): Likewise.
76412         * modules/group-member (Makefile.am): Likewise.
76413         * modules/hard-locale (Makefile.am): Likewise.
76414         * modules/hash (Makefile.am): Likewise.
76415         * modules/hmac-md5 (Makefile.am): Likewise.
76416         * modules/hmac-sha1 (Makefile.am): Likewise.
76417         * modules/human (Makefile.am): Likewise.
76418         * modules/idcache (Makefile.am): Likewise.
76419         * modules/imaxabs (Makefile.am): Likewise.
76420         * modules/imaxdiv (Makefile.am): Likewise.
76421         * modules/inet_ntop (Makefile.am): Likewise.
76422         * modules/inet_pton (Makefile.am): Likewise.
76423         * modules/inttostr (Makefile.am): Likewise.
76424         * modules/isapipe (Makefile.am): Likewise.
76425         * modules/lchown (Makefile.am): Likewise.
76426         * modules/long-options (Makefile.am): Likewise.
76427         * modules/lstat (Makefile.am): Likewise.
76428         * modules/malloc (Makefile.am): Likewise.
76429         * modules/mathl (Makefile.am): Likewise.
76430         * modules/mbchar (Makefile.am): Likewise.
76431         * modules/md2 (Makefile.am): Likewise.
76432         * modules/md4 (Makefile.am): Likewise.
76433         * modules/md5 (Makefile.am): Likewise.
76434         * modules/memcasecmp (Makefile.am): Likewise.
76435         * modules/memchr (Makefile.am): Likewise.
76436         * modules/memcmp (Makefile.am): Likewise.
76437         * modules/memcoll (Makefile.am): Likewise.
76438         * modules/memcpy (Makefile.am): Likewise.
76439         * modules/memmem (Makefile.am): Likewise.
76440         * modules/memmove (Makefile.am): Likewise.
76441         * modules/mempcpy (Makefile.am): Likewise.
76442         * modules/memrchr (Makefile.am): Likewise.
76443         * modules/memset (Makefile.am): Likewise.
76444         * modules/memxor (Makefile.am): Likewise.
76445         * modules/mkancesdirs (Makefile.am): Likewise.
76446         * modules/mkdir (Makefile.am): Likewise.
76447         * modules/mkdir-p (Makefile.am): Likewise.
76448         * modules/mkdtemp (Makefile.am): Likewise.
76449         * modules/mkstemp (Makefile.am): Likewise.
76450         * modules/mktime (Makefile.am): Likewise.
76451         * modules/modechange (Makefile.am): Likewise.
76452         * modules/mountlist (Makefile.am): Likewise.
76453         * modules/nanosleep (Makefile.am): Likewise.
76454         * modules/openat (Makefile.am): Likewise.
76455         * modules/pagealign_alloc (Makefile.am): Likewise.
76456         * modules/physmem (Makefile.am): Likewise.
76457         * modules/poll (Makefile.am): Likewise.
76458         * modules/posixtm (Makefile.am): Likewise.
76459         * modules/posixver (Makefile.am): Likewise.
76460         * modules/putenv (Makefile.am): Likewise.
76461         * modules/quote (Makefile.am): Likewise.
76462         * modules/quotearg (Makefile.am): Likewise.
76463         * modules/raise (Makefile.am): Likewise.
76464         * modules/read-file (Makefile.am): Likewise.
76465         * modules/readline (Makefile.am): Likewise.
76466         * modules/readlink (Makefile.am): Likewise.
76467         * modules/readtokens (Makefile.am): Likewise.
76468         * modules/readutmp (Makefile.am): Likewise.
76469         * modules/realloc (Makefile.am): Likewise.
76470         * modules/regex (Makefile.am): Likewise.
76471         * modules/rename (Makefile.am): Likewise.
76472         * modules/rename-dest-slash (Makefile.am): Likewise.
76473         * modules/rijndael (Makefile.am): Likewise.
76474         * modules/rmdir (Makefile.am): Likewise.
76475         * modules/rpmatch (Makefile.am): Likewise.
76476         * modules/safe-read (Makefile.am): Likewise.
76477         * modules/safe-write (Makefile.am): Likewise.
76478         * modules/same (Makefile.am): Likewise.
76479         * modules/save-cwd (Makefile.am): Likewise.
76480         * modules/savedir (Makefile.am): Likewise.
76481         * modules/setenv (Makefile.am): Likewise.
76482         * modules/settime (Makefile.am): Likewise.
76483         * modules/sha1 (Makefile.am): Likewise.
76484         * modules/sig2str (Makefile.am): Likewise.
76485         * modules/snprintf (Makefile.am): Likewise.
76486         * modules/stdlib-safer (Makefile.am): Likewise.
76487         * modules/stpcpy (Makefile.am): Likewise.
76488         * modules/stpncpy (Makefile.am): Likewise.
76489         * modules/strcase (Makefile.am): Likewise.
76490         * modules/strcasestr (Makefile.am): Likewise.
76491         * modules/strchrnul (Makefile.am): Likewise.
76492         * modules/strcspn (Makefile.am): Likewise.
76493         * modules/strdup (Makefile.am): Likewise.
76494         * modules/strerror (Makefile.am): Likewise.
76495         * modules/strftime (Makefile.am): Likewise.
76496         * modules/strndup (Makefile.am): Likewise.
76497         * modules/strnlen (Makefile.am): Likewise.
76498         * modules/strpbrk (Makefile.am): Likewise.
76499         * modules/strsep (Makefile.am): Likewise.
76500         * modules/strstr (Makefile.am): Likewise.
76501         * modules/strtod (Makefile.am): Likewise.
76502         * modules/strtoimax (Makefile.am): Likewise.
76503         * modules/strtok_r (Makefile.am): Likewise.
76504         * modules/strtol (Makefile.am): Likewise.
76505         * modules/strtoll (Makefile.am): Likewise.
76506         * modules/strtoul (Makefile.am): Likewise.
76507         * modules/strtoull (Makefile.am): Likewise.
76508         * modules/strtoumax (Makefile.am): Likewise.
76509         * modules/strverscmp (Makefile.am): Likewise.
76510         * modules/time_r (Makefile.am): Likewise.
76511         * modules/timegm (Makefile.am): Likewise.
76512         * modules/tmpfile-safer (Makefile.am): Likewise.
76513         * modules/unistd-safer (Makefile.am): Likewise.
76514         * modules/unlinkdir (Makefile.am): Likewise.
76515         * modules/userspec (Makefile.am): Likewise.
76516         * modules/utime (Makefile.am): Likewise.
76517         * modules/utimecmp (Makefile.am): Likewise.
76518         * modules/utimens (Makefile.am): Likewise.
76519         * modules/vasnprintf (Makefile.am): Likewise.
76520         * modules/vasprintf (Makefile.am): Likewise.
76521         * modules/vsnprintf (Makefile.am): Likewise.
76522         * modules/xalloc (Makefile.am): Likewise.
76523         * modules/xgetcwd (Makefile.am): Likewise.
76524         * modules/xnanosleep (Makefile.am): Likewise.
76525         * modules/xreadlink (Makefile.am): Likewise.
76526         * modules/xstrtod (Makefile.am): Likewise.
76527         * modules/xstrtol (Makefile.am): Likewise.
76528         * modules/xstrtold (Makefile.am): Likewise.
76529         * modules/yesno (Makefile.am): Likewise.
76530
76531 2006-10-12  Jim Meyering  <jim@meyering.net>
76532
76533         * m4/getloadavg.m4: Revert the change below.
76534
76535         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
76536         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
76537         fail with a symlink, which is what coreutils' ./bootstrap now
76538         creates by default.
76539
76540 2006-10-12  Bruno Haible  <bruno@clisp.org>
76541
76542         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
76543         mingw.
76544         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
76545         MSVC and mingw explicitly.
76546
76547 2006-10-11  Simon Josefsson  <jas@extundo.com>
76548             Bruno Haible  <bruno@clisp.org>
76549
76550         Add support for multiple gnulib-tool invocations in the scope of a
76551         single configure.ac file.
76552         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
76553         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
76554         with the same contents as the _LIBADD variable.
76555         (func_emit_initmacro_start, func_emit_initmacro_end,
76556         func_emit_initmacro_done): New functions.
76557         (func_import, func_create_testdir): Invoke them. Allow the identifiers
76558         gl_LIBOBJS and gl_LTLIBOBJS.
76559
76560 2006-10-11  Bruno Haible  <bruno@clisp.org>
76561
76562         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
76563         (func_create_testdir): Don't create po/Makefile.am, don't invoke
76564         autoreconf. Instead, invoke autopoint explicitly but move back the
76565         *.m4 files from gnulib.
76566
76567 2006-10-11  Bruno Haible  <bruno@clisp.org>
76568
76569         * gnulib-tool (func_usage): Make module names after --create-testdir
76570         optional.
76571         (func_create_testdir): If no module was specified, use nearly all
76572         modules.
76573
76574 2006-10-12  Jim Meyering  <jim@meyering.net>
76575
76576         Big performance improvement for fts-based tools that use FTS_NOSTAT.
76577         Avoid spurious inode-mismatch problems on non-POSIX file systems.
76578         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
76579         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
76580         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
76581         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
76582         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
76583         (fts_set_stat_required): New function.
76584         (fts_open): Defer the calls to fts_stat, if possible or requested.
76585         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
76586         into fts_stat itself.
76587         (fts_read): Perform any required (deferred) fts_stat call.
76588         (fts_build): Likewise, for the directory we're about to open and read.
76589         In the readdir loop, carefully decide whether each entry will require
76590         an eventual call to fts_stat, using dirent.d_type info if available.
76591         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
76592         a command line argument into this function.  Update all callers.
76593         Map a return value of FTS_DOT to FTS_D for a command line argument.
76594         * modules/fts (Depends-on): Add d-type.  Alphabetize.
76595         Thanks to Miklos Szeredi for his tenacity and for the initial
76596         bug report about "find" failing on a FUSE-based file system.
76597
76598         * lib/fts.c (fts_open): Use consistent indentation.
76599
76600 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
76601
76602         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
76603         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
76604         reported by Jim Meyering.  All uses of cache variables renamed
76605         to match Autoconf's.
76606         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
76607         the other one.
76608
76609         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
76610         Fix misspelling in diagnostic.
76611
76612 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
76613
76614         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
76615         defined.  Problem reported by Matthew Woehlke.
76616
76617         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
76618         Add support for Tandem NonStop R series.
76619         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
76620         Use new macro.
76621
76622         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
76623         (has_trailing_slash): Omit size arg; all callers changed.
76624         Omit 'inline', since it doesn't help performance and we'd
76625         need to configure it.
76626         Don't count //, ///, etc. as having a trailing slash.
76627         As a side effect, this removes a C99ism reported by Matthew Woehlke.
76628         (rpl_rename_dest_slash): On failure, use rename's errno rather
76629         than (in some cases) an incorrect or junk errno.
76630         Simplify code by removing need to compute length; this does
76631         cause it to make two passes instead of one over the file name,
76632         but it's worth it.
76633
76634         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
76635         change, since Autoconf's version may no longer be appropriate now
76636         that we are using CVS Autoconf's version.  Add support for Tandem.
76637
76638 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
76639             Bruno Haible  <bruno@clisp.org>
76640
76641         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
76642         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
76643         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
76644         gl_AC_TYPE_LONG_LONG.
76645
76646         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
76647         instead of HAVE_LONG_LONG.
76648         * lib/printf-args.c (printf_fetchargs): Likewise.
76649         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
76650         * lib/vasnprintf.c (VASNPRINTF): Likewise.
76651         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
76652         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
76653         gl_AC_TYPE_LONG_LONG.
76654
76655 2006-10-11  Bruno Haible  <bruno@clisp.org>
76656
76657         * m4/longlong.m4: Add comments.
76658         * m4/ulonglong.m4: Likewise.
76659
76660 2006-10-10  Bruno Haible  <bruno@clisp.org>
76661
76662         Make it possible to #define stpcpy, strdup to aliases.
76663         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
76664         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
76665
76666 2006-10-10  Bruno Haible  <bruno@clisp.org>
76667
76668         Make it possible to #define gcd to an alias.
76669         * lib/gcd.c: Include config.h.
76670
76671 2006-10-10  Bruno Haible  <bruno@clisp.org>
76672
76673         Make it possible to #define c_isascii to an alias.
76674         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
76675         defined. Undefine the macros before defining them, to avoid gcc
76676         warnings.
76677         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
76678         define NO_C_CTYPE_MACROS early.
76679
76680 2006-10-10  Bruno Haible  <bruno@clisp.org>
76681
76682         Make it possible to #define set_program_name to an alias.
76683         * lib/progname.c: Don't undefine set_program_name; instead, undefine
76684         ENABLE_RELOCATABLE early.
76685
76686 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
76687
76688         Port to Tandem NSK OSS, which has 64-bit signed int but at most
76689         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
76690         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
76691         More generally, don't assume that 64-bit signed int is available
76692         if unsigned int is, and vice versa.
76693         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
76694         unsigned symbols, not on their signed counterparts.
76695         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
76696         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
76697         (UINT64_C, UINTMAX_C):
76698         Likewise.
76699         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
76700         unsigned counterparts.
76701         (Have_long_long, Unsigned): New macros.
76702         (Int): Renamed from INT.
76703         (strtoimax): Use the new macros.
76704         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
76705         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
76706         * modules/inttypes (inttypes.h): Substitute
76707         HAVE_UNSIGNED_LONG_LONG_INT.
76708         * modules/stdint (stdint.h): Likewise.
76709         (Files): Add m4/ulonglong.m4.
76710
76711 2006-10-10  Bruno Haible  <bruno@clisp.org>
76712
76713         Fix a gcc -Wshadow warning.
76714         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
76715         to 'bucket'.
76716         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
76717         gl_linked_indexof_from_to): Likewise.
76718         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
76719         Likewise.
76720         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
76721         Likewise.
76722         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
76723         Reported by Eric Blake.
76724
76725 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
76726
76727         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
76728         for NetBSD.  Problem reported by Bruno Haible.
76729
76730 2006-10-09  Jim Meyering  <jim@meyering.net>
76731
76732         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
76733         Patch from Bruno Haible.
76734
76735 2006-10-09  Jim Meyering  <jim@meyering.net>
76736
76737         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
76738         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
76739         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
76740
76741 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
76742
76743         Don't include <config.h> twice; this doesn't work in some cases,
76744         e.g., when config.h has "#define intmax_t long long int" and
76745         we include <config.h>, <inttypes.h>, <config.h> in that order.
76746         Problem reported by Matthew Woehlke in:
76747         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
76748         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
76749         * lib/fts-cycle.c: Don't include config.h.
76750         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
76751         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
76752         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
76753         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
76754         inttypes.h.
76755         * lib/xstrtoumax.c: Likewise.
76756         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
76757         __strtol and the like, so that this module is more like its siblings.
76758         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
76759         Remove; no longer needed now that we assume gnulib inttypes.h.
76760
76761 2006-10-08  Bruno Haible  <bruno@clisp.org>
76762
76763         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
76764         option.
76765
76766 2006-10-07  Jim Meyering  <jim@meyering.net>
76767
76768         * modules/inttypes (inttypes.h): Revert what seems to have been
76769         an inadvertent part of today's change: use "|", not "/" in the
76770         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
76771
76772 2006-10-07  Bruno Haible  <bruno@clisp.org>
76773
76774         * modules/sublist: New file.
76775
76776 2006-10-07  Bruno Haible  <bruno@clisp.org>
76777
76778         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
76779         * modules/argz (argz.h): Likewise.
76780         * modules/arpa_inet (arpa/inet.h): Likewise.
76781         * modules/byteswap (byteswap.h): Likewise.
76782         * modules/configmake (configmake.h): Likewise.
76783         * modules/fcntl (fcntl.h): Likewise.
76784         * modules/fnmatch (fnmatch.h): Likewise.
76785         * modules/getopt (getopt.h): Likewise.
76786         * modules/glob (glob.h): Likewise.
76787         * modules/inttypes (inttypes.h): Likewise.
76788         * modules/netinet_in (netinet/in.h): Likewise.
76789         * modules/poll (poll.h): Likewise.
76790         * modules/stdbool (stdbool.h): Likewise.
76791         * modules/stdint (stdint.h): Likewise.
76792         * modules/sys_select (sys/select.h): Likewise.
76793         * modules/sys_socket (sys/socket.h): Likewise.
76794         * modules/sys_stat (sys/stat.h): Likewise.
76795         * modules/sysexits (sysexits.h): Likewise.
76796         * modules/unistd (unistd.h): Likewise.
76797         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76798         Add a "DO NOT EDIT" comment to the generated file.
76799         (func_import): Likewise for gnulib-comp.m4.
76800
76801 2006-10-07  Bruno Haible  <bruno@clisp.org>
76802
76803         * lib/gl_sublist.h: New file.
76804         * lib/gl_sublist.c: New file.
76805
76806 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
76807
76808         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
76809         name (relative to the original working directory) and the file
76810         name component (relative to the temporary working directory).  All
76811         callers changed.
76812         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
76813         * lib/mkdir-p.c (make_dir_parents): Likewise.
76814         * lib/mkdir-p.h (make_dir_parents): Likewise.
76815
76816 2006-10-06  Eric Blake  <ebb9@byu.net>
76817
76818         Define several macros for use by the clean-temp module.
76819         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
76820         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
76821         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
76822
76823         * lib/clean-temp.h (close_stream_temp): New declaration.
76824         * lib/clean-temp.c (includes): Pull in headers according to what
76825         other modules are in use.
76826         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
76827
76828 2006-10-06  Bruno Haible  <bruno@clisp.org>
76829
76830         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
76831         instead of fopen, fwriteerror.
76832
76833 2006-10-06  Bruno Haible  <bruno@clisp.org>
76834
76835         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
76836         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
76837         int.
76838         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
76839         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
76840         Return an error indicator.
76841         Suggested by Eric Blake.
76842
76843 2006-10-06  Bruno Haible  <bruno@clisp.org>
76844
76845         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
76846         Reported by Eric Blake.
76847
76848 2006-10-06  Bruno Haible  <bruno@clisp.org>
76849
76850         * modules/closeout (Description): Mention stderr too.
76851
76852 2006-10-06  Bruno Haible  <bruno@clisp.org>
76853         and Paul Eggert  <eggert@cs.ucla.edu>
76854
76855         * lib/closeout.c (close_stdout): Also close stderr.
76856         * lib/closeout.h: Update comment.
76857
76858 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
76859
76860         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
76861         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
76862         * lib/dirchownmod.c: Include lchown.h.
76863         * lib/lchown.c: Don't include files that lchown.h now includes.
76864         Don't declare chown, since lchown.h now does that.
76865         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
76866         (lchown): Define to rpl_chown if lchown is declared but
76867         does not exist.  Declare using a prototype if lchown is not
76868         declared.  Add a copyright notice.
76869         * lib/mkstemp.h: Include <unistd.h>.
76870         * lib/openat.c: Include lchown.h.
76871
76872         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
76873         we now test for that separately.
76874         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
76875         rather than O_NOFOLLOW, when testing whether it's possible to
76876         avoid a race condition reliably.
76877         * lib/savewd.c (savewd_chdir): Likewise.
76878
76879         Remove macros that are no longer needed now that stdint.h is
76880         reliable.
76881         * lib/fsusage.c (UINTMAX_MAX): Remove.
76882         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
76883         * lib/utimecmp.c (SIZE_MAX): Remove.
76884
76885         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
76886
76887         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
76888         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
76889         O_NOATIME works.
76890
76891 2006-10-05  Bruno Haible  <bruno@clisp.org>
76892
76893         * lib/gl_list.h (gl_sortedlist_search_from_to,
76894         gl_sortedlist_indexof_from_to): New declarations.
76895         (gl_list_implementation): New fields sortedlist_search_from_to,
76896         sortedlist_indexof_from_to.
76897         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
76898         inline functions.
76899         * lib/gl_list.c (gl_sortedlist_search_from_to,
76900         gl_sortedlist_indexof_from_to): New functions.
76901         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
76902         function.
76903         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
76904         (gl_array_sortedlist_search_from_to): New function.
76905         (gl_array_list_implementation): Update.
76906         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
76907         function.
76908         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
76909         (gl_carray_sortedlist_search_from_to): New function.
76910         (gl_carray_list_implementation): Update.
76911         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
76912         gl_linked_sortedlist_indexof_from_to): New functions.
76913         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
76914         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
76915         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
76916         gl_tree_sortedlist_indexof_from_to): New functions.
76917         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
76918         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
76919         Update.
76920         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
76921         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
76922         Update.
76923
76924 2006-10-05  Bruno Haible  <bruno@clisp.org>
76925
76926         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
76927         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
76928         (struct gl_list_implementation): Add fields search_from_to,
76929         indexof_from_to. Remove fields search, indexof.
76930         (gl_list_search): Use the search_from_to method.
76931         (gl_list_search_from, gl_list_search_from_to): New functions.
76932         (gl_list_indexof): Use the indexof_from_to method.
76933         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
76934         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
76935         (gl_list_search_from, gl_list_search_from_to): New functions.
76936         (gl_list_indexof): Use the indexof_from_to method.
76937         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
76938         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
76939         gl_array_indexof. Add start_index, end_index arguments.
76940         (gl_array_search_from_to): Renamed from gl_array_search. Add
76941         start_index, end_index arguments.
76942         (gl_array_remove, gl_array_list_implementation): Update.
76943         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
76944         gl_carray_indexof. Add start_index, end_index arguments.
76945         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
76946         start_index, end_index arguments.
76947         (gl_carray_remove, gl_carray_list_implementation): Update.
76948         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
76949         gl_linked_search. Add start_index, end_index arguments.
76950         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
76951         start_index, end_index arguments.
76952         (gl_linked_remove): Update.
76953         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
76954         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
76955         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
76956         field to 'size_t'.
76957         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
76958         gl_tree_search. Add start_index, end_index arguments.
76959         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
76960         start_index, end_index arguments.
76961         (gl_tree_remove): Update.
76962         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
76963         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
76964         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
76965         function.
76966         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
76967         gl_tree_search. Add start_index, end_index arguments.
76968         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
76969         start_index, end_index arguments.
76970         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
76971         Update.
76972         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
76973
76974 2006-10-05  Bruno Haible  <bruno@clisp.org>
76975
76976         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
76977
76978         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
76979         fwriteerror_temp): New declarations.
76980         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
76981         (descriptors): New variable.
76982         (cleanup): First, close the descriptors.
76983         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
76984         fclose_temp, fwriteerror_temp): New functions.
76985
76986 2006-10-04  Jim Meyering  <jim@meyering.net>
76987
76988         * lib/fts.c (fts_open): Tiny comment change.
76989
76990 2006-10-04  Bruno Haible  <bruno@clisp.org>
76991
76992         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
76993         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
76994         gl_LOCK_BODY.
76995         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
76996         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
76997         gl_LOCK_EARLY_BODY.
76998         (gl_LOCK): Require gl_LOCK_BODY.
76999
77000 2006-10-04  Bruno Haible  <bruno@clisp.org>
77001
77002         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
77003         (gl_oset_search_atleast): New declaration.
77004         (struct gl_oset_implementation): Add field 'search_atleast'.
77005         (gl_oset_search_atleast): New inline function.
77006         * lib/gl_oset.c (gl_oset_search_atleast): New function.
77007         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
77008         (gl_array_oset_implementation): Update.
77009         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
77010         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
77011         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
77012
77013 2006-10-04  Bruno Haible  <bruno@clisp.org>
77014
77015         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
77016
77017 2006-10-03  Bruno Haible  <bruno@clisp.org>
77018
77019         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
77020         from gl_avltreehash_list_implementation.
77021
77022 2006-10-03  Bruno Haible  <bruno@clisp.org>
77023
77024         * lib/gl_oset.c (gl_oset_add): Fix return type.
77025
77026 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
77027
77028         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
77029
77030 2006-10-02  Eric Blake  <ebb9@byu.net>
77031
77032         * modules/strnlen (Depends-on): Add extensions.
77033
77034 2006-10-02  Eric Blake  <ebb9@byu.net>
77035
77036         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
77037         definition in 2.60+.
77038
77039 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
77040
77041         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
77042         checks.
77043
77044 2006-10-02  Bruno Haible  <bruno@clisp.org>
77045
77046         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
77047         to the AUTOMAKE_OPTIONS.
77048         Reported by Jim Meyering.
77049
77050 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
77051
77052         Work around bug in Solaris 10 /proc file system:
77053         /proc/self/fd/NNN/.. isn't the parent directory of
77054         the directory whose file descriptor is NNN.  This needs to
77055         be worked around at run time, not compile time, since a
77056         program might be built on Solaris 8, where things work, and
77057         run on Solaris 10.
77058         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
77059         to use the following interface instead:
77060         (OPENAT_BUFFER_SIZE): New macro.
77061         (openat_proc_name): New function.
77062         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
77063         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
77064         Likewise.
77065         * lib/openat-proc.c: New file.
77066         * modules/openat (Files): Add lib/openat-proc.c.
77067         (Depends-on): Add same-inode, stdbool.
77068         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
77069
77070 2006-09-29  Bruno Haible  <bruno@clisp.org>
77071
77072         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
77073         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
77074         argument. Set stdout_closed before testing for ferror, not after.
77075         (fwriteerror, fwriteerror_no_ebadf): New functions.
77076
77077 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77078
77079         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
77080
77081 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
77082
77083         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
77084         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
77085
77086 2006-09-28  Jim Meyering  <jim@meyering.net>
77087
77088         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
77089         Include <unistd.h>.
77090
77091 2006-09-28  Bruno Haible  <bruno@clisp.org>
77092
77093         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
77094         * modules/linkedhash-list (Depends-on): Likewise.
77095         * modules/rbtreehash-list (Depends-on): Likewise.
77096
77097 2006-09-28  Bruno Haible  <bruno@clisp.org>
77098
77099         * lib/strndup.h: Simplify the redefinition of strndup.
77100         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
77101         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
77102
77103 2006-09-28  Bruno Haible  <bruno@clisp.org>
77104
77105         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
77106         * lib/gl_linkedhash_list.c: Likewise.
77107         * lib/gl_rbtreehash_list.c: Likewise.
77108
77109 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
77110
77111         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
77112         getaddrinfo.
77113
77114         * lib/__fpending.h: Don't include <stdio_ext.h> unless
77115         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
77116         it causes <stdio_ext.h> to cause a compile-time error.
77117         Problem reported by Nelson H. F. Beebe.
77118         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
77119         of HAVE_DECL___PENDING.
77120
77121         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
77122         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
77123         declaration.
77124
77125 2006-09-27  Jim Meyering  <jim@meyering.net>
77126
77127         This file could end up with a definition for a function
77128         named __strndup, rather than rpl_strndup on a system with
77129         incomplete weak_alias support.
77130         * lib/strndup.c (strndup): Rename from __strndup.
77131         Remove #defines that used to map __strndup to strndup.
77132         Don't use K&R prototypes.
77133         Remove LIBC-related code, since this file is not sync'd with glibc.
77134         * lib/strndup.h: Revamp, accordingly.
77135         * m4/strndup.m4: Modernize.
77136
77137 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
77138
77139         * modules/savewd (Depends-on): Add 'raise'.
77140         * lib/savewd.c: Include <signal.h>, for 'raise'.
77141
77142 2006-09-26  Jim Meyering  <jim@meyering.net>
77143
77144         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
77145         when we detect Darwin 8.7.0's acl_get_file bug.
77146         Rearrange to perform the new (below) run-test while $LIBS
77147         contains any acl-related library.  Set USE_ACL at the end.
77148         (gl_ACL_GET_FILE): New function.
77149
77150 2006-09-26  Eric Blake  <ebb9@byu.net>
77151
77152         * lib/verror.c: Include <config.h> unconditionally.
77153
77154 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
77155
77156         * modules/clock-time (Maintainer): Add self.
77157         * modules/getlogin_r (Depends-on): Add extensions.
77158
77159 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77160
77161         * modules/clock-time: New module.
77162         * modules/nanosleep (Depends-on): Add clock-time.
77163         * modules/gethrxtime (Depends-on): Likewise.
77164         * modules/gettime (Depends-on): Likewise.
77165         * modules/settime (Depends-on): Likewise.
77166
77167         * modules/fts-lgpl: Depend on openat.
77168         * modules/mkancesdirs: Depend on savewd.
77169         * modules/mkdir-p: Likewise.
77170
77171 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77172
77173         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
77174
77175         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
77176         `gl_have_arbitrary_file_name_length_limit' to
77177         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
77178         actually works between configure runs.
77179
77180 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77181             Bruno Haible  <bruno@clisp.org>
77182
77183         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
77184
77185 2006-09-25  Jim Meyering  <jim@meyering.net>
77186
77187         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
77188         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
77189
77190 2006-09-25  Eric Blake  <ebb9@byu.net>
77191
77192         * gnulib-tool (func_import, func_create_testdir): Fix typos in
77193         exec's in 2006-09-18 patch when shuffling fds.
77194
77195 2006-09-25  Bruno Haible  <bruno@clisp.org>
77196
77197         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
77198         Reported by Jim Meyering.
77199
77200 2006-09-24  Jim Meyering  <jim@meyering.net>
77201
77202         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
77203         compare a pointer against a literal "0".  That caused failures with
77204         at least HP-UX's hpcc.
77205
77206 2006-09-22  Simon Josefsson  <jas@extundo.com>
77207
77208         * modules/gc-sha1:
77209         * modules/gc-md4:
77210         * modules/gc-hmac-sha1:
77211         * modules/gc-hmac-md5:
77212         * modules/gc-des:
77213         * modules/gc-arcfour: Distribute more files.
77214
77215 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77216
77217         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
77218         (gl_linked_iterator_from_to): Initialize struct completely.
77219         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
77220         (gl_tree_iterator_from_to): Likewise
77221         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
77222         * lib/gl_array_list.c [lint] (gl_array_iterator)
77223         (gl_array_iterator_from_to): Likewise.
77224         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
77225         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
77226         (gl_carray_iterator_from_to): Likewise.
77227
77228         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
77229         * lib/md4.c (md4_process_block): Remove unused variable.
77230         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
77231         parentheses for clarity.
77232
77233 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77234
77235         * modules/bison-i18n (Depends-on): Add gettext.
77236
77237 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77238
77239         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
77240         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
77241         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
77242         also add missing comma that caused broken test.
77243         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
77244         stdlib.h, for `abort'.
77245         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
77246         variables.
77247         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
77248         include unistd.h if present, for `rmdir'.
77249         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
77250         variables.
77251         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
77252         in the process include standard headers for prototypes.
77253         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
77254         gets declared on GNU/Linux.
77255         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
77256         unistd.h, for `rmdir'.
77257         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
77258
77259         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
77260         always true.
77261         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
77262
77263         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
77264
77265 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77266
77267         * gnulib-tool (func_version): Create output all at once.  This
77268         may help avoid triggering unnecessary SIGPIPEs, and at any
77269         rate it doesn't hurt.
77270
77271 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77272             Bruno Haible  <bruno@clisp.org>
77273
77274         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
77275         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
77276         * m4/signed.m4 (bh_C_SIGNED): Likewise.
77277
77278         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
77279         (gl_FUNC_VASPRINTF): Invoke it.
77280
77281 2006-09-22  Bruno Haible  <bruno@clisp.org>
77282
77283         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
77284         getloadavg.c as first argument.
77285
77286 2006-09-22  Bruno Haible  <bruno@clisp.org>
77287
77288         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
77289         at the beginning of the gl_INIT macro.
77290         * modules/getloadavg (configure.ac): Pass $gl_source_base to
77291         gl_GETLOADAVG.
77292
77293 2006-09-22  Bruno Haible  <bruno@clisp.org>
77294
77295         * gnulib-tool (func_create_megatestdir): Don't include the config-h
77296         module.
77297         Suggested by Ralf Wildenhues.
77298
77299 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
77300
77301         Import this patch from libc:
77302
77303         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
77304
77305         * lib/regex_internal.c (re_string_reconstruct): Handle
77306         offset < pstr->valid_raw_len && pstr->offsets_needed case.
77307         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
77308         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
77309         re_string_context_at.
77310
77311         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
77312         now requires it.
77313         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
77314         gl_REGEX now does it for us.
77315         (gl_REGEX): Add test taken from
77316         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
77317
77318         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
77319         Check that large offsets work.  Modernize Autoconf usages.
77320         Prefer "yes" to mean a good thing rather than a bad.
77321         Don't put "#define mkstemp" in config.h, as this might interfere
77322         with standard system headers that "#define mkstemp mkstemp64".
77323
77324         * modules/mkstemp (Depends-on): Add extensions, so that
77325         mkstemp is visible on some platforms.
77326         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
77327         (Include): Change to "mkstemp.h" from <stdlib.h>.
77328         (Files): Add mkstemp.h.
77329
77330         * lib/mkstemp.h: New file, since some standard headers
77331         #define mkstemp.
77332         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
77333         Include "mkstemp.h".
77334         Make the _LIBC code resemble glibc original more,
77335         e.g., use K&R style.
77336         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
77337         (mkstemp): Remove, since mkstemp.h does this for us.
77338         * lib/stdlib--.h: Include mkstemp.h.
77339
77340         Import this patch from libc:
77341
77342         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
77343
77344         * lib/tempname.c (__gen_tempname): Change attempts_min
77345         into a macro.  Use preprocessor to decide how to initialize
77346         attempts [Coverity CID 67].
77347
77348 2006-09-20  Bruno Haible  <bruno@clisp.org>
77349
77350         * lib/mkdtemp.c: Import from libc.
77351         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
77352                 * sysdeps/posix/tempname.c (__gen_tempname): Change
77353                 attempts_min into a macro.  Use preprocessor to decide how to
77354                 initialize attempts [Coverity CID 67].
77355         2001-11-27  Paul Eggert  <eggert@twinsun.com>
77356                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
77357                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
77358
77359 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77360
77361         * gnulib-tool (func_exit): New function, to allow to pass the
77362         exit status portably through the trap.  Use everywhere.
77363         (--help, --version): Signal a write error.
77364         (trap): catch SIGPIPE, for write errors.
77365         Exit at the end of the trap, with the correct exit status.
77366
77367 2006-09-19  Karl Berry  <karl@gnu.org>
77368
77369         * doc/gnulib.texi: note about the license texinfo files.
77370
77371 2006-09-19  Eric Blake  <ebb9@byu.net>
77372
77373         * gnulib-tool: Avoid space-tab.
77374
77375 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
77376
77377         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
77378         that prevented coreutils 6.1 from building.  Problem reported
77379         by Petter Reinholdtsen.
77380
77381 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
77382
77383         * gnulib-tool (avoidlist): Fix typo that broke options like
77384         --avoid=lock that are used by coreutils bootstrap.
77385
77386 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
77387
77388         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
77389         more systematically.
77390
77391 2006-09-18  Jim Meyering  <jim@meyering.net>
77392
77393         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
77394
77395 2006-09-18  Bruno Haible  <bruno@clisp.org>
77396
77397         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
77398
77399 2006-09-18  Bruno Haible  <bruno@clisp.org>
77400
77401         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
77402         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
77403         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
77404         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
77405         * m4/gettext.m4: Require autoconf >= 2.52.
77406         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
77407         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
77408         of gl_cv_header_inttypes_h.
77409
77410 2006-09-18  Bruno Haible  <bruno@clisp.org>
77411
77412         * lib/javaversion.c: Include configmake.h.
77413
77414 2006-09-18  Bruno Haible  <bruno@clisp.org>
77415
77416         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
77417         avoid that the while loops be executed in a subshell.
77418
77419 2006-09-18  Bruno Haible  <bruno@clisp.org>
77420
77421         * MODULES.html.sh (func_module): Break long lines.
77422         Suggested by Bruce Korb <bkorb@gnu.org>.
77423
77424 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77425
77426         Speed up by a factor of 1.12.
77427         * gnulib-tool (nl): New variable.
77428         (func_import): Rewrite include directive extraction to only read each
77429         directive once.
77430
77431 2006-09-17  Bruno Haible  <bruno@clisp.org>
77432
77433         * modules/javaversion (Makefile.am): Remove DEFS setting.
77434         (Depends-on): Add configmake, for PKGDATADIR definition.
77435
77436 2006-09-17  Bruno Haible  <bruno@clisp.org>
77437
77438         * gnulib-tool (func_create_testdir): Rewrite all files at once.
77439
77440 2006-09-17  Bruno Haible  <bruno@clisp.org>
77441
77442         * gnulib-tool (func_append): New function, stolen from libtool.m4.
77443         (func_modules_transitive_closure, func_modules_add_dummy,
77444         func_modules_to_filelist, func_import, func_create_testdir,
77445         func_create_megatestdir, ...): Use it wherever possible.
77446         Suggested by Ralf Wildenhues.
77447
77448 2006-09-16  Karl Berry  <karl@gnu.org>
77449
77450         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
77451         to avoid sectioning errors.
77452         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
77453         [ifinfo]: blank line after @center-ed titles.
77454         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
77455         Spell FSF address consistently with others.
77456         (These changes approved by rms.)
77457
77458 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77459
77460         Speed up by a factor of 1.61.
77461         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
77462         already checked module names again.
77463
77464 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77465
77466         Speed up by a factor of 1.13.
77467         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
77468         for new_files, and the input to func_add_or_update.
77469
77470 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77471
77472         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
77473         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
77474
77475 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
77476
77477         * modules/mkancesdirs (Depends-on): Add fcntl.
77478         * modules/savewd: New file.
77479         * MODULES.html.sh (File system functions): Add savewd.
77480
77481         * modules/configmake (Makefile.am): Add support for the
77482         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
77483
77484 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
77485
77486         * m4/savewd.m4: New file.
77487
77488 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
77489
77490         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
77491         (dirchownmod): New arg FD.  All callers changed.
77492         Use FD rather than opening the directory ourself, as opening is
77493         now the caller's responsibility.
77494         * lib/dirchownmod.h: Likewise.
77495         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
77496         hosts that require <sys/types.h> before <sys/stat.h>.  Include
77497         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
77498         (test_dir): Remove.
77499         (mkancesdirs): Return length of prefix of FILE that has already
77500         been made, or -2 if there is a child doing the work.  Redo
77501         algorithm so that it is O(N) rather than O(N**2).  Optimize away
77502         ".", and treat ".." specially since it might stray back into
77503         already-created areas.  Use a subprocess if necessary.  New arg
77504         WD; all users changed.  MAKE_DIR function should now return 1
77505         if it creates a directory that is not readable.  Return -2 if
77506         a child process is spun off.
77507         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
77508         Adjust signature to match code.
77509         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
77510         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
77511         all users changed.
77512         * lib/savewd.c, lib/savewd.h: New files.
77513
77514 2006-09-15  Jim Meyering  <jim@meyering.net>
77515
77516         * modules/rename-dest-slash: New module.
77517         * MODULES.html.sh (posix_compat): Add it here.
77518
77519         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
77520
77521 2006-09-15  Jim Meyering  <jim@meyering.net>
77522
77523         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
77524         file.
77525
77526         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
77527
77528 2006-09-15  Jim Meyering  <jim@meyering.net>
77529
77530         * lib/rename-dest-slash.c (has_trailing_slash): Use
77531         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
77532         (rpl_rename_dest_slash): Perform the cheaper trailing slash
77533         test before testing whether SRC is a directory.
77534         Suggestions from Bruno Haible.
77535
77536         Avoid a warning about an unused variable.
77537         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
77538         into the #ifdef block where it's used.
77539
77540         * lib/rename-dest-slash.c: New file.
77541
77542 2006-09-14  Bruno Haible  <bruno@clisp.org>
77543
77544         * lib/allocsa.c: Include <config.h> unconditionally.
77545         * lib/asnprintf.c: Likewise.
77546         * lib/asprintf.c: Likewise.
77547         * lib/c-strcasecmp.c: Likewise.
77548         * lib/c-strcasestr.c: Likewise.
77549         * lib/c-strncasecmp.c: Likewise.
77550         * lib/c-strstr.c: Likewise.
77551         * lib/classpath.c: Likewise.
77552         * lib/clean-temp.c: Likewise.
77553         * lib/concatpath.c: Likewise.
77554         * lib/copy-file.c: Likewise.
77555         * lib/csharpcomp.c: Likewise.
77556         * lib/csharpexec.c: Likewise.
77557         * lib/execute.c: Likewise.
77558         * lib/fatal-signal.c: Likewise.
77559         * lib/findprog.c: Likewise.
77560         * lib/fwriteerror.c: Likewise.
77561         * lib/gl_array_list.c: Likewise.
77562         * lib/gl_array_oset.c: Likewise.
77563         * lib/gl_avltree_list.c: Likewise.
77564         * lib/gl_avltree_oset.c: Likewise.
77565         * lib/gl_avltreehash_list.c: Likewise.
77566         * lib/gl_carray_list.c: Likewise.
77567         * lib/gl_linked_list.c: Likewise.
77568         * lib/gl_linkedhash_list.c: Likewise.
77569         * lib/gl_list.c: Likewise.
77570         * lib/gl_oset.c: Likewise.
77571         * lib/gl_rbtree_list.c: Likewise.
77572         * lib/gl_rbtree_oset.c: Likewise.
77573         * lib/gl_rbtreehash_list.c: Likewise.
77574         * lib/imaxabs.c: Likewise.
77575         * lib/imaxdiv.c: Likewise.
77576         * lib/javacomp.c: Likewise.
77577         * lib/javaexec.c: Likewise.
77578         * lib/javaversion.c: Likewise.
77579         * lib/linebreak.c: Likewise.
77580         * lib/localcharset.c: Likewise.
77581         * lib/lock.c: Likewise.
77582         * lib/mbchar.c: Likewise.
77583         * lib/mbswidth.c: Likewise.
77584         * lib/mkdtemp.c: Likewise.
77585         * lib/pipe.c: Likewise.
77586         * lib/printf-args.c: Likewise.
77587         * lib/printf-parse.c: Likewise.
77588         * lib/progname.c: Likewise.
77589         * lib/progreloc.c: Likewise.
77590         * lib/readlink.c: Likewise.
77591         * lib/sh-quote.c: Likewise.
77592         * lib/stpcpy.c: Likewise.
77593         * lib/stpncpy.c: Likewise.
77594         * lib/strcasecmp.c: Likewise.
77595         * lib/strcasestr.c: Likewise.
77596         * lib/strcspn.c: Likewise.
77597         * lib/striconv.c: Likewise.
77598         * lib/strncasecmp.c: Likewise.
77599         * lib/strnlen1.c: Likewise.
77600         * lib/strstr.c: Likewise.
77601         * lib/strtok_r.c: Likewise.
77602         * lib/tls.c: Likewise.
77603         * lib/tmpdir.c: Likewise.
77604         * lib/unicodeio.c: Likewise.
77605         * lib/unsetenv.c: Likewise.
77606         * lib/vasnprintf.c: Likewise.
77607         * lib/vasprintf.c: Likewise.
77608         * lib/wait-process.c: Likewise.
77609         * lib/xallocsa.c: Likewise.
77610         * lib/xsetenv.c: Likewise.
77611         * lib/xstriconv.c: Likewise.
77612
77613 2006-09-13  Simon Josefsson  <jas@extundo.com>
77614
77615         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
77616         that internally, suggested by Ralf Wildenhues
77617         <Ralf.Wildenhues@gmx.de>.
77618
77619 2006-09-13  Simon Josefsson  <jas@extundo.com>
77620
77621         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
77622         @LIBOBJS@.
77623         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77624
77625 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
77626
77627         * lib/_fpending.c: Include <config.h> unconditionally, since we no
77628         longer worry about uses that don't define HAVE_CONFIG_H.
77629         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
77630         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
77631         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
77632         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
77633         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
77634         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
77635         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
77636         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
77637         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
77638         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
77639         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
77640         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
77641         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
77642         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
77643         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
77644         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
77645         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
77646         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
77647         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
77648         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
77649         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
77650         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
77651         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
77652         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
77653         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
77654         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
77655         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
77656         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
77657         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
77658         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
77659         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
77660         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
77661         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
77662         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
77663         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
77664         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
77665         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
77666         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
77667         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
77668         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
77669         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
77670         Likewise.
77671
77672 2006-09-13  Eric Blake  <ebb9@byu.net>
77673
77674         * lib/getopt.c: Fix typo in last commit.
77675
77676 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
77677
77678         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
77679         dgettext.
77680
77681 2006-09-12  Jim Meyering  <jim@meyering.net>
77682
77683         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
77684         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
77685         Reported by Nelson H. F. Beebe.
77686
77687 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
77688
77689         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
77690         program_invocation_name and program_invocation_short_name are
77691         initialized.
77692         * lib/argp-namefrob.h: Move declarations of program_invocation_name
77693         and program_invocation_short_name to argp.h, so they are visible
77694         to user programs.
77695         * lib/argp.h: Likewise
77696
77697 2006-09-10  Bruno Haible  <bruno@clisp.org>
77698
77699         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
77700         m4/inttypes_h.m4, m4/uintmax_t.m4.
77701
77702 2006-09-10  Bruno Haible  <bruno@clisp.org>
77703
77704         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
77705         gl_AC_TYPE_UINTMAX_T.
77706
77707 2006-09-10  Bruno Haible  <bruno@clisp.org>
77708
77709         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
77710
77711 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77712
77713         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
77714         convention.  Text proposed by Bruno Haible.
77715         (struct argp_option): Document the use of N_() wrappers.
77716
77717         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
77718         '\v', and translate the two parts separately, instead of feeding
77719         the whole string to gettext.  This allows to exclude
77720         '\v' from the strings visible to the translator by writing doc
77721         strings as N_("..") "\v" N_("..").
77722
77723 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
77724
77725         * config/srclist.txt: Undo latest change; the bug was fixed.
77726
77727 2006-09-09  Bruno Haible  <bruno@clisp.org>
77728
77729         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
77730         assignments if building a library without libtool.
77731         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
77732         in func_emit_lib_Makefile_am.
77733         (func_import): When building a static library libfoo.a, arrange to
77734         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
77735         (func_create_testdir): Likewise.
77736         * modules/gc (configure.ac, Makefile.am): If building statically,
77737         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
77738         * modules/iconvme (configure.ac, Makefile.am): Likewise.
77739         * modules/striconv (configure.ac, Makefile.am): Likewise.
77740         Based on a suggestion by Ralf Wildenhues.
77741
77742 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77743
77744         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
77745         Check for unistd.h too, since Autoconf doesn't assume POSIX.
77746         Also:
77747
77748         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77749         Add year_2050_test to catch glibc bug 2821
77750         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
77751
77752         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
77753         Prefer #ifdef to #if.
77754
77755         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
77756         Return from 'main' instead of calling 'exit'.
77757
77758 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77759
77760         * lib/mktime.c (guess_time_tm): Fix bug where mktime
77761         returned the maximum time_t value rather than (time_t) -1.
77762         Problem originally reported by William Bardwell
77763         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
77764
77765         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
77766         Moved to here ...
77767         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
77768         ... from here.
77769
77770 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77771
77772         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
77773         2821 is fixed.
77774
77775 2006-09-08  Jim Meyering  <jim@meyering.net>
77776
77777         Don't make generated files read-only.  That would bother too many
77778         people.  However, do retain the ability to work when targets are
77779         read-only: remove the destination and temporary files before writing
77780         them (when generated via sed or echo), or by using the -f option for
77781         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
77782         * modules/alloca-opt, modules/argz, modules/arpa_inet:
77783         * modules/byteswap, modules/configmake, modules/fcntl:
77784         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
77785         * modules/localcharset, modules/netinet_in, modules/poll:
77786         * modules/stdbool, modules/stdint, modules/sys_select:
77787         * modules/sys_socket, modules/sys_stat, modules/sysexits:
77788
77789 2006-09-08  Jim Meyering  <jim@meyering.net>
77790
77791         Avoid new build failure on FreeBSD 6.0.
77792         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
77793         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
77794         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
77795
77796 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77797
77798         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
77799
77800 2006-09-07  Jim Meyering  <jim@meyering.net>
77801
77802         Fix global typo in last change: use chmod u-w, not chmod u-x.
77803         Spotted by Paul Eggert and Bruce Korb.
77804         * modules/alloca-opt, modules/argz, modules/arpa_inet:
77805         * modules/byteswap, modules/configmake, modules/fcntl:
77806         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
77807         * modules/localcharset, modules/netinet_in, modules/poll:
77808         * modules/stdbool, modules/stdint, modules/sys_select:
77809         * modules/sys_socket, modules/sys_stat, modules/sysexits:
77810
77811 2006-09-06  Jim Meyering  <jim@meyering.net>
77812
77813         Make generated files be read-only.
77814         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
77815         Ensure that each generated file is now read-only.
77816         * modules/argz: Likewise.
77817         * modules/arpa_inet: Likewise.
77818         * modules/byteswap: Likewise.
77819         * modules/configmake: Likewise.
77820         * modules/fcntl: Likewise.
77821         * modules/fnmatch: Likewise.
77822         * modules/getopt: Likewise.
77823         * modules/glob: Likewise.
77824         * modules/inttypes: Likewise.
77825         * modules/netinet_in: Likewise.
77826         * modules/poll: Likewise.
77827         * modules/stdbool: Likewise.
77828         * modules/stdint: Likewise.
77829         * modules/sys_select: Likewise.
77830         * modules/sys_socket: Likewise.
77831         * modules/sys_stat: Likewise.
77832         * modules/sysexits: Likewise.
77833         * modules/localcharset: Same as above, but continue using temporary
77834         file named "t-$@" (why different?) rather than the "$@-t" used
77835         everywhere else.
77836
77837         * modules/sysexits (Makefile.am): Replace literal occurrences
77838         of "sysexit.h" more readable, and more consistent, "$@".
77839
77840 2006-09-06  Bruno Haible  <bruno@clisp.org>
77841
77842         * modules/striconv: New file.
77843         * modules/xstriconv: New file.
77844         * MODULES.html.sh (Internationalization functions): Add striconv,
77845         xstriconv.
77846
77847 2006-09-06  Bruno Haible  <bruno@clisp.org>
77848
77849         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
77850         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
77851         not using libtool correctly.
77852
77853 2006-09-06  Bruno Haible  <bruno@clisp.org>
77854
77855         * lib/striconv.h: New file.
77856         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
77857         iconvstring.c.
77858         * lib/xstriconv.h: New file.
77859         * lib/xstriconv.c: New file.
77860
77861 2006-09-06  Bruno Haible  <bruno@clisp.org>
77862
77863         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
77864         lib_..._LDFLAGS.
77865
77866 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77867
77868         * lib/argz_.h: Sync from Libtool.
77869
77870         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
77871                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
77872
77873         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
77874
77875 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
77876
77877         * modules/trim: New file.
77878
77879 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
77880
77881         * lib/trim.h: New file.
77882         * lib/trim.c: New file.
77883
77884 2006-09-05  Bruno Haible  <bruno@clisp.org>
77885
77886         * MODULES.html.sh (String handling): Add trim.
77887
77888 2006-09-04  Karl Berry  <karl@gnu.org>
77889
77890         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
77891         until next release.
77892
77893 2006-09-03  Bruno Haible  <bruno@clisp.org>
77894
77895         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
77896         correctly.
77897
77898 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
77899
77900         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
77901         not gl_GETLOADAVG.  Omit unneeded semicolons.
77902         Problems reported by Ralf Wildenhues in
77903         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
77904         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
77905         at the end, which is the usual gnulib style.
77906
77907         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
77908         of doing all the work ourselves.
77909         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
77910         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
77911
77912 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
77913
77914         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
77915         Problem reported by Ralf Wildenhues in
77916         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
77917
77918         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
77919         HAVE_STRUCT_STATFS_F_FSTYPENAME.
77920
77921 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
77922
77923         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
77924         yesterday's patch by changing test -n to test -z.
77925
77926 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77927
77928         * modules/getloadavg (Files): Add m4/getloadavg.m4.
77929         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
77930         the former is now obsolescent.
77931
77932         * modules/chdir-long (Depends-on): Add fcntl.
77933
77934 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77935
77936         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
77937         obsolescent, and programs should use gnulib instead.
77938         * m4/getloadavg.m4: New file, with contents taken from Autoconf
77939         but with prefixes changed.
77940
77941 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77942
77943         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
77944         or stdbool.h, because they might not exist while configuring.
77945
77946         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
77947         Don't include unistd.h or limits.h; not needed, since chdir-long.h
77948         does that for us.
77949         (O_DIRECTORY): Remove.
77950
77951 2006-08-31  Eric Blake  <ebb9@byu.net>
77952
77953         * gnulib-tool: Don't let emacs change spaces to TAB.
77954
77955 2006-08-31  Bruno Haible  <bruno@clisp.org>
77956
77957         * gnulib-tool: When calling func_import more than once, do it in a
77958         subshell.
77959         Reported by Eric Blake <ebb9@byu.net>.
77960
77961 2006-08-31  Bruno Haible  <bruno@clisp.org>
77962
77963         * gnulib-tool (nl): Remove variable.
77964         (sed_transform_lib_file): Use more robust test for config-h module.
77965         (func_import): Fix typo in 2006-08-25 patch.
77966
77967 2006-08-31  Bruno Haible  <bruno@clisp.org>
77968
77969         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
77970         specified, augment Makefile.am variables instead of assigning them.
77971
77972 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
77973
77974         Work around a bug in both the Linux and SunOS 64-bit kernels:
77975         nanosleep mishandles sleeps for longer than 2**31 seconds.
77976         Problem reported by Frank v Waveren in
77977         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
77978         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
77979         Check for nanosleep bug.
77980         (LIB_NANOSLEEP): Append clock_gettime library if needed.
77981
77982 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
77983
77984         Work around a bug in both the Linux and SunOS 64-bit kernels:
77985         nanosleep mishandles sleeps for longer than 2**31 seconds.
77986         Problem reported by Frank v Waveren in
77987         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
77988         * lib/nanosleep.c (BILLION): New constant.
77989         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
77990         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
77991         implementation.
77992
77993 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
77994
77995         * modules/nanosleep (Depends-on): Add gettime.
77996
77997 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
77998         and Simon Josefsson  <jas@extundo.com>
77999         and Oskar Liljeblad  <oskar@osk.mine.nu>
78000
78001         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
78002         * gnulib-tool (func_import): New license type 'unmodifiable license
78003         text'.
78004         * modules/fdl: Use it.  Longer description.
78005         * module/gpl, module/lgpl: New files.
78006
78007 2006-08-30  Jim Meyering  <jim@meyering.net>
78008
78009         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
78010         shadowing the parameter.
78011
78012 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78013
78014         Sync from Libtool:
78015
78016         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78017
78018         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
78019         sharing with gnulib.  Report by Eric Blake.
78020
78021 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
78022
78023         * modules/isapipe: New file.
78024         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
78025
78026 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
78027
78028         * modules/configmake (Makefile.am): Add a comment, and omit
78029         the CONFIGMAKE_ prefix from generated macro names.  Suggested
78030         by Bruno Haible.
78031
78032 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
78033
78034         * m4/isapipe.m4: New file.
78035
78036 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
78037
78038         * lib/isapipe.c, lib/isapipe.h: New files.
78039
78040 2006-08-29  Jim Meyering  <jim@meyering.net>
78041
78042         * modules/configmake (Makefile.am): Make configmake.h depend on
78043         Makefile.  Otherwise, a stale configmake.h could hang around.
78044
78045 2006-08-29  Eric Blake  <ebb9@byu.net>
78046
78047         * lib/error.c (error_at_line, print_errno_message): Match libc, after
78048         resolution of upstream bug 3044.
78049
78050 2006-08-29  Bruno Haible  <bruno@clisp.org>
78051
78052         * modules/localcharset (Depends-on): Add configmake.
78053         (Makefile.am): Remove setting of LIBDIR through DEFS.
78054
78055 2006-08-29  Bruno Haible  <bruno@clisp.org>
78056
78057         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
78058         defined.
78059
78060 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
78061
78062         * modules/fcntl: New file.
78063         * modules/chdir-safer (Depends-on): Add fcntl.
78064         * modules/fts: Likewise.
78065         * modules/mkdir-p: Likewise.
78066
78067         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
78068         This undoes the most recent change, since we're now addressing the
78069         problem in a different way.
78070
78071         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
78072         into output, since the output might be called Makefile.am even
78073         if $makefile_name is something different.
78074         (func_import): Use $makefile_am rather than
78075         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
78076         empty.
78077
78078         * modules/inttypes (Files): Add m4/inttypes-h.m4.
78079
78080 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
78081
78082         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
78083         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
78084         recent change to stdint.m4, since we're now addressing the problem in a
78085         different way.
78086
78087 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
78088
78089         * m4/fcntl_h.m4: New file.
78090
78091 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
78092
78093         * lib/fcntl_.h: New file.
78094         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
78095         the fcntl module.
78096         * lib/dirchownmod.c: Likewise.
78097         * lib/fts.c: Likewise.
78098
78099         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
78100         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
78101         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
78102         just before including <inttypes.h>, to avoid circular inclusion.
78103
78104 2006-08-28  Jim Meyering  <jim@meyering.net>
78105
78106         * doc/visibility.texi: Actually read and correct the grammar of the
78107         sentence affected by yesterday's change.
78108
78109 2006-08-28  Eric Blake  <ebb9@byu.net>
78110
78111         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
78112         needs wrapper.
78113
78114 2006-08-28  Eric Blake  <ebb9@byu.net>
78115
78116         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
78117
78118 2006-08-28  Eric Blake  <ebb9@byu.net>
78119
78120         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
78121
78122 2006-08-28  Bruno Haible  <bruno@clisp.org>
78123
78124         * modules/c-strstr: New file, from GNU gettext.
78125         * MODULES.html.sh (String handling): Add c-strstr.
78126
78127 2006-08-28  Bruno Haible  <bruno@clisp.org>
78128
78129         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
78130         macros.
78131         Reported by Eric Blake.
78132
78133 2006-08-28  Bruno Haible  <bruno@clisp.org>
78134
78135         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
78136         (VASNPRINTF): Return a string of length > INT_MAX without failing.
78137         * lib/vasprintf.c: Include errno.h, limits.h.
78138         (EOVERFLOW): New fallback definition.
78139         (vasprintf): Test here whether the string length is > INT_MAX.
78140         * lib/vsnprintf.c: Include errno.h, limits.h.
78141         (EOVERFLOW): New fallback definition.
78142         (vsnprintf): Fix bug when generated string was too long for the buffer.
78143         Test here whether the string length is > INT_MAX.
78144
78145 2006-08-28  Bruno Haible  <bruno@clisp.org>
78146
78147         * lib/inttypes_.h (SCNX*): Remove definitions.
78148         Reported by Eric Blake.
78149
78150 2006-08-28  Bruno Haible  <bruno@clisp.org>
78151
78152         * lib/c-strstr.h: New file, from GNU gettext.
78153         * lib/c-strstr.c: New file, from GNU gettext.
78154
78155 2006-08-28  Bruno Haible  <bruno@clisp.org>
78156
78157         * gnulib-tool: Reorder some statements.
78158
78159 2006-08-28  Bruno Haible  <bruno@clisp.org>
78160
78161         * gnulib-tool: New option --makefile-name.
78162         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
78163         $makefile_name.
78164         (func_import): Write $makefile_name to the cache file, and read it from
78165         there unless explicitly specified. Use $makefile_name as file name
78166         instead of Makefile.am. Adjust the recommendations accordingly.
78167
78168 2006-08-28  Bruno Haible  <bruno@clisp.org>
78169
78170         * gnulib-tool (func_verify_module): Check against misapplying patch.
78171
78172 2006-08-28  Bruno Haible  <bruno@clisp.org>
78173
78174         * gnulib-tool (func_relativize, func_relconcat): New functions.
78175         Give an error if --local-dir is given with --update.
78176         Remove trailing slashes from $local_gnulib_dir.
78177         (func_import): Store the relativized $local_gnulib_dir in
78178         gnulib-cache.m4, and read it from there if not specified explicitly.
78179
78180 2006-08-28  Bruno Haible  <bruno@clisp.org>
78181
78182         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
78183         is the current directory. Respect also $local_gnulib_dir.
78184
78185 2006-08-28  Bruno Haible  <bruno@clisp.org>
78186             Simon Josefsson  <jas@extundo.com>
78187
78188         BeOS portability.
78189         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
78190
78191 2006-08-27  Jim Meyering  <jim@meyering.net>
78192
78193         * doc/visibility.texi: Remove duplicate word: "pointer".
78194
78195 2006-08-26  Bruno Haible  <bruno@clisp.org>
78196
78197         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
78198         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
78199         (Makefile.am): Create inttypes.h from inttypes_.h.
78200         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
78201
78202         * modules/imaxabs: New file.
78203
78204         * modules/imaxdiv: New file.
78205
78206 2006-08-26  Bruno Haible  <bruno@clisp.org>
78207
78208         * m4/inttypes.m4: New file.
78209         * m4/_inttypes_h.m4: Remove file.
78210         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
78211         PRI_MACROS_BROKEN.
78212         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
78213
78214         * m4/imaxabs.m4: New file.
78215
78216         * m4/imaxdiv.m4: New file.
78217
78218 2006-08-26  Bruno Haible  <bruno@clisp.org>
78219
78220         * lib/inttypes_.h: New file.
78221         * lib/inttypes.h: Remove file.
78222         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
78223
78224         * lib/imaxabs.c: New file.
78225
78226         * lib/imaxdiv.c: New file.
78227
78228 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78229
78230         New config-h module, so that "make" output needn't be cluttered
78231         by -DHAVE_CONFIG_H.
78232         * MODULES.html.sh (Support for building libraries and executables):
78233         Add config-h.
78234         * modules/config-h: New file.
78235         * gnulib-tool (nl, sed_transform_lib_file): New vars.
78236         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
78237         the config-h module is used.
78238
78239         New configmake module, so that "make" output needn't be cluttered
78240         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
78241         * MODULES.html.sh (Support for building libraries and executables):
78242         Add configmake.
78243         * modules/configmake: New file.
78244
78245 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78246
78247         * m4/config-h.m4: New file.
78248
78249 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
78250
78251         * config/srclist.txt: Add elisp-comp.
78252
78253 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
78254
78255         * MODULES.html.sh (Support for building libraries and executables):
78256         Add elisp-comp.
78257         * build-aux/elisp-comp: New file.
78258         * modules/elisp-comp: New file.
78259
78260 2006-08-24  Bruno Haible  <bruno@clisp.org>
78261
78262         * gnulib-tool (func_create_testdir): Use non-default values of
78263         sourcebase and m4base.
78264
78265 2006-08-24  Bruno Haible  <bruno@clisp.org>
78266
78267         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
78268         HTML structure.
78269
78270 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
78271
78272         * modules/openat (Depends-on): Add lchown.
78273
78274 2006-08-23  Bruno Haible  <bruno@clisp.org>
78275
78276         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
78277         of gl_LOCK_EARLY instead of gl_LOCK.
78278
78279 2006-08-23  Bruno Haible  <bruno@clisp.org>
78280
78281         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
78282         on OSF/1 to no.
78283         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
78284
78285 2006-08-23  Bruno Haible  <bruno@clisp.org>
78286
78287         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
78288         as unusable.
78289
78290         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
78291         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
78292         (gl_LOCK): New macro.
78293
78294 2006-08-22  Simon Josefsson  <jas@extundo.com>
78295
78296         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
78297         to md5 module.
78298
78299 2006-08-22  Simon Josefsson  <jas@extundo.com>
78300
78301         * MODULES.html.sh: Add "Support for maintaining and release
78302         projects".
78303
78304         * build-aux/gnupload: New file, from coreutils.
78305
78306 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
78307
78308         Avoid the need for AC_LIBSOURCES in m4 macros.
78309         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
78310         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
78311         * modules/check-version (EXTRA_DIST): Add check-version.h.
78312         * modules/crc (EXTRA_DIST): Add crc.h.
78313         * modules/des (EXTRA_DIST): Add des.h.
78314         * modules/gc (EXTRA_DIST): Add gc.h.
78315         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
78316         * modules/getline (EXTRA_DIST): Add getline.h.
78317         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
78318         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
78319         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
78320         * modules/md2 (EXTRA_DIST): Add md2.h.
78321         * modules/md4 (EXTRA_DIST): Add md4.h.
78322         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
78323         * modules/read-file (EXTRA_DIST): Add read-file.h.
78324         * modules/readline (EXTRA_DIST): Add readline.h.
78325         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
78326         rijndael-api-fst.h.
78327
78328 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
78329
78330         * m4/rijndael.m4 (gl_ARCFOUR):
78331         * m4/arctwo.m4 (gl_ARCTWO):
78332         * m4/check-version.m4 (gl_CHECK_VERSION):
78333         * m4/crc.m4 (gl_CRC):
78334         * m4/des.m4 (gl_DES):
78335         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
78336         * m4/gc.m4 (gl_GC):
78337         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
78338         * m4/getline.m4 (gl_FUNC_GETLINE):
78339         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
78340         * m4/hmac-md5.m4 (gl_HMAC_MD5):
78341         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
78342         * m4/md2.m4 (gl_MD2):
78343         * m4/md4.m4 (gl_MD4):
78344         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
78345         * m4/read-file.m4 (gl_FUNC_READ_FILE):
78346         * m4/readline.m4 (gl_FUNC_READLINE):
78347         * m4/rijndael.m4 (gl_RIJNDAEL):
78348         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
78349         to get the necessary .h files and whatnot.
78350
78351 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
78352
78353         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
78354         gnulib rather than the other way around.
78355         * config/srclistvars.sh (COREUTILS): Remove.
78356
78357 2006-08-22  Jim Meyering  <jim@meyering.net>
78358
78359         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
78360
78361         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
78362
78363 2006-08-22  Eric Blake  <ebb9@byu.net>
78364
78365         * modules/regexprops-generic: New file.
78366         * MODULES.html.sh (Support for building documentation): List it.
78367
78368 2006-08-22  Eric Blake  <ebb9@byu.net>
78369
78370         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
78371         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
78372         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
78373         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
78374
78375 2006-08-22  Bruno Haible  <bruno@clisp.org>
78376
78377         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
78378         and lib_LTLIBRARIES like the other lib_* variables.
78379
78380 2006-08-22  Bruno Haible  <bruno@clisp.org>
78381
78382         * build-aux/x-to-1.in: New file, from GNU gettext.
78383
78384 2006-08-22  Bruno Haible  <bruno@clisp.org>
78385
78386         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
78387         <utmpx.h> exists.
78388
78389 2006-08-22  Bruno Haible  <bruno@clisp.org>
78390
78391         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
78392         <utmpx.h> exists.
78393
78394 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
78395
78396         BeOS portability.
78397         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
78398         exist.
78399         Problem reported by Bruno Haible.
78400
78401 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
78402
78403         Avoid the need for AC_LIBSOURCES in m4 macros.
78404         * modules/acl (EXTRA_DIST): Add acl.h.
78405         * modules/argmatch (Files): Add m4/argmatch.m4.
78406         (configure.ac): Add gl_ARGMATCH.
78407         (EXTRA_DIST): Renamed from lib_SOURCES, for
78408         consistency with the other modules.  Remove argmatch.c.
78409         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
78410         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
78411         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
78412         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
78413         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
78414         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
78415         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
78416         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
78417         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
78418         * modules/closeout (EXTRA_DIST): Add closeout.h.
78419         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
78420         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
78421         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
78422         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
78423         dirname.h; remove basename.c and stripslash.c.
78424         * modules/exclude (EXTRA_DIST): Add exclude.h.
78425         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
78426         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
78427         * modules/file-type (EXTRA_DIST): Add file-type.h.
78428         * modules/filemode (EXTRA_DIST): Add filemode.h.
78429         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
78430         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
78431         * modules/fpending (EXTRA_DIST): Add __fpending.h.
78432         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
78433         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
78434         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
78435         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
78436         * modules/getdate (EXTRA_DIST): Add getdate.c.
78437         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
78438         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
78439         * modules/getpass (EXTRA_DIST): Add getpass.h.
78440         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
78441         * modules/group-member (EXTRA_DIST): Add group-member.h.
78442         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
78443         * modules/hash (EXTRA_DIST): Add hash.h.
78444         * modules/human (EXTRA_DIST): Add human.h.
78445         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
78446         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
78447         * modules/lchown (EXTRA_DIST): Add lchown.h.
78448         * modules/long-options (EXTRA_DIST): Add long-options.h.
78449         * modules/lstat (EXTRA_DIST): Add lstat.h.
78450         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
78451         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
78452         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
78453         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
78454         * modules/memxor (EXTRA_DIST): Add memxor.h.
78455         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
78456         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
78457         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
78458         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
78459         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
78460         * modules/physmem (EXTRA_DIST): Add physmem.h.
78461         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
78462         * modules/posixver (EXTRA_DIST): Add posixver.h.
78463         * modules/quote (EXTRA_DIST): Add quote.h.
78464         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
78465         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
78466         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
78467         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
78468         regex_internal.h regexec.c.
78469         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
78470         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
78471         * modules/same (EXTRA_DIST): Add same.h.
78472         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
78473         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
78474         * modules/savedir (EXTRA_DIST): Add savedir.h.
78475         * modules/sha1 (EXTRA_DIST): Add sha1.h.
78476         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
78477         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
78478         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
78479         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
78480         * modules/strdup (EXTRA_DIST): Add strdup.h.
78481         * modules/strftime (EXTRA_DIST): Add strftime.h.
78482         * modules/strndup (EXTRA_DIST): Add strndup.h.
78483         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
78484         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
78485         * modules/time_r (EXTRA_DIST): Add time_r.h.
78486         * modules/timespec (EXTRA_DIST): Add timespec.h.
78487         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
78488         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
78489         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
78490         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
78491         * modules/userspec (EXTRA_DIST): Add userspec.h.
78492         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
78493         * modules/utimens (EXTRA_DIST): Add utimens.h.
78494         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
78495         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
78496         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
78497         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
78498         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
78499         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
78500         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
78501         * modules/yesno (EXTRA_DIST): Add yesno.h.
78502
78503 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
78504
78505         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
78506
78507         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
78508         * m4/dev-ino.m4, same-inode.m4: Remove.
78509
78510         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
78511         * m4/acl.m4 (AC_FUNC_ACL):
78512         * m4/backupfile.m4 (gl_BACKUPFILE):
78513         * m4/c-strtod.m4 (gl_C99_STRTOLD):
78514         * m4/canon-host.m4 (gl_CANON_HOST):
78515         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
78516         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
78517         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
78518         * m4/cloexec.m4 (gl_CLOEXEC):
78519         * m4/close-stream.m4 (gl_CLOSE_STREAM):
78520         * m4/closeout.m4 (gl_CLOSEOUT):
78521         * m4/dirfd.m4 (gl_FUNC_DIRFD):
78522         * m4/dirname.m4 (gl_DIRNAME):
78523         * m4/exclude.m4 (gl_EXCLUDE):
78524         * m4/exitfail.m4 (gl_EXITFAIL):
78525         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
78526         * m4/file-type.m4 (gl_FILE_TYPE):
78527         * m4/filemode.m4 (gl_FILEMODE):
78528         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
78529         * m4/fpending.m4 (gl_FUNC_FPENDING):
78530         * m4/fprintftime.m4 (gl_FPRINTFTIME):
78531         * m4/fts.m4 (gl_FUNC_FTS):
78532         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
78533         * m4/getdate.m4 (gl_GETDATE):
78534         * m4/gethrxtime.m4 (gl_GETHRXTIME):
78535         * m4/getpagesize.m4 (gl_GETPAGESIZE):
78536         * m4/getpass.m4 (gl_FUNC_GETPASS):
78537         * m4/gettime.m4 (gl_GETTIME):
78538         * m4/getugroups.m4 (gl_GETUGROUPS):
78539         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
78540         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
78541         * m4/hard-locale.m4 (gl_HARD_LOCALE):
78542         * m4/hash.m4 (gl_HASH):
78543         * m4/idcache.m4 (gl_IDCACHE):
78544         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
78545         * m4/lchown.m4 (gl_FUNC_LCHOWN):
78546         * m4/long-options.m4 (gl_LONG_OPTIONS):
78547         * m4/lstat.m4 (gl_FUNC_LSTAT):
78548         * m4/md5.m4 (gl_MD5):
78549         * m4/memcasecmp.m4 (gl_MEMCASECMP):
78550         * m4/memcoll.m4 (gl_MEMCOLL):
78551         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
78552         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
78553         * m4/memxor.m4 (gl_MEMXOR):
78554         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
78555         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
78556         * m4/modechange.m4 (gl_MODECHANGE):
78557         * m4/mountlist.m4 (gl_MOUNTLIST):
78558         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
78559         * m4/openat.m4 (gl_FUNC_OPENAT):
78560         * m4/pathmax.m4 (gl_PATHMAX):
78561         * m4/physmem.m4 (gl_PHYSMEM):
78562         * m4/posixtm.m4 (gl_POSIXTM):
78563         * m4/posixver.m4 (gl_POSIXVER):
78564         * m4/quote.m4 (gl_QUOTE):
78565         * m4/quotearg.m4 (gl_QUOTEARG):
78566         * m4/readtokens.m4 (gl_READTOKENS):
78567         * m4/readutmp.m4 (gl_READUTMP):
78568         * m4/regex.m4 (gl_REGEX):
78569         * m4/safe-read.m4 (gl_SAFE_READ):
78570         * m4/safe-write.m4 (gl_SAFE_WRITE):
78571         * m4/same.m4 (gl_SAME):
78572         * m4/save-cwd.m4 (gl_SAVE_CWD):
78573         * m4/savedir.m4 (gl_SAVEDIR):
78574         * m4/settime.m4 (gl_SETTIME):
78575         * m4/sha1.m4 (gl_SHA1):
78576         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
78577         * m4/stat-macros.m4 (gl_STAT_MACROS):
78578         * m4/stat-time.m4 (gl_STAT_TIME):
78579         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
78580         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
78581         * m4/strdup.m4 (gl_FUNC_STRDUP):
78582         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
78583         * m4/strndup.m4 (gl_FUNC_STRNDUP):
78584         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
78585         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
78586         * m4/time_r.m4 (gl_TIME_R):
78587         * m4/timespec.m4 (gl_TIMESPEC):
78588         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
78589         * m4/unlinkdir.m4 (gl_UNLINKDIR):
78590         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
78591         * m4/userspec.m4 (gl_USERSPEC):
78592         * m4/utimecmp.m4 (gl_UTIMECMP):
78593         * m4/utimens.m4 (gl_UTIMENS):
78594         * m4/xalloc.m4 (gl_XALLOC):
78595         * m4/xgetcwd.m4 (gl_XGETCWD):
78596         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
78597         * m4/xreadlink.m4 (gl_XREADLINK):
78598         * m4/xstrtod.m4 (gl_XSTRTOD):
78599         * m4/yesno.m4 (gl_YESNO):
78600         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
78601         to get the necessary .h files and whatnot.
78602
78603 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
78604             Bruno Haible  <bruno@clisp.org>
78605
78606         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
78607         /bin/sh understanding of '!' conditional negation.
78608
78609 2006-08-21  Jim Meyering  <jim@meyering.net>
78610
78611         * modules/openat (Depends-on): Really alphabetize.
78612
78613         * modules/acl (Depends-on): Add error and quote.
78614
78615         * check-module (find_included_lib_files): Add at-func.c to the
78616         ok-to-include-more-than-once white list.
78617
78618         * modules/openat (Depends-on): Add lstat.  Alphabetize.
78619
78620 2006-08-21  Bruno Haible  <bruno@clisp.org>
78621
78622         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78623         Emit a pkgdata_DATA variable only if some snippets add contents to it.
78624         Reported by Martin Lambers <marlam@marlam.de>.
78625
78626 2006-08-21  Bruno Haible  <bruno@clisp.org>
78627
78628         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
78629         specify an installation location, don't emit a noinst_LIBRARIES or
78630         noinst_LTLIBRARIES assignment.
78631
78632 2006-08-21  Bruno Haible  <bruno@clisp.org>
78633
78634         BeOS portability.
78635         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
78636         BeOS has mbrtowc() but no <wctype.h>.
78637
78638 2006-08-21  Bruno Haible  <bruno@clisp.org>
78639
78640         BeOS portability.
78641         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
78642         exist.
78643
78644 2006-08-21  Bruno Haible  <bruno@clisp.org>
78645
78646         BeOS portability.
78647         * lib/mbchar.h: Include <wctype.h> only if it exists.
78648
78649 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78650
78651         Remove files that are no longer needed by their respective modules.
78652         * m4/obstack.m4: Remove.
78653         * m4/strerror_r.m4: Remove.
78654         * m4/uint32_t.m4: Remove.
78655         * m4/uintptr_t.m4: Remove.
78656         * m4/ullong_max.m4: Remove.
78657         * m4/xstrtoimax.m4: Remove.
78658         * m4/xstrtoumax.m4: Remove.
78659
78660         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
78661         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
78662         dependencies now capture this.
78663
78664         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
78665         Do not use AC_LIBSOURCES, since gnulib modules now do this.
78666         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
78667         * m4/human.m4 (gl_HUMAN): Likewise.
78668         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
78669         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
78670
78671         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
78672
78673         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
78674         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
78675         stdint.
78676         * m4/human.m4 (gl_HUMAN): Likewise.
78677         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
78678         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
78679         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
78680         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
78681         * m4/xstrtol (gl_XSTRTOL): Likewise.
78682
78683         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
78684         AC_TYPE_LONG_LONG_INT.
78685         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
78686         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
78687         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
78688         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
78689
78690         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
78691         on stdbool.
78692
78693         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
78694         (gl_PREREQ_XSTRTOUL): Remove.
78695
78696         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
78697
78698         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
78699         mode.
78700
78701 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78702
78703         Add and change modules to make it easier for coreutils to use
78704         gnulib-tool.
78705         * modules/backupfile (Files): Remove m4/d-ino.m4.
78706         (Depends-on): Add d-ino.
78707         * modules/cycle-check (Depends-on): Add stdint.
78708         (lib_SOURCES): Add cycle-check.h.
78709         * modules/d-ino: New module.
78710         * modules/d-type: New module.
78711         * modules/error (Files): Remove m4/strerror_r.m4.
78712         * modules/filemode (Files): Add m4/st_dm_mode.m4.
78713         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
78714         m4/inttypes_h.m4, m4/uintmax_t.m4.
78715         (Depends-on): Add stdint.
78716         (lib_SOURCES): Add fsusage.h.
78717         * modules/getcwd (Files): Remove d-ino.m4.
78718         (Depends-on): Add d-ino.
78719         * modules/getndelim2 (Depends-on): Add stdint.
78720         * modules/glob (Files): Remove m4/d-type.m4.
78721         (Depends-on): Add d-type.
78722         * modules/host-os: New module.
78723         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
78724         m4/inttypes_h.m4, m4/uintmax_t.m4.
78725         * Depends-on: Add stdint.
78726         (lib_SOURCES): Add human.h.
78727         * modules/inttostr (Files): Remove m4/intmax_t.m4,
78728         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
78729         m4/uintmax_t.m4, m4/ulonglong.m4.
78730         (Depends-on): Add stdint.
78731         (EXTRA_DIST): Add inttostr.h.
78732         * modules/lchmod: New module.
78733         * modules/link-follow: New module.
78734         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
78735         (Depends-on): Add lchmod.
78736         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
78737         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
78738         (Depends-on): Add stdint.
78739         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
78740         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
78741         (Depends-on): Add stdint.
78742         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
78743         * modules/perl: New module.
78744         * modules/regex (Depends-on): Add stdint.
78745         * modules/rmdir-errno: New module.
78746         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
78747         m4/intmax_t.m4.
78748         (Depends-on): Add stdint.
78749         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
78750         m4/uintmax_t.m4.
78751         (Depends-on): Add stdint.
78752         * modules/unlink-busy: New module.
78753         * modules/utimecmp (Depends-on): Add stdint.
78754         * modules/uptime: New module.
78755         * modules/winsz-ioctl: New module.
78756         * modules/winsz-termios: New module.
78757         * modules/xnanosleep (Depends-on): Add nanosleep.
78758         * modules/ullong_max: Remove.
78759         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
78760         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
78761         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
78762         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
78763         (Depends-on): Add inttypes.
78764         (lib_SOURCES): Add xstrtol.h.
78765         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
78766         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
78767         * MODULES.html.sh: Move 'assert' into the assert section.
78768         Move 'dummy' into the linking section.
78769         Remove ullong_max.
78770         Add section for compatibility checks for POSIX:2001 functions,
78771         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
78772         winsz-ioctl, and winsz-termios into it.
78773         Add lchmod.
78774         Add top-level Misc section and put host-os, perl, and uptime
78775         into it.
78776
78777 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78778
78779         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
78780         now assume the stdint module.  Do not include inttypes.h.
78781         * lib/fsusage.h: Likewise.
78782         * lib/getndelim2.c: Likewise.
78783         * lib/human.h: Likewise.
78784         * lib/inttostr.h: Likewise.
78785         * lib/obstack.c: Likewise.
78786         * lib/regex_internal.h: Likewise.
78787         * lib/tempname.c: Likewise.
78788         * lib/utimecmp.c: Likewise.
78789         * lib/xstrtol.h: Likewise.
78790
78791         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
78792
78793         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
78794         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
78795         * lib/xtime.h: Likewise.
78796
78797 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78798
78799         * modules/openat (Files): Add lib/fchmodat.c.
78800         Fixes problem reported by Jay Youngman.
78801
78802 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78803
78804         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
78805         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
78806
78807 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
78808             Bruno Haible  <bruno@clisp.org>
78809
78810         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
78811         and is a script that invokes bison. Tighten the code. Add comments.
78812
78813 2006-08-18  Jim Meyering  <jim@meyering.net>
78814
78815         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
78816         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
78817         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
78818         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
78819
78820 2006-08-18  Bruno Haible  <bruno@clisp.org>
78821
78822         * modules/bison-i18n: New file.
78823         * MODULES.html.sh (Internationalization functions): Add it.
78824
78825 2006-08-18  Bruno Haible  <bruno@clisp.org>
78826
78827         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
78828         sys/statvfs.h. When getmntinfo was found, check its declaration and
78829         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
78830
78831 2006-08-18  Bruno Haible  <bruno@clisp.org>
78832
78833         * m4/bison-i18n.m4: New file, from bison.
78834
78835 2006-08-18  Bruno Haible  <bruno@clisp.org>
78836
78837         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
78838         (ME_DUMMY): Treat "kernfs" as a dummy.
78839         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
78840
78841 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
78842
78843         Update from coreutils.
78844
78845         2006-08-15  Jim Meyering  <jim@meyering.net>
78846
78847         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
78848
78849         2006-01-17  Jim Meyering  <jim@meyering.net>
78850
78851         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
78852
78853         2006-01-11  Jim Meyering  <jim@meyering.net>
78854
78855         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
78856         Check for the lchmod function.
78857
78858 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
78859
78860         Update from coreutils.
78861
78862         * lib/__fpending.h: Add copyright notice.
78863         * lib/fprintftime.h: Likewise.
78864         * lib/savedir.c: Use (C) in copyright notice.
78865         * lib/savedir.h: Likewise.
78866
78867         2006-08-15  Jim Meyering  <jim@meyering.net>
78868
78869         * lib/at-func.c: New file, with the logic of all emulated at-functions.
78870         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
78871         in support of the EXPECTED_ERRNO macro.
78872         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
78873         definitions.  Instead, define the appropriate symbols and include
78874         "at-func.c".
78875         * lib/mkdirat.c (mkdirat): Likewise.
78876         * lib/fchmodat.c (fchmodat): Likewise.
78877         (ENOSYS): Remove definition.
78878         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
78879         it.  Don't include "unistd--.h" -- it wasn't ever used.
78880
78881         2006-01-17  Jim Meyering  <jim@meyering.net>
78882
78883         Rewrite fts.c not to change the current working directory,
78884         by using openat, fstatat, fdopendir, etc..
78885
78886         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
78887         (HAVE_OPENAT_SUPPORT): Define.
78888         [_LIBC] (fchdir): Don't undef or define; no longer used.
78889         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
78890         Now, this `function' always succeeds, and consumes its file descriptor
78891         parameter -- so callers must not close such FDs.  Update callers.
78892         (diropen_fd, opendirat, cwd_advance_fd): New functions.
78893         (diropen): Add parameter, SP.  Adjust all callers.
78894         Implement using diropen_fd, rather than open.
78895         (fts_open): Initialize new member, fts_cwd_fd.
78896         Remove fts_rft-setting code.
78897         (fts_close): Close fts_cwd_fd, if necessary.
78898         (__opendir2): Define in terms of opendir or opendirat,
78899         depending on whether the FST_NOCHDIR flag is set.
78900         (fts_build): Since fts_safe_changedir consumes its FD, and since
78901         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
78902         and close the dup'd file descriptor upon failure.
78903         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
78904         (fts_safe_changedir): Tweak semantics to reflect that this function
78905         now calls cwd_advance_fd and hence consumes its FD argument.
78906         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
78907         [struct FTS] (fts_rft): Remove now-unused member.
78908         [struct FTS] (fts_cycle.state): Improve comment.
78909
78910         * lib/openat.c (openat_needs_fchdir): New function.
78911         * lib/openat.h (openat_needs_fchdir): Declare it.
78912
78913 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
78914
78915         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
78916         Problem and fix reported by Pádraig Brady in
78917         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
78918
78919 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78920
78921         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
78922
78923 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78924
78925         * lib/memcoll.c (memcoll): Optimize for the common case where the
78926         arguments are bytewise equal.
78927
78928 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78929
78930         * doc/regexprops-generic.texi: Add a copyright notice.
78931
78932 2006-08-15  Bruno Haible  <bruno@clisp.org>
78933
78934         * modules/tmpdir (License): Change to LGPL.
78935
78936 2006-08-15  Bruno Haible  <bruno@clisp.org>
78937
78938         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
78939         module.
78940
78941 2006-08-14  Simon Josefsson  <jas@extundo.com>
78942
78943         * config/srclist.txt: Add gnupload.
78944
78945 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
78946
78947         Change copyright notice from LGPL 2 to GPL 2, since that's the
78948         standard form used in the gnulib repository.
78949         * tests/test-lock.c: Likewise.
78950         * tests/test-stdint.c: Likewise.
78951         * tests/test-tls.c: Likewise.
78952
78953         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
78954         prelude-manager.  User shorter URLs for GNU projects, without '?'.
78955         Add copyright notice.
78956
78957         * check-module: Add copyright notice.  Output a copyright
78958         notice if "--version" is specified.
78959         * modules/COPYING: New file.
78960         * tests/test-getaddrinfo.c: Add copyright notice.
78961         * tests/test-verify.c: Likewise.
78962
78963 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
78964
78965         Change copyright notice from LGPL 2 to GPL 2, since that's the
78966         standard form used in the gnulib repository.
78967         * lib/lock.c: LGPL -> GPL.
78968         * lib/lock.h: Likewise.
78969         * lib/strnlen1.c: Likewise.
78970         * lib/strnlen1.h: Likewise.
78971         * lib/tls.c: Likewise.
78972         * lib/tls.h: Likewise.
78973         * lib/tmpdir.c: Likewise.
78974
78975         * lib/TODO: Remove; this belongs only in coreutils.
78976
78977 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
78978
78979         Add copyright notices to long-enough files that lack them, since
78980         otherwise the files aren't clearly free.  Use the same notice that
78981         getdate.texi already uses.
78982         * doc/alloca-opt.texi: Add copyright notice.
78983         * doc/alloca.texi: Likewise.
78984         * doc/ctime.texi: Likewise.
78985         * doc/functions.texi: Likewise.
78986         * doc/gcd.texi: Likewise.
78987         * doc/gnulib-tool.texi: Likewise.
78988         * doc/inet_ntoa.texi: Likewise.
78989         * doc/visibility.texi: Likewise.
78990
78991         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
78992         * doc/quote.texi: Add copyright notice.
78993
78994         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
78995         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
78996         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
78997         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
78998         is now obsolete, and give a pointer to the Sun list.
78999         Add copyright notice.
79000
79001 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
79002
79003         * config/srclistvars.sh: Add copyright notice.
79004
79005 2006-08-14  Eric Blake  <ebb9@byu.net>
79006
79007         Import the following change from libc:
79008
79009         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
79010
79011         Upstream bug 2997.
79012         * lib/misc/error.c: Add space between program name and message if file
79013         name is missing.
79014
79015 2006-08-12  Karl Berry  <karl@gnu.org>
79016
79017         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
79018         remove, these originate in gnulib now.
79019
79020 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79021
79022         * doc/Makefile (standards.info standards.html standards.dvi):
79023         Also depend on make-stds.texi.
79024
79025 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79026
79027         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
79028         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
79029
79030         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
79031         in wchar_t.  Problem reported by Eric Blake.
79032
79033         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
79034         LEN is smaller than SIZE.  Suggested by Bruno Haible.
79035         Also, help the compiler to keep LEN in a register.
79036
79037 2006-08-11  Eric Blake  <ebb9@byu.net>
79038
79039         * users.txt: Sort.  Add tar.
79040
79041 2006-08-11  Bruno Haible  <bruno@clisp.org>
79042
79043         * users.txt: New file.
79044
79045 2006-08-11  Bruno Haible  <bruno@clisp.org>
79046
79047         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
79048         before <wchar.h>. Needed for OSF/1 and BSD/OS.
79049
79050 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
79051
79052         * modules/snprintf (Depends-on): Remove minmax.
79053         (Maintainer): Add self and Bruno.
79054
79055 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
79056
79057         * lib/.cppi-disable: Add snprintf.h, socket_.h.
79058         * lib/snprintf.c: Include <errno.h> and <limits.h>.
79059         (EOVERFLOW): Define if the system does not.
79060         Do not include "minmax.h"; it wasn't used.
79061         (snprintf): Don't assume size_t promotes to an unsigned type.
79062         Fix bug when generated string was too long for the buffer: the
79063         buffer's contents are supposed to be the initial prefix of the
79064         output.  Don't assume vasnprintf returns EOVERFLOW if the size
79065         exceeds INT_MAX; do the check ourselves.
79066
79067         Import the following changes from libc:
79068
79069         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
79070
79071         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
79072         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
79073         set wc to the byte which couldn't be converted.
79074         (re_string_reconstruct): Don't clear valid_raw_len before calling
79075         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
79076         tip_context using re_string_context_at.
79077
79078         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
79079
79080         * lib/posix/regex.h: g++ still cannot handled [restrict].
79081
79082         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
79083
79084         * lib/posix/regex.h: Remove special handling for VMS.
79085
79086 2006-08-10  Jim Meyering  <jim@meyering.net>
79087
79088         * modules/same-inode: New module.
79089         * modules/dev-ino: New module.
79090         * modules/cycle-check: Depend on these modules, rather than simply
79091         including their .h files.
79092         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
79093         required via m4/cycle-check.m4.
79094         * modules/same: Depend on new same-inode module, rather than
79095         including same-inode.h.
79096         * modules/chdir-safer: New file.
79097
79098         * modules/chown (Depends-on): Add stat-macros.
79099
79100 2006-08-10  Jim Meyering  <jim@meyering.net>
79101
79102         * m4/cycle-check.m4: New file.
79103         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
79104         * m4/dev-ino.m4, m4/same-inode.m4: New files.
79105
79106 2006-08-10  Eric Blake  <ebb9@byu.net>
79107
79108         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
79109         in from original proposal.
79110
79111 2006-08-10  Eric Blake  <ebb9@byu.net>
79112         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
79113
79114         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
79115         namespace.
79116
79117 2006-08-10  Bruno Haible  <bruno@clisp.org>
79118
79119         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
79120         as well.
79121
79122 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79123
79124         Sync from coreutils.
79125
79126         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
79127
79128         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
79129         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
79130
79131 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79132
79133         * modules/restrict: Remove; no longer needed now that we assume
79134         Autoconf 2.59 or later.
79135         * MODULES.html.sh: Remove 'restrict'.
79136         * modules/argp (Depends-on): Remove 'restrict'.
79137         * modules/base64 (Depends-on): Likewise.
79138         * modules/gc (Depends-on): Likewise.
79139         * modules/getaddrinfo (Depends-on): Likewise.
79140         * modules/glob (Depends-on): Likewise.
79141         * modules/inet_ntop (Depends-on): Likewise.
79142         * modules/inet_pton (Depends-on): Likewise.
79143         * modules/memxor (Depends-on): Likewise.
79144         * modules/regex (Depends-on): Likewise.
79145         * modules/strtok_r (Depends-on): Likewise.
79146         * modules/time_r (Depends-on): Likewise.
79147
79148 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79149
79150         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
79151         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
79152         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
79153         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
79154         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
79155         * m4/memxor.m4 (gl_MEMXOR): Likewise.
79156         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
79157         gl_C_RESTRICT replaced by AC_C_RESTRICT.
79158
79159         Merge from coreutils.
79160         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
79161         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
79162         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
79163         * m4/time_r.m4 (gl_TIME_R): Likewise.
79164
79165 2006-08-09  Karl Berry  <karl@gnu.org>
79166
79167         * config/srclist.txt: no more gettext-tools, per Bruno.
79168
79169 2006-08-08  Eric Blake  <ebb9@byu.net>
79170
79171         * modules/verror: New module.
79172         * MODULES.html.sh: Document it.
79173
79174 2006-08-08  Eric Blake  <ebb9@byu.net>
79175
79176         * lib/verror.h, lib/verror.c: New files.
79177
79178 2006-08-08  Eric Blake  <ebb9@byu.net>
79179
79180         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
79181         verror_at_line output complies with GNU Coding Standards even when
79182         file is NULL.
79183
79184 2006-08-07  Bruno Haible  <bruno@clisp.org>
79185
79186         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
79187         versions of AIX.
79188         Reported by Ralf Wildenhues.
79189
79190 2006-08-07  Bruno Haible  <bruno@clisp.org>
79191
79192         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
79193         in an AC_DEFUN. Needed so that the autoconf snippets can use
79194         AC_REQUIRE.
79195
79196 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79197
79198         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79199         Initialize pkgdata_DATA.
79200         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
79201         overriding it.
79202
79203 2006-08-06  Eric Blake  <ebb9@byu.net>
79204
79205         * lib/error.h: Fold in some upstream changes from glibc.
79206         * lib/error.c: Likewise.
79207
79208 2006-08-04  Bruno Haible  <bruno@clisp.org>
79209
79210         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79211         Make the mostlyclean-local rule depend on mostlyclean-generic.
79212         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
79213
79214 2006-07-31  Bruno Haible  <bruno@clisp.org>
79215
79216         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
79217         <stdlib.h>, <string.h>.
79218
79219 2006-07-30  Bruno Haible  <bruno@clisp.org>
79220
79221         * modules/readlink (License): Change to LGPL.
79222
79223 2006-07-30  Bruno Haible  <bruno@clisp.org>
79224
79225         * modules/javaversion (Makefile.am): Distribute javaversion.java and
79226         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
79227         set PKGDATADIR to point to it.
79228
79229 2006-07-30  Bruno Haible  <bruno@clisp.org>
79230
79231         * modules/csharpexec (configure.ac): Comment out macro invocation.
79232         * modules/javaexec (configure.ac): Likewise.
79233         * modules/javacomp-script (configure.ac): Likewise.
79234
79235         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
79236
79237 2006-07-30  Bruno Haible  <bruno@clisp.org>
79238
79239         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
79240         linked-list.
79241
79242 2006-07-30  Bruno Haible  <bruno@clisp.org>
79243
79244         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
79245
79246 2006-07-30  Bruno Haible  <bruno@clisp.org>
79247
79248         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79249         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
79250         get removed.
79251
79252 2006-07-29  Bruno Haible  <bruno@clisp.org>
79253
79254         Make it possible for gnulib-tool to work with locally modified or
79255         augmented gnulib repositories.
79256         * gnulib-tool (func_usage): Document --local-dir option.
79257         (local_gnulib_dir): New variable.
79258         Handle --local-dir option.
79259         (func_lookup_file): New function.
79260         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
79261         (func_get_description, func_get_filelist, func_get_description,
79262         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
79263         func_get_automake_snippet, func_get_include_directive,
79264         func_get_license, func_get_maintainer): Use func_lookup_file.
79265         (func_import, func_create_testdir): Use func_lookup_file.
79266
79267 2006-07-29  Bruno Haible  <bruno@clisp.org>
79268
79269         * modules/setenv (Depends-on): Add unistd.
79270
79271 2006-07-29  Bruno Haible  <bruno@clisp.org>
79272
79273         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
79274
79275 2006-07-29  Bruno Haible  <bruno@clisp.org>
79276
79277         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
79278
79279 2006-07-29  Bruno Haible  <bruno@clisp.org>
79280
79281         * gnulib-tool (import, update): If there is no Makefile.am, look at
79282         aclocal.m4, instead of bailing out.
79283
79284 2006-07-29  Bruno Haible  <bruno@clisp.org>
79285
79286         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
79287         Categorize the options by when they are useful.
79288
79289 2006-07-29  Bruno Haible  <bruno@clisp.org>
79290
79291         * gnulib-tool (func_usage): Document option --no-libtool.
79292         Handle option --no-libtool.
79293         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
79294         for changed semantics of $libtool variable.
79295         (func_import): Likewise. If libtool is not used, show this through
79296         an option --no-libtool.
79297         (func_create_testdir): Update.
79298
79299 2006-07-29  Bruno Haible  <bruno@clisp.org>
79300
79301         * gnulib-tool (func_import): Extend error message about missing
79302         --doc-base.
79303
79304 2006-07-29  Bruno Haible  <bruno@clisp.org>
79305
79306         * gnulib-tool (func_import): Don't create the $docbase directory if
79307         there is no file to store there.
79308
79309 2006-07-29  Bruno Haible  <bruno@clisp.org>
79310
79311         * gnulib-tool (autoconf_minversion): If a --dir option is given and
79312         relevant, look for configure.ac there, not in the current directory.
79313         Also use a simple search for AC_PREREQ, not "autoconf --trace".
79314
79315 2006-07-29  Bruno Haible  <bruno@clisp.org>
79316
79317         * gnulib-tool (SORT): New variable.
79318         (func_usage): Undocument --assume-autoconf option.
79319         Remove --assume-autoconf option handling.
79320         (autoconf_minversion): Determine from the contents of configure.ac.
79321         (func_import): Remove autoconf_minversion handling.
79322         Suggested by Eric Blake.
79323
79324 2006-07-29  Bruno Haible  <bruno@clisp.org>
79325
79326         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
79327
79328 2006-07-29  Bruno Haible  <bruno@clisp.org>
79329
79330         * config/srclist.txt (*setenv.[ch]): Remove rules.
79331
79332 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79333
79334         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
79335
79336 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79337
79338         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
79339         arpa/inet.h.
79340
79341 2006-07-28  Simon Josefsson  <jas@extundo.com>
79342
79343         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
79344         * modules/inet_pton (Depends-on): Likewise.
79345
79346 2006-07-28  Simon Josefsson  <jas@extundo.com>
79347
79348         * m4/netinet_in_h.m4: New file.
79349
79350 2006-07-28  Simon Josefsson  <jas@extundo.com>
79351
79352         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
79353         #include's.
79354
79355 2006-07-28  Simon Josefsson  <jas@extundo.com>
79356
79357         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
79358         #include's.
79359
79360 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
79361
79362         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
79363         setgid on directories only if they set these bits.
79364         * lib/modechange.h: Remove obsolete comment about masks.
79365
79366 2006-07-28  Eric Blake  <ebb9@byu.net>
79367
79368         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
79369         macro expansion.
79370
79371 2006-07-28  Bruno Haible  <bruno@clisp.org>
79372
79373         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
79374
79375 2006-07-28  Bruno Haible  <bruno@clisp.org>
79376
79377         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
79378
79379 2006-07-28  Bruno Haible  <bruno@clisp.org>
79380
79381         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
79382         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
79383         Define fallbacks.
79384         Avoids link error on FreeBSD 4.x.
79385         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
79386
79387         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
79388         encoding.
79389         * lib/mbswidth.c (iswcntrl): Likewise.
79390
79391 2006-07-27  Bruno Haible  <bruno@clisp.org>
79392
79393         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
79394         test.
79395
79396 2006-07-27  Bruno Haible  <bruno@clisp.org>
79397
79398         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
79399         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
79400         defined.
79401
79402 2006-07-26  Eric Blake  <ebb9@byu.net>
79403
79404         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
79405
79406 2006-07-26  Eric Blake  <ebb9@byu.net>
79407
79408         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
79409         like mingw that lack mkstemp.
79410         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
79411         avoid compilation warning on mingw.
79412
79413 2006-07-26  Bruno Haible  <bruno@clisp.org>
79414
79415         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
79416         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
79417         INT_FAST*_MIN, INTPTR_MIN.
79418
79419 2006-07-25  Bruno Haible  <bruno@clisp.org>
79420
79421         * modules/version-etc (Depends-on): Add stdarg.
79422
79423 2006-07-25  Bruno Haible  <bruno@clisp.org>
79424
79425         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
79426         complex commands.
79427
79428 2006-07-25  Bruno Haible  <bruno@clisp.org>
79429
79430         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
79431         defined in <stdarg.h> or config.h.
79432
79433 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
79434
79435         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
79436         (gl_STDIO_SAFER): Remove.
79437
79438 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
79439
79440         * MODULES.html.sh (File stream based Input/Output):
79441         Add fopen-safer, tmpfile-safer; remove stdio-safer.
79442         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
79443         * modules/fopen-safer, modules/tmpfile-safer: New files.
79444         * modules/stdio-safer: Remove.
79445
79446 2006-07-24  Bruno Haible  <bruno@clisp.org>
79447
79448         * modules/tmpdir: New file.
79449         * MODULES.html.sh (File system functions): Add it.
79450
79451 2006-07-24  Bruno Haible  <bruno@clisp.org>
79452
79453         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
79454         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
79455
79456 2006-07-24  Bruno Haible  <bruno@clisp.org>
79457
79458         * modules/clean-temp: New file.
79459
79460 2006-07-24  Bruno Haible  <bruno@clisp.org>
79461
79462         * m4/tmpdir.m4: New file, from GNU gettext.
79463
79464 2006-07-24  Bruno Haible  <bruno@clisp.org>
79465
79466         * lib/tmpdir.h: New file, from GNU gettext.
79467         * lib/tmpdir.c: New file, from GNU gettext.
79468
79469 2006-07-24  Bruno Haible  <bruno@clisp.org>
79470
79471         * lib/clean-temp.h: New file, from GNU gettext.
79472         * lib/clean-temp.c: New file, from GNU gettext.
79473
79474 2006-07-23  Eric Blake  <ebb9@byu.net>
79475
79476         * modules/stdio-safer (Files): Add tmpfile-safer.c.
79477         (Depends-on): Add binary-io.
79478
79479 2006-07-23  Eric Blake  <ebb9@byu.net>
79480
79481         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
79482
79483 2006-07-23  Eric Blake  <ebb9@byu.net>
79484
79485         * lib/tmpfile-safer.c: New file.
79486         * lib/stdio-safer.h (fopen_safer): Add prototype.
79487         * lib/stdio--.h (tmpfile): Make safer.
79488
79489 2006-07-23  Bruno Haible  <bruno@clisp.org>
79490
79491         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
79492         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
79493         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
79494         gl_linked_remove_at): Use it.
79495
79496 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79497         and Simon Josefsson <jas@extundo.com>
79498
79499         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
79500
79501         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
79502
79503 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
79504
79505         * modules/close-stream: New file.
79506         * modules/closeout (Description): Make it clear that it exits
79507         with a diagnostic on error.
79508         (Depends-on): Add close-stream.  Remove fpending, stdbool.
79509         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
79510
79511 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
79512
79513         * m4/close-stream.m4: New file.
79514
79515 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
79516
79517         * lib/close-stream.c, lib/close-stream.h: New files.
79518
79519 2006-07-22  Bruno Haible  <bruno@clisp.org>
79520
79521         Merge from GNU gettext 0.15.
79522
79523         2006-05-01  Bruno Haible  <bruno@clisp.org>
79524
79525                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
79526
79527         2006-07-22  Bruno Haible  <bruno@clisp.org>
79528
79529                 * modules/javaversion: New file.
79530                 * MODULES.html.sh (Java): Add javaversion.
79531
79532         2006-03-12  Bruno Haible  <bruno@clisp.org>
79533
79534                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
79535
79536         2005-12-04  Bruno Haible  <bruno@clisp.org>
79537
79538                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
79539                 (untested).
79540
79541         2006-06-21  Bruno Haible  <bruno@clisp.org>
79542
79543                 Avoid warnings from recent versions of mcs.
79544                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
79545                 -o, -L, -r any more. Use options documented since mcs-1.0
79546                 instead. Similarly for -g.
79547
79548         2005-12-04  Bruno Haible  <bruno@clisp.org>
79549
79550                 * build-aux/csharpcomp.sh.in: Suffix for resources is
79551                 .resources, not .resource.
79552
79553         2005-07-09  Bruno Haible  <bruno@clisp.org>
79554
79555                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
79556                 add a .dll suffix.
79557                 Reported by Mark Junker <mjscod@gmx.de>.
79558
79559         2006-07-22  Bruno Haible  <bruno@clisp.org>
79560
79561                 * modules/gettext: Upgrade to gettext-0.15.
79562                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
79563                 m4/visibility.m4.
79564                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
79565
79566 2006-07-22  Bruno Haible  <bruno@clisp.org>
79567
79568         Merge from GNU gettext 0.15.
79569
79570         2006-03-25  Bruno Haible  <bruno@clisp.org>
79571
79572                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
79573
79574         2006-07-21  Bruno Haible  <bruno@clisp.org>
79575
79576                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
79577                 "1.1".
79578
79579         2006-05-09  Bruno Haible  <bruno@clisp.org>
79580
79581                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
79582                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
79583                 for the conftestver execution.
79584
79585         2006-05-01  Bruno Haible  <bruno@clisp.org>
79586
79587                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
79588                 optional target-version argument. Verify that the compiler
79589                 groks source of the specified source-version, or add -source
79590                 option as necessary. Verify that the compiler produces
79591                 bytecode in the specified target-version, or add -target and
79592                 -source options as necessary. Make the result of the test
79593                 available as variable CONF_JAVAC. Also log error output in
79594                 config.log.
79595
79596         2006-03-11  Bruno Haible  <bruno@clisp.org>
79597
79598                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
79599
79600         2006-05-09  Bruno Haible  <bruno@clisp.org>
79601
79602                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
79603                 CLASSPATH_SEPARATOR to a semicolon.
79604
79605         2006-03-12  Bruno Haible  <bruno@clisp.org>
79606
79607                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
79608                 available as variable CONF_JAVA, for subsequent autoconf
79609                 tests. Also log error output in config.log.
79610
79611         2006-07-19  Bruno Haible  <bruno@clisp.org>
79612
79613                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
79614                 that getline works on glibc2 systems. Needed to avoid trouble
79615                 in relocatable.c.
79616                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
79617
79618         2005-12-04  Bruno Haible  <bruno@clisp.org>
79619
79620                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
79621                 launcher (untested).
79622
79623         2005-12-04  Bruno Haible  <bruno@clisp.org>
79624
79625                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
79626
79627         2006-07-22  Bruno Haible  <bruno@clisp.org>
79628
79629                 * gettext.m4: Update from GNU gettext-0.15.
79630                 * nls.m4: Likewise.
79631                 * po.m4: Likewise.
79632                 * inttypes-pri.m4: Likewise.
79633                 * inttypes-h.m4: Renamed from inttypes.m4.
79634                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
79635
79636 2006-07-22  Bruno Haible  <bruno@clisp.org>
79637
79638         Merge from GNU gettext 0.15.
79639
79640         2005-07-05  Bruno Haible  <bruno@clisp.org>
79641
79642                 * printf-args.c (printf_fetchargs): Work around broken
79643                 definition of wint_t on mingw.
79644
79645         2005-02-12  Bruno Haible  <bruno@clisp.org>
79646
79647                 * xallocsa.h: Add extern "C" for C++.
79648
79649         2006-05-17  Bruno Haible  <bruno@clisp.org>
79650
79651                 Cygwin portability.
79652                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
79653
79654         2006-04-30  Bruno Haible  <bruno@clisp.org>
79655
79656                 * progreloc.c: Include <mach-o/dyld.h> if available.
79657                 (find_executable): Use _NSGetExecutablePath when possible.
79658
79659         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
79660
79661                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
79662                 function.
79663
79664         2005-12-29  Bruno Haible  <bruno@clisp.org>
79665
79666                 * progreloc.c (set_program_name_and_installdir): Fix
79667                 compilation error.
79668
79669         2005-12-04  Bruno Haible  <bruno@clisp.org>
79670
79671                 Cygwin portability.
79672                 * progreloc.c: Include <windows.h> also on Cygwin.
79673                 (find_executable): Add support for Cygwin.
79674                 (set_program_name_and_installdir): Handle also platforms with
79675                 nonempty EXEEXT.
79676
79677         2006-07-11  Bruno Haible  <bruno@clisp.org>
79678
79679                 * javacomp.c: Fix a comment.
79680                 Reported by Jim Meyering.
79681
79682         2006-04-30  Bruno Haible  <bruno@clisp.org>
79683
79684                 * javacomp.h (compile_java_class): Add source_version,
79685                 target_version arguments.
79686                 * javacomp.c: Rewritten to choose only a compiler that
79687                 respects the specified source_version and target_version.
79688
79689         2006-06-27  Bruno Haible  <bruno@clisp.org>
79690
79691                 Assume correct S_ISDIR macro.
79692                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
79693
79694         2006-07-22  Bruno Haible  <bruno@clisp.org>
79695
79696                 * javaversion.h: New file, from GNU gettext.
79697                 * javaversion.c: New file, from GNU gettext.
79698                 * javaversion.java: New file, from GNU gettext.
79699                 * javaversion.class: New file, from GNU gettext.
79700
79701         2006-05-17  Bruno Haible  <bruno@clisp.org>
79702
79703                 Cygwin portability.
79704                 * javaexec.c (execute_java_class): Test for jview program
79705                 also on Cygwin.
79706
79707         2006-04-09  Bruno Haible  <bruno@clisp.org>
79708
79709                 * fatal-signal.c: Don't include string.h.
79710                 (at_fatal_signal): Use a copying loop instead of memcpy.
79711
79712         2005-12-04  Bruno Haible  <bruno@clisp.org>
79713
79714                 * csharpexec.c: Add support for 'clix' launcher (untested).
79715                 (execute_csharp_using_sscli): New function.
79716                 (execute_csharp_program): Call it.
79717
79718         2006-06-21  Bruno Haible  <bruno@clisp.org>
79719
79720                 Avoid warnings from recent versions of mcs.
79721                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
79722                 -o, -L, -r any more. Use options documented since mcs-1.0
79723                 instead. Similarly for -g.
79724
79725         2005-07-09  Bruno Haible  <bruno@clisp.org>
79726
79727                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
79728                 add a .dll suffix.
79729                 Reported by Mark Junker <mjscod@gmx.de>.
79730
79731         2006-06-17  Bruno Haible  <bruno@clisp.org>
79732
79733                 * config.charset: Update for NetBSD 3.0.
79734
79735         2006-05-17  Bruno Haible  <bruno@clisp.org>
79736
79737                 Cygwin portability.
79738                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
79739
79740         2006-05-16  Bruno Haible  <bruno@clisp.org>
79741
79742                 * localcharset.c [CYGWIN]: Include <windows.h>.
79743                 (get_charset_aliases): For Cygwin, return the same CPxxx
79744                 aliases list as under WIN32.
79745                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
79746                 the environment variables. Fall back to GetACP().
79747
79748         2006-04-05  Bruno Haible  <bruno@clisp.org>
79749
79750                 * config.charset: Update Juan Manuel Guerrero's address.
79751
79752         2005-02-12  Bruno Haible  <bruno@clisp.org>
79753
79754                 * allocsa.h: Add extern "C" for C++.
79755
79756         2005-02-10  Bruno Haible  <bruno@clisp.org>
79757
79758                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
79759                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
79760
79761         2006-07-22  Bruno Haible  <bruno@clisp.org>
79762
79763                 * gettext.h: Update to GNU gettext-0.15.
79764
79765 2006-07-22  Bruno Haible  <bruno@clisp.org>
79766
79767         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
79768         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
79769         lib-prefix.m4, longdouble.m4, ssize_t.m4.
79770
79771 2006-07-21  Eric Blake  <ebb9@byu.net>
79772
79773         * modules/stdlib-safer: New file.
79774         * MODULES.html.sh (File stream based Input/Output): Add
79775         stdlib-safer.
79776
79777 2006-07-21  Eric Blake  <ebb9@byu.net>
79778
79779         * lib/stdlib-safer.h: New file from coreutils, required by
79780         stdlib--.h.
79781
79782 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
79783
79784         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
79785
79786 2006-07-20  Bruno Haible  <bruno@clisp.org>
79787
79788         * gnulib-tool: Recognize new option --assume-autoconf.
79789         (autoconf_minversion): New variable.
79790         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
79791
79792 2006-07-20  Bruno Haible  <bruno@clisp.org>
79793
79794         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
79795
79796 2006-07-19  Derek R. Price  <derek@ximbiot.com>
79797
79798         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
79799         Reindent and repaginate.
79800
79801 2006-07-19  Derek Price  <derek@ximbiot.com>
79802
79803         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
79804         Correct grammar.
79805
79806 2006-07-17  Bruno Haible  <bruno@clisp.org>
79807
79808         * modules/list: New file.
79809         * modules/array-list: New file.
79810         * modules/carray-list, modules/carray-list-tests: New files.
79811         * modules/linked-list, modules/linked-list-tests: New files.
79812         * modules/avltree-list, modules/avltree-list-tests: New files.
79813         * modules/rbtree-list, modules/rbtree-list-tests: New files.
79814         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
79815         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
79816         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
79817         * modules/oset: New file.
79818         * modules/array-oset: New file.
79819         * modules/avltree-oset, modules/avltree-oset-tests: New files.
79820         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
79821         * tests/test-carray_list.c: New file.
79822         * tests/test-linked_list.c: New file.
79823         * tests/test-avltree_list.c: New file.
79824         * tests/test-rbtree_list.c: New file.
79825         * tests/test-linkedhash_list.c: New file.
79826         * tests/test-avltreehash_list.c: New file.
79827         * tests/test-rbtreehash_list.c: New file.
79828         * tests/test-avltree_oset.c: New file.
79829         * tests/test-rbtree_oset.c: New file.
79830         * MODULES.html.sh (Container data structures): New section.
79831
79832 2006-07-17  Bruno Haible  <bruno@clisp.org>
79833
79834         * m4/gl_list.m4: New file.
79835
79836 2006-07-17  Bruno Haible  <bruno@clisp.org>
79837
79838         * lib/gl_list.h: New file.
79839         * lib/gl_list.c: New file.
79840         * lib/gl_array_list.h: New file.
79841         * lib/gl_array_list.c: New file.
79842         * lib/gl_carray_list.h: New file.
79843         * lib/gl_carray_list.c: New file.
79844         * lib/gl_linked_list.h: New file.
79845         * lib/gl_linked_list.c: New file.
79846         * lib/gl_anylinked_list1.h: New file.
79847         * lib/gl_anylinked_list2.h: New file.
79848         * lib/gl_avltree_list.h: New file.
79849         * lib/gl_avltree_list.c: New file.
79850         * lib/gl_anyavltree_list1.h: New file.
79851         * lib/gl_anyavltree_list2.h: New file.
79852         * lib/gl_rbtree_list.h: New file.
79853         * lib/gl_rbtree_list.c: New file.
79854         * lib/gl_anyrbtree_list1.h: New file.
79855         * lib/gl_anyrbtree_list2.h: New file.
79856         * lib/gl_anytree_list1.h: New file.
79857         * lib/gl_anytree_list2.h: New file.
79858         * lib/gl_linkedhash_list.h: New file.
79859         * lib/gl_linkedhash_list.c: New file.
79860         * lib/gl_anyhash_list1.h: New file.
79861         * lib/gl_anyhash_list2.h: New file.
79862         * lib/gl_avltreehash_list.h: New file.
79863         * lib/gl_avltreehash_list.c: New file.
79864         * lib/gl_rbtreehash_list.h: New file.
79865         * lib/gl_rbtreehash_list.c: New file.
79866         * lib/gl_anytreehash_list1.h: New file.
79867         * lib/gl_anytreehash_list2.h: New file.
79868
79869         * lib/gl_oset.h: New file.
79870         * lib/gl_oset.c: New file.
79871         * lib/gl_array_oset.h: New file.
79872         * lib/gl_array_oset.c: New file.
79873         * lib/gl_avltree_oset.h: New file.
79874         * lib/gl_avltree_oset.c: New file.
79875         * lib/gl_rbtree_oset.h: New file.
79876         * lib/gl_rbtree_oset.c: New file.
79877         * lib/gl_anytree_oset.h: New file.
79878
79879 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
79880
79881         * m4/mkancesdirs.m4: New file.
79882         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
79883         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
79884         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
79885         it.
79886
79887 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
79888
79889         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
79890         * lib/mkancesdirs.h: New files.
79891         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
79892         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
79893         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
79894         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
79895         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
79896         callers changed.  Revamp internals significantly, by not
79897         attempting to create directories that are temporarily more
79898         permissive than the final results.  Do not attempt to use
79899         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
79900         This removes some race conditions, fixes some bugs, and simplifies
79901         things.  Use new dirchownmod function to do owner and mode changes.
79902         * lib/mkdir-p.h: Likewise.
79903         * lib/modechange.c (octal_to_mode): New function.
79904         (struct mode_change): New member mentioned.
79905         (make_node_op_equals): New arg mentioned.  All callers changed.
79906         (mode_compile): Keep track of which mode bits the user has explicitly
79907         mentioned.
79908         (mode_adjust): New arg DIR, so that we implement the X op correctly.
79909         New arg PMODE_BITS, to keep track of which mode bits the user
79910         mentioned; it treats S_ISUID and S_ISGID speciall.
79911         All callers changed.
79912         * lib/modechange.h: Likewise.
79913
79914 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
79915
79916         * MODULES.html.sh: Add mkancestors.
79917         * modules/mkancesdirs: New module.
79918         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
79919         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
79920         The chdir-safer and afs files are now orphans; I'll remove them
79921         unless someone speaks up.
79922         Add lib/dirchownmod.c, lib/dirchownmod.h.
79923         (Depends-on): Remove alloca, chown, save-cwd, dirname.
79924         Add lchown, mkancesdirs.
79925         (Maintainer): Add self.
79926
79927 2006-07-15  Karl Berry  <karl@gnu.org>
79928
79929         * gnulib-tool: help message wording/arrangement.
79930
79931 2006-07-14  Simon Josefsson  <jas@extundo.com>
79932
79933         * doc/gnulib.texi (Libtool and Windows): New section.
79934
79935 2006-07-12  Simon Josefsson  <jas@extundo.com>
79936
79937         * modules/gendocs (License): Fix license, approved by Karl.
79938
79939 2006-07-12  Eric Blake  <ebb9@byu.net>
79940
79941         * MODULES.html.sh: Add gendocs.
79942
79943 2006-07-11  Eric Blake  <ebb9@byu.net>
79944
79945         * modules/fdl: New module, to install doc/fdl.texi.
79946         * MODULES.html.sh: Add new section for documentation modules.
79947         * gnulib-tool: Avoid space-tab.
79948         (--doc-base): New option, to manage files from doc.
79949
79950 2006-07-11  Eric Blake  <ebb9@byu.net>
79951
79952         * m4/absolute-header.m4: Fix comments to match recent change.
79953
79954 2006-07-11  Eric Blake  <ebb9@byu.net>
79955
79956         * gnulib-tool: List --doc-base before --tests-base.
79957
79958 2006-07-11  Derek R. Price  <derek@ximbiot.com>
79959
79960         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
79961
79962 2006-07-11  Bruno Haible  <bruno@clisp.org>
79963
79964         * README: Mention where to put documentation.
79965
79966 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79967
79968         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
79969
79970 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
79971
79972         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
79973         to stdint.m4.
79974
79975 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
79976
79977         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
79978         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
79979         "no/such/file/stdint.h" when there is no such file, so that
79980         the resulting C code can be parsed by dodgy compilers.
79981         Problems reported by Bob Proulx.
79982
79983 2006-07-10  Derek R. Price  <derek@ximbiot.com>
79984
79985         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
79986         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
79987         macros into the GNU _D_EXACT_NAMLEN.
79988         * lib/savedir.c:  Likewise.
79989         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
79990
79991 2006-07-10  Derek R. Price  <derek@ximbiot.com>
79992         and Paul Eggert  <eggert@cs.ucla.edu>
79993
79994         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
79995         * m4/savedir.m4:
79996         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
79997         macros into the GNU _D_EXACT_NAMLEN.
79998
79999 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80000
80001         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
80002         around the absolute name, to work around a problem with the HP-UX
80003         11.23 native C compiler, reported by Bob Proulx.
80004
80005 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80006
80007         * doc/maintain.texi, make-stds.texi: Sync from
80008         <http://savannah.gnu.org/projects/gnustandards>.
80009
80010 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80011
80012         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
80013
80014 2006-07-09  Jim Meyering  <jim@meyering.net>
80015
80016         * m4/glob.m4: Remove a doubled word in a comment.
80017
80018 2006-07-09  Jim Meyering  <jim@meyering.net>
80019
80020         * lib/argp-pv.c: Remove a doubled word in a comment.
80021         * lib/check-version.c (check_version): Likewise.
80022         * lib/javacomp.c (compile_java_class): Likewise.
80023
80024 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
80025
80026         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
80027         for the benefit of people using Autoconf 2.60.  If you want to
80028         support older Autoconf versions you can copy m4/onceonly_2_57.m4
80029         (or m4/onceonly.m4, if pre-2.57) manually.
80030
80031 2006-07-08  Jim Meyering  <jim@meyering.net>
80032
80033         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
80034         comment.
80035         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
80036         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
80037         comment.
80038
80039 2006-07-08  Jim Meyering  <jim@meyering.net>
80040
80041         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
80042
80043 2006-07-07  Simon Josefsson  <jas@extundo.com>
80044
80045         * tests/test-crc.c: Change expected crc value, the test vector
80046         were probably computed using the old broken crc.c?
80047
80048 2006-07-06  Simon Josefsson  <jas@extundo.com>
80049
80050         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
80051         now the canonical place for the M4 file).
80052
80053         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
80054         from the sys_socket dependency now.
80055
80056         * modules/inet_pton (Files): Ditto.
80057
80058         * modules/inet_ntop (Files): Ditto.
80059
80060 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
80061
80062         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
80063         not gl_PREREQ_GETUSERSHELL.
80064
80065 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80066
80067         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
80068         with only one argument, for Autoconf 2.60.
80069         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
80070         expand to nothing, so add a shell command to avoid syntax error.
80071         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
80072
80073 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80074
80075         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
80076
80077 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
80078
80079         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
80080         no longer needed.  Check for isblank decl.
80081         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
80082         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
80083         of existence.
80084
80085 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
80086
80087         * lib/getloadavg.c: Use __VMS, not VMS.
80088         * lib/getopt.c: Likewise.
80089         * lib/getpagesize.h: Likewise.
80090         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
80091         and probably does not work.
80092
80093 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
80094
80095         * lib/.cppi-disable: Add wcwidth.
80096         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
80097         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
80098         (ISGRAPH): Remove.  All uses changed to isgraph.
80099         (FOLD) [!defined _LIBC]: Remove special case.
80100         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
80101         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
80102         HAVE_ISBLANK.
80103         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
80104         case.
80105
80106 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
80107
80108         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
80109         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
80110         brackets.  Other minor changes to suppress some compiler
80111         warnings.
80112
80113 2006-07-06  Derek R. Price  <derek@ximbiot.com>
80114         and Paul Eggert  <eggert@cs.ucla.edu>
80115
80116         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
80117         of invoking obsolescent AC_HEADER_DIRENT macro.
80118         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
80119         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
80120         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
80121         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
80122         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
80123         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
80124         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
80125         * m4/readdir.m4: Remove; no longer needed.
80126
80127 2006-07-06  Derek R. Price  <derek@ximbiot.com>
80128         and Paul Eggert  <eggert@cs.ucla.edu>
80129
80130         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
80131         Don't worry about this obsolete case any more.
80132         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
80133         directories.
80134         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
80135         worry about this obsolete case any more.
80136         * lib/fts.c: Likewise.
80137         * lib/getcwd.c: Likewise.
80138         * lib/glob.h: Likewise.
80139         * lib/savedir.c: Likewise.
80140
80141 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
80142
80143         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
80144         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
80145         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
80146         needed.
80147         All uses removed.
80148         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
80149         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
80150         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
80151         needed.
80152         * m4/getdate.m4 (gl_GETDATE): Likewise.
80153         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
80154         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
80155         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
80156         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
80157         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
80158         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
80159         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
80160         needed.
80161
80162 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
80163
80164         * lib/memcasecmp.c: Include <limits.h>.
80165         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
80166         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
80167         Don't assume isdigit succeeds only on '0' through '9'.
80168
80169 2006-07-05  Eric Blake  <ebb9@byu.net>
80170
80171         * modules/getaddrinfo (Depends-on): Add snprintf.
80172
80173 2006-07-05  Eric Blake  <ebb9@byu.net>
80174
80175         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
80176         to avoid 'header present but could not be compiled' on cygwin.
80177
80178 2006-07-05  Eric Blake  <ebb9@byu.net>
80179
80180         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
80181         missing from netdb.h.
80182         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
80183
80184 2006-07-05  Derek R. Price  <derek@ximbiot.com>
80185
80186         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
80187         no longer needed.
80188         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
80189         * m4/getdate.m4 (gl_GETDATE): Likewise.
80190         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
80191         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
80192         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
80193         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
80194         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
80195
80196 2006-07-05  Derek R. Price  <derek@ximbiot.com>
80197
80198         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
80199         All uses of is_space replaced by isspace.
80200         * lib/exit.h: Don't talk about STDC_HEADERS.
80201         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
80202         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
80203         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
80204         replaced by isprint etc.
80205         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
80206         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
80207         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
80208         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
80209         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
80210         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
80211
80212 2006-07-05  Bruno Haible  <bruno@clisp.org>
80213
80214         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
80215         the function exists, before testing against AIX.
80216         Reported by Martin Lambers <marlam@marlam.de>.
80217
80218 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
80219
80220         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
80221         From Mark D. Baushke.
80222
80223 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
80224
80225         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
80226         to the absolute name, not just one, to bypass Sun C 5.8's
80227         "warning: #include of /usr/include/... may be non-portable".
80228
80229 2006-07-04  Eric Blake  <ebb9@byu.net>
80230
80231         * modules/dirname-tests: New test module.
80232         * tests/test-dirname.c: New file, replacing dirname.c
80233         TEST_DIRNAME section that was recently deleted.
80234
80235 2006-07-04  Bruno Haible  <bruno@clisp.org>
80236
80237         Assume ANSI C header files and <ctype.h> functions.
80238         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
80239         (mbsnwidth): Use isprint, iscntrl instead.
80240
80241 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
80242
80243         Merge from coreutils.
80244         * MODULES.html.sh: Add xstrtold.
80245         * modules/xstrtold: New file.
80246         * modules/cycle-check (Files): Add lib/same-inode.h.
80247         * modules/dirname (Files): Add m4/double-slash-root.m4.
80248         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
80249         * modules/mkdir-p (Files): Add lib/same-inode.h.
80250         * modules/same (Files): Add lib/same-inode.h.
80251
80252 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
80253
80254         * m4/absolute-header.m4: Renamed from full-header-path.m4.
80255         This is to keep the terminology clean; POSIX talks about
80256         "absolute pathnames", not "full pathnames", but the GNU
80257         Coding Standards say to use "path" for something else;
80258         so use "absolute" to keep both sides happy.
80259         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
80260         Set gl_absolute_header, not gl_full_header_path.
80261         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
80262         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
80263         All uses changed.
80264
80265         Merge from coreutils.
80266
80267         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
80268
80269         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
80270         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
80271         want to require the building of c-strtod.o.
80272         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
80273         needs -lm directly.
80274         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
80275
80276         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
80277
80278         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
80279         --as-needed option if available.  Problem reported by Albert Chin in
80280         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
80281         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
80282         cc merely issues a bunch of annoying warnings for --as-needed
80283         (this problem was reported by Bob Proulx).  Also, try linking with
80284         -lm to detect a bug in binutils 2.16 (this problem was reported
80285         by Ralf Wildenhues).
80286
80287         2006-06-18  Jim Meyering  <jim@meyering.net>
80288
80289         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
80290         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
80291         macro.
80292         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
80293         also check for glibc-2.4's abort-inducing bug.
80294
80295         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
80296         Low-probability clean-up should be to use rmdir to get rid of
80297         the just-created directory, not unlink.
80298
80299         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
80300         configure fail, and request a bug report to inform us about it.
80301         Add a comment that, barring reports to the contrary, in 2007 we'll
80302         assume ftruncate is universally available.
80303
80304         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
80305
80306         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
80307
80308         2006-03-12  Jim Meyering  <jim@meyering.net>
80309
80310         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
80311         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
80312         * m4/same.m4 (gl_SAME): Likewise.
80313         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
80314
80315         2006-03-11  Eric Blake  <ebb9@byu.net>
80316
80317         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
80318         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
80319         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
80320         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
80321
80322 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
80323
80324         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
80325         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
80326         reported by Mark D. Baushke, one in
80327         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
80328
80329         Merge from coreutils.
80330
80331         * lib/.cppi-disable: Add stdint_.h.
80332         * lib/.cvsignore: Add stdint.h.
80333
80334         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
80335
80336         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
80337         both double and long double versions.
80338         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
80339         * lib/xstrtold.c: New file.
80340         * lib/xstrtod.h (xstrtold): New decl.
80341
80342         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
80343
80344         * lib/filemode.c (setst): Remove.
80345         (strmode): Rewrite to avoid setst.  This makes the code shorter,
80346         (arguably) clearer, and the generated code is a bit smaller on my
80347         Debian GNU/Linux stable x86 host.
80348
80349         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
80350
80351         * lib/filemode.c: Include "filemode.h" first, to test the interface.
80352         Assume that filemode.h includes sys/types.h and sys/stat.h.
80353         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
80354         (ftypelet): Reorder to put common cases first, for efficiency.
80355         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
80356         to do 'M'.
80357         (strmode): Renamed from mode_string, and now stores 12 bytes instead
80358         of 10, for compatibility with FreeBSD.  All callers changed.
80359         (filemodestring): Now stores 12 bytes instead of 10, and sets file
80360         types that can't be deduced solely from st_mode.  First arg is now a
80361         const pointer.
80362         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
80363         (strmode): Renamed from mode_string.
80364         (filemodestring): New decl.
80365         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
80366         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
80367         needed.
80368         (S_ISPORT, S_ISWHT): New macros, if not already defined.
80369
80370         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
80371
80372         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
80373         fsusage.h now does that.  Include fsusage.h first, to test interface.
80374         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
80375         at most one method (the old code could have generated decls that
80376         didn't conform to C89, not that this was ever exercised).
80377         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
80378
80379         2006-03-19  Jim Meyering  <jim@meyering.net>
80380
80381         Work even in a chroot where d_ino values for entries in "/"
80382         don't match the stat.st_ino values for the same names.
80383         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
80384         number, iterate through all entries again, using lstat instead.
80385         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
80386         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
80387
80388         * lib/getcwd.c (__getcwd): Clarify a comment.
80389         Use memcpy in place of a call to strcpy.
80390
80391         2006-03-12  Jim Meyering  <jim@meyering.net>
80392
80393         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
80394         matches that of the current directory (which we're about to chdir ".."
80395         out of), then save the dev-ino of the parent, instead.
80396
80397         * lib/same-inode.h (SAME_INODE): New file/macro.
80398         * lib/chdir-safer.c (SAME_INODE): Remove definition.
80399         Include "same-inode.h", instead.
80400         * lib/same.c: Likewise.
80401         * lib/cycle-check.h: Include "same-inode.h".
80402         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
80403         * lib/cycle-check.c (SAME_INODE): Remove definition.
80404         * lib/root-dev-ino.h: Include "same-inode.h".
80405
80406         2006-03-11  Eric Blake  <ebb9@byu.net>
80407
80408         * lib/same.c (same_name): s/base_name/last_component/
80409         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
80410         * lib/filenamecat.c (file_name_concat): Likewise.
80411
80412         2006-03-11  Eric Blake  <ebb9@byu.net>,
80413                     Paul Eggert  <eggert@cs.ucla.edu>
80414
80415         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
80416         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
80417         drive prefix.
80418         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
80419         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
80420         (last_component): New method.
80421         * lib/dirname.c (dir_len): Determine when drive letters need a
80422         subsequent slash.  Preserve // when it is special.
80423         (dir_name): Don't append dot when drive letter is absolute.
80424         [TEST_DIRNAME]: Move into a full-blown gnulib test.
80425         * lib/basename.c (base_name): New semantics - malloc the result.
80426         Preserve // when it is special.  Preserve relative files that look
80427         like drive letters.
80428         (base_len): Preserve // when it is special.
80429         (last_component): New method, similar to old base_name semantics.
80430         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
80431         base_name.  Strip redundant slashes from ///.
80432
80433 2006-07-03  Jim Meyering  <jim@meyering.net>
80434
80435         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
80436         macro is used before the first cycle_check call.
80437
80438 2006-07-03  Eric Blake  <ebb9@byu.net>
80439
80440         * modules/dirname (Depends-on): Add xstrndup.
80441
80442 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
80443
80444         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
80445         test cases, so that config.log is a bit easier to follow.
80446
80447 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
80448
80449         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
80450         both are 64 bits, since this seems to be the tradition, and this
80451         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
80452         we ever run into a host that prefers long long to long in this
80453         case, we'll need another configure-time test.  Problem reported by
80454         Jim Meyering.
80455
80456 2006-07-02  Eric Blake  <ebb9@byu.net>
80457
80458         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
80459
80460 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
80461
80462         * modules/inttypes (Depends-on): No longer depends on stdint.
80463         * modules/stdint (Description): Say more about assumptions.
80464         Say that the fast types might differ.  Say macros are used.
80465         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
80466         (Makefile.am): Revise list of substituted symbols to match
80467         new stdint.m4.
80468         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
80469         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
80470         * tests/test-stdint.c (verify_same_types)
80471         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
80472         the code conforms to C99/C89.
80473         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
80474         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
80475
80476 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
80477
80478         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
80479         but fix a bug, by requiring at least 64 bits.
80480         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
80481         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
80482         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
80483         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
80484
80485         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
80486         changes.  Make 2.59 a prerequisite.  Check and substitute for
80487         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
80488         inttypes.h.  Do not use special include files; just use the
80489         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
80490         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
80491         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
80492         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
80493         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
80494         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
80495         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
80496         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
80497         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
80498         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
80499         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
80500         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
80501         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
80502         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
80503         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
80504         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
80505         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
80506         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
80507         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
80508         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
80509         WINT_MAX.  Check for C99 conformance more strictly, by detecting
80510         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
80511         not check for things that C99 does not require, e.g., int8_t.  If
80512         a test isn't needed unless <stdint.h> isn't working, and is
80513         unlikely to be needed for any other reason, then don't do it
80514         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
80515         size_t, since we assume C89 freestanding at least.  Do not check
80516         for sig_atomic_t, wchar_t, or wint_t, since the code now does
80517         the right thing even if the types are not defined.  Instead use:
80518         (gl_STDINT_TYPE_PROPERTIES): New macro.
80519         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
80520         testing whether <sys/types.h> clashes, as Autoconf does this for
80521         us now.  All uses removed.
80522         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
80523         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
80524         (gl_CHECK_TYPE_SAME):
80525         Remove; no longer needed.
80526         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
80527         exists, since we'll return 0 anyway in that case.
80528         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
80529
80530 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
80531
80532         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
80533         possible collision with system files.
80534         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
80535         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
80536         WCHAR_MIN and WCHAR_MAX in this case.
80537         (<stddef.h>): Do not include; no longer needed.
80538         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
80539         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
80540         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
80541         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
80542         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
80543         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
80544         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
80545         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
80546         !defined(__c99))]: Include in this case too, since it's harmless
80547         now.
80548         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
80549         dangerous to do so.
80550         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
80551         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
80552         (_STDINT_MIN, _STDINT_MAX): New macros.
80553         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
80554         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
80555         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
80556         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
80557         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
80558         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
80559         macros, not typedefs; this simplifies things quite a bit.
80560         Use long int for all types narrower than int64_t.
80561         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
80562         Define in terms of long long int or int64_t or long int,
80563         not int64_t or int32_t.  This saves some compile-time testing.
80564         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
80565         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
80566         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
80567         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
80568         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
80569         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
80570         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
80571         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
80572         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
80573         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
80574         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
80575         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
80576         undef any previous version and define our own version, for
80577         simplicity and consistency with the new macros for types.
80578         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
80579         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
80580         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
80581         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
80582         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
80583         @WINT_T_SUFFIX@ to keep things simple here.
80584         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
80585         Simplify by assuming typical 8/16/32/64 host, since we're
80586         already doing that elsewhere anyway.
80587         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
80588         and assume long long int is 64 bits if available.  This
80589         speeds up 'configure'.
80590
80591 2006-07-01  Eric Blake  <ebb9@byu.net>
80592
80593         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
80594         Reported by Andreas Buening.
80595
80596 2006-07-01  Eric Blake  <ebb9@byu.net>
80597
80598         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
80599
80600 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
80601
80602         * lib/getaddrinfo.c: fixed typo
80603
80604 2006-06-29  Jim Meyering  <jim@meyering.net>
80605
80606         * modules/strftime (Maintainer): Add my name, since with the
80607         FPRINTFTIME changes strftime.c has forked from glibc.
80608
80609 2006-06-29  Eric Blake  <ebb9@byu.net>
80610
80611         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
80612
80613 2006-06-29  Eric Blake  <ebb9@byu.net>
80614
80615         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
80616
80617 2006-06-29  Eric Blake  <ebb9@byu.net>
80618
80619         * lib/stat_.h: New file.
80620
80621 2006-06-29  Eric Blake  <ebb9@byu.net>
80622
80623         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
80624         unused static function.
80625
80626 2006-06-29  Eric Blake  <ebb9@byu.net>
80627
80628         * doc/functions.texi (Function Portability): Document missing lstat
80629         on mingw.
80630
80631 2006-06-29  Eric Blake  <ebb9@byu.net>
80632
80633         * MODULES.html.sh: Add sys_stat.
80634         * modules/sys_stat: New module.
80635         * modules/mkstemp (Depends-on): Add sys_stat.
80636
80637 2006-06-29  Derek R. Price  <derek@ximbiot.com>
80638
80639         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
80640
80641 2006-06-29  Derek R. Price  <derek@ximbiot.com>
80642
80643         * m4/c-bs-a.m4: Removed.
80644
80645 2006-06-29  Derek R. Price  <derek@ximbiot.com>
80646
80647         * lib/strftime.c: Assume strftime() exists.
80648
80649 2006-06-29  Derek Price  <derek@ximbiot.com>
80650
80651         * modules/c-bs-a: Removed - \a is C89.
80652         * MODULES.html.sh: Remove c-bs-a.
80653
80654 2006-06-29  Bruno Haible  <bruno@clisp.org>
80655
80656         * modules/wcwidth (License): Change to LGPL.
80657
80658 2006-06-28  Simon Josefsson  <jas@extundo.com>
80659
80660         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
80661         on _WIN32.
80662
80663         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
80664         getnameinfo.
80665
80666 2006-06-28  Simon Josefsson  <jas@extundo.com>
80667
80668         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
80669
80670 2006-06-28  Simon Josefsson  <jas@extundo.com>
80671
80672         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
80673         functions there.  It will succeed on Windows XP, but on Windows
80674         2000 and (presumably) earlier, it will fail, and use the internal
80675         re-implementation.
80676         (use_win32_p): New function.
80677         (getaddrinfo): Use strtoul on servname, to support numeric ports.
80678         Support AI_NUMERICSERV to disable getservbyname.
80679         (getnameinfo): New function, only supports
80680         NI_NUMERICHOST|NI_NUMERICSERV for now.
80681
80682         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
80683         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
80684         getnameinfo.
80685
80686 2006-06-28  Eric Blake  <ebb9@byu.net>
80687
80688         * modules/wcwidth: New file.
80689         * modules/mbchar (Depends-on): Add wcwidth.
80690         * modules/mbswidth (Depends-on): Add wcwidth.
80691         * MODULES.html.sh: Add wcwidth.
80692
80693 2006-06-28  Eric Blake  <ebb9@byu.net>
80694
80695         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
80696         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
80697
80698 2006-06-28  Eric Blake  <ebb9@byu.net>
80699
80700         * lib/xvasprintf.h: Fix comments.
80701
80702 2006-06-28  Eric Blake  <ebb9@byu.net>
80703
80704         * lib/mbchar.h (wcwidth): Include wcwidth.h.
80705         * lib/mbswidth.c (wcwidth): Move from here...
80706         * lib/wcwidth.h: ...to this new file.
80707
80708 2006-06-28  Derek R. Price  <derek@ximbiot.com>
80709
80710         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
80711
80712         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
80713         it's obsolete.
80714         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
80715
80716 2006-06-28  Derek R. Price  <derek@ximbiot.com>
80717
80718         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
80719         Autoconf 2.60 says this stuff was obsolete.
80720
80721 2006-06-28  Bruno Haible  <bruno@clisp.org>
80722
80723         * modules/wcwidth (Files): Add m4/wchar_t.m4.
80724
80725 2006-06-28  Bruno Haible  <bruno@clisp.org>
80726
80727         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
80728         gt_TYPE_WCHAR_T.
80729
80730 2006-06-28  Bruno Haible  <bruno@clisp.org>
80731
80732         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
80733         declaration for wcwidth.
80734         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
80735
80736 2006-06-28  Bruno Haible  <bruno@clisp.org>
80737
80738         * lib/mkdtemp.c [MINGW]: Include <io.h>.
80739         (mkdir): Define using _mkdir.
80740
80741 2006-06-28  Bruno Haible  <bruno@clisp.org>
80742
80743         * lib/getaddrinfo.h: Fix POSIX URL.
80744         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
80745         _WIN32.
80746         (use_win32_p): Make static.
80747         (getaddrinfo): Reject service name if it is empty or does not consist
80748         solely of decimal digits, or if its value is > 65535.
80749         (getnameinfo): Remove useless casts.
80750
80751 2006-06-27  Simon Josefsson  <jas@extundo.com>
80752
80753         * modules/sys_select: New file, suggested by Bruno Haible, Paul
80754         Eggert and Martin Lambers.
80755
80756 2006-06-27  Simon Josefsson  <jas@extundo.com>
80757
80758         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
80759         Eggert and Martin Lambers.
80760
80761 2006-06-27  Bruno Haible  <bruno@clisp.org>
80762
80763         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
80764         result to 0, not to empty.
80765         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
80766
80767 2006-06-27  Bruno Haible  <bruno@clisp.org>
80768
80769         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
80770
80771 2006-06-26  Simon Josefsson  <jas@extundo.com>
80772
80773         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
80774         present.
80775
80776 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
80777
80778         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
80779         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
80780         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
80781
80782 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
80783
80784         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
80785
80786 2006-06-26  Bruno Haible  <bruno@clisp.org>
80787
80788         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
80789
80790 2006-06-26  Bruno Haible  <bruno@clisp.org>
80791
80792         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
80793
80794 2006-06-26  Bruno Haible  <bruno@clisp.org>
80795
80796         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
80797         SGI C compiler in pre-C99 mode.
80798         Suggested by Mark D. Baushke and Larry Jones.
80799
80800 2006-06-26  Bruno Haible  <bruno@clisp.org>
80801
80802         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
80803         WCHAR_MAX.
80804         Reported by Mark D. Baushke and Larry Jones.
80805
80806 2006-06-26  Bruno Haible  <bruno@clisp.org>
80807
80808         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
80809         in pre-C99 mode.
80810         Suggested by Mark D. Baushke and Larry Jones.
80811
80812 2006-06-23  Simon Josefsson  <jas@extundo.com>
80813             Bruno Haible  <bruno@clisp.org>
80814
80815         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
80816         Emit mostlyclean-local rule.
80817         (func_emit_tests_Makefile_am): Likewise.
80818         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
80819
80820 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
80821
80822         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
80823
80824 2006-06-23  Bruno Haible  <bruno@clisp.org>
80825
80826         * tests/test-stdint.c: Update to match ISO C 99 Technical
80827         Corrigendum 1.
80828
80829 2006-06-23  Bruno Haible  <bruno@clisp.org>
80830
80831         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
80832
80833 2006-06-23  Bruno Haible  <bruno@clisp.org>
80834
80835         * lib/stdint_.h: Treat IRIX like OpenBSD.
80836
80837 2006-06-23  Bruno Haible  <bruno@clisp.org>
80838
80839         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
80840         ISO C 99 Technical Corrigendum 1.
80841
80842 2006-06-22  Simon Josefsson  <jas@extundo.com>
80843
80844         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
80845         MinGW.
80846
80847 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80848
80849         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
80850         needed.  Some compiler complained about some of them.  Problem reported
80851         by Larry Jones in
80852         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
80853
80854 2006-06-21  Simon Josefsson  <jas@extundo.com>
80855
80856         * tests/test-getaddrinfo.c: New file.
80857
80858         * modules/getaddrinfo-tests: New file.
80859
80860         * MODULES.html.sh: Add inet_pton.
80861
80862         * modules/inet_pton: New file.
80863
80864 2006-06-21  Simon Josefsson  <jas@extundo.com>
80865
80866         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
80867         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
80868         of using the (limited) gnulib implementation on Windows XP.
80869
80870         * m4/inet_pton.m4: New file.
80871
80872 2006-06-21  Simon Josefsson  <jas@extundo.com>
80873
80874         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
80875         variable.
80876
80877         * lib/socket_.h: Don't define WINVER.
80878
80879         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
80880         slightly modified to work in gnulib.
80881
80882 2006-06-21  Simon Josefsson  <jas@extundo.com>
80883
80884         * doc/gnulib.texi (Windows sockets): Add.
80885
80886 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
80887
80888         * lib/read-file.c (fread_file): Start with buffer allocation of
80889         0 bytes rather than 1 byte; this simplifies the code.
80890         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
80891         code to free buffer and save/restore errno.
80892         (internal_read_file): Remove unused local.
80893
80894 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
80895
80896         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
80897         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
80898         Problem reported by Denis Excoffier in
80899         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
80900
80901 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80902
80903         * modules/sys_socket, modules/socklen: Include sys/types since
80904         FreeBSD 4.x's sys/socket.h needs it.
80905
80906 2006-06-19  Simon Josefsson  <jas@extundo.com>
80907
80908         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
80909
80910 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
80911
80912         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
80913
80914 2006-06-19  Bruno Haible  <bruno@clisp.org>
80915
80916         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
80917         and FULL_PATH_INTTYPES_H in angle brackets.
80918         Reported by Mark D. Baushke <mdb@gnu.org>.
80919
80920 2006-06-17  Eric Blake  <ebb9@byu.net>
80921
80922         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
80923         errno.
80924
80925 2006-06-17  Bruno Haible  <bruno@clisp.org>
80926
80927         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
80928         <sys/inttypes.h>.
80929
80930 2006-06-17  Bruno Haible  <bruno@clisp.org>
80931
80932         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
80933         whether errno is declared. Assume <errno.h> declares errno.
80934
80935 2006-06-17  Bruno Haible  <bruno@clisp.org>
80936
80937         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
80938
80939 2006-06-17  Bruno Haible  <bruno@clisp.org>
80940
80941         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
80942         problem on Solaris 2.5.1.
80943
80944 2006-06-16  Eric Blake  <ebb9@byu.net>
80945
80946         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
80947         * lib/unicodeio.c [!defined errno]: Likewise.
80948         * lib/strtol.c [!defined errno]: Likewise.
80949         * lib/strtod.c [!defined errno]: Likewise.
80950
80951 2006-06-15  Eric Blake  <ebb9@byu.net>
80952
80953         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
80954
80955 2006-06-15  Eric Blake  <ebb9@byu.net>
80956
80957         * config/srclist.txt (ssize_t.m4): Lose sync.
80958
80959 2006-06-15  Bruno Haible  <bruno@clisp.org>
80960
80961         * modules/stdint (Files): Include m4/full-header-path.m4,
80962         m4/size_max.m4, m4/wchar_t.m4.
80963         (Makefile.am): Many more substitutions.
80964         * modules/stdint-tests: New file.
80965         * tests/test-stdint.c: New file.
80966
80967 2006-06-15  Bruno Haible  <bruno@clisp.org>
80968
80969         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
80970         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
80971         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
80972         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
80973         gl_CHECK_TYPE_SAME): New macros.
80974
80975 2006-06-15  Bruno Haible  <bruno@clisp.org>
80976
80977         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
80978
80979 2006-06-15  Bruno Haible  <bruno@clisp.org>
80980
80981         * lib/stdint_.h: Rewritten to be fully auto-configured.
80982         Fixes bug on HP-UX/IA64.
80983
80984 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
80985
80986         * lib/getdate.y (__attribute__): Don't define if already defined.
80987         Problem reported by Larry Jones.
80988         * lib/utimens.c (__attribute__): Likewise.
80989
80990 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
80991
80992         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
80993         reported by Andreas Schwab.
80994
80995 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80996             Bruno Haible  <bruno@clisp.org>
80997
80998         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
80999         check for the declaration of strnlen and a run test that exposes the
81000         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
81001         rpl_strndup.
81002
81003 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81004             Bruno Haible  <bruno@clisp.org>
81005
81006         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
81007
81008 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81009
81010         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
81011         compile test, for Tru64 4.0D.
81012
81013 2006-05-28  Karl Berry  <karl@gnu.org>
81014
81015         * config/srclist.txt (printf-args.c): lose sync.
81016
81017 2006-05-26  Martin Lambers  <marlam@marlam.de>
81018
81019         * lib/getpass.c: Updates the test for the native W32 API, and adds
81020         missing includes, thus fixing compilation warnings.
81021
81022 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
81023
81024         * lib/exclude.c (exclude_fnmatch): New function.
81025         (excluded_file_name): Call exclude_fnmatch.
81026         * lib/exclude.h (excluded_file_name): New prototype
81027
81028 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
81029
81030         * lib/tempname.c (small_open, large_open): New macros.
81031         (__open, __open64) [!_LIBC]: Remove.
81032         (__gen_tempname): Use small_open and large_open instead of __open
81033         and __open64.  This fixes a portability bug on HP-UX 11.11i
81034         reported by Simon Wing-Tang in
81035         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
81036
81037 2006-05-24  Bruno Haible  <bruno@clisp.org>
81038
81039         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
81040         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
81041         Reported by Thorsten Maerz <torte@netztorte.de> via
81042         Aaron Stone <aaron@serendipity.cx>.
81043
81044 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
81045
81046         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
81047         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
81048         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
81049         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
81050         not really conditional on the cache.
81051         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
81052
81053 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
81054
81055         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
81056         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
81057         (my_usleep): Don't mishandle maximum value.
81058
81059 2006-05-19  Jim Meyering  <jim@meyering.net>
81060
81061         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
81062
81063 2006-05-17  Bruno Haible  <bruno@clisp.org>
81064
81065         Cygwin portability.
81066         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
81067
81068 2006-05-17  Bruno Haible  <bruno@clisp.org>
81069
81070         * lib/stdint_.h: Fix recognition of Cygwin.
81071
81072 2006-05-15  Bruno Haible  <bruno@clisp.org>
81073
81074         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
81075         on libtool patch by Ralf Wildenhues.
81076
81077 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
81078
81079         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
81080         test for C99 conformance; (bool) 0.5 is an integer constant
81081         expression, but (bool) -0.5 is not.  Problem reported by Fedor
81082         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
81083
81084 2006-05-11  Simon Josefsson  <jas@extundo.com>
81085
81086         * m4/xvasprintf.m4: Fix obvious typo.
81087
81088 2006-05-11  Jim Meyering  <jim@meyering.net>
81089
81090         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
81091         James Lemley.
81092
81093 2006-05-10  Simon Josefsson  <jas@extundo.com>
81094
81095         * lib/md4.c: Typo fix, update copyright years.
81096         (K1, K2): Don't use L because it turn computations into 64-bit on
81097         64-bit platforms.
81098
81099 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
81100
81101         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
81102         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
81103         unwanted sign propagation, e.g., on hosts with 64-bit int.
81104         There still are some problems with reeelly weird theoretical hosts
81105         (e.g., 33-bit int) but it's not worth worrying about now.
81106         * lib/sha1.c (rol): Likewise.
81107         (K1, K2, K3, K4): Remove unnecessary L suffix.
81108
81109 2006-05-10  Bruno Haible  <bruno@clisp.org>
81110
81111         * lib/des.c: Cast to avoid warnings.
81112
81113 2006-05-09  Bruno Haible  <bruno@clisp.org>
81114
81115         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
81116         (Depends-on): Depend also on xsize, stdarg.
81117         (configure.ac): Add gl_XVASPRINTF.
81118
81119 2006-05-09  Bruno Haible  <bruno@clisp.org>
81120
81121         * m4/xvasprintf.m4: New file.
81122
81123 2006-05-09  Bruno Haible  <bruno@clisp.org>
81124
81125         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
81126         (EOVERFLOW): Define fallback value.
81127         (xstrcat): New function.
81128         (xvasprintf): Recognize the special case of a string concatenation.
81129
81130 2006-05-08  Eric Blake  <ebb9@byu.net>
81131
81132         * gnulib-tool (func_version): Base copyright year on CVS date.
81133         (func_emit_copyright_notice): New function.
81134         (func_emit_lib_Makefile_am): Use it.
81135         (func_emit_tests_Makefile_am): Likewise.
81136         (func_import): Likewise.
81137
81138 2006-05-08  Bruno Haible  <bruno@clisp.org>
81139
81140         * modules/stdarg: New file.
81141         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
81142
81143 2006-05-08  Bruno Haible  <bruno@clisp.org>
81144
81145         * m4/stdarg.m4: New file, from GNU gettext.
81146
81147 2006-05-08  Bruno Haible  <bruno@clisp.org>
81148
81149         * config/srclist.txt (build-aux/config.rpath): different from latest
81150         release.
81151
81152 2006-05-08  Bruno Haible  <bruno@clisp.org>
81153
81154         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
81155
81156 2006-05-05  Jim Meyering  <jim@meyering.net>
81157
81158         * m4/warning.m4: New file, derived from bison's file by the same name.
81159
81160 2006-05-03  Bruno Haible  <bruno@clisp.org>
81161
81162         * lib/stdint_.h: Shorter URL.
81163         * lib/inttypes.h: Likewise.
81164
81165 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
81166
81167         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
81168
81169 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
81170
81171         * lib/verify.h: Document the internals better.  Most of this change
81172         was written by Bruno Haible.
81173
81174 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
81175
81176         * doc/verify.texi: New file, partly based on a proposal by
81177         Bruno Haible.
81178
81179 2006-05-02  Bruno Haible  <bruno@clisp.org>
81180
81181         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
81182         test from here...
81183         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
81184
81185 2006-04-29  Bruno Haible  <bruno@clisp.org>
81186
81187         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
81188         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
81189
81190 2006-04-29  Bruno Haible  <bruno@clisp.org>
81191
81192         * gnulib-tool: Make --update option actually work.
81193
81194 2006-04-29  Bruno Haible  <bruno@clisp.org>
81195
81196         * doc/gcd.texi: New file.
81197         * doc/gnulib.texi: Include it.
81198
81199 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
81200
81201         * lib/getdate.y (get_date): When adding relative date, start with the
81202         initial time, not with the result of the first mktime call.
81203
81204 2006-04-25  Bruno Haible  <bruno@clisp.org>
81205
81206         * gnulib-tool (func_import): Output the include directives in three
81207         blocks, sorted separately.
81208         Reported by Ben Pfaff <blp@cs.stanford.edu>.
81209
81210 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
81211
81212         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
81213         to define main with arguments, for C++.  Reported by Eric Blake.
81214         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
81215         Prefer 'int main ()' to 'int main (void)', for C++.
81216         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
81217         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
81218         for 'main', for C99 and C++.
81219
81220 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
81221
81222         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
81223         Don't assume that exit status -1 is valid.
81224         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
81225         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
81226         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
81227         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
81228         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
81229         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
81230         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
81231         functions can be used without declaring them, or that you can
81232         exit with status -1.
81233         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
81234
81235 2006-04-24  Karl Berry  <karl@gnu.org>
81236
81237         * config/srclist.txt (longdouble.m4): sync lost.
81238
81239 2006-04-24  Eric Blake  <ebb9@byu.net>
81240
81241         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
81242
81243 2006-04-24  Bruno Haible  <bruno@clisp.org>
81244
81245         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
81246         poll() implementation in AIX.
81247         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81248
81249 2006-04-24  Bruno Haible  <bruno@clisp.org>
81250
81251         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
81252         assigned exactly once.
81253
81254 2006-04-23  Claudio Fontana  <claudio@gnu.org>
81255             Bruno Haible  <bruno@clisp.org>
81256
81257         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
81258         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
81259         for AM_CPPFLAGS.
81260
81261 2006-04-23  Bruno Haible  <bruno@clisp.org>
81262
81263         * modules/copy-file: Depend on unistd.
81264         * modules/execute: Likewise.
81265         * modules/fatal-signal: Likewise.
81266         * modules/findprog: Likewise.
81267         * modules/mkdtemp : Likewise.
81268         * modules/pipe: Likewise.
81269         * modules/wait-process: Likewise.
81270
81271 2006-04-23  Bruno Haible  <bruno@clisp.org>
81272
81273         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
81274         condition was already detected.
81275         Reported by Ben Pfaff <blp@cs.stanford.edu>.
81276
81277 2006-04-23  Bruno Haible  <bruno@clisp.org>
81278
81279         * lib/copy-file.c: Include <unistd.h> unconditionally.
81280         * lib/execute.c: Likewise.
81281         * lib/fatal-signal.c: Likewise.
81282         * lib/findprog.c: Likewise.
81283         * lib/mkdtemp.c: Likewise.
81284         * lib/pipe.h: Likewise.
81285         * lib/pipe.c: Likewise.
81286         * lib/wait-process.h: Likewise.
81287
81288 2006-04-23  Bruno Haible  <bruno@clisp.org>
81289
81290         * gnulib-tool (func_usage): Fix --import description. Document
81291         --update.
81292         (func_import): Create temporary file in a temporary directory, if
81293         --dry-run is specified. Silence errors from 'grep' when there are no
81294         m4 files in $m4dir.
81295         (func_create_testdir): Silence errors from 'grep' when there are no
81296         m4 files in $m4dir.
81297         Reported by Karl Berry <karl@freefriends.org>.
81298
81299 2006-04-20  Bruno Haible  <bruno@clisp.org>
81300
81301         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
81302         one argument, so that the code will be portable to Autoconf 2.60.
81303         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
81304         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
81305         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
81306
81307 2006-04-19  Derek Price  <derek@ximbiot.com>
81308             Eric Blake  <ebb9@byu.net>
81309
81310         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
81311         rather than "/full/path.h".  Update comment to match.  Shorten &
81312         generalize m4_translit call via AS_TR_CPP.
81313
81314 2006-04-19  Derek Price  <derek@ximbiot.com>
81315             Eric Blake  <ebb9@byu.net>
81316
81317         * lib/inttypes.h: Correct grammar in comment.
81318
81319 2006-04-18  Derek Price  <derek@ximbiot.com>
81320             Paul Eggert  <eggert@cs.ucla.edu>
81321
81322         * modules/inttypes: New file.
81323         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
81324
81325 2006-04-18  Derek Price  <derek@ximbiot.com>
81326             Paul Eggert  <eggert@cs.ucla.edu>
81327
81328         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
81329         New files.
81330
81331 2006-04-18  Derek Price  <derek@ximbiot.com>
81332             Paul Eggert  <eggert@cs.ucla.edu>
81333
81334         * lib/inttypes.h: New file.
81335         * lib/strtoimax.c: Assume <inttypes.h>.
81336
81337 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
81338
81339         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
81340         isn't mounted.  Problem reported by Kir Kolyshkin.
81341
81342 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
81343
81344         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
81345         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
81346         Derek R. Price.
81347         * lib/regex.h (RE_DUP_MAX): Update comment to match current
81348         implementation.
81349
81350 2006-04-12  Eric Blake  <ebb9@byu.net>
81351
81352         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
81353         is now done automatically by the corresponding Autoconf macro.
81354
81355 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
81356
81357         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
81358         time_r.h.
81359
81360 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
81361
81362         Merge regex changes from libc, removing some of our
81363         POSIX-conformance changes that were rejected and redoing them in a
81364         less-intrusive way.
81365
81366         * lib/regcomp.c (re_compile_internal, init_dfa):
81367         Length arg is now size_t, not Idx.  All uses changed.
81368         (peek_token): Forward decl now says internal_function.
81369         (__re_error_msgid, __re_error_msgid_idx):
81370         Now static rather than extern with attribute_hidden.
81371         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
81372         For some reason libc prefers K&R style defns for external functions.
81373         (regerror) [!defined _LIBC]: Likewise.
81374         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
81375         (seek_collating_symbol_entry, lookup_collation_sequence_value):
81376         (build_range_exp, build_collating_symbol):
81377         Use K&R-style defn.
81378         (re_compile_fastmap): Use '\0' to memset, not 0.
81379         (utf8_sb_map): Make the calculations more obvious.
81380         (init_dfa, parse_bracket_exp, build_charclass_op):
81381         Call calloc and cast result, as glibc does.
81382         (init_word_char, fetch_token, peek_token, peek_token_bracket):
81383         (build_range_exp, build_collating_symbol):
81384         Now internal functions.
81385
81386         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
81387
81388         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
81389         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
81390         Don't depend on VMS; depend on __VMS instead, for POSIX
81391         namespace cleanness.
81392         (regoff_t): Define to ssize_t, not long int.
81393
81394         Remove the REG_ macros named below.  Instead, make the old names
81395         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
81396         __USE_GNU_REGEX.
81397         (REG_BACKSLASH_ESCAPE_IN_LISTS):
81398         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
81399         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
81400         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
81401         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
81402         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
81403         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
81404         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
81405         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
81406         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
81407         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
81408         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
81409         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
81410         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
81411         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
81412         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
81413         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
81414         (REG_NREGS):
81415         Remove.  All uses replaced by the old RE_* names.
81416         (RE_BACKSLASH_ESCAPE_IN_LISTS):
81417         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
81418         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
81419         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
81420         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
81421         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
81422         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
81423         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
81424         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
81425         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
81426         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
81427         Don't bother having these macros be independent of each others'
81428         values, since they no longer exist in the POSIX name space.
81429
81430         Rename the following member names back to their old names,
81431         unless !__USE_GNU_REGEX.  All uses changed back.
81432         (buffer): Renamed from re_buffer.
81433         (allocated): Renamed from re_allocated.
81434         (used): Renamed from re_used.
81435         (syntax): Renamed from re_syntax.
81436         (fastmap): Renamed from re_fastmap.
81437         (translate): Renamed from re_translate.
81438         (can_be_null): Renamed from re_can_be_null.
81439         (regs_allocated): Renamed from re_regs_allocated.
81440         (fastmap_accurate): Renamed from re_fastmap_accurate.
81441         (no_sub): Renamed from re_no_sub.
81442         (not_bol): Renamed from re_not_bol.
81443         (not_eol): Renamed from re_not_eol.
81444         (newline_anchor): Renamed from re_newline_anchor.
81445         (num_regs): Renamed from rm_num_regs.
81446         (start): Renamed from rm_start.
81447         (end): Renamed from rm_end.
81448
81449         (free_state): Move up a bit.
81450
81451         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
81452         #define to be empty.
81453         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
81454         when that is what is intended.
81455         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
81456         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
81457         (MAX): New macro.
81458         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
81459         All uses changed back to re_malloc, etc.  It's now the caller's
81460         responsibility to check for overflow; all callers changed.
81461         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
81462         (re_x2nrealloc): Remove.
81463         (free_state): Remove decl.
81464
81465         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
81466         (re_set_registers, re_exec):
81467         Use K&R-style defn.
81468
81469         2006-01-31  Roland McGrath  <roland@redhat.com>
81470
81471         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
81472         Reported by Mike Frysinger <vapier@gentoo.org>.
81473
81474         2006-01-15  Andreas Jaeger  <aj@suse.de>
81475
81476         [BZ #1950]
81477         * lib/regex_internal.c (re_string_reconstruct): Adjust for
81478         build_wcs_upper_buffer change.
81479         (build_wcs_upper_buffer): Change return type.
81480
81481         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
81482
81483         * lib/regex_internal.h: Include <stdint.h> if available.
81484
81485         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
81486
81487         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
81488
81489         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
81490
81491         * lib/regcomp.c: Adjust for changed secondary hash function.
81492
81493         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
81494
81495         * lib/regex.h: Pretty printing.
81496         Clean up namespace a bit.
81497
81498         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
81499
81500         * lib/regexec.c (update_cur_sifted_state, check_arrival,
81501         check_arrival_add_next_nodes): Avoid using uninitialized variable.
81502
81503         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
81504                     Ulrich Drepper  <drepper@redhat.com>
81505
81506         [BZ #1302]
81507         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
81508         changed.
81509         (bitset_word_t): Renamed from bitset_word.  All uses changed.
81510
81511         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
81512
81513         [BZ #281]
81514         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
81515         * lib/regcomp.c: Remove unnecessary uses of
81516         unsigned RE_TRANSLATE_TYPE.
81517         * lib/regex_internal.h: Likewise.
81518         * lib/regex_internal.c: Likewise.
81519         * lib/regexec.c: Likewise.
81520         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
81521
81522         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
81523
81524         * lib/regexec.c (find_recover_state): Remove unnecessary
81525         initialization.
81526         (transit_state_bkref): Make DFA a const pointer.
81527         (get_subexp): Likewise.
81528         (check_arrival): Likewise.
81529         (update_cur_sifted_state): Likewise.
81530         (re_search_internal): Likewise.
81531         (prune_impossible_nodes): Likewise.
81532         (acquire_init_state_context): Likewise.
81533         (proceed_next_node): Likewise.
81534         (set_regs): Likewise.
81535         (free_fail_stack_return): Likewise.
81536         (check_arrival_expand_ecl): Mark DFA parameter as const.
81537         (check_arrival_expand_ecl_sub): Likewise.
81538         (check_subexp_limits): Likewise.
81539         (sub_epsilon_src_nodes):  Likewise.
81540         (add_epsilon_src_nodes):  Likewise.
81541         (merge_state_array): Likewise.
81542         (update_regs): Likewise.
81543         (build_trtable): Likewise.
81544         (sift_states_backward): Mark MCTX parameter as const.
81545         (build_sifted_states): Likewise.
81546         (update_cur_sifted_state): Likewise.
81547         (sift_states_mkref): Likewise.
81548         (check_arrival_expand_ecl): Mark eclosure as const.
81549         (check_dst_limits_calc_pos_1): Likewise.
81550         * lib/regex_internal.h (re_match_context_t): Make dfa a const
81551         pointer.
81552
81553         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
81554
81555         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
81556         (transit_state_sb): Likewise.
81557         (transit_state_mb): Likewise.
81558         (sift_states_iter_mb): Likewise.
81559         (check_arrival_add_next_nodes): Likewise.
81560         (check_node_accept_bytes): Change first parameter to pointer-to-const.
81561         [_LIBC] (re_search_2_stub): Use mempcpy.
81562
81563         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
81564         mbrtowc for very simple UTF-8 case.
81565
81566         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
81567         a pointer-to-const.
81568         (re_acquire_state_context): Likewise.
81569         * lib/regex_internal.h: Adjust prototypes.
81570
81571         * lib/regex.c: Prevent using C++ compilers.
81572
81573         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
81574         (re_acquire_state_context): Likewise.
81575
81576 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
81577
81578         * modules/regex (Depends-on): Add ssize_t.
81579
81580 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
81581
81582         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
81583         translation table.
81584
81585 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
81586
81587         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
81588
81589 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
81590             Bruno Haible  <bruno@clisp.org>
81591
81592         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
81593         <sys/types.h> and <inttypes.h>.
81594
81595 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81596
81597         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
81598         `__error_t_defined', so argp.h will not typedef the former.
81599
81600 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
81601
81602         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
81603         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
81604         glibc names.  Even if glibc is changed to conform to POSIX, the
81605         traditional names will be available anyway, since regex depends on
81606         the extensions module.  Also, fix a longstanding typo in the
81607         implementation of Spencer ERE test #75 from grep 2.3.  Problems
81608         reported by Emanuele Giaquinta.  Also, change sense of cached
81609         variable, so that the message makes sense.
81610
81611 2006-03-24  Simon Josefsson  <jas@extundo.com>
81612
81613         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
81614         including some doc fixes.
81615         (base64_encode_alloc): Fix +1 bug on allocation failures.
81616
81617 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81618
81619         * lib/base64.c (base64_encode): Do not read past end of array with
81620         unsanitized input on systems with CHAR_BIT > 8.
81621
81622 2006-03-24  Eric Blake  <ebb9@byu.net>
81623
81624         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
81625
81626 2006-03-22  Karl Berry  <karl@gnu.org>
81627
81628         * config/srclist.txt (*setenv.[ch]): get from coreutils.
81629         * config/srclistvars.sh (COREUTILS): new var.
81630
81631 2006-03-17  Jim Meyering  <jim@meyering.net>
81632
81633         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
81634         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
81635
81636 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
81637
81638         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
81639         no longer needs it.  Instead, check that regoff_t is as least
81640         as wide as ptrdiff_t.
81641
81642         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
81643         so that our regex.h stays compatible with the installed regex.
81644         This is helpful for installers who configure --without-included-regex.
81645         Problem reported by Emanuele Giaquinta.
81646
81647 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
81648
81649         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
81650         Typedef to long int, not to off_, as POSIX will likely change
81651         in that direction.
81652
81653 2006-03-15  Eric Blake  <ebb9@byu.net>
81654
81655         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
81656
81657 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
81658
81659         * lib/argp-help.c (validate_uparams): Fix typo
81660         * lib/argp-parse.c (argp_default_options): Consistently begin help
81661         messages with a lowercase letter.
81662
81663 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
81664
81665         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
81666         overrun buffers and shouldn't be used (much as gets shouldn't be
81667         used).
81668         * lib/time_r.c (asctime_r, ctime_r): Likewise.
81669
81670 2006-03-08  Simon Josefsson  <jas@extundo.com>
81671
81672         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
81673         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81674
81675 2006-03-08  Simon Josefsson  <jas@extundo.com>
81676
81677         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
81678         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81679
81680 2006-03-08  Simon Josefsson  <jas@extundo.com>
81681
81682         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
81683         signal that configure disabled the device.
81684
81685 2006-03-08  Simon Josefsson  <jas@extundo.com>
81686
81687         * build-aux/maint.mk: Fix refresh-po, to handle no translated
81688         languages.
81689
81690 2006-03-07  Simon Josefsson  <jas@extundo.com>
81691
81692         * modules/getopt (Depends-on): Add unistd.
81693
81694         * modules/unistd: New file.
81695
81696 2006-03-07  Simon Josefsson  <jas@extundo.com>
81697
81698         * modules/gc-random: New file.
81699
81700 2006-03-07  Simon Josefsson  <jas@extundo.com>
81701
81702         * m4/unistd_h.m4: New file.
81703
81704 2006-03-07  Simon Josefsson  <jas@extundo.com>
81705
81706         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
81707         test to be side-effect free by storing the result in the cache
81708         variable gl_cv_lib_readline, and moving the assignment of
81709         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
81710         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81711
81712 2006-03-07  Simon Josefsson  <jas@extundo.com>
81713
81714         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
81715         error on missing devices (the functions will return an error).
81716
81717         * m4/gc.m4: Move random stuff to gc-random.m4
81718
81719 2006-03-07  Simon Josefsson  <jas@extundo.com>
81720
81721         * lib/unistd_.h: New file.
81722
81723 2006-03-07  Simon Josefsson  <jas@extundo.com>
81724
81725         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
81726
81727 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
81728
81729         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
81730         Problem reported by Juan Manuel Guerrero.
81731
81732 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
81733
81734         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
81735         the unistd module.
81736         * lib/getlogin_r.c: Likewise.
81737         * lib/getlogin_r.h: Likewise.
81738         * lib/glob.c: Likewise.
81739         * lib/pagealign_alloc.c: Likewise.
81740         * lib/unistd_.h: Remove; no longer needed.
81741
81742 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
81743
81744         * MODULES.html.sh (Support for systems lacking POSIX:2001):
81745         Add unistd.
81746         * modules/c-stack (Depends-on): Add unistd.
81747         * modules/getlogin_r: Likewise.
81748         * modules/glob: Likewise.
81749         * modules/pagealign_alloc: Likewise.
81750         * modules/unistd (Files): Remove lib/unistd_.h.
81751         (EXTRA_DIST): Remove.
81752         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
81753         need unistd_.h.
81754         (MOSTLYCLEANFILES): Remove unistd.h-t.
81755
81756 2006-03-03  Simon Josefsson  <jas@extundo.com>
81757
81758         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
81759
81760 2006-03-03  Simon Josefsson  <jas@extundo.com>
81761
81762         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
81763         libidn and bison.
81764
81765 2006-03-03  Simon Josefsson  <jas@extundo.com>
81766
81767         * build-aux/maint.mk: Add indent target.
81768
81769 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
81770
81771         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
81772         our replacement poll.h in any case, to avoid a differing
81773         declaration from a system header.  Seen on AIX.
81774
81775 2006-03-01  Simon Josefsson  <jas@extundo.com>
81776
81777         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
81778         <kasal@ucw.cz>.
81779
81780 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
81781
81782         * modules/gettime (Depends-on): Add extensions module.
81783         * modules/nanosleep (Depends-on): Likewise.
81784         * modules/settime (Depends-on): Likewise.
81785
81786 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
81787
81788         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
81789         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
81790         pedantically.
81791         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
81792         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
81793
81794         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
81795         not "==".  Reported by Ralf Wildenhues.
81796
81797 2006-03-01  Karl Berry  <karl@gnu.org>
81798
81799         * doc/Copyright/request-*: new files, synced from gnuorg.
81800
81801 2006-03-01  Karl Berry  <karl@gnu.org>
81802
81803         * config/srclist.txt (Copyright/*): new entries.
81804
81805 2006-02-28  Simon Josefsson  <jas@extundo.com>
81806
81807         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
81808
81809 2006-02-27  Simon Josefsson  <jas@extundo.com>
81810
81811         * lib/base64.h: Indent #define's.  From Jim Meyering
81812         <jim@meyering.net>.
81813
81814 2006-02-27  Jim Meyering  <jim@meyering.net>
81815
81816         Revert the change of 2006-02-24, so these files can continue
81817         to be sync'd from gettext.
81818         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
81819         of `config.h'.
81820
81821 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
81822
81823         * modules/intprops: New file.
81824         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
81825         Add intprops.
81826         * modules/getloadavg (Files): Remove lib/intprops.h.
81827         (Depends-on): Add intprops.
81828         * modules/human: Likewise.
81829         * modules/inttostr: Likewise.
81830         * modules/openat: Likewise.
81831         * modules/sig2str: Likewise.
81832         * modules/userspec: Likewise.
81833         * modules/utimecmp: Likewise.
81834         * modules/xnanosleep: Likewise.
81835         * modules/xstrtol: Likewise.
81836
81837 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
81838
81839         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
81840         * modules/lock-tests (TESTS): Use $(EXEEXT).
81841         * modules/tls-tests: Likewise.
81842         * modules/argp-tests: Likewise.
81843         (check_PROGRAMS): New var, replacing...
81844         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
81845
81846 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81847
81848         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
81849         `config.h'.
81850
81851 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
81852
81853         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
81854
81855 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81856
81857         Sync from coreutils.
81858         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
81859         gl_CHDIR_SAFER.
81860
81861 2006-02-22  Jim Meyering  <jim@meyering.net>
81862
81863         Sync from coreutils.
81864         * m4/chdir-safer.m4: New file.
81865
81866 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
81867
81868         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
81869         AT_FDCWD exceeds INT_MAX.
81870         * lib/openat.h (AT_FDCWD): Likewise.
81871
81872 2006-02-17  Eric Blake  <address@hidden>
81873
81874         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
81875
81876 2006-02-16  Simon Josefsson  <jas@extundo.com>
81877
81878         * modules/getaddrinfo (Depends-on): Add sys_socket.
81879
81880 2006-02-15  Simon Josefsson  <jas@extundo.com>
81881
81882         * build-aux/maint.mk: Add dsyntax-check rule.
81883
81884 2006-02-15  Eric Blake  <ebb9@byu.net>
81885
81886         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
81887         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
81888         'present but cannot compile' warnings on cygwin.
81889         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
81890         use ws2tcpip.h if sys/socket.h works.
81891         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
81892         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
81893
81894 2006-02-14  Simon Josefsson  <jas@extundo.com>
81895
81896         * modules/maintainer-makefile (Files): Rename.
81897
81898         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
81899         and (the local) Makefile.cfg to maint-cfg.mk.
81900
81901         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
81902         to the latter.
81903
81904         * modules/maintainer-makefile: New module.
81905
81906         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
81907         severaly stripped to make it possible to build it up from scratch
81908         with reliable tests.
81909
81910         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
81911         fixes to permit overriding the default actions when configure and
81912         makefile are not available.
81913
81914 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
81915
81916         Sync from coreutils.
81917         * modules/lstat (Depends-on): Don't depend on xalloc.
81918         (License): Change from GPL to LGPL, since this is now simply a
81919         replacement for a libc function.
81920
81921 2006-02-14  Jim Meyering  <jim@meyering.net>
81922
81923         Sync from coreutils.
81924
81925         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
81926         failure on deficient systems, and simplify gnulib lgpl dependencies.
81927         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
81928         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
81929
81930         * lib/xalloc-die.c: Remove unused definition of N_.
81931
81932 2006-02-14  Jim Meyering  <jim@meyering.net>
81933
81934         Sync from coreutils.
81935         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
81936         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
81937         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
81938         double-quote uses of that variable, to accommodate the rare case in
81939         which getmntent is available in none of the libraries checked.  This
81940         happens at least on FreeBSD 5.0.
81941
81942 2006-02-13  Simon Josefsson  <jas@extundo.com>
81943
81944         * gnulib-tool (Usage): Fix --import, from
81945         karl@freefriends.org (Karl Berry).
81946
81947 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
81948
81949         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
81950
81951 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
81952
81953         * lib/argp-namefrob.h: Restore changes accidentally lost during the
81954         "autoupdate" on 2005-12-12.
81955
81956 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
81957
81958         * modules/closeout (Depends-on): Remove atexit.
81959
81960 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
81961
81962         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
81963         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
81964
81965 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
81966
81967         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
81968         __EXTENSIONS__ if this causes compilation to fail.  Problem
81969         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
81970         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
81971
81972 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
81973
81974         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
81975         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
81976         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
81977         All uses changed.
81978
81979 2006-01-26  Simon Josefsson  <jas@extundo.com>
81980
81981         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
81982         prototype is visible on mingw32.
81983
81984         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
81985         for mingw32.
81986
81987         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
81988         mingw32).
81989
81990 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
81991
81992         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
81993         attempt to open for write; this always fails, at least on POSIX
81994         hosts.  This reinstates the 2006-01-09 change, which was
81995         inadvertently removed.
81996
81997 2006-01-26  Bruno Haible  <bruno@clisp.org>
81998
81999         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
82000         Reported by Paul Eggert.
82001
82002 2006-01-26  Bruno Haible  <bruno@clisp.org>
82003             Paul Eggert  <eggert@cs.ucla.edu>
82004
82005         * lib/stdbool_.h (_Bool)
82006         [(! (defined __cplusplus || defined __BEOS__)
82007           && !defined __GNUC__
82008           && !(defined __HP_cc || defined __xlc__
82009                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
82010                || defined __sgi))]:
82011         #define to signed char in these cases too; this simplifies
82012         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
82013         etc., separately) and makes it more conservative.
82014
82015 2006-01-25  Simon Josefsson  <jas@extundo.com>
82016
82017         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
82018         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
82019         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
82020
82021 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
82022
82023         * lib/argp-namefrob.h: Bugfix. Remove stray #
82024
82025 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
82026
82027         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
82028         so that we test the test.
82029         Check for yet another HP-UX cc bug involving *bool |= bool.
82030
82031 2006-01-25  Karl Berry  <karl@gnu.org>
82032
82033         * config/srclist.txt (vasnprintf.c): sync lost.
82034
82035 2006-01-25  Jim Meyering  <jim@meyering.net>
82036
82037         Sync from the stable (b5) branch of coreutils:
82038
82039         * lib/fts.c (fts_children): Don't let close() clobber errno from
82040         failed fchdir().
82041
82042         * lib/fts.c (fts_stat): When following a symlink-to-directory,
82043         don't necessarily interpret stat-fails+lstat-succeeds as indicating
82044         a dangling symlink.  That can also happen at least for ELOOP.
82045         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
82046         FYI, this bug predates the inclusion of fts.c in coreutils.
82047
82048         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
82049         in their own block, so pre-c99 compilers don't object.
82050
82051         Avoid the double-free (first in fts_read, second in fts_close) that
82052         would occur when an `active' directory is made inaccessible (e.g.,
82053         via chmod a-x) during a traversal.
82054         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
82055         before returning.  Reproduce this failure by
82056         mkdir -p a/b; cd a; chmod a-x . b
82057         Reported by Stavros Passas.
82058
82059 2006-01-25  Jim Meyering  <jim@meyering.net>
82060
82061         * lib/fileblocks.c: Remove more useless parentheses.
82062         * lib/readutmp.h: Likewise.
82063
82064 2006-01-25  Bruno Haible  <bruno@clisp.org>
82065
82066         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
82067         warnings.
82068         Reported by Paul Eggert.
82069
82070 2006-01-25  Bruno Haible  <bruno@clisp.org>
82071
82072         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
82073         rid of a trap command. For Solaris sh.
82074         Reported by Mark D. Baushke <mdb@gnu.org>.
82075
82076 2006-01-24  Simon Josefsson  <jas@extundo.com>
82077
82078         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
82079         Bruno.
82080
82081 2006-01-24  Karl Berry  <karl@gnu.org>
82082
82083         * config/srclist.txt (argp-namefrob.h): sync lost.
82084
82085 2006-01-24  Jim Meyering  <jim@meyering.net>
82086
82087         * modules/openat (Files): Add lib/intprops.h.
82088         From Mark D. Baushke.
82089
82090 2006-01-24  Jim Meyering  <jim@meyering.net>
82091
82092         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
82093         Reported by Mark D. Baushke.
82094
82095 2006-01-24  Jim Meyering  <jim@meyering.net>
82096
82097         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
82098
82099 2006-01-24  Bruno Haible  <bruno@clisp.org>
82100
82101         * modules/strnlen (Maintainer): Change from glibc to all.
82102
82103 2006-01-24  Bruno Haible  <bruno@clisp.org>
82104
82105         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
82106         Patch by Paul Eggert.
82107
82108 2006-01-24  Bruno Haible  <bruno@clisp.org>
82109
82110         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
82111         already has it.
82112         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
82113         2005-11-26.
82114
82115         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
82116         'signed char' to avoid problems with the built-in _Bool type.
82117         Reported by Paul Eggert on 2005-11-26.
82118
82119 2006-01-24  Bruno Haible  <bruno@clisp.org>
82120
82121         * gnulib-tool (func_import): Avoid constructing complicated sed
82122         expressions inside backquote.
82123         Report and solution by Mark D. Baushke <mdb@gnu.org>.
82124
82125 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
82126
82127         These changes imported from libc.
82128         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
82129         test and two separate function calls.
82130         * lib/strndup.c (__strndup): Add libc_hidden_def.
82131
82132 2006-01-23  Simon Josefsson  <jas@extundo.com>
82133
82134         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
82135         Remove the test_*_SOURCES variable: automake infers it by default.
82136         * modules/tls-tests: Likewise.
82137
82138 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
82139
82140         Work around porting bugs reported by Dieter in
82141         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
82142         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
82143         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
82144         Include "getopt.h" first, to check interface.
82145         (getenv): Declare only if defined HAVE_DECL_GETENV &&
82146         !HAVE_DECL_GETENV.
82147         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
82148         (__strndup): Revert to K&R-style function dfns, the glibc style.
82149         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
82150         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
82151         Include strnlen.h first, to get prototype properly.
82152         (strnlen): Renamed from __strnlen.
82153         Remove weak alias.
82154
82155 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
82156
82157         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
82158
82159 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
82160
82161         * config/srclist.txt: Adjust to reflect glibc reorganization.
82162         This affects only comments.
82163
82164 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
82165
82166          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
82167          Reported by Bruce Korb <bkorb@gnu.org>.
82168
82169 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
82170
82171         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
82172         to pacify gcc -Wswitch-default.
82173
82174 2006-01-22  Bruno Haible  <bruno@clisp.org>
82175
82176         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
82177         temporary buffer for sprintf, take into account the precision also
82178         for 'd', 'i', 'u', 'o', 'x', 'X'.
82179
82180 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
82181
82182         * modules/argp-tests: New module
82183         * tests/test-argp.c: New file
82184         * tests/test-argp-2.sh: New file
82185
82186 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
82187
82188         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
82189         (__argp_base_name): Removed
82190         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
82191         typo.
82192         (__argp_base_name): Provide macro definition or extern declaration
82193         depending on the configuration
82194
82195 2006-01-20  Simon Josefsson  <jas@extundo.com>
82196
82197         * modules/inet_ntop (Depends-on): Depend on sys_socket.
82198
82199 2006-01-20  Simon Josefsson  <jas@extundo.com>
82200
82201         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
82202
82203 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
82204
82205         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
82206         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
82207         Suggested by Bruno Haible.
82208
82209 2006-01-20  Karl Berry  <karl@gnu.org>
82210
82211         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
82212         until changes propagate, I guess.
82213
82214 2006-01-19  Simon Josefsson  <jas@extundo.com>
82215
82216         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
82217
82218 2006-01-19  Simon Josefsson  <jas@extundo.com>
82219
82220         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
82221
82222 2006-01-19  Simon Josefsson  <jas@extundo.com>
82223
82224         * gnulib-tool: Set check_PROGRAMS.
82225
82226         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
82227         modules/des-tests, modules/gc-arcfour-tests,
82228         modules/gc-arctwo-tests, modules/gc-des-tests,
82229         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
82230         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
82231         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
82232         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
82233         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
82234         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
82235         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
82236         test_*_SOURCES.
82237
82238 2006-01-18  Simon Josefsson  <jas@extundo.com>
82239
82240         * modules/socklen (Depends-on): Depend on sys_socket.
82241
82242 2006-01-18  Simon Josefsson  <jas@extundo.com>
82243
82244         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
82245         modules/des-tests, modules/gc-arcfour-tests,
82246         modules/gc-arctwo-tests, modules/gc-des-tests,
82247         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
82248         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
82249         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
82250         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
82251         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
82252         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
82253         $(EXEEXT) to automake TESTS variable, for mingw32.
82254
82255 2006-01-17  Simon Josefsson  <jas@extundo.com>
82256
82257         * modules/socklen (Include): Need sys/socket.h.
82258
82259 2006-01-17  Bruno Haible  <bruno@clisp.org>
82260
82261         * modules/ssize_t (Include): Add <sys/types.h>.
82262
82263 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
82264
82265         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
82266         it's not portable and it doesn't work with cross-compiles.
82267         Problem reported by Bruno Haible.  Fix missing-$ typo in
82268         'test "gl_cv_ignore_unused_libraries" ...' that prevented
82269         -zignore from being used with Sun's C compiler.
82270
82271 2006-01-12  Simon Josefsson  <jas@extundo.com>
82272
82273         * lib/base64.c: Fix warning, reported by Bruno Haible
82274         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
82275
82276 2006-01-12  Bruno Haible  <bruno@clisp.org>
82277
82278         * modules/ldd: New file.
82279         * build-aux/ldd.sh.in: New file.
82280         * MODULES.html.sh (Support for building libraries and executables): Add
82281         ldd.
82282
82283 2006-01-12  Bruno Haible  <bruno@clisp.org>
82284
82285         * m4/ldd.m4: New file.
82286
82287 2006-01-12  Bruno Haible  <bruno@clisp.org>
82288
82289         * gnulib-tool (func_import, func_create_testdir): Don't go into an
82290         endless loop while replacing $auxdir with build-aux.
82291
82292 2006-01-11  Simon Josefsson  <jas@extundo.com>
82293
82294         * lib/stdint_.h (SIZE_MAX): Add missing (.
82295
82296 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
82297
82298         Sync from coreutils.
82299         * lib/md5.c: Fix commentary typos.
82300         (alignof, UNALIGNED_P): No need for a GCC-specific version.
82301         * lib/md5.h (__attribute__): Remove; unused.
82302         * lib/sha1.c: Fix commentary to match md5 better.
82303         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
82304         so that we don't need to worry about alignment.  All uses changed.
82305         This merges the 2005-10-28 md5 change into sha1.
82306
82307 2006-01-11  Jim Meyering  <jim@meyering.net>
82308
82309         Sync from coreutils.
82310         * lib/md5.c (OP): Fix spacing.
82311
82312 2006-01-11  Bruno Haible  <bruno@clisp.org>
82313
82314         Ensure automatic ordering between gl_LOCK and gl_ARGP.
82315         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
82316         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
82317
82318 2006-01-11  Bruno Haible  <bruno@clisp.org>
82319
82320         Ensure automatic ordering between gl_LOCK and gl_ARGP.
82321         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
82322         the "early" section as well.
82323
82324 2006-01-11  Bruno Haible  <bruno@clisp.org>
82325
82326         Avoid "ar: no archive members specified" error on MacOS X.
82327         * gnulib-tool (func_modules_add_dummy): New function.
82328         (func_import, func_create_testdir): Invoke it.
82329
82330 2006-01-11  Bruno Haible  <bruno@clisp.org>
82331
82332         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
82333         with $auxdir in AC_CONFIG_FILES statements.
82334
82335 2006-01-11  Bruno Haible  <bruno@clisp.org>
82336
82337         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
82338         Initialize also noinst_HEADERS to empty.
82339
82340 2006-01-11  Bruno Haible  <bruno@clisp.org>
82341
82342         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
82343         variables.
82344         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
82345         autoreconf.
82346
82347 2006-01-11  Bruno Haible  <bruno@clisp.org>
82348
82349         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
82350         overridable by the user.
82351         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82352
82353 2006-01-10  Simon Josefsson  <jas@extundo.com>
82354
82355         * modules/sys_socket: New file.
82356
82357 2006-01-10  Simon Josefsson  <jas@extundo.com>
82358
82359         * m4/sys_socket_h.m4: New file.
82360
82361 2006-01-10  Simon Josefsson  <jas@extundo.com>
82362
82363         * lib/socket_.h: New file.
82364
82365 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
82366
82367         * modules/readutmp (Maintainer): Add myself.
82368
82369 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
82370
82371         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
82372         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
82373         People who are still concerned with buggy memcmp implementations
82374         can invoke gl_FUNC_MEMCMP themselves.
82375
82376 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
82377
82378         * lib/regex_internal.h (BITSET_WORD_BITS):
82379         Work around a bug in 64-bit PGC (before version 6.1-2), where the
82380         preprocessor mishandles large unsigned values as if they were signed.
82381         Problem reported by Claudio Fontana in
82382         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
82383
82384 2006-01-10  Jim Meyering  <jim@meyering.net>
82385
82386         Avoid the double-free (first in fts_read, second in fts_close) that
82387         would occur when an `active' directory is made inaccessible (e.g.,
82388         via chmod a-x) during a traversal.
82389         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
82390         before returning.  Reproduce this failure by
82391         mkdir -p a/b; cd a; chmod a-x . b
82392         Reported by Stavros Passas.
82393
82394         Sync from coreutils.
82395         * lib/sha1.c: Tweak grammar in a comment.
82396
82397 2006-01-10  Jim Meyering  <jim@meyering.net>
82398
82399         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
82400         Patch by Joerg Sonnenberger.
82401
82402 2006-01-10  Bruno Haible  <bruno@clisp.org>
82403
82404         * modules/readutmp: Depend on module free.
82405         * modules/strtok_r: Depend on module restrict.
82406
82407 2006-01-10  Bruno Haible  <bruno@clisp.org>
82408
82409         * modules/gettext (configure.ac): Add an invocation of
82410         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
82411
82412 2006-01-10  Bruno Haible  <bruno@clisp.org>
82413
82414         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
82415         Reported by Werner Lemberg <wl@gnu.org>.
82416
82417 2006-01-10  Bruno Haible  <bruno@clisp.org>
82418
82419         * lib/localcharset.c: Update from GNU gettext.
82420
82421 2006-01-10  Bruno Haible  <bruno@clisp.org>
82422
82423         * lib/argp.h (__const): Remove macro. Use const instead.
82424         * lib/argp-fmtstream.h (__const): Likewise.
82425         * lib/glob_.h (__const): Remove macro.
82426         * lib/glob-libc.h: Use const instead of __const.
82427
82428 2006-01-10  Bruno Haible  <bruno@clisp.org>
82429
82430         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
82431         variable.
82432         Needed to avoid an automake error regarding the 'gettext' module.
82433
82434 2006-01-09  Simon Josefsson  <jas@extundo.com>
82435
82436         * modules/inet_ntop (Depends-on): Add restrict.
82437
82438 2006-01-09  Simon Josefsson  <jas@extundo.com>
82439
82440         * modules/gc-rijndael-tests (License): Put under LGPL.
82441
82442         * modules/gc-des-tests (License): Likewise.
82443
82444         * modules/gc-arcfour-tests (License): Likewise.
82445
82446         * modules/gc-arctwo-tests (License): Likewise.
82447
82448         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
82449
82450         * modules/gc-hmac-sha1-tests (Files): Likewise.
82451
82452         * modules/gc-hmac-md5-tests (License): Likewise.
82453
82454         * modules/gc-sha1-tests (License): Likewise.
82455
82456         * modules/gc-md5-tests (License): Likewise.
82457
82458         * modules/gc-md4-tests (License): Likewise.
82459
82460         * modules/gc-md2-tests (License): Likewise.
82461
82462         * modules/gc-tests (License): Likewise.
82463
82464         * modules/des-tests (License): Likewise.
82465
82466         * modules/md4-tests (License): Likewise.
82467
82468         * modules/md2-tests (License): Likewise.
82469
82470 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
82471
82472         Sync from coreutils:
82473
82474         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
82475         * modules/lib-ignore: New file.
82476         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
82477         chdir-safer.m4, lchmod.m4.
82478         * modules/openat: Add mkdirat.c, openat-priv.h.
82479
82480 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
82481
82482         Sync from coreutils.
82483         * m4/lib-ignore.m4: New file.
82484         * m4/lchmod.m4: New file.
82485
82486 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
82487
82488         Sync from coreutils.
82489         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
82490         for write access: POSIX says that must fail.
82491         * lib/fts.c (diropen): Likewise.
82492         * lib/save-cwd.c (save_cwd): Likewise.
82493         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
82494         well, for minor improvements on hosts that lack O_DIRECTORY.
82495         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
82496         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
82497         Fall back on chown if open failed with EACCES.
82498
82499         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
82500         Report an error at compile-time if only a 1-second nominal clock
82501         resolution is found.
82502
82503         * lib/lchmod.h: New file.
82504         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
82505         (make_dir_parents): Use lchown rather than chown, and
82506         lchmod rather than chmod.
82507
82508         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
82509         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
82510         "proc" reported by n0dalus.
82511
82512         * lib/mountlist.c: Include <limits.h>.
82513         (dev_from_mount_options)
82514         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
82515         New function.  It no longer assumes "dev=" has the System V meaning
82516         on Linux (since it doesn't).  It also parses "dev=" more carefully.
82517         (read_file_system_list)
82518         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
82519         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
82520         dev= in that case.
82521
82522         * lib/posixtm.h (PDS_PRE_2000): New macro.
82523         * lib/posixtm.c (year): Arg is now syntax_bits rather than
82524         allow_century.  All usages changed.  Reject dates outside the range
82525         1969-1999 if PDS_PRE_2000 is used.
82526
82527 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
82528
82529         Sync from coreutils.
82530         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
82531         (Time of day items): Mention the possibility of leap seconds.
82532         Problem reported by Dr. David Alan Gilbert.
82533
82534 2006-01-09  Jim Meyering  <jim@meyering.net>
82535
82536         Sync from coreutils.
82537
82538         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
82539
82540         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
82541
82542         * lib/modechange.c (mode_compile): Reject an invalid mode string
82543         that starts with an octal digit.  From Andreas Gruenbacher.
82544
82545         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
82546         and dup to open_safer and dup_safer, respectively.
82547         (openat_permissive): Fix typo in comment.
82548
82549         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
82550         "gettext.h"; either no longer needed or are guaranteed by openat.h.
82551         (_): Remove; no longer needed.
82552         (openat): Renamed from rpl_openat; no need for rpl_openat
82553         since openat.h renames openat for us.
82554         Replace most of the body with a call to openat_permissive,
82555         to avoid duplicate code.
82556         Port to (probably hypothetical) environments were mode_t is
82557         wider than int.
82558         (openat_permissive): Require mode arg, so that we can check
82559         types better.  Put it just after flags.  Change cwd failure
82560         indicator from pointer-to-bool to pointer-to-errno-value.
82561         All callers changed.
82562         Invoke openat_save_fail and/or openat_restore_fail if
82563         cwd_errno is null, so that openat can call us.
82564         (openat_permissive, fdopendir, fstatat, unlinkat):
82565         Simplify errno handling to avoid some duplicate code,
82566         as it's OK to set errno on success.
82567         * lib/openat.h: Revamp code so that function macros depend on
82568         __OPENAT_PREFIX only, not also on AT_FDCWD.
82569         (openat_ro): Remove.  Caller changed to use openat_permissive.
82570         (openat_permissive): Now a macro, if not a function.
82571         (openat_restore_fail, openat_save_fail): Now always functions,
82572         since mkdirat needs them even if __OPENAT_PREFIX is defined.
82573
82574         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
82575         and openat.c.
82576         * lib/mkdirat.c: Include openat-priv.h.
82577         Remove definitions of macros defined therein.
82578         * lib/openat.c: Likewise.
82579
82580         * lib/mkdirat.c (mkdirat): New file and function.
82581         * lib/openat.h (mkdirat): Declare.
82582
82583         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
82584
82585         * lib/openat.h (openat_permissive): Declare.
82586         (openat_ro): Define.
82587
82588         * lib/openat.c (EXPECTED_ERRNO): New macro.
82589         (openat_permissive): New function -- used in remove.c rewrite.
82590         (all functions): Set errno just before returning, only if there
82591         was an actual failure.
82592         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
82593
82594         Emulate openat-family functions using Linux's procfs, if possible.
82595         Idea and some code based on Ulrich Drepper's glibc changes.
82596
82597         * lib/openat.c: (BUILD_PROC_NAME): New macro.
82598         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
82599         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
82600         before falling back on save_cwd and restore_cwd.
82601         (fdopendir, fstatat, unlinkat): Likewise.
82602
82603         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
82604         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
82605
82606         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
82607         as second argument to va_arg.  Otherwise, some versions of gcc
82608         warn that `if this code is reached, the program will abort'.
82609
82610 2006-01-09  Jim Meyering  <jim@meyering.net>
82611
82612         Sync from coreutils.
82613         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
82614         Require openat-priv.h.
82615
82616 2006-01-09  Bruno Haible  <bruno@clisp.org>
82617
82618         * modules/strnlen (Include): Use strnlen.h.
82619
82620 2006-01-09  Bruno Haible  <bruno@clisp.org>
82621
82622         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
82623
82624 2006-01-09  Bruno Haible  <bruno@clisp.org>
82625
82626         * lib/sysexit_.h (EX_OK): New macro.
82627         Suggested by Martin Lambers <marlam@marlam.de>.
82628
82629 2006-01-09  Bruno Haible  <bruno@clisp.org>
82630
82631         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
82632         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
82633
82634 2006-01-09  Bruno Haible  <bruno@clisp.org>
82635
82636         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
82637         numbers.
82638
82639 2006-01-09  Bruno Haible  <bruno@clisp.org>
82640
82641         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
82642         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
82643         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
82644         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
82645
82646 2006-01-09  Bruno Haible  <bruno@clisp.org>
82647
82648         * build-aux/javacomp.sh.in: New file, moved from lib/.
82649         * modules/javacomp-script (Files): Update.
82650         (configure.ac): Add AC_CONFIG_FILES invocation.
82651         (EXTRA_DIST): Remove variable.
82652
82653         * build-aux/javaexec.sh.in: New file, moved from lib/.
82654         * modules/javaexec (Files): Update.
82655         (configure.ac): Add AC_CONFIG_FILES invocation.
82656         (EXTRA_DIST): Remove javaexec.sh.in.
82657
82658         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
82659         * modules/csharpcomp-script (Files): Update.
82660         (configure.ac): Add AC_CONFIG_FILES invocation.
82661         (EXTRA_DIST): Remove variable.
82662
82663         * build-aux/csharpexec.sh.in: New file, moved from lib/.
82664         * modules/csharpexec (Files): Update.
82665         (configure.ac): Add AC_CONFIG_FILES invocation.
82666         (EXTRA_DIST): Remove csharpexec.sh.in.
82667
82668 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
82669
82670         Sync from coreutils.
82671
82672         Add POSIX ACL support
82673         * lib/acl.h (copy_acl, set_acl): Add declarations.
82674         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
82675         systems other than Linux.
82676         (chmod_or_fchmod): New function: use fchmod when possible,
82677         and chmod otherwise.
82678         (file_has_acl): Add a POSIX ACL implementation, with a
82679         Linux-specific subcase.
82680         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
82681         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
82682         acls are unsupported.
82683         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
82684         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
82685         are unsupported.
82686
82687 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
82688
82689         Sync from coreutils.
82690         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
82691
82692 2006-01-07  Bruno Haible  <bruno@clisp.org>
82693
82694         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
82695         gl_EARLY.
82696
82697 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
82698
82699         * lib/strftime.c (tzname): Don't declare if it is already #defined.
82700         Problem reported for Mingw by Mark Junker.
82701
82702 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
82703
82704         * README: Gnulib normally doesn't generate a tarball.
82705
82706 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
82707
82708         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
82709         long int, not int, for nanosecond counts, so that people who are
82710         used to POSIX struct timespec won't be surprised.  Reported by Jim
82711         Meyering.
82712
82713 2005-12-28  Bruno Haible  <bruno@clisp.org>
82714
82715         * build-aux/config.rpath: Update from GNU gettext.
82716
82717 2005-12-16  Jim Meyering  <jim@meyering.net>
82718
82719         * modules/fprintftime: New module.
82720         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
82721
82722 2005-12-16  Jim Meyering  <jim@meyering.net>
82723
82724         * m4/fprintftime.m4: New file.
82725
82726 2005-12-16  Jim Meyering  <jim@meyering.net>
82727
82728         * lib/fprintftime.c, lib/fprintftime.h: New files.
82729
82730 2005-12-15  Simon Josefsson  <jas@extundo.com>
82731
82732         * modules/socklen (configure.ac): Fix M4 macro name, to align with
82733         new m4/socklen.m4.
82734
82735 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
82736
82737         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
82738         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
82739
82740 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
82741
82742         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
82743         * lib/argp-help.c (fill_in_uparams): Check if the constructed
82744         struct uparams is valid. Fall back to the default values if it is
82745         not.
82746
82747 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82748
82749         * modules/argp (Files): Add argp-pin.c
82750         (Depends-on): dirname
82751         (lib_SOURCES): Add argp-pin.c
82752
82753 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82754
82755         * m4/argp.m4:  Check if program_invocation_name and
82756         program_invocation_short_name are declared and define appropriate
82757         macros if they are not.
82758
82759 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82760
82761         * lib/argp-help.c (__argp_base_name): New function
82762         (__argp_short_program_name): Rewrite using __argp_base_name
82763         * lib/argp-namefrob.h: Define program_invocation_name and
82764         program_invocation_short_name if requested
82765         (__argp_base_name): Add prototype
82766         * lib/argp-parse.c (argp_def): Use gettext wrappers
82767         (argp_default_parser): Use __argp_base_name
82768         * lib/argp-pin.c: New file. Defines program_invocation_name and
82769         program_invocation_short_name on systems that lack them.
82770
82771 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
82772
82773         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
82774         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
82775         porting problem reported by Georg Schwarz in
82776         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
82777
82778 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
82779
82780         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
82781         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
82782         porting problem reported by Georg Schwarz in
82783         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
82784
82785 2005-12-05  Bruno Haible  <bruno@clisp.org>
82786
82787         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
82788         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
82789         Reported by Mark Junker <mjscod@gmx.de>.
82790
82791 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
82792
82793         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
82794         Use implementation from Albert Chin, with some
82795         comments/corrections by Stepan Kasal and myself.
82796
82797 2005-12-02  Bruno Haible  <bruno@clisp.org>
82798
82799         * gnulib-tool (func_import): Accept GPLed build tool modules when
82800         --lgpl is given.
82801         * modules/csharpcomp-script: New file.
82802         * modules/csharpcomp: Depend on it.
82803         * modules/javacomp-script: New file.
82804         * modules/javacomp: Depend on it.
82805         Suggested by Simon Josefsson.
82806
82807 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
82808
82809         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
82810         statement, to work around an HP-UX 10.20 compiler bug reported by
82811         Peter O'Gorman.
82812
82813 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
82814
82815         * modules/savedir (Depends-on): Add openat.
82816
82817 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
82818
82819         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
82820         (uintmax_t) [defined uintmax_t]: Do not declare.
82821         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
82822         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
82823         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
82824         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
82825         sake of portability to weird hosts that C allows (though we don't
82826         know of any practical examples).
82827
82828         * lib/savedir.h (fdsavedir): New decl.
82829         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
82830         contains most of the former guts of savedir.
82831         (savedir): Use savedirstream.
82832         Include "openat.h".
82833
82834 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
82835
82836         * modules/obstack (Files): Add m4/ulonglong.m4.
82837         Problem reported by Davide Angelocola.
82838
82839 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
82840
82841         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
82842         coreutils no longer futzes with rounding modes.
82843
82844 2005-11-14  Jim Meyering  <jim@meyering.net>
82845
82846         * lib/mkstemp-safer.c: Include <config.h>, required for possible
82847         replacement of mkstemp.
82848
82849 2005-11-10  Simon Josefsson  <jas@extundo.com>
82850
82851         * lib/readline.c: Remove EOL.
82852
82853 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
82854
82855         * modules/gethrxtime (Depends-on): Add gettime.
82856
82857 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
82858
82859         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
82860         or gettimeofday; no longer needed.
82861
82862 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
82863
82864         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
82865         time business.
82866         (gethrxtime) [! (HAVE_NANOUPTIME
82867         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
82868         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
82869         our own approximation.
82870
82871 2005-11-08  Eric Blake  <ebb9@byu.net>
82872
82873         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
82874
82875 2005-11-08  Eric Blake  <ebb9@byu.net>
82876
82877         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
82878
82879 2005-11-04  Bruno Haible  <bruno@clisp.org>
82880
82881         * gnulib-tool: Implement --update mode.
82882
82883 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
82884
82885         Fix porting problem reported by Theodoros V. Kalamatianos.
82886         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
82887         Don't assume that futimes failing means we must fail.
82888
82889 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
82890
82891         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
82892         variables to suggest the intended function of the PATH_MAX check.
82893
82894 2005-10-30  Kean Johnston  <jkj@sco.com>
82895
82896         Trivial changes to support SCO systems.
82897         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
82898         as PATH_MAX.
82899         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
82900         where __ptr is null when no I/O is pending.
82901
82902 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
82903
82904         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
82905         leave errno alone.  Problem reported by Dmitry V. Levin.
82906
82907 2005-10-28  Simon Josefsson  <jas@extundo.com>
82908
82909         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
82910         Test more.
82911
82912         * tests/test-gc-md2.c, tests/test-md2.c: New files.
82913
82914         * modules/md2, modules/md2-tests: New files.
82915
82916 2005-10-28  Simon Josefsson  <jas@extundo.com>
82917
82918         * m4/inet_ntop.m4: More tests.
82919
82920         * m4/gc-md2.m4, md2.m4: New file.
82921
82922 2005-10-28  Simon Josefsson  <jas@extundo.com>
82923
82924         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
82925         "restrict" keywords, as per POSIX.  Protect the function
82926         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
82927         Don't use K&R prototypes.  Check the sprintf return values.
82928         Re-define EAFNOSUPPORT if not present.  Indent.
82929
82930         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
82931         suggested by Bruno Haible <bruno@clisp.org>.
82932
82933         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
82934
82935         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
82936
82937         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
82938         libgcrypt).
82939
82940         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
82941
82942         * lib/md2.h, lib/md2.c: New files.
82943
82944 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
82945
82946         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
82947         errno alone.  Problem reported by Frederic Jolliton.
82948
82949 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
82950
82951         * modules/verify (License): Change from GPL to LGPL.  This is a
82952         tiny module and there are apparently near-equivalents that are
82953         under the BSD license.
82954
82955 2005-10-24  Simon Josefsson  <jas@extundo.com>
82956
82957         * modules/sha1: Relicense to LGPL.
82958
82959 2005-10-24  Simon Josefsson  <jas@extundo.com>
82960
82961         * lib/md4.h: Shrink buffer size, now that we changed the type.
82962
82963 2005-10-23  Simon Josefsson  <jas@extundo.com>
82964
82965         * gnulib-tool (func_import): Fix --tests-base.
82966
82967 2005-10-22  Simon Josefsson  <jas@extundo.com>
82968
82969         * modules/arcfour (Depends-on): Need stdint.
82970
82971 2005-10-22  Simon Josefsson  <jas@extundo.com>
82972
82973         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
82974         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
82975
82976 2005-10-22  Simon Josefsson  <jas@extundo.com>
82977
82978         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
82979         suggested by Bruno Haible <bruno@clisp.org>.
82980
82981 2005-10-22  Simon Josefsson  <jas@extundo.com>
82982
82983         * lib/crc.h: Include stddef.h, for size_t.
82984
82985 2005-10-22  Simon Josefsson  <jas@extundo.com>
82986
82987         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
82988         arcfour_context struct (simplify test vector testing in GNU
82989         Shishi).
82990
82991 2005-10-21  Simon Josefsson  <jas@extundo.com>
82992
82993         * modules/des, modules/des-tests: New files.
82994
82995         * modules/gc-des, modules/gc-des-tests: New files.
82996
82997         * tests/test-des.c, tests/test-gc-des.c: New file.
82998
82999 2005-10-21  Simon Josefsson  <jas@extundo.com>
83000
83001         * modules/arctwo, modules/arctwo-tests: New files.
83002
83003         * tests/test-arctwo.c: New file.
83004
83005         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
83006
83007         * tests/test-gc-arctwo.c: New file.
83008
83009 2005-10-21  Simon Josefsson  <jas@extundo.com>
83010
83011         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
83012         Bruno Haible <bruno@clisp.org>.
83013
83014         * m4/gc-des.m4: New file.
83015
83016 2005-10-21  Simon Josefsson  <jas@extundo.com>
83017
83018         * m4/arctwo.m4: New file.
83019
83020         * m4/gc-arctwo.m4: New file.
83021
83022 2005-10-21  Simon Josefsson  <jas@extundo.com>
83023
83024         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
83025         block.
83026
83027 2005-10-21  Simon Josefsson  <jas@extundo.com>
83028
83029         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
83030         <bruno@clisp.org>.
83031
83032         * lib/hmac-sha1.c (hmac_sha1): Likewise.
83033
83034         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
83035         Bruno Haible <bruno@clisp.org>.
83036
83037         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
83038         <bruno@clisp.org>.
83039
83040 2005-10-21  Simon Josefsson  <jas@extundo.com>
83041
83042         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
83043
83044 2005-10-21  Simon Josefsson  <jas@extundo.com>
83045
83046         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
83047
83048 2005-10-21  Simon Josefsson  <jas@extundo.com>
83049
83050         * lib/des.h, lib/des.c: New files.
83051
83052         * lib/gc-gnulib.c: Support DES.c
83053
83054 2005-10-21  Simon Josefsson  <jas@extundo.com>
83055
83056         * lib/arctwo.h, lib/arctwo.c: New files.
83057
83058         * lib/gc-gnulib.c: Support ARCTWO.
83059
83060 2005-10-21  Simon Josefsson  <jas@extundo.com>
83061
83062         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
83063         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83064
83065 2005-10-21  Simon Josefsson  <jas@extundo.com>
83066
83067         * gnulib-tool (func_import, func_create_testdir): Define automake
83068         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
83069         Makefile.am snippet),
83070         suggested by Bruno Haible <bruno@clisp.org>.
83071
83072         * modules/gc (Makefile.am): Use it.
83073
83074 2005-10-21  Bruno Haible  <bruno@clisp.org>
83075
83076         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
83077         patch.
83078
83079 2005-10-19  Simon Josefsson  <jas@extundo.com>
83080
83081         * tests/test-gc-rijndael.c: New file.
83082
83083         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
83084
83085 2005-10-19  Simon Josefsson  <jas@extundo.com>
83086
83087         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
83088         interface too.
83089
83090 2005-10-19  Simon Josefsson  <jas@extundo.com>
83091
83092         * tests/test-gc-arcfour.c: New file.
83093
83094         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
83095
83096 2005-10-19  Simon Josefsson  <jas@extundo.com>
83097
83098         * modules/gc-md4, modules/gc-md4-tests: New file.
83099
83100         * tests/test-gc-md4.c: New file.
83101
83102 2005-10-19  Simon Josefsson  <jas@extundo.com>
83103
83104         * m4/gc-md4.m4: New file.
83105
83106 2005-10-19  Simon Josefsson  <jas@extundo.com>
83107
83108         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
83109         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
83110         <kasal@ucw.cz>.
83111
83112 2005-10-19  Simon Josefsson  <jas@extundo.com>
83113
83114         * m4/gc-arcfour.m4: New file.
83115
83116         * m4/gc-rijndael.m4: New file.
83117
83118 2005-10-19  Simon Josefsson  <jas@extundo.com>
83119
83120         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
83121
83122 2005-10-19  Simon Josefsson  <jas@extundo.com>
83123
83124         * lib/gc-gnulib.c: Support ARCFOUR.
83125
83126 2005-10-19  Simon Josefsson  <jas@extundo.com>
83127
83128         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
83129         support.
83130
83131         * lib/gc.h: Add ECB enum type.
83132
83133         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
83134
83135 2005-10-18  Simon Josefsson  <jas@extundo.com>
83136
83137         * tests/test-md5.c: New file.
83138
83139         * modules/md5-tests: New file.
83140
83141 2005-10-18  Simon Josefsson  <jas@extundo.com>
83142
83143         * tests/test-md4.c: New file.
83144
83145         * modules/md4, modules/md4-tests: New files.
83146
83147 2005-10-18  Simon Josefsson  <jas@extundo.com>
83148
83149         * m4/md4.m4: New file.
83150
83151 2005-10-18  Simon Josefsson  <jas@extundo.com>
83152
83153         * lib/md4.h, lib/md4.c: New files, based on md5.?.
83154
83155 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
83156
83157         * gnulib-tool (func_create_testdir): Omit the second check whether
83158         BUILT_SOURCES in nonempty.
83159
83160 2005-10-17  Simon Josefsson  <jas@extundo.com>
83161
83162         * tests/test-rijndael.c: New file.
83163
83164 2005-10-17  Simon Josefsson  <jas@extundo.com>
83165
83166         * modules/sha1: Depend on stdint instead of md5.
83167
83168         * modules/md5: Depend on stdint, remove uint32_t.
83169
83170 2005-10-17  Simon Josefsson  <jas@extundo.com>
83171
83172         * modules/gc-sha1-tests: New file.
83173
83174         * tests/test-gc-sha1.c: New file.
83175
83176 2005-10-17  Simon Josefsson  <jas@extundo.com>
83177
83178         * m4/md5.m4: Remove call to uint32_t.m4.
83179
83180 2005-10-17  Simon Josefsson  <jas@extundo.com>
83181
83182         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
83183
83184         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
83185         md5.h.
83186
83187         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
83188
83189         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
83190
83191 2005-10-17  Simon Josefsson  <jas@extundo.com>
83192
83193         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
83194
83195 2005-10-17  Simon Josefsson  <jas@extundo.com>
83196
83197         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
83198
83199 2005-10-17  Simon Josefsson  <jas@extundo.com>
83200
83201         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
83202
83203         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
83204
83205 2005-10-17  Bruno Haible  <bruno@clisp.org>
83206
83207         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
83208         that it can also be used in a test.
83209
83210 2005-10-16  Bruno Haible  <bruno@clisp.org>
83211
83212         * gnulib-tool (func_emit_tests_Makefile_am): Also define
83213         TESTS_ENVIRONMENT, so that individual tests can augment it.
83214
83215         * gnulib-tool (func_create_testdir): Use an intermediate target for
83216         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
83217         macros, like $(ALLOCA_H), which cannot be passed through the command
83218         line.
83219
83220 2005-10-15  Simon Josefsson  <jas@extundo.com>
83221
83222         * modules/rijndael-tests: New file.
83223
83224         * modules/rijndael: New file.
83225
83226 2005-10-15  Simon Josefsson  <jas@extundo.com>
83227
83228         * m4/rijndael.m4: New file.
83229
83230 2005-10-15  Simon Josefsson  <jas@extundo.com>
83231
83232         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
83233
83234         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
83235
83236 2005-10-14  Simon Josefsson  <jas@extundo.com>
83237
83238         * tests/test-arcfour.c: New file.
83239
83240         * modules/arcfour, modules/arcfour-tests: New files.
83241
83242 2005-10-14  Simon Josefsson  <jas@extundo.com>
83243
83244         * m4/arcfour.m4: New file.
83245
83246 2005-10-14  Simon Josefsson  <jas@extundo.com>
83247
83248         * lib/arcfour.h, lib/arcfour.c: New files.
83249
83250 2005-10-14  Roland McGrath  <roland@redhat.com>
83251
83252         Import from libc.  [BZ #1331]
83253         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
83254         macro argument.
83255         Reported by Matej Vela <vela@debian.org>.
83256
83257 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
83258
83259         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
83260         include <wchar.h>; no longer needed.
83261
83262 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
83263
83264         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
83265
83266 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
83267         and  Ulrich Drepper  <drepper@redhat.com>
83268
83269         Import from libc.
83270         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
83271         instead of inline stream orientation test and two separate
83272         function calls.  Pay no attention to USE_IN_LIBIO.
83273
83274 2005-10-13  Simon Josefsson  <jas@extundo.com>
83275
83276         * modules/gc-hmac-md5-tests: New file.
83277
83278         * tests/test-gc-hmac-sha1.c: New file.
83279
83280         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
83281
83282         * modules/gc-hmac-md5-tests: New file.
83283
83284         * tests/test-gc-md5.c: New file.
83285
83286         * modules/gc-md5-tests: New file.
83287
83288 2005-10-13  Simon Josefsson  <jas@extundo.com>
83289
83290         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
83291         Move memory allocation outside of loop.
83292
83293 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
83294
83295         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
83296         intermediate directory is in a read-only file system.  Problem
83297         reported by Eric Blake.
83298
83299 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
83300
83301         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
83302
83303 2005-10-12  Simon Josefsson  <jas@extundo.com>
83304
83305         * tests/test-hmac-sha1.c: New file.
83306
83307         * modules/hmac-sha1-tests: New file.
83308
83309         * modules/hmac-sha1: New file.
83310
83311 2005-10-12  Simon Josefsson  <jas@extundo.com>
83312
83313         * modules/gc-sha1: New file.
83314
83315 2005-10-12  Simon Josefsson  <jas@extundo.com>
83316
83317         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
83318
83319         * tests/test-gc-pbkdf2-sha1.c: New file.
83320
83321 2005-10-12  Simon Josefsson  <jas@extundo.com>
83322
83323         * modules/gc-md5, modules/gc-hmac-md5: New files.
83324
83325         * modules/gc (Files): Remove md5, memxor and hmac files.
83326
83327 2005-10-12  Simon Josefsson  <jas@extundo.com>
83328
83329         * m4/gc-pbkdf2-sha1.m4: New file.
83330
83331         * m4/gc-hmac-sha1.m4: New file.
83332
83333         * m4/gc-sha1: New file.
83334
83335         * m4/hmac-sha1.m4: New file.
83336
83337 2005-10-12  Simon Josefsson  <jas@extundo.com>
83338
83339         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
83340
83341         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
83342
83343 2005-10-12  Simon Josefsson  <jas@extundo.com>
83344
83345         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
83346         suggested by Bruno Haible <bruno@clisp.org>.
83347
83348 2005-10-12  Simon Josefsson  <jas@extundo.com>
83349
83350         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
83351
83352 2005-10-12  Simon Josefsson  <jas@extundo.com>
83353
83354         * lib/gc-pbkdf2-sha1.c: New file.
83355
83356         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
83357
83358 2005-10-12  Simon Josefsson  <jas@extundo.com>
83359
83360         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
83361
83362         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
83363
83364 2005-10-12  Simon Josefsson  <jas@extundo.com>
83365
83366         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
83367         GC_USE_HMAC_MD5, respectively.
83368
83369         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
83370         (gc_md5): Fix typo.
83371
83372         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
83373
83374         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
83375
83376         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
83377
83378 2005-10-12  Bruno Haible  <bruno@clisp.org>
83379
83380         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
83381         Reported by Stepan Kasal <kasal@ucw.cz>.
83382
83383 2005-10-11  Simon Josefsson  <jas@extundo.com>
83384
83385         * tests/test-crc.c: New file.
83386
83387         * modules/crc, modules/crc-tests: New files.
83388
83389 2005-10-11  Simon Josefsson  <jas@extundo.com>
83390
83391         * m4/crc.m4: New file.
83392
83393 2005-10-11  Simon Josefsson  <jas@extundo.com>
83394
83395         * lib/gc.h: Add gc_hash and gc_hash_buffer.
83396
83397         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
83398
83399         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
83400
83401 2005-10-11  Simon Josefsson  <jas@extundo.com>
83402
83403         * lib/crc.h, lib/crc.c: New files.
83404
83405         * lib/gc.h (gc_hash_buffer): Add doc.
83406
83407 2005-10-11  Bruno Haible  <bruno@clisp.org>
83408
83409         * modules/c-strcasestr: New file.
83410         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
83411
83412 2005-10-11  Bruno Haible  <bruno@clisp.org>
83413
83414         * modules/c-strcase: New file.
83415         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
83416
83417 2005-10-11  Bruno Haible  <bruno@clisp.org>
83418
83419         * lib/strcasecmp.c: Include limits.h.
83420         (strcasecmp): Avoid integer overflow on exotic platforms.
83421         * lib/strncasecmp.c: Include limits.h.
83422         (strncasecmp): Avoid integer overflow on exotic platforms.
83423         Reported by Paul Eggert.
83424
83425 2005-10-11  Bruno Haible  <bruno@clisp.org>
83426
83427         * lib/c-strcasestr.h: New file, from GNU gettext.
83428         * lib/c-strcasestr.c: New file, from GNU gettext.
83429
83430 2005-10-11  Bruno Haible  <bruno@clisp.org>
83431
83432         * lib/c-strcase.h: New file, from GNU gettext.
83433         * lib/c-strcasecmp.c: New file, from GNU gettext.
83434         * lib/c-strncasecmp.c: New file, from GNU gettext.
83435
83436 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
83437
83438         * modules/mempcpy (License): GPL -> LGPL.
83439         * modules/strchrnul (License): Likewise.
83440         * modules/sysexits (License): Likewise.
83441
83442 2005-10-08  Simon Josefsson  <jas@extundo.com>
83443
83444         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
83445
83446 2005-10-07  Simon Josefsson  <jas@extundo.com>
83447
83448         * m4/memxor.m4: Remove gl_C_RESTRICT call.
83449
83450 2005-10-06  Simon Josefsson  <jas@extundo.com>
83451
83452         * tests/test-hmac-md5.c: New file.
83453
83454         * modules/hmac-md5-tests: New file.
83455
83456         * modules/hmac-md5: New file.
83457
83458 2005-10-06  Simon Josefsson  <jas@extundo.com>
83459
83460         * m4/hmac-md5.m4: New file.
83461
83462         * m4/memxor.m4: Require gl_C_RESTRICT.
83463
83464 2005-10-06  Simon Josefsson  <jas@extundo.com>
83465
83466         * lib/memxor.c (memxor): Avoid casts and warnings.
83467
83468 2005-10-06  Simon Josefsson  <jas@extundo.com>
83469
83470         * lib/hmac-md5.c: New file.
83471
83472         * lib/hmac.h: New file.
83473
83474 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
83475
83476         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
83477         promotes to int, not unsigned int, to catch the AIX 5.3
83478         compiler bug.
83479
83480 2005-10-05  Simon Josefsson  <jas@extundo.com>
83481
83482         * modules/memxor: New file.
83483
83484         * modules/iconv (Files): Move config.rpath to havelib, it is used
83485         there.
83486
83487         * modules/havelib (Files): Add config.rpath.
83488
83489 2005-10-05  Simon Josefsson  <jas@extundo.com>
83490
83491         * m4/memxor.m4: New file.
83492
83493 2005-10-05  Simon Josefsson  <jas@extundo.com>
83494
83495         * lib/memxor.c (memxor): Fix compiler error.
83496
83497         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
83498         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
83499
83500         * lib/memxor.h, lib/memxor.c: New files.
83501
83502         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
83503         we assume all systems have it, suggested by Jim Meyering
83504         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
83505         any systems lack sys/socket.h; mingw32 is known to lack it, but we
83506         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
83507         same reasons.
83508
83509 2005-10-05  Simon Josefsson  <jas@extundo.com>
83510
83511         * config/srclist.txt: Add glibc bug 1423 for md5.h.
83512
83513 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
83514
83515         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
83516         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
83517         needed, since the source code now assumes these .h files.
83518
83519 2005-10-05  Derek Price  <derek@ximbiot.com>
83520
83521         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
83522
83523 2005-10-05  Bruno Haible  <bruno@clisp.org>
83524
83525         * modules/stdint (License): Change to LGPL.
83526
83527 2005-10-04  Simon Josefsson  <jas@extundo.com>
83528
83529         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
83530         D. Baushke" <mdb@gnu.org>.
83531
83532 2005-10-04  Bruno Haible  <bruno@clisp.org>
83533
83534         * lib/verify.h (verify_true): Provide alternative definition for C++.
83535
83536 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
83537
83538         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
83539         (SSIZE_MAX): New macro, if not already defined.
83540         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
83541         than 2 GiB.
83542
83543 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
83544
83545         Sync from coreutils.
83546         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
83547         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
83548         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
83549         ULLONG_MAX doesn't work with 2.7.2.1.
83550
83551 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
83552
83553         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
83554         From Ben Pfaff.
83555
83556         * modules/exclude (Depends-on): Depend on verify.
83557         * modules/strtoimax (Depends-on): Likewise.
83558         * modules/utimecmp (Depends-on): Likewise.
83559
83560 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
83561
83562         * lib/exclude.c: Include verify.h.
83563         (verify): Remove.  All callers changed to use verify.h's version.
83564         * lib/strtoimax.c: Likewise.
83565         * lib/utimecmp.c: Likewis.e
83566
83567         Sync from coreutils.
83568         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
83569         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
83570         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
83571         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
83572         bother returning ENOSYS if settimeofday or stime fails; just let
83573         them return whatever errno they want to return.
83574         * lib/utimens.c: Include unistd.h, for dup2.
83575         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
83576         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
83577
83578 2005-10-02  Jim Meyering  <jim@meyering.net>
83579
83580         Sync from coreutils.
83581         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
83582         from glibc-2.2.5 that fails for read-only files.
83583
83584 2005-10-02  Jim Meyering  <jim@meyering.net>
83585
83586         Sync from coreutils.
83587         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
83588         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
83589         `#if HAVE_CONFIG_H'.
83590         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
83591         Remove AT_FDCWD test.
83592         Do not consume the fd unless successful.
83593         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
83594         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
83595         block, so that we don't even try to compile it if settimeofday is
83596         available.  This works around a compilation failure on OSF1 V5.1,
83597         due to stime requiring a `long int*' while tv_sec is `int'.
83598
83599 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
83600
83601         Sync from coreutils.
83602         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
83603         against `yes', rather than just testing for nonempty.
83604
83605 2005-10-01  Simon Josefsson  <jas@extundo.com>
83606
83607         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
83608         and Darwin.
83609
83610         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
83611         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
83612         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
83613         freeaddrinfo and gai_strerror are declared by the POSIX headers.
83614         Check if struct addrinfo is declared.
83615
83616 2005-10-01  Simon Josefsson  <jas@extundo.com>
83617
83618         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
83619         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
83620         AI_* and EAI_* definitions.  Protect function declarations.
83621
83622 2005-10-01  Jim Meyering  <jim@meyering.net>
83623
83624         Sync from coreutils.
83625
83626         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
83627         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
83628         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
83629         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
83630         in the inet and nsl libraries.  Required on Solaris 5.7.
83631
83632 2005-10-01  Jim Meyering  <jim@meyering.net>
83633
83634         Sync from coreutils.
83635         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
83636         in the inet and nsl libraries.  Required on Solaris 5.7.
83637
83638 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
83639
83640         * lib/getdelim.c (getdelim): Remove unused variables.
83641
83642 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
83643
83644         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
83645         so that the code works even with ancient cpp.  Portability problem
83646         with GCC 2.7.2.1 reported by Thomas M.Ott.
83647
83648 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
83649
83650         * modules/regex (Depends-on): Add strcase.
83651
83652         * modules/gethostname (Licence): Change from GPL to LGPL, since
83653         gethostname.c is a trivial implementation of a standard library
83654         function.
83655         * modules/poll (License): Change from GPL to LGPL, since it's
83656         derived from LGPL code.
83657
83658 2005-09-27  Jim Meyering  <jim@meyering.net>
83659
83660         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
83661         HAVE_CONFIG_H.
83662
83663         * lib/intprops.h (signed_type_or_expr__): Define.
83664         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
83665         for unsigned types.
83666
83667 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
83668
83669         * lib/verify.h (verify_expr): Remove, replacing with:
83670         (verify_true): New macro that returns true instead of void.
83671         (verify_type__): Remove.
83672         (verify): Use verify_true rather than verify_type__.
83673
83674 2005-09-26  Bruno Haible  <bruno@clisp.org>
83675
83676         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
83677         is necessary.
83678         (lib_SOURCES): Remove mbchar.c.
83679         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
83680         (Files): Add m4/mbrtowc.m4.
83681         * modules/mbiter: Likewise.
83682         * modules/mbuiter: Likewise.
83683
83684 2005-09-26  Bruno Haible  <bruno@clisp.org>
83685
83686         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
83687         compile mbchar.c if they are not both present.
83688         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
83689         * m4/mbiter.m4 (gl_MBITER): Likewise.
83690         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
83691         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
83692         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
83693
83694 2005-09-25  Jim Meyering  <jim@meyering.net>
83695
83696         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
83697         also uses socklen_t.
83698
83699 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
83700
83701         * lib/utimens.c (ENOSYS): Define if not already defined.
83702         (futimens): Support having a null PATH if the file descriptor
83703         is nonnegative.
83704
83705         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
83706         Remove.
83707         (__attribute): Define to empty unless GCC 3.1 or later.
83708         This works around a core dump on OpenBSD 3.4, which has GCC
83709         2.95.3, which dumps core when given __attribute__(()).  It also
83710         simplifies other tests, since we really don't want to bother with
83711         worrying about which ancient version of GCC supported what.
83712         Original problem reported by Yoann Vandoorselaere, with part of
83713         the fix suggested by Derek Price.
83714
83715 2005-09-24  Jim Meyering  <jim@meyering.net>
83716
83717         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
83718         so we can once again use a positive bitfield width of 1 -- now we
83719         don't have to explain why we were using a bitfield width of 2.
83720
83721 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
83722
83723         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
83724         and similarly for the other external symbols.  Problem reported
83725         by James Gallager.
83726
83727         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
83728         bug reported by Jim Meyering.
83729
83730         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
83731         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
83732         not needed, since socklen is a prerequisite module.
83733
83734 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
83735
83736         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
83737         Problem reported by Eric Blake.
83738         (getaddrinfo): Initialize se so that it's not garbage.
83739         Redo internal storage allocation so that it doesn't make unportable
83740         assumptions about alignment.
83741         Fix a memory leak.
83742
83743         * lib/utimens.c (futimens): Use futimesat if available.
83744         Prefer it to futimes since it doesn't have the futimes bug.
83745
83746         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
83747         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
83748         Instead, declare a function that returns a pointer to an array,
83749         and use verify_type__ to declare the size of the array.
83750         Problem and germ of a solution reported by Bruno Haible.
83751         (verify_type__): Use 2, not 1, for bitfield size, to avoid
83752         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
83753
83754 2005-09-23  Jim Meyering  <jim@meyering.net>
83755
83756         Sync from coreutils.
83757         Correct build failure (socklen_t not defined) on at least
83758         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
83759         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
83760
83761 2005-09-23  Jim Meyering  <jim@meyering.net>
83762
83763         * modules/getaddrinfo (Depends-on): Add socklen.
83764
83765 2005-09-23  Bruno Haible  <bruno@clisp.org>
83766
83767         * tests/test-verify.c: New file.
83768
83769 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
83770
83771         Sync from coreutils.
83772
83773         * modules/argmatch (Depends-on): Add verify.
83774         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
83775         unistd-safer.
83776         * modules/save-cwd (Depends-on): Likewise.
83777
83778         * modules/openat (Files): Add lib/openat-die.c.
83779         (Depends-on): Remove error, exitfail.
83780         Add dirname.
83781
83782         * modules/verify: New file.
83783         * MODULES.html.sh (Diagnostics <assert.h>): New section,
83784         with "verify" module.
83785
83786 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
83787
83788         Sync from coreutils.
83789
83790         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
83791         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
83792         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
83793         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
83794         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
83795         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
83796         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
83797         Don't bother checking for string.h, stdlib.h, unistd.h.
83798         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
83799         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
83800         module's job.
83801         * m4/jm-macros.m4 (gl_MACROS): Likewise.
83802         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
83803
83804         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
83805         (gl_GETDATE): Use it.
83806
83807         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
83808
83809 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
83810
83811         Sync from coreutils.
83812
83813         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
83814         stat-time.h.
83815         * lib/argmatch.h: Include verify.h
83816         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
83817         (ARGMATCH_ASSERT): Remove; unused.
83818         * lib/canonicalize.c: Assume STDC_HEADERS.
83819         * lib/exclude.c: Include "strcase.h".
83820         * lib/regex_internal.h [!defined _LIBC]: Likewise.
83821         * lib/getusershell.c: Include stdio--.h rather than stdio.h
83822         and stdio-safer.h.
83823         (getusershell): Call fopen, not fopen_safer.
83824         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
83825         Do not include unistd-safer.h.
83826         (save_cwd): Don't call fd_safer; no longer needed
83827         now that we include fcntl--.h.
83828
83829         * lib/getdate.y (relative_time): New type.
83830         (RELATIVE_TIME_0): New constant.
83831         (parser_control): Use relative_time instead of doing it ourselves.
83832         (%union): Add new relative_time rel member.
83833         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
83834         Now typeless.
83835         (relunit, relunit_snumber): Now of type rel.
83836         (zone, rel, relunit, get_date): Adjust to above changes.
83837
83838         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
83839         Do not include unistd-safer.h.
83840         (getloadavg): Don't call fd_safer; no longer needed
83841         now that we include fcntl--.h.
83842
83843         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
83844         (make_dir_parents): Treat ENOSYS like EEXIST.
83845
83846         Improve quality of diagnostics on restore_cwd failure.
83847         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
83848         (make_dir_parents): Last arg is now int * (for errno), not bool *.
83849         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
83850         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
83851         each time through the loop.  Do not diagnose restore_cwd failure;
83852         that is the caller's job (and perhaps the caller does not care).
83853
83854         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
83855         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
83856         If the file already exists but is not a directory, don't bother
83857         to try to make its parents.
83858         Close potential file descriptor leak if we can't chdir("/") (!).
83859         Don't always return true if chdir($PWD) fails; return true only
83860         if the requested action was done successfully (except for the
83861         chdir($PWD)).
83862         Don't log final directory unless we actually made it.
83863         Refactor to avoid duplicate code to fix up permissions.
83864         Don't attempt to fix up parent permissions if chdir($PWD) fails.
83865
83866         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
83867         to make it a bit faster and (I hope) clearer.
83868         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
83869         Fix bug in formats like %2N.
83870
83871         * lib/verify.h: New file.
83872
83873 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
83874
83875         Sync from coreutils.
83876         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
83877
83878 2005-09-22  Jim Meyering  <jim@meyering.net>
83879
83880         Sync from coreutils.
83881
83882         * m4/lstat.m4 (gl_FUNC_LSTAT):
83883         Use AC_LIBSOURCES to require lstat.c and lstat.h.
83884         Remove obsolete comment.
83885         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
83886         * m4/xstrtod.m4: Likewise.
83887
83888         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
83889
83890 2005-09-22  Jim Meyering  <jim@meyering.net>
83891
83892         Sync from coreutils.
83893
83894         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
83895
83896         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
83897         the .tm_year member, since otherwise gcc-4.0 would now warn about
83898         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
83899
83900         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
83901         order to avoid an unsuppressible warning from gcc on 64-bit systems.
83902
83903         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
83904         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
83905         when run in a time zone for which daylight savings time is in effect
83906         for the starting date.
83907
83908         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
83909         stop us from restricting permissions of just-created absolute-named
83910         directories.
83911         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
83912         to restore initial working directory.
83913         * lib/mkdir-p.c (make_dir_parents): New parameter:
83914         different_working_dir, to tell caller if/when we change the working
83915         directory and are unable to return to the initial one.
83916         * lib/mkdir-p.h (make_dir_parents): Update prototype.
83917         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
83918         `return false'.  This fixes a bug introduced on 2004-07-30.
83919
83920         * lib/openat.c (fdopendir): Be sure to close the supplied
83921         file descriptor before returning.  This makes our replacement
83922         implementation a little closer to Solaris's, where fdopendir
83923         ties the file descriptor to the returned DIR* pointer.
83924         * lib/openat.c (unlinkat): New function.
83925         * lib/openat.h (unlinkat): Add prototype.
83926         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
83927         (openat_restore_fail): Rename from openat_restore_die.
83928         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
83929
83930         Provide an alternative to exiting immediately upon save_cwd or
83931         restore_cwd failure.  Now, an application can arrange e.g.,
83932         to perform a longjump in that case.
83933         * lib/openat.c: Include dirname.h.
83934         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
83935         (rpl_openat, fdopendir, fstatat): Call openat_save_die
83936         and openat_restore_die rather than calling error directly.
83937         Don't include "error.h" or "exitfail.h"; they're no longer needed.
83938
83939         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
83940         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
83941         define.
83942
83943         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
83944         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
83945                             int utc, int nanoseconds);
83946         Background:
83947         date should not have to allocate a megabyte of virtual memory to
83948         handle a format argument like +%1048575T.  When implemented with
83949         strftime, it must allocate such a buffer, use strftime to fill it
83950         in, print it, then free it.
83951         With fprintftime, it simply prints everything and exits.
83952         With no need for memory allocation, that's one fewer way to fail.
83953         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
83954         optional field width, not before, so we accept %9:z, not %:9z.
83955         (my_strftime): Be sure to use L_('x') for literals.
83956
83957         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
83958         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
83959         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
83960         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
83961         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
83962         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
83963         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
83964         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
83965         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
83966         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
83967         * lib/xgethostname.c, lib/xreadlink.c:
83968         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
83969
83970         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
83971         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
83972         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
83973         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
83974         and don't include <sys/file.h>).
83975
83976 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
83977
83978         Sync from coreutils.
83979
83980         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
83981         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
83982         [!LDAV_DONE]: Avoid unused variable warning.
83983
83984 2005-09-21  Bruno Haible  <bruno@clisp.org>
83985
83986         * lib/unicodeio.h (unicode_to_mb): New declaration.
83987
83988 2005-09-20  Derek Price  <derek@ximbiot.com>
83989
83990         * lib/getaddrinfo.c: Don't include <netdb.h> included from
83991         getaddrinfo.h.
83992
83993 2005-09-20  Bruno Haible  <bruno@clisp.org>
83994
83995         * gnulib-tool: Remove trailing slashes from the values specified for
83996         --source-base, --m4-base, --tests-base, --aux-dir.
83997         Suggested by Simon Josefsson <jas@extundo.com>.
83998
83999 2005-09-20  Bruno Haible  <bruno@clisp.org>
84000
84001         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
84002         func_modules_to_filelist, func_import, func_create_testdir): Make all
84003         sorting results locale-independent, so that gnulib-cache.m4 doesn't
84004         change when gnulib-tool is invoked in a different locale.
84005
84006 2005-09-19  Simon Josefsson  <jas@extundo.com>
84007
84008         * m4/socklen.m4: Fix typo.
84009
84010 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84011
84012         Use a consistent style for including <config.h>.
84013         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
84014         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
84015         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
84016         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
84017         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
84018         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
84019         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
84020         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
84021         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
84022         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
84023         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
84024         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
84025         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
84026         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
84027         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
84028         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
84029         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
84030         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
84031         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
84032         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
84033         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
84034         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
84035         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
84036         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
84037         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
84038         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
84039         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
84040         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
84041         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
84042         lib/xstrtoumax.c, lib/yesno.c:
84043         Standardize inclusion of config.h.
84044         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
84045         lib/inttostr.h:  Removed inclusion of config.h from header files.
84046         * lib/inttostr.c:  Adjusted in-tree users.
84047         * lib/timespec.h: Remove superfluous warning to include config.h.
84048         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
84049         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
84050         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
84051         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
84052         config.h with HAVE_CONFIG_H.
84053
84054 2005-09-19  Jim Meyering  <jim@meyering.net>
84055
84056         * modules/pathmax (License): Change to LGPL.
84057
84058 2005-09-19  Derek Price  <derek@ximbiot.com>
84059
84060         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
84061
84062 2005-09-19  Bruno Haible  <bruno@clisp.org>
84063
84064         * gnulib-tool (import): Provide default for --tests-base.
84065
84066 2005-09-19  Bruno Haible  <bruno@clisp.org>
84067
84068         * doc/quote.texi: New file, extracted from gnulib.texi.
84069         * doc/ctime.texi: New file, extracted from gnulib.texi.
84070         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
84071         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
84072         * doc/gnulib.texi: Include them.
84073
84074 2005-09-18  Bruno Haible  <bruno@clisp.org>
84075
84076         Portability fix.
84077         * gnulib-tool (func_readlink): New function.
84078         (func_ln_if_changed): Use it.
84079
84080 2005-09-18  Bruno Haible  <bruno@clisp.org>
84081
84082         * gnulib-tool: Support --with-tests also with --import.
84083         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
84084         (func_import): Use variables $testsbase and $inctests. Emit a
84085         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
84086         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
84087         SUBDIRS += $testsdir.
84088         (func_create_testdir): Update.
84089
84090 2005-09-18  Bruno Haible  <bruno@clisp.org>
84091
84092         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
84093         instead of $dry_run.
84094         (func_cp_if_changed, func_mv_if_changed): Remove functions.
84095         (func_ln_if_changed): Don't handle dry-run here.
84096         (func_import): In dry-run mode, detect more precisely which actions
84097         would be performed, and don't use "...ing" verbs.
84098
84099 2005-09-18  Bruno Haible  <bruno@clisp.org>
84100
84101         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
84102         (func_import): Use join on two temporary files instead of three nested
84103         loops, in order to determine which files are new or old.
84104
84105 2005-09-18  Bruno Haible  <bruno@clisp.org>
84106
84107         * gnulib-tool (func_import): Comment out code that spits out the
84108         new files with --dry-run.
84109
84110 2005-09-18  Bruno Haible  <bruno@clisp.org>
84111
84112         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
84113
84114 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
84115
84116         * lib/stat-time.h: New file.
84117         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
84118         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
84119         in a different way.
84120         (timespec_cmp): New function.
84121         * lib/utimecmp.c: Include stat-time.h.
84122         (SYSCALL_RESOLUTION): Depend on whether various struct stat
84123         members exist, not on the obsolescent ST_MTIM_NSEC.
84124         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
84125
84126 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
84127
84128         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
84129
84130 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
84131
84132         * MODULES.html.sh (File system functions): Add stat-time.
84133         * modules/stat-time: New file.
84134         * modules/timespec (Files): Remove m4/st_mtim.m4; this
84135         is now done in a different way, by the stat-time module.
84136         * modules/utimecmp (Depends-on): Add stat-time.
84137
84138 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
84139
84140         * m4/st_mtim.m4: Remove.  Superseded by...
84141         * m4/stat-time.m4: New file.
84142         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
84143         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
84144
84145 2005-09-15  Derek Price  <derek@ximbiot.com>
84146
84147         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
84148
84149 2005-09-15  Derek Price  <derek@ximbiot.com>
84150
84151         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
84152         * lib/regex_internal.c: Ditto, using this...
84153         (__GNUC_PREREQ): ...new macro.
84154         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
84155         using...
84156         (__GNUC_PREREQ): ...this new macro.
84157
84158         * lib/strstr.h: Include string.h. Define strstr as a macro here.
84159
84160 2005-09-15  Derek Price  <derek@ximbiot.com>
84161             Paul Eggert  <eggert@cs.ucla.edu>
84162
84163         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
84164         changes, consolidating in...
84165         * lib/regex_internal.h: ...this file.
84166
84167 2005-09-13  Jim Meyering  <jim@meyering.net>
84168
84169         * lib/canon-host.c: Filter through gnu indent and reword comments
84170         slightly.
84171         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
84172
84173 2005-09-13  Derek Price  <derek@ximbiot.com>
84174
84175         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
84176         failure.
84177         Reported by Jim Meyering  <jim@meyering.net>.
84178
84179 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
84180
84181         * lib/base64.c: Typo.
84182         (base64_encode): Put b64str in initialized data section.
84183
84184 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
84185
84186         Merge glibc and coreutils changes into gnulib, plus a few
84187         extra fixes.
84188         * lib/md5.c: Use #error rather than a string.
84189         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
84190         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
84191         (__attribute__): Define to empty for non recent-GCC.
84192         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
84193         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
84194         Renamed from their non-__ counterparts, with new macros replacing
84195         them if not _LIBC.  Add __THROW attribute.
84196         (rol): Remove.
84197         (struct md5_ctx): Align buffer if using GCC.
84198         * lib/sha1.h (struct sha1_ctx): Likewise.
84199         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
84200         The old name was backwards.
84201         (NOTSWAP): Remove; not used.
84202         (rol): New macro, moved here from md5.h.
84203         (sha1_process_block): Remove a FIXME that doesn't make sense.
84204
84205 2005-09-12  Derek Price  <derek@ximbiot.com>
84206
84207         Return usable errors from canon-host.
84208         * lib/canon-host.h: New file.
84209         * lib/canon-host.c (canon_host): Wrap...
84210         (canon_host_r): ...this new function, which now relies exclusively on
84211         getaddrinfo.
84212         (ch_strerror): New function.
84213         (last_cherror): New global.
84214         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
84215         interface.
84216         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
84217         void *.
84218         (freeaddrinfo): Free ai->ai_canonname when set.
84219
84220 2005-09-12  Derek Price  <derek@ximbiot.com>
84221
84222         Make canon-host require getaddrinfo.
84223         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
84224         AC_LIBSOURCE canon-host.h.  Call...
84225         (gl_PREREQ_CANON_HOST): ...this new function, which requires
84226         gl_GETADDRINFO.
84227         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
84228
84229 2005-09-12  Derek Price  <derek@ximbiot.com>
84230
84231         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
84232         LGPL.
84233         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
84234
84235 2005-09-12  Derek Price  <derek@ximbiot.com>
84236
84237         * lib/gai_strerror.c: Include config.h when available.  Include
84238         getaddrinfo.h before other headers to test interface.
84239         Reported by Larry Jones <lawrence.jones@ugs.com>.
84240
84241 2005-09-12  Derek Price  <derek@ximbiot.com>
84242             Paul Eggert  <eggert@cs.ucla.edu>
84243
84244         * modules/glob (Files): Add glob-libc.h.
84245
84246 2005-09-12  Derek Price  <derek@ximbiot.com>
84247             Paul Eggert  <eggert@cs.ucla.edu>
84248
84249         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
84250         glob_.h, glob-libc.h.
84251         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
84252
84253 2005-09-12  Derek Price  <derek@ximbiot.com>
84254             Paul Eggert  <eggert@cs.ucla.edu>
84255
84256         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
84257         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
84258         protecting things that should be done only in gnulib contexts.
84259         * lib/glob_.h: New file, containing only the glob things needed for
84260         gnulib.
84261         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
84262         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
84263         (glob, globfree, glob_pattern_p): Now defined simply in terms of
84264         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
84265         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
84266         and to respect the namespace rules better.
84267
84268 2005-09-08  Simon Josefsson  <jas@extundo.com>
84269
84270         * modules/socklen: New file.
84271
84272 2005-09-08  Simon Josefsson  <jas@extundo.com>
84273
84274         * m4/socklen.m4: New file.
84275
84276 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
84277
84278         * modules/utimens (Files): Add m4/utimbuf.m4, since
84279         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
84280         Reported by Sergey Poznyakoff.
84281
84282 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
84283
84284         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
84285         definitions, since that's the preferred style in glibc.
84286         Fix a minor spacing issue, and update copyright notice to match
84287         glibc's.
84288
84289 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
84290
84291         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
84292
84293 2005-09-06  Simon Josefsson  <jas@extundo.com>
84294
84295         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
84296         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
84297
84298 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
84299
84300         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
84301         warning.
84302
84303 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
84304
84305         * config/srclist.txt: Add glibc bug 1302.
84306
84307 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
84308
84309         Change bitset word type from unsigned int to unsigned long int,
84310         as this has better performance on typical 64-bit hosts.
84311         Port bitset code to hosts with unusual word sizes.
84312         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
84313         (build_collating_symbol):
84314         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
84315         argument is a bitset.  This is merely a style issue, but it makes
84316         it clearer that an entire array is expected.
84317         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
84318         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
84319         Port to the case where bitset_word is not the same as unsigned int.
84320         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
84321         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
84322         Likewise.
84323         * lib/regexec.c (check_dst_limits_calc_pos_1,
84324         check_subexp_matching_top):
84325         (build_trtable, group_nodes_into_DFAstates):
84326         Likewise.
84327         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
84328         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
84329         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
84330         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
84331         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
84332         * lib/regcomp.c (optimize_subexps, lower_subexp):
84333         Work even if bitset_word has holes in its bitwise representation.
84334         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
84335         * lib/regexec.c (check_dst_limits_calc_pos_1,
84336         check_subexp_matching_top):
84337         Likewise.
84338         * lib/regex_internal.c (re_string_reconstruct):
84339         Don't assume UCHAR_MAX == 255.
84340         * lib/regex_internal.h (bitset_set_all): Likewise.
84341         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
84342         All uses changed.
84343         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
84344         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
84345         All uses changed.
84346         (BITSET_WORD_MAX): New macro.
84347         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
84348         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
84349         (bitset_empty, bitset_copy):
84350         Prefer sizeof (bitset) to multiplying it out ourselves.
84351         (bitset_not_merge): Remove; unused.
84352         (bitset_contain): Return bool, not unsigned int with one bit on.
84353         All callers changed.
84354         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
84355         alignment than re_node_set; do this by defining a new internal
84356         type struct dests_alloc and using it to allocate memory.
84357
84358 2005-09-05  Bruno Haible  <bruno@clisp.org>
84359
84360         * gnulib-tool (func_import): Fix comparison in handling of symbolic
84361         links.
84362
84363 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
84364
84365         * modules/size_max (Makefile.am): Add size_max.h
84366
84367 2005-09-04  Derek Price  <derek@ximbiot.com>
84368
84369         * gnulib-tool (func_import): Fix reversed $symbolic logic.
84370
84371 2005-09-03  Simon Josefsson  <jas@extundo.com>
84372
84373         * gnulib-tool: Fix typo.
84374
84375 2005-09-03  Simon Josefsson  <jas@extundo.com>
84376
84377         * config/srclist.txt: Add glibc bug 1293.
84378
84379 2005-09-03  Derek Price  <derek@ximbiot.com>
84380
84381         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
84382         From Larry Jones <lawrence.jones@ugs.com>.
84383
84384 2005-09-02  Simon Josefsson  <jas@extundo.com>
84385
84386         * modules/socklen: New file.
84387
84388 2005-09-02  Simon Josefsson  <jas@extundo.com>
84389
84390         * modules/havelib: New module.
84391
84392         * modules/gettext, modules/iconv, modules/lock, modules/readline:
84393         Use havelib.
84394
84395 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
84396
84397         Check for arithmetic overflow when calculating sizes, to prevent
84398         some buffer-overflow issues.  These patches are conservative, in the
84399         sense that when I couldn't determine whether an overflow was possible,
84400         I inserted a run-time check.
84401         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
84402         macros.
84403         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
84404         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
84405         (re_xnrealloc, re_x2nrealloc): New inline functions.
84406         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
84407         parse_bracket_exp):
84408         (build_equiv_class, build_charclass): Check for arithmetic overflow
84409         in size expression calculations.
84410         * lib/regex_internal.c (re_string_realloc_buffers):
84411         (build_wcs_upper_buffer, re_node_set_add_intersect):
84412         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
84413         (re_dfa_add_node, register_state): Likewise.
84414         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
84415         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
84416         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
84417         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
84418
84419 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
84420
84421         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
84422         m4/ulonglong.m4.  Problem reported by Martin Lambers.
84423
84424 2005-09-02  Bruno Haible  <bruno@clisp.org>
84425
84426         Support for lib vs. lib64 distinction on biarch platforms.
84427         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
84428         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
84429         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
84430
84431 2005-09-02  Bruno Haible  <bruno@clisp.org>
84432
84433         * gnulib-tool (import): In the other first-use case, provide defaults
84434         as well.
84435
84436 2005-09-02  Bruno Haible  <bruno@clisp.org>
84437
84438         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
84439         patches not yet found in the latest gettext release.
84440
84441 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
84442
84443         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
84444         to avoid a collision with bits/local_lim.h in glibc.
84445         All uses changed.  Problem reported by Dmitry V. Levin in
84446         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
84447
84448         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
84449         bugs in int versus size_t comparisons.
84450         (re_string_context_at): Fix bug where the code assumed that
84451         Idx is signed.
84452
84453         Use bool where appropriate.
84454         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
84455         All callers changed.
84456         (calc_eclosure_iter): Likewise, for ROOT arg.
84457         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
84458         (build_charclass_op): Likewise, for NON_MATCH arg.
84459         * lib/regex_internal.c (re_string_allocate, re_string_construct):
84460         (re_string_construct_common): Likewise, for ICASE arg.
84461         * lib/regexec.c (re_search_2_stub, re_search_stub):
84462         Likewise, for RET_LEN arg.
84463         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
84464         (set_regs): Likewise, for FL_BACKTRACK arg.
84465         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
84466         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
84467         (calc_eclosure_iter, parse_bracket_exp):
84468         Use bool for internal variables that are booleans.
84469         * lib/regexec.c (re_search_internal, check_matching,
84470         proceed_next_node):
84471         (set_regs, build_sifted_states, sift_states_bkref):
84472         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
84473         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
84474         (find_collation_sequence_value):
84475         Likewise.
84476         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
84477         (re_node_set_compare):
84478         Return bool, not int. All callers changed.
84479         * lib/regexec.c (check_halt_node_context, check_dst_limits):
84480         (build_trtable, check_node_accept): Likewise.
84481         * lib/regex_internal.h: Include stdbool.h.
84482
84483         Fix bugs uncovered when converting to bool.
84484         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
84485         failure instead of charging ahead blindly.
84486         * lib/regex_internal.c (register_state): Likewise.
84487         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
84488         for freeing internal storage.
84489         (group_nodes_into_DFA_states): Use unsigned int, not int, for
84490         bitset pieces used as boolean, to avoid undefined behavior
84491         on hosts that do int overflow checking.
84492
84493 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
84494
84495         * config/srclist.txt: Add glibc bugs 1285-1287.
84496
84497 2005-09-01  Jim Meyering  <jim@meyering.net>
84498
84499         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
84500         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
84501         Require gl_STAT_MACROS, too.
84502
84503 2005-09-01  Bruno Haible  <bruno@clisp.org>
84504
84505         * gnulib-tool (import): In the first-use case, provide defaults.
84506
84507 2005-09-01  Bruno Haible  <bruno@clisp.org>
84508
84509         * gnulib-tool (func_import): Remove the .tmp files.
84510
84511 2005-09-01  Bruno Haible  <bruno@clisp.org>
84512
84513         * gnulib-tool (func_import): Fix handling of symbolic links.
84514
84515 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
84516
84517         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
84518         old glibc regex code mishandles strings longer than 2**31 bytes.
84519         This patch fixes this when the regex code is used in gnulib
84520         (i.e., outside glibc).
84521
84522         This patch should not affect the use of the regex code inside
84523         glibc.  No doubt this problem also needs to be handled for glibc
84524         as well, but the result will be an incompatible change to the
84525         glibc ABI, and the old ABI will have to be supported too.  That
84526         can be the the subject for another patch.
84527
84528         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
84529         governing whether the rest of this patch is active.  By default,
84530         the macro is disabled and the patch has no effect.
84531         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
84532         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
84533         (struct re_pattern_buffer, re_search, re_search_2, re_match):
84534         (re_match_2, re_set_registers): Use the new types.
84535         * lib/regex_internal.h (Idx, re_hashval_t): New types.
84536         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
84537         New macros.
84538         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
84539         (re_string_context_at, bin_tree_t, re_dfastate_t):
84540         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
84541         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
84542         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
84543         (re_string_char_size_at, re_string_wchar_at):
84544         (re_string_elem_size_at):
84545         Use the new types and macros to port to 64-bit hosts.
84546         Use unsigned types for internal values, so that the code
84547         mostly works even for arrays larger than SSIZE_MAX.
84548         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
84549         (search_duplicated_node, calc_eclosure_iter, fetch_number):
84550         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
84551         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
84552         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
84553         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
84554         (calc_inveclosure, parse_dup_op, build_range_exp):
84555         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
84556         (fetch_number, create_token_tree, mark_opt_subexp):
84557         Likewise.
84558         * lib/regex_internal.c (re_string_construct_common,
84559         create_ci_newstate):
84560         (create_cd_newstate, re_string_allocate, re_string_construct):
84561         (re_string_realloc_buffers, build_wcs_upper_buffer):
84562         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
84563         (re_string_reconstruct, re_string_peek_byte_case):
84564         (re_string_fetch_byte_case, re_string_context_at):
84565         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
84566         (re_node_set_init_copy, re_node_set_add_intersect):
84567         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
84568         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
84569         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
84570         (re_acquire_state, re_acquire_state_context, register_state):
84571         Likewise.
84572         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
84573         search_cur_bkref_entry):
84574         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
84575         (re_search_internal, re_search_2_stub, re_search_stub)
84576         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
84577         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
84578         (update_cur_sifted_state, check_dst_limits):
84579         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
84580         (check_subexp_limits, sift_states_bkref, merge_state_array):
84581         (check_subexp_matching_top, get_subexp, get_subexp_sub):
84582         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
84583         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
84584         (expand_bkref_cache, check_node_accept_bytes):
84585         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
84586         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
84587         (acquire_init_state_context, check_halt_node_context):
84588         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
84589         (sift_states_backward, clean_state_log_if_needed):
84590         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
84591         (find_recover_state, transit_state_sb, transit_state_mb):
84592         (transit_state_bkref, build_trtable, match_ctx_clean):
84593         Likewise.
84594         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
84595         to work around an assumption that REG_MISSING is negative.
84596
84597         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
84598         (seek_collating_symbol_entry) [defined _LIBC]:
84599         (lookup_collation_sequence_value) [defined _LIBC]:
84600         (build_range_exp, build_collating_symbol) [defined _LIBC]:
84601         Use prototypes rather than old-style function definitions.
84602         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
84603         (transit_state_sb) [0]:
84604         (find_collation_sequence_value) [defined _LIBC]: Likewise.
84605
84606         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
84607         rm_eo.
84608
84609         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
84610         (optimize_subexps, lower_subexp):
84611         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
84612         since the signed shift might overflow.  Use 1u<<31 instead.
84613         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
84614         Likewise.
84615         * lib/regexec.c (check_dst_limits_calc_pos_1,
84616         check_subexp_matching_top): Likewise.
84617
84618         * lib/regcomp.c (optimize_subexps, lower_subexp):
84619         Use CHAR_BIT rather than 8, for clarity.
84620         * lib/regexec.c (check_dst_limits_calc_pos_1):
84621         (check_subexp_matching_top): Likewise.
84622         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
84623         have to worry about portability issues when shifting it left.
84624         Remove no-longer-needed test for table_size > 0.
84625         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
84626         in a word, as the resulting behavior is undefined.
84627         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
84628         in one case, a <= should have been an <, and in another case the
84629         whole test was missing.
84630         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
84631         the standard name CHAR_BIT.
84632         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
84633         this is not true on one's complement and signed-magnitude hosts.
84634
84635         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
84636         next_last_offset.
84637         (struct re_dfa_t): Remove unused member states_alloc.
84638         * lib/regcomp.c (init_dfa): Don't initialize unused members.
84639
84640 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
84641
84642         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
84643         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
84644         and large-file glibc and in 32-bit large-file Solaris.
84645
84646 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
84647
84648         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
84649         lengths fit in regoff_t; this isn't true if regoff_t is the same
84650         width as size_t.
84651         * lib/regex.c (re_search_internal): 5th arg is LAST_START
84652         (= START + RANGE) instead of RANGE.  This avoids overflow
84653         problems when regoff_t is the same width as size_t.
84654         All callers changed.
84655         (re_search_2_stub): Check for overflow when adding the
84656         sizes of the two strings.
84657         (re_search_stub): Check for overflow when adding START
84658         to RANGE; if it occurs, substitute the extreme value.
84659
84660 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
84661
84662         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
84663
84664 2005-08-31  Jim Meyering  <jim@meyering.net>
84665
84666         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
84667         a pointer-to-const.
84668         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
84669         (register_state): Likewise.
84670         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
84671         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
84672         (group_nodes_into_DFAstates): Likewise.
84673
84674 2005-08-31  Jim Meyering  <jim@meyering.net>
84675
84676         * check-module: Add a FIXME comment.
84677
84678 2005-08-31  Eric Blake  <ebb9@byu.net>
84679
84680         * modules/unistd-safer (Files): Add unistd--.h.
84681         * modules/stdio-safer (Files): Add stdio--.h.
84682
84683 2005-08-31  Derek Price  <derek@ximbiot.com>
84684
84685         * lib/getdelim.c (getdelim): Return EOF on EOF.
84686         Reported by Larry Jones <lawrence.jones@ugs.com>.
84687
84688 2005-08-31  Bruno Haible  <bruno@clisp.org>
84689
84690         Avoid unnecessary diffs in the generated lib/Makefile.am.
84691         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
84692         the generated files.
84693         (func_import): Don't set cmd.
84694
84695 2005-08-31  Bruno Haible  <bruno@clisp.org>
84696
84697         * lib/strstr.c: Include <stddef.h>, for NULL.
84698         * lib/strcasestr.c: Likewise.
84699         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
84700
84701 2005-08-31  Bruno Haible  <bruno@clisp.org>
84702
84703         * gnulib-tool: New option --macro-prefix.
84704         (func_import): Use macro_prefix.
84705         (import): Handle option --macro-prefix.
84706
84707 2005-08-31  Bruno Haible  <bruno@clisp.org>
84708
84709         * gnulib-tool (import): Rename most ac_* variables to cached_*.
84710         Also use new variables cached_lgpl, cached_libtool.
84711
84712 2005-08-31  Bruno Haible  <bruno@clisp.org>
84713
84714         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
84715         always instantiating them.
84716
84717 2005-08-31  Bruno Haible  <bruno@clisp.org>
84718
84719         * gnulib-tool (func_import): Read the previous cached settings
84720         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
84721         earlier added by gnulib but are now dropped. Warn when a gnulib file
84722         overwrites a non-gnulib file.
84723
84724 2005-08-31  Bruno Haible  <bruno@clisp.org>
84725
84726         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
84727         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
84728         projects that don't keep autogenerated files in CVS. Put into
84729         actioncmd only the specified modules, not the transitive closure.
84730
84731 2005-08-31  Bruno Haible  <bruno@clisp.org>
84732
84733         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
84734         Create directories that shall be filled.
84735         (import): Don't look for gl_* macros in configure.ac. Recurse across
84736         all directories containing a gnulib-cache.m4 files, if meaningful.
84737
84738 2005-08-31  Bruno Haible  <bruno@clisp.org>
84739
84740         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
84741         (import): Set seen_libtool when we see gl_LIBTOOL.
84742
84743 2005-08-31  Bruno Haible  <bruno@clisp.org>
84744
84745         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
84746         declaration macro definitions from generated gnulib.m4.
84747
84748 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
84749
84750         * lib/iconvme.h: Add prototype for iconv_alloc.
84751
84752 2005-08-29  Simon Josefsson  <jas@extundo.com>
84753
84754         * lib/iconvme.c: Fix errno.
84755
84756 2005-08-29  Bruno Haible  <bruno@clisp.org>
84757
84758         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
84759         that it works when the directory contains spaces.
84760
84761 2005-08-29  Bruno Haible  <bruno@clisp.org>
84762
84763         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
84764
84765 2005-08-29  Bruno Haible  <bruno@clisp.org>
84766
84767         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
84768         Emit more advice.
84769
84770 2005-08-29  Bruno Haible  <bruno@clisp.org>
84771         and Stepan Kasal  <kasal@ucw.cz>
84772
84773         * check-module: If more parameters are given, check each of them
84774         separately; add more exceptions, as noted by Jim Meyering.
84775         (check_module): New procedure.
84776         (%exempt_header): Now contains all exceptions.
84777
84778 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
84779
84780         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
84781
84782 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
84783
84784         * lib/iconvme.c: Split iconv_string into iconv_alloc.
84785
84786 2005-08-28  Bruno Haible  <bruno@clisp.org>
84787
84788         * m4/gnulib-tool.m4: New file.
84789
84790 2005-08-27  Jim Meyering  <jim@meyering.net>
84791
84792         * modules/unistd-safer (Files): Add pipe-safer.c.
84793         * modules/fcntl-safer (Files): Add creat-safer.c.
84794
84795 2005-08-27  Jim Meyering  <jim@meyering.net>
84796
84797         * m4/stdlib-safer.m4: New file.  From coreutils.
84798         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
84799         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
84800         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
84801         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
84802         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
84803
84804 2005-08-27  Jim Meyering  <jim@meyering.net>
84805
84806         * lib/fopen-safer.c: Merge minor changes from coreutils.
84807         * lib/dup-safer.c: Likewise.
84808         * lib/fd-safer.c: Likewise.
84809
84810         Merge from coreutils.
84811         * lib/stdio--.h: New file.
84812         * lib/stdlib--.h: New file.
84813         * lib/mkstemp-safer.c: New file.
84814
84815         GNU tar needs these.
84816         * lib/pipe-safer.c: New file.
84817         * lib/creat-safer.c: New file.
84818         * lib/fcntl--.h (creat): Define to creat_safer.
84819         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
84820         * lib/unistd--.h (pipe): Define to pipe_safer.
84821         * lib/unistd-safer.h: Declare pipe_safer.
84822
84823 2005-08-26  Simon Josefsson  <jas@extundo.com>
84824
84825         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
84826         Haible <bruno@clisp.org>.
84827
84828 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
84829
84830         * lib/regex_internal.h: Remove all references to
84831         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
84832         or better.
84833         (bitset_not, bitset_merge, bitset_not_merge):
84834         (bitset_mask, re_string_allocate, re_string_construct):
84835         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
84836         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
84837         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
84838         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
84839         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
84840         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
84841         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
84842         (re_acquire_state_context):
84843         Remove unnecessary forward decls.
84844         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
84845         Put __attribute at function definition,
84846         now that the function decl has been removed.
84847         * lib/regex_internal.c (re_string_peek_byte_case):
84848         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
84849         Likewise.
84850
84851 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
84852
84853         * m4/regex.m4: Add AC_PREREQ(2.50).
84854         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
84855
84856 2005-08-25  Simon Josefsson  <jas@extundo.com>
84857
84858         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
84859         __fsetlocking.
84860
84861 2005-08-25  Simon Josefsson  <jas@extundo.com>
84862
84863         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
84864         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
84865         GLIBC specific code.
84866
84867 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
84868
84869         Make regex safe for g++.  This fixes one real bug (an "err"
84870         that should have been "*err").  g++ problem reported by
84871         Sam Steingold.
84872         * lib/regex_internal.h (re_calloc): New macro, consistent with
84873         re_malloc etc.  All callers of calloc changed to use re_calloc.
84874         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
84875         not int.  All callers changed.
84876         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
84877         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
84878         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
84879         (find_recover_state): Change "err" to "*err"; this fixes what
84880         appears to be a real bug.
84881         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
84882         versus int.
84883
84884 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
84885
84886         * modules/regex (Depends-on): Add malloc, since the code
84887         assumes that !malloc(0) means failure.
84888
84889 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
84890
84891         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
84892
84893         alloca modernization/simplification for regex.
84894         * lib/regex.c: Remove portability cruft for alloca.  This no longer
84895         needs to be at the start of the file, and can be moved into
84896         regex_internal.h and simplified.
84897         * lib/regex_internal.h: Include <alloca.h>.
84898         (__libc_use_alloca) [!defined _LIBC]: New macro.
84899         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
84900         now works outside glibc.
84901
84902 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
84903
84904         * config/srclist.txt: Add glibc bugs 1241, 1245.
84905
84906 2005-08-25  Jim Meyering  <jim@meyering.net>
84907
84908         * lib/open-safer.c: Include <config.h>.
84909         Otherwise, we'd lose LARGEFILE support in any file using
84910         e.g. "fcntl--.h"
84911
84912 2005-08-25  Bruno Haible  <bruno@clisp.org>
84913
84914         * m4/minmax.m4: Require autoconf 2.52.
84915         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
84916         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
84917         alternatives of translit over the alphabet.
84918         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
84919
84920 2005-08-24  Simon Josefsson  <jas@extundo.com>
84921
84922         * tests/test-getpass.c: New file.
84923
84924 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
84925
84926         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
84927         for GNU regex features.
84928
84929 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
84930
84931         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
84932         * lib/regex.h (regerror): Likewise.
84933
84934         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
84935         requires this.  (The code never needed it.)
84936
84937         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
84938         All uses of recently-renamed identifiers changed to use the new,
84939         POSIX-compliant names.  The code will build and run just fine
84940         without these changes, but it's better to eat our own dog food
84941         and use the standard-conforming names.
84942
84943         * lib/regex.h: Fix a multitude of POSIX name space violations.
84944         These changes have an effect only for programs that define
84945         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
84946         do not change anything for programs compiled in the normal way.
84947         Also, there is no effect on the ABI.
84948
84949         (_REGEX_SOURCE): New macro.
84950         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
84951         defined and _GNU_SOURCE is not; this fixes a name space violation.
84952
84953         Rename the following macros to obey POSIX requirements.
84954         The old names are still visible as macros if _REGEX_SOURCE is defined.
84955         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
84956         RE_BACKSLASH_ESCAPE_IN_LISTS.
84957         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
84958         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
84959         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
84960         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
84961         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
84962         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
84963         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
84964         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
84965         (REG_INTERVALS): renamed from RE_INTERVALS.
84966         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
84967         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
84968         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
84969         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
84970         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
84971         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
84972         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
84973         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
84974         RE_UNMATCHED_RIGHT_PAREN_ORD.
84975         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
84976         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
84977         (REG_DEBUG): renamed from RE_DEBUG.
84978         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
84979         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
84980         unusual, since we can't clash with the POSIX REG_ICASE.
84981         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
84982         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
84983         (REG_NO_SUB): renamed from RE_NO_SUB.
84984         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
84985         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
84986         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
84987         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
84988         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
84989         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
84990         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
84991         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
84992         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
84993         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
84994         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
84995         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
84996         RE_SYNTAX_POSIX_MINIMAL_BASIC.
84997         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
84998         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
84999         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
85000         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
85001         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
85002         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
85003         (REG_FIXED): Renamed from REGS_FIXED.
85004         (REG_NREGS): Renamed from RE_NREGS.
85005
85006         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
85007         of other REG_* macros, since POSIX says the user is allowed to
85008         #undef these macros selectively.
85009
85010         (reg_errcode_t): Update comment stating what other tables need
85011         to be consistent.
85012
85013         Rename the following enum values to obey POSIX requirements.
85014         The old names are still visible as macros.
85015         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
85016         is not defined, since GNU is supposed to be a superset of POSIX as
85017         much as possible, and since we want reg_errcode_t to be a signed
85018         type for implementation consistency.
85019         (_REG_NOERROR): Renamed from REG_NOERROR.
85020         (_REG_NOMATCH): Renamed from REG_NOMATCH.
85021         (_REG_BADPAT): Renamed from REG_BADPAT.
85022         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
85023         (_REG_ECTYPE): Renamed from REG_ECTYPE.
85024         (_REG_EESCAPE): Renamed from REG_EESCAPE.
85025         (_REG_ESUBREG): Renamed from REG_ESUBREG.
85026         (_REG_EBRACK): Renamed from REG_EBRACK.
85027         (_REG_EPAREN): Renamed from REG_EPAREN.
85028         (_REG_EBRACE): Renamed from REG_EBRACE.
85029         (_REG_BADBR): Renamed from REG_BADBR.
85030         (_REG_ERANGE): Renamed from REG_ERANGE.
85031         (_REG_ESPACE): Renamed from REG_ESPACE.
85032         (_REG_BADRPT): Renamed from REG_BADRPT.
85033         (_REG_EEND): Renamed from REG_EEND.
85034         (_REG_ESIZE): Renamed from REG_ESIZE.
85035         (_REG_ERPAREN): Renamed from REG_ERPAREN.
85036         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
85037         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
85038         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
85039         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
85040
85041         (_REG_RE_NAME, _REG_RM_NAME): New macros.
85042         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
85043         changed.  But support the old name if the new one is not defined
85044         and if _REGEX_SOURCE.
85045
85046         Change the following member names in struct re_pattern_buffer.
85047         The old names are still supported if !_REGEX_SOURCE.
85048         The new names are always supported, regardless of _REGEX_SOURCE.
85049         (re_buffer): Renamed from buffer.
85050         (re_allocated): Renamed from allocated.
85051         (re_used): Renamed from used.
85052         (re_syntax): Renamed from syntax.
85053         (re_fastmap): Renamed from fastmap.
85054         (re_translate): Renamed from translate.
85055         (re_can_be_null): Renamed from can_be_null.
85056         (re_regs_allocated): Renamed from regs_allocated.
85057         (re_fastmap_accurate): Renamed from fastmap_accurate.
85058         (re_no_sub): Renamed from no_sub.
85059         (re_not_bol): Renamed from not_bol.
85060         (re_not_eol): Renamed from not_eol.
85061         (re_newline_anchor): Renamed from newline_anchor.
85062
85063         Change the following member names in struct re_registers.
85064         The old names are still supported if !_REGEX_SOURCE.
85065         The new names are always supported, regardless of _REGEX_SOURCE.
85066         (rm_num_regs): Renamed from num_regs.
85067         (rm_start): Renamed from start.
85068         (rm_end): Renamed from end.
85069
85070         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
85071         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
85072         Prepend __ to parameter names.
85073
85074         Undo yesterday's changes.
85075
85076 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
85077
85078         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
85079         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
85080         lib/regex.c.
85081
85082 2005-08-24  Jim Meyering  <jim@meyering.net>
85083
85084         Sync from coreutils.
85085         * m4/fcntl-safer.m4: New file.
85086
85087         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
85088         and object files for this module.
85089
85090 2005-08-24  Jim Meyering  <jim@meyering.net>
85091
85092         Sync from coreutils.
85093         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
85094
85095 2005-08-24  Jim Meyering  <jim@meyering.net>
85096
85097         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
85098         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
85099
85100 2005-08-24  Jim Meyering  <jim@meyering.net>
85101
85102         * modules/fcntl-safer: New module.
85103         * modules/fts (Depends-on): Add fcntl-safer.
85104         * MODULES.html.sh (File descriptor based Input/Output):
85105         Add fcntl-safer.
85106
85107 2005-08-24  Bruno Haible  <bruno@clisp.org>
85108
85109         Support for unit test modules.
85110         * modules/README: Mention tests modules.
85111         * modules/TEMPLATE-TESTS: New file.
85112         * gnulib-tool: New options --extract-tests-module, --with-tests and
85113         --tests-base (unused for the moment).
85114         (testsbase, inctests): New variables.
85115         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
85116         (func_verify_module): Exclude TEMPLATE-TESTS.
85117         (func_verify_nontests_module, func_verify_tests_module): New functions.
85118         (func_get_dependencies): Add implicit dependency for tests modules.
85119         (func_get_tests_module): New function.
85120         (func_modules_transitive_closure): When --with-tests was specified,
85121         include the unit tests as well, unless explicitly avoided.
85122         (func_emit_lib_Makefile_am): Ignore the tests modules here.
85123         (func_emit_tests_Makefile_am): New function.
85124         (func_create_testdir): When --with-tests was specified, emit a
85125         tests/ directory.
85126         * MODULES.html.sh (Future developments): Update.
85127
85128 2005-08-24  Bruno Haible  <bruno@clisp.org>
85129
85130         * modules/tls-tests: New file.
85131         * tests/test-tls.c: New file, from GNU gettext.
85132
85133 2005-08-24  Bruno Haible  <bruno@clisp.org>
85134
85135         * modules/lock-tests: New file.
85136         * tests/test-lock.c: New file, from GNU gettext.
85137
85138 2005-08-24  Bruno Haible  <bruno@clisp.org>
85139
85140         * lib/lock.h: Add multiple inclusion guard.
85141         * lib/tls.h: Add multiple inclusion guard.
85142
85143 2005-08-24  Bruno Haible  <bruno@clisp.org>
85144
85145         * gnulib-tool: Add support for the --aux-dir option to
85146         --create-testdir, --create-megatestdir, --test, --megatest.
85147         (func_create_testdir, func_create_megatestdir): Optionally emit a
85148         AC_CONFIG_AUX_DIR directive.
85149         (create-testdir, create-megatestdir, test, megatest): Provide a
85150         default value for $auxdir.
85151
85152 2005-08-24  Bruno Haible  <bruno@clisp.org>
85153
85154         * gnulib-tool (import): Use compound statement instead of subshell
85155         where possible.
85156
85157 2005-08-24  Bruno Haible  <bruno@clisp.org>
85158
85159         * gnulib-tool (import): Change --aux-dir default to "build-aux".
85160
85161 2005-08-24  Bruno Haible  <bruno@clisp.org>
85162
85163         * gnulib-tool (func_version): Update.
85164
85165 2005-08-24  Bruno Haible  <bruno@clisp.org>
85166
85167         * gnulib-tool (func_import, func_create_testdir,
85168         func_create_megatestdir): Quote all autoconf macro arguments.
85169
85170 2005-08-24  Bruno Haible  <bruno@clisp.org>
85171
85172         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
85173         option --force, because --force causes the aclocal.m4 of each
85174         subdirectory to be newer than the corresponding config.h.in.
85175
85176 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
85177
85178         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
85179         All contents moved to gl_REGEX.
85180         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
85181         assume that it does.
85182
85183 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
85184
85185         * lib/regex.h (REG_NOSYS)
85186         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
85187         Define, since POSIX requires it as of 2001.
85188         (_REG_ENOSYS)
85189         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
85190         New private symbol, used to keep the enum signed in all cases.
85191         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
85192         Youngman in
85193         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
85194
85195         * lib/regex_internal.c (re_string_skip_chars, register_state):
85196         (calc_state_hash):
85197         Remove forward decls; no longer needed now that we use prototypes.
85198         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
85199         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
85200         (clean_state_log_if_needed): Likewise.
85201
85202 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
85203
85204         * config/srclist.txt: Add glibc bugs 1231-1233.
85205
85206 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
85207
85208         Fix problems reported by Sam Steingold in
85209         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
85210         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
85211         assumed that reg_errcode_t is a signed type, which is not
85212         necessarily true if _XOPEN_SOURCE is not defined.
85213         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
85214         since some compilers warn about it otherwise.
85215
85216 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
85217
85218         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
85219         (init_word_char, create_initial_state, duplicate_node_closure):
85220         (fetch_token, peek_token_bracket, build_range_exp):
85221         (build_collating_symbol): Remove forward decls; no longer needed
85222         now that we use prototypes.
85223
85224         * lib/regcomp.c:
85225         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
85226         (re_compile_fastmap_iter, regcomp, regerror, regfree):
85227         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
85228         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
85229         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
85230         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
85231         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
85232         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
85233         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
85234         (build_range_exp, build_collating_symbol, parse_bracket_exp):
85235         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
85236         (build_charclass, build_charclass_op, fetch_number, create_tree):
85237         (create_token_tree, mark_opt_subexp, duplicate_tree):
85238         Use prototypes rather than old-style definitions.
85239
85240         * lib/regex_internal.c:
85241         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
85242         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
85243         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
85244         (re_string_reconstruct, re_string_peek_byte_case):
85245         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
85246         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
85247         (re_node_set_init_copy, re_node_set_add_intersect):
85248         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
85249         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
85250         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
85251         (re_acquire_state, re_acquire_state_context, register_state):
85252         (create_ci_newstate, create_cd_newstate, free_state):
85253         Likewise.
85254         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
85255         re_search_2):
85256         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
85257         (re_search_internal, prune_impossible_nodes):
85258         (acquire_init_state_context, check_matching, static):
85259         (check_halt_node_context, check_halt_state_context, proceed_next_node):
85260         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
85261         (update_regs, sift_states_backward, build_sifted_states):
85262         (clean_state_log_if_needed, merge_state_array):
85263         (update_cur_sifted_state, add_epsilon_src_nodes):
85264         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
85265         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
85266         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
85267         (find_recover_state, check_subexp_matching_top, transit_state_mb):
85268         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
85269         (check_arrival, check_arrival_add_next_nodes):
85270         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
85271         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
85272         (check_node_accept_bytes, check_node_accept, extend_buffers):
85273         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
85274         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
85275         (sift_ctx_init):
85276         Likewise.
85277
85278         * lib/regex_internal.h:
85279         (re_string_allocate, re_string_construct, re_string_reconstruct):
85280         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
85281         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
85282         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
85283         (re_string_context_at, re_string_peek_byte_case):
85284         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
85285         is defined, since we now use prototypes always.
85286
85287         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
85288         C89 or better.  All uses removed.
85289
85290 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
85291
85292         * config/srclist.txt: Add glibc bugs 1220-1227.
85293
85294 2005-08-20  Jim Meyering  <jim@meyering.net>
85295
85296         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
85297         of unused local, dfa.
85298
85299 2005-08-20  Bruno Haible  <bruno@clisp.org>
85300
85301         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
85302
85303 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85304
85305         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
85306         (re_node_set_insert_last, re_dfa_add_node):
85307         Rename local variables to avoid GCC shadowing warnings.
85308
85309 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85310
85311         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
85312         [defined lint]: Suppress bogus uninitialized-variable warnings.
85313
85314         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
85315         and let the caller return REG_ESPACE if out of space.  This
85316         removes an uninitialied-variable warning with GCC 4.0.1, and also
85317         avoids taking the address of a local variable.  All callers
85318         changed.
85319
85320 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85321
85322         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
85323         $LIBCSRC/posix/regexec.c.
85324         Add glibc bug 1217 for regcomp.c.
85325
85326 2005-08-19  Jim Meyering  <jim@meyering.net>
85327
85328         * lib/regexec.c (proceed_next_node): Redo local variables to
85329         avoid GCC shadowing warnings.
85330
85331 2005-08-18  Bruno Haible  <bruno@clisp.org>
85332
85333         * lib/strstr.c (strstr): Fix return value in multibyte case.
85334         * lib/strcasestr.c (strcasestr): Likewise.
85335
85336 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
85337
85338         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
85339
85340 2005-08-17  Jim Meyering  <jim@meyering.net>
85341
85342         Make the %s format (seconds since the epoch) work for a negative
85343         number and when used with a zero-padded field width, e.g. %015s.
85344
85345         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
85346         label so that it precedes the code to set `digits'.  Otherwise,
85347         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
85348         print `00-22'.  Now, it prints `-0022', as it should.
85349
85350 2005-08-17  Bruno Haible  <bruno@clisp.org>
85351
85352         * modules/strstr (Files): Add m4/mbrtowc.m4.
85353         (Depends-on): Add mbuiter.
85354
85355 2005-08-17  Bruno Haible  <bruno@clisp.org>
85356
85357         * modules/strcasestr: New file.
85358         * MODULES.html.sh (String handling, based on ANSI C 89): Add
85359         strcasestr.
85360
85361 2005-08-17  Bruno Haible  <bruno@clisp.org>
85362
85363         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
85364
85365 2005-08-17  Bruno Haible  <bruno@clisp.org>
85366
85367         * modules/mbuiter: New file.
85368         * MODULES.html.sh (Extended multibyte and wide character utilities):
85369         Add mbuiter.
85370
85371 2005-08-17  Bruno Haible  <bruno@clisp.org>
85372
85373         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
85374         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
85375
85376 2005-08-17  Bruno Haible  <bruno@clisp.org>
85377
85378         * m4/strcasestr.m4: New file.
85379
85380 2005-08-17  Bruno Haible  <bruno@clisp.org>
85381
85382         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
85383         * lib/strstr.c: Completely rewritten, with multibyte locale support.
85384
85385 2005-08-17  Bruno Haible  <bruno@clisp.org>
85386
85387         * lib/strcasestr.h: New file.
85388         * lib/strcasestr.c: New file.
85389
85390 2005-08-17  Bruno Haible  <bruno@clisp.org>
85391
85392         * lib/strcasecmp.c: Use mbuiter.h.
85393
85394 2005-08-17  Bruno Haible  <bruno@clisp.org>
85395
85396         * lib/mbuiter.h: New file.
85397
85398 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
85399
85400         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
85401         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
85402         and gl_GETOPT are both invoked via different paths (as happens
85403         with GNU tar CVS because it uses both argp and getopt), the former
85404         wins.
85405
85406 2005-08-16  Bruno Haible  <bruno@clisp.org>
85407
85408         * modules/tls: New file.
85409         * MODULES.html.sh (Multithreading): Add tls.
85410
85411 2005-08-16  Bruno Haible  <bruno@clisp.org>
85412
85413         * modules/strnlen1: New file.
85414         * MODULES.html.sh (String handling): Add strnlen1.
85415
85416 2005-08-16  Bruno Haible  <bruno@clisp.org>
85417
85418         * modules/strcase (Files): Add m4/mbrtowc.m4.
85419         (Depends-on): Add strnlen1, mbchar.
85420
85421 2005-08-16  Bruno Haible  <bruno@clisp.org>
85422
85423         * modules/mbiter: New file.
85424         * MODULES.html.sh (Extended multibyte and wide character utilities):
85425         Add mbiter.
85426
85427 2005-08-16  Bruno Haible  <bruno@clisp.org>
85428
85429         * modules/mbfile: New file.
85430         * MODULES.html.sh (Extended multibyte and wide character utilities):
85431         Add mbfile.
85432
85433 2005-08-16  Bruno Haible  <bruno@clisp.org>
85434
85435         * modules/mbchar: New file.
85436         * MODULES.html.sh (Extended multibyte and wide character utilities):
85437         New section.
85438
85439 2005-08-16  Bruno Haible  <bruno@clisp.org>
85440
85441         * m4/tls.m4: New file, from GNU gettext.
85442
85443 2005-08-16  Bruno Haible  <bruno@clisp.org>
85444
85445         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
85446         always.
85447         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
85448
85449 2005-08-16  Bruno Haible  <bruno@clisp.org>
85450
85451         * m4/mbiter.m4: New file.
85452
85453 2005-08-16  Bruno Haible  <bruno@clisp.org>
85454
85455         * m4/mbfile.m4: New file.
85456
85457 2005-08-16  Bruno Haible  <bruno@clisp.org>
85458
85459         * m4/mbchar.m4: New file.
85460
85461 2005-08-16  Bruno Haible  <bruno@clisp.org>
85462
85463         * lib/tls.h: New file, from GNU gettext.
85464         * lib/tls.c: New file, from GNU gettext.
85465
85466 2005-08-16  Bruno Haible  <bruno@clisp.org>
85467
85468         * lib/strnlen1.h: New file.
85469         * lib/strnlen1.c: New file.
85470
85471 2005-08-16  Bruno Haible  <bruno@clisp.org>
85472
85473         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
85474         (mbi_init): Update.
85475         (mbi_avail, mbi_advance): Let the iteration end before the terminating
85476         NUL byte, not after it.
85477
85478 2005-08-16  Bruno Haible  <bruno@clisp.org>
85479
85480         * lib/strcase.h (strcasecmp): Add note in comments.
85481         * lib/strncasecmp.c: Use code from strcasecmp.c.
85482         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
85483         (strcasecmp): Work correctly in multibyte locales.
85484
85485 2005-08-16  Bruno Haible  <bruno@clisp.org>
85486
85487         * lib/mbiter.h: New file.
85488
85489 2005-08-16  Bruno Haible  <bruno@clisp.org>
85490
85491         * lib/mbfile.h: New file.
85492
85493 2005-08-16  Bruno Haible  <bruno@clisp.org>
85494
85495         * lib/mbchar.h: New file.
85496         * lib/mbchar.c: New file.
85497
85498 2005-08-16  Bruno Haible  <bruno@clisp.org>
85499
85500         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
85501         the valid ones. Makes the comparison operations transitive:
85502         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
85503         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
85504
85505 2005-08-15  Simon Josefsson  <jas@extundo.com>
85506
85507         * modules/ssize_t (License): Change to 'unlimited'.
85508
85509         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
85510
85511 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
85512
85513         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
85514         Add comments for each pending glibc patch.
85515
85516 2005-08-15  Bruno Haible  <bruno@clisp.org>
85517
85518         * lib/regex.h (__restrict_arr): Don't define to __restrict if
85519         __cplusplus is defined.
85520
85521 2005-08-14  Jim Meyering  <jim@meyering.net>
85522
85523         Sync from coreutils.
85524
85525         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
85526         Use the hash-table-based cycle-detection code not just when
85527         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
85528         Reported by James Youngman in
85529         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
85530         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
85531         FTS_TIGHT_CYCLE_CHECK.
85532         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
85533         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
85534         once again.
85535         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
85536         * lib/fts.c (fd_safer): Remove decl.
85537         Include fcntl--.h rather than unistd-safer.h
85538         (fts_safe_changedir): Don't call fd_safer; no longer needed
85539         now that we include fcntl--.h.
85540
85541 2005-08-12  Simon Josefsson  <jas@extundo.com>
85542
85543         * modules/getndelim2: Use ssize_t module.
85544         * modules/getnline: Likewise.
85545         * modules/safe-read: Likewise.
85546         * modules/xreadlink: Likewise.
85547
85548         * modules/ssize_t: New file.
85549
85550 2005-08-12  Simon Josefsson  <jas@extundo.com>
85551
85552         * m4/readline.m4: Look for termcap, curses or ncurses if required.
85553
85554 2005-08-12  Simon Josefsson  <jas@extundo.com>
85555
85556         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85557         ssize_t.
85558
85559 2005-08-12  Simon Josefsson  <jas@extundo.com>
85560
85561         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
85562         readline, getdelim and check_version.
85563         (Support for systems lacking ISO C 99: Sizes of integer types):
85564         Add size_max.
85565
85566 2005-08-12  Bruno Haible  <bruno@clisp.org>
85567
85568         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
85569
85570 2005-08-11  Simon Josefsson  <jas@extundo.com>
85571
85572         * modules/readline: New file.
85573
85574         * modules/strnlen (Files): Add strnlen.h.
85575
85576 2005-08-11  Simon Josefsson  <jas@extundo.com>
85577
85578         * m4/readline.m4: New file.
85579
85580 2005-08-11  Simon Josefsson  <jas@extundo.com>
85581
85582         * lib/readline.h, readline.c: New file.
85583
85584 2005-08-11  Simon Josefsson  <jas@extundo.com>
85585
85586         * doc/gnulib.texi (Initial import, Finishing touches): Mention
85587         gl_AVOID.
85588
85589 2005-08-11  Bruno Haible  <bruno@clisp.org>
85590
85591         * lib/strnlen.h (strnlen): Change parameter name to match comment.
85592
85593 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
85594
85595         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
85596
85597 2005-08-10  Simon Josefsson  <jas@extundo.com>
85598
85599         * tests/test-iconvme.c: New file.
85600
85601 2005-08-10  Simon Josefsson  <jas@extundo.com>
85602
85603         * m4/strnlen.m4: New file.
85604
85605         * m4/strndup.m4: Don't check for strnlen declaration, done in
85606         strnlen.m4.
85607
85608 2005-08-10  Simon Josefsson  <jas@extundo.com>
85609
85610         * lib/strndup.c: Use strnlen.h.
85611
85612         * lib/strnlen.h: New file.
85613
85614 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
85615
85616         * README: Typos.
85617
85618 2005-08-02  Simon Josefsson  <jas@extundo.com>
85619
85620         * modules/readline: New file.
85621
85622 2005-08-02  Simon Josefsson  <jas@extundo.com>
85623
85624         * modules/getdelim: New file.
85625
85626         * modules/getline: Rewrite, don't use getndelim2.
85627
85628 2005-08-02  Simon Josefsson  <jas@extundo.com>
85629
85630         * m4/getline.m4: Separate out getdelim stuff into separate module.
85631
85632         * m4/getdelim.m4: New file.
85633
85634 2005-08-02  Simon Josefsson  <jas@extundo.com>
85635
85636         * lib/getline.h, getline.c: Rewrite.
85637
85638         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
85639
85640 2005-07-31  Bruno Haible  <bruno@clisp.org>
85641
85642         * lib/lock.h (gl_lock_initializer): New macro.
85643         (gl_lock_define_initialized): Use it.
85644         (gl_rwlock_initializer): New macro.
85645         (gl_rwlock_define_initialized): Use it.
85646         (gl_recursive_lock_initializer): New macro.
85647         (gl_recursive_lock_define_initialized): Use it.
85648
85649 2005-07-30  Karl Berry  <karl@gnu.org>
85650
85651         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
85652         Report from Ben Pfaff, regarding getopt.
85653
85654 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
85655
85656         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
85657         normal way.
85658         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
85659         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
85660         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
85661         (gl_GETOPT): Use the new macros.  Most of the implementation
85662         is moved to the new macros.  This is for programs like Emacs
85663         that don't want all the functionality of gl_GETOPT.
85664
85665 2005-07-26  Bruno Haible  <bruno@clisp.org>
85666
85667         * m4/lock.m4: Update from GNU gettext.
85668
85669 2005-07-26  Bruno Haible  <bruno@clisp.org>
85670
85671         * lib/lock.h: Update from GNU gettext.
85672         * lib/lock.c: Update from GNU gettext.
85673
85674 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
85675
85676         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
85677         obsolescent AC_TRY_RUN.  Include the default includes files, for
85678         'exit'.
85679
85680 2005-07-24  Bruno Haible  <bruno@clisp.org>
85681
85682         * modules/visibility: New file.
85683         * MODULES.html.sh (Misc): Add visibility.
85684
85685 2005-07-24  Bruno Haible  <bruno@clisp.org>
85686
85687         * m4/visibility.m4: New file.
85688
85689 2005-07-24  Bruno Haible  <bruno@clisp.org>
85690
85691         * doc/visibility.texi: New file.
85692
85693 2005-07-22  Bruno Haible  <bruno@clisp.org>
85694
85695         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
85696         $(ALLOCA_H), redundant through BUILT_SOURCES.
85697         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
85698         redundant through BUILT_SOURCES.
85699         * modules/byteswap (Makefile.am): Remove explicit dependency on
85700         $(BYTESWAP_H), redundant through BUILT_SOURCES.
85701         * modules/fnmatch (Makefile.am): Remove explicit dependency on
85702         $(FNMATCH_H), redundant through BUILT_SOURCES.
85703         * modules/getopt (Makefile.am): Remove explicit dependency on
85704         $(GETOPT_H), redundant through BUILT_SOURCES.
85705         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
85706         redundant through BUILT_SOURCES.
85707         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
85708         redundant through BUILT_SOURCES.
85709         * modules/stdbool (Makefile.am): Remove explicit dependency on
85710         $(STDBOOL_H), redundant through BUILT_SOURCES.
85711         * modules/stdint (Makefile.am): Remove explicit dependency on
85712         $(STDINT_H), redundant through BUILT_SOURCES.
85713         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
85714         Remove explicit dependency on $(SYSEXITS_H).
85715         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
85716
85717 2005-07-18  Simon Josefsson  <jas@extundo.com>
85718
85719         * lib/check-version.c (check_version): Accept identical versions too.
85720
85721 2005-07-18  Bruno Haible  <bruno@clisp.org>
85722
85723         * modules/lock: New file.
85724         * MODULES.html.sh (Multithreading): New section.
85725
85726 2005-07-18  Bruno Haible  <bruno@clisp.org>
85727
85728         * m4/lock.m4: New file, from GNU gettext.
85729
85730 2005-07-18  Bruno Haible  <bruno@clisp.org>
85731
85732         * lib/lock.h: New file, from GNU gettext.
85733         * lib/lock.c: New file, from GNU gettext.
85734
85735 2005-07-18  Bruno Haible  <bruno@clisp.org>
85736
85737         * lib/lock.h (gl_once_t): New type.
85738         (gl_once_define, gl_once): New macros.
85739         * lib/lock.c (fresh_once): New variable.
85740         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
85741         functions.
85742
85743 2005-07-16  Simon Josefsson  <jas@extundo.com>
85744
85745         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
85746         workaround, suggested by Bruno.
85747
85748 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
85749
85750         * modules/xalloc (Depends-on): Add xalloc-die.
85751         * modules/xvasprintf (Depends-on): Add xalloc-die.
85752
85753 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
85754
85755         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
85756         with a minor change.
85757
85758 2005-07-15  Bruno Haible  <bruno@clisp.org>
85759
85760         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
85761         When using lib/poll.c, define poll as rpl_poll.
85762
85763 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
85764
85765         * modules/argp (Depends-on): Remove unlocked-io.
85766
85767 2005-07-14  Derek Price  <derek@ximbiot.com>
85768
85769         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
85770         for glob symlink bug.
85771
85772 2005-07-14  Bruno Haible  <bruno@clisp.org>
85773
85774         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
85775         Instead, test for *_unlocked function declarations directly.
85776
85777 2005-07-11  Simon Josefsson  <jas@extundo.com>
85778
85779         * modules/size_max: New file.
85780
85781         * modules/xsize: Depend on size_max module for size_max.m4.
85782
85783 2005-07-11  Simon Josefsson  <jas@extundo.com>
85784
85785         * lib/size_max.h: New file.
85786
85787 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
85788
85789         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
85790         copyright symbol and the year.
85791         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
85792         (version_etc_va): Use parameterized copyright notice.
85793         Reword to conform to the current GNU coding standards.
85794
85795 2005-07-11  Karl Berry  <karl@gnu.org>
85796
85797         * doc/gnulib.texi (Quoting): new node.
85798         (Initial import): more info, from Patrice.
85799
85800 2005-07-11  Bruno Haible  <bruno@clisp.org>
85801
85802         * gnulib-tool (func_usage): Document option --avoid.
85803         (Command line options): Handle --avoid.
85804         (func_acceptable): New function.
85805         (func_modules_transitive_closure): Use it.
85806
85807 2005-07-11  Bruno Haible  <bruno@clisp.org>
85808
85809         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
85810         Reported by Jim Meyering.
85811
85812 2005-07-10  Bruno Haible  <bruno@clisp.org>
85813
85814         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
85815         Needed when size_t is smaller than 'unsigned int'.
85816         Reported by Paul Eggert.
85817
85818 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
85819
85820         * modules/argp (Depends-on): Add unlocked-io
85821
85822 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
85823
85824         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
85825         block of defines.
85826
85827 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
85828
85829         * config/srclist.txt: Comment out regcomp.c, since we have a porting
85830         fix now.
85831
85832 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
85833         and Paul Eggert  <eggert@cs.ucla.edu>
85834
85835         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
85836         in wint_t, not wchar_t.  Remove now-unnecessary cast.
85837
85838 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
85839
85840         * modules/regex (Files): Add lib/regex_internal.c,
85841         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
85842         (Depends-on): Add extensions.
85843         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
85844
85845 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
85846
85847         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
85848         pathconf.
85849         * m4/same.m4 (gl_SAME): Likewise.
85850         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
85851
85852         * m4/regex.m4: Adjust to new libc regex implementation.
85853         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
85854         all the .c and .h parts of (the new) regex.
85855         Quote the m4 stuff better.
85856         Check for RE_ICASE bug of old gnulib.
85857         Check for REG_STARTEND of recent libc.
85858         Rename local variables from jm_* to gl_*.
85859         Quote operand of "test -f".
85860         Say "recent enough" version of libc, not "version 2".
85861         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
85862         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
85863         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
85864         Remove check for btowc, isascii.
85865         Require AM_LANGINFO_CODESET.
85866
85867 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
85868
85869         * lib/regex.c, regex.h: Sync from libc.
85870         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
85871         * lib/regexec.c:
85872         New files, synced from libc, except that regex_internal.h
85873         currently has a small porting fix.
85874
85875 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
85876
85877         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
85878         regex_internal.c, regexec.c.
85879         Add regex_internal.h too, but as a comment, since the libc version
85880         is currently broken in gnulib mode.
85881
85882 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
85883
85884         Support programs like Emacs that use gnulib but not gettext.
85885         * MODULES.html.sh (Internationalization functions): Add gettext-h.
85886         * modules/gettext-h: New file.
85887         * modules/gettext (Files): Remove lib/gettext.h.
85888         (Depends-on): Add gettext-h.
85889         (Makefile.am): Remove lib_SOURCES.
85890         * modules/argmatch, modules/c-stack, modules/closeout:
85891         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
85892         * modules/execute, modules/file-type, modules/getaddrinfo:
85893         * modules/getopt, modules/human, modules/javacomp:
85894         * modules/javaexec, modules/mkdir-p, modules/obstack:
85895         * modules/openat, modules/pagealign_alloc, modules/pipe:
85896         * modules/quotearg, modules/regex, modules/rpmatch:
85897         * modules/unicodeio, modules/userspec, modules/version-etc:
85898         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
85899         * modules/xsetenv:
85900         Depend on gettext-h, not gettext.
85901
85902 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
85903
85904         * gnulib-tool (func_import): Add support for 'public domain' license.
85905         * modules/alloca, modules/atexit, modules/memmove:
85906         Now public domain, not GPL.
85907         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
85908         * modules/realloc, modules/strerror, modules/strtod:
85909         Now LGPL, not GPL.
85910
85911 2005-07-05  Bruno Haible  <bruno@clisp.org>
85912
85913         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
85914         autoconf CVS. Needed for mingw.
85915
85916 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
85917
85918         Remove the dependency of the strftime module on the tzset module.
85919         * modules/strftime (Depends-on): Remove dependency on tzset.
85920
85921 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
85922
85923         Remove the dependency of the strftime module on the tzset module.
85924         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
85925         gl_FUNC_TZSET_CLOBBER.
85926
85927 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
85928
85929         Remove the dependency of the strftime module on the tzset module.
85930         * lib/strftime.c (my_strftime)
85931         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
85932         Copy the input structure, to work around some of the bug with
85933         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
85934         Solaris releases, you should also use the tzset module, but we won't
85935         require it as a dependency any more since we don't want LGPLed code
85936         to depend on GPLed code.
85937
85938 2005-07-02  Jim Meyering  <jim@meyering.net>
85939
85940         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
85941         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
85942         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
85943         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
85944
85945 2005-07-02  Jim Meyering  <jim@meyering.net>
85946
85947         * lib/backupfile.c (backup_args): Change a `0' to NULL.
85948
85949 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
85950
85951         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
85952         declares only 'struct timespec;' (!).
85953
85954 2005-07-01  Jim Meyering  <jim@meyering.net>
85955
85956         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
85957         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
85958         * lib/save-cwd.c, tempname.c:
85959         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
85960         and don't include <sys/file.h>).
85961
85962 2005-06-29  Jim Meyering  <jim@meyering.net>
85963
85964         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
85965         type name.  Use the variable name instead.
85966         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
85967         Likewise.
85968
85969 2005-06-28  Simon Josefsson  <jas@extundo.com>
85970
85971         * modules/check-version (Files): Add check-version.m4.
85972
85973 2005-06-28  Simon Josefsson  <jas@extundo.com>
85974
85975         * m4/check-version.m4: New file, suggested by Jim Meyering
85976         <jim@meyering.net>.
85977
85978 2005-06-28  Simon Josefsson  <jas@extundo.com>
85979
85980         * lib/check-version.h, lib/check-version.c: New files.
85981
85982 2005-06-28  Simon Josefsson  <jas@extundo.com>
85983
85984         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
85985         collision with global variable.  Better indentation.  Don't
85986         increment buffer pointer beyond buffer end.  Based on comments
85987         from Paul Eggert <eggert@cs.ucla.edu>.
85988
85989         * lib/base64.h: Indent.
85990
85991 2005-06-28  Simon Josefsson  <jas@extundo.com>
85992
85993         * doc/gnulib.texi (Library version handling): New section.
85994
85995 2005-06-28  Jim Meyering  <jim@meyering.net>
85996
85997         * check-module (find_included_lib_files): Hard-code another
85998         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
85999         but modules/fts-lgpl (correctly) does not list those files.
86000
86001         * modules/canonicalize (Files): Add lib/pathmax.h.
86002
86003 2005-06-25  Simon Josefsson  <jas@extundo.com>
86004
86005         * modules/check-version: New file.
86006
86007 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
86008
86009         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
86010         initializer of struct addrinfo, as an indication that we don't
86011         care how many members the structure has.
86012
86013 2005-06-24  Derek Price  <derek@ximbiot.com>
86014         and Bruno Haible  <bruno@clisp.org>
86015
86016         Remove stat module & update lstat.
86017         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
86018         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
86019         * m4/stat.m4: Remove this file.
86020
86021 2005-06-24  Derek Price  <derek@ximbiot.com>
86022         and Bruno Haible  <bruno@clisp.org>
86023
86024         Remove stat module & update lstat.
86025         * lib/stat.c: Remove this file...
86026         (slash_aware_lstat): ...moving this content and its support...
86027         * lib/lstat.c (rpl_lstat): ...into here.
86028         * lib/lstat.h: New file.
86029
86030 2005-06-24  Derek Price  <derek@ximbiot.com>
86031         and Bruno Haible  <bruno@clisp.org>
86032
86033         Remove stat module & update lstat.
86034         * config/srclist.txt (libc sources): Remove stat.
86035
86036 2005-06-24  Derek Price  <derek@ximbiot.com>
86037         and Bruno Haible  <bruno@clisp.org>
86038
86039         Remove stat module & update lstat.
86040         * MODULES.html.sh (stat): Remove.
86041         * MODULES.html: Regenerated.
86042         * modules/lstat (Description): Correct function name.
86043         (Files): Add "lstat.h".
86044         (Depends-on): Remove stat, add xalloc, stat-macros.
86045         * modules/stat: Remove this file.
86046         (Include): Add "lstat.h", remove <sys/stat.h>.
86047
86048 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
86049
86050         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
86051         (ranged_convert): Don't save conversion in a temporary struct.
86052         This causes a warning with GCC 4.0.0, and anyway in the typical
86053         case it's not worth the extra 100 bytes or so of code.
86054         (ranged_convert, __mktime_internal): When calling a function via a
86055         pointer P, use P () rather than (*P) (), as we now assume C89 or
86056         better.
86057
86058 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86059
86060         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
86061         "who -r" failed to give output.  Problem reported by Tim Waugh.
86062
86063         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
86064         (xcalloc): Use it to avoid needless tests.
86065         Problem reported by Jim Meyering.
86066
86067 2005-06-20  Derek Price  <derek@ximbiot.com>
86068
86069         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
86070         unnecessary for Autoconfs > 2.59c.
86071
86072 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86073
86074         * lib/argp.h (__option_is_short): Check upper limit of
86075         __key. Isprint() requires its argument to have the value
86076         of an unsigned char or EOF.
86077
86078 2005-06-16  Jim Meyering  <jim@meyering.net>
86079
86080         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
86081         when either N or S is zero.
86082
86083 2005-06-16  Derek Price  <derek@ximbiot.com>
86084
86085         * m4/bison.m4: Declare YACC & YFLAGS precious.
86086
86087 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
86088
86089         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
86090         multibyte string or pattern, fall back on unibyte matching.
86091         Problem reported by James Youngman.
86092
86093 2005-06-08  Bruno Haible  <bruno@clisp.org>
86094
86095         * modules/csharpcomp: New file.
86096         * MODULES.html.sh (C#): Add csharpcomp.
86097
86098 2005-06-08  Bruno Haible  <bruno@clisp.org>
86099
86100         * m4/csharpcomp.m4: New file, from GNU gettext.
86101
86102 2005-06-08  Bruno Haible  <bruno@clisp.org>
86103
86104         * lib/csharpcomp.h: New file, from GNU gettext.
86105         * lib/csharpcomp.c: New file, from GNU gettext.
86106         * lib/csharpcomp.sh.in: New file, from GNU gettext.
86107
86108 2005-06-08  Bruno Haible  <bruno@clisp.org>
86109
86110         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
86111         warning on mingw.
86112
86113 2005-06-07  Derek Price  <derek@ximbiot.com>
86114
86115         Sync from CVS.
86116         * lib/glob_.h: Indent nested #ifdef.
86117
86118 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
86119
86120         Sync from coreutils.
86121         Use "file name" when talking about file names, instead of "filename"
86122         or "path", as per the GNU coding standards.
86123         * lib/mkdir-p.c: Renamed from makepath.c.
86124         (make_dir_parents): Renamed from make_path.  All callers changed.
86125         * lib/mkdir-p.h: Likewise.  All includers changed.
86126         * lib/filenamecat.c: Renamed from path-concat.c.
86127         (file_name_concat): Renamed from path_concat.  All callers changed.
86128         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
86129         * lib/filenamecat.h: Likewise.  All includers changed.
86130         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
86131         in comments or local variable names.
86132         * lib/basename.c: Likewise.
86133         * lib/canonicalize.c, canonicalize.h: Likewise.
86134         * lib/dirname.c, dirname.h: Likewise.
86135         * lib/euidaccess.c: Likewise.
86136         * lib/exclude.c: Likewise
86137         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
86138         * lib/fsusage.c, fsuage.h: Likewise.
86139         * lib/fts.c, fts_.h: Likewise.
86140         * lib/getcwd.c: Likewise.
86141         * lib/getloadavg.c: Likewise.
86142         * lib/mkstemp.c: Likewise.
86143         * lib/mountlist.c, mountlist.h: Likewise.
86144         * lib/openat.c, openat.h: Likewise.
86145         * lib/readlink-stub.c: Likewise.
86146         * lib/readutmp.c, readutmp.h: Likewise.
86147         * lib/rename.c: Likewise.
86148         * lib/rmdir.c: Likewise.
86149         * lib/same.c: Likewise.
86150         * lib/savedir.c: Likewise.
86151         * lib/stripslash.c: Likewise.
86152         * lib/tempname.c: Likewise.
86153         * lib/xreadlink.c: Likewise.
86154         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
86155         All uses changed.
86156         * lib/exclude.h: Likewise.
86157
86158         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
86159         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
86160         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
86161         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
86162         * lib/pathmax.h: Include <limits.h> unconditionally, since other
86163         files have been getting away with it for years (MORE/BSD 4.3
86164         is extinct now).
86165         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
86166         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
86167
86168         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
86169         Define to 256, not 255, as per modern POSIX.
86170
86171 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
86172
86173         Sync from coreutils.
86174         Use "file name" when talking about file names, instead of "filename"
86175         or "path", as per the GNU coding standards.
86176         * MODULES.html.sh: mkdir-p renamed from makepath.
86177         filenamecat renamed from path-concat.
86178         * modules/filenamecat: Renamed from modules/path-concat.
86179         (Files): filenamecat.h and filenamecat.c renamed from
86180         path-concat.h and path-concat.c.
86181         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
86182         (Include): filenamecat.h, not path-concat.h.
86183         * modules/mkdir-p: Renamed from modules/makepath.
86184         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
86185         makepath.c.
86186         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
86187         (Include): mkdir-p.h, not makepath.h.
86188
86189 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
86190
86191         Sync from coreutils.
86192         * m4/mkdir-p.m4: Renamed from makepath.m4.
86193         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
86194         Rename files from makepath.c to mkdir-p.c, and from
86195         makepath.h to mkdir-p.h.
86196         * m4/filenamecat.m4: Renamed from path-concat.m4.
86197         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
86198         Rename files from path-concat.c to filenamecat.c,
86199         and from path-concat.h to filenamecat.h.
86200         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
86201         "file name" in local variables or comments.
86202         * m4/rename.m4: Likewise.
86203
86204 2005-06-01  Bruno Haible  <bruno@clisp.org>
86205
86206         * modules/csharpexec: New file.
86207         * MODULES.html.sh (C#): New section.
86208
86209 2005-06-01  Bruno Haible  <bruno@clisp.org>
86210
86211         * m4/csharp.m4: New file, from GNU gettext.
86212         * m4/csharpexec.m4: New file, from GNU gettext.
86213
86214 2005-06-01  Bruno Haible  <bruno@clisp.org>
86215
86216         * lib/csharpexec.h: New file, from GNU gettext.
86217         * lib/csharpexec.c: New file, from GNU gettext.
86218         * lib/csharpexec.sh.in: New file, from GNU gettext.
86219
86220 2005-05-31  Derek Price  <derek@ximbiot.com>
86221             Paul Eggert  <eggert@cs.ucla.edu>
86222
86223         Sync from cvs.
86224         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
86225
86226 2005-05-31  Derek Price  <derek@ximbiot.com>
86227             Paul Eggert  <eggert@cs.ucla.edu>
86228
86229         Sync from cvs.
86230         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
86231
86232 2005-05-29  Derek Price  <derek@ximbiot.com>
86233
86234         * config/srclist.txt (glob_.h, glob.c): Add these files.
86235
86236 2005-05-29  Derek Price  <derek@ximbiot.com>
86237
86238         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
86239         * modules/glob: New file.
86240         * modules/getlogin_r: Add link to POSIX spec in description.
86241
86242 2005-05-29  Derek Price  <derek@ximbiot.com>
86243             Paul Eggert  <eggert@cs.ucla.edu>
86244
86245         * m4/glob.m4: New file.
86246
86247 2005-05-29  Derek Price  <derek@ximbiot.com>
86248             Paul Eggert  <eggert@cs.ucla.edu>
86249
86250         * lib/glob_.h, lib/glob.c: New files.
86251
86252 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
86253
86254         * modules/fts (Files): Remove m4/inttypes-pri.m4.
86255         * modules/fts-lgpl (Depends-on): Remove gettext.
86256
86257 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
86258
86259         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
86260         and don't require gt_INTTYPES_PRI.
86261
86262 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
86263
86264         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
86265
86266         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
86267         the configuration hassle isn't worth it.
86268         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
86269         (LONGEST_MODIFIER, PRIuMAX): Remove.
86270
86271 2005-05-27  Bruno Haible  <bruno@clisp.org>
86272
86273         * lib/getlogin_r.h: Remove second include of <stddef.h>.
86274
86275 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
86276
86277         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
86278         _POSIX_PTHREAD_SEMANTICS for Solaris.
86279
86280 2005-05-25  Derek Price  <derek@ximbiot.com>
86281
86282         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
86283
86284 2005-05-25  Derek Price  <derek@ximbiot.com>
86285             Paul Eggert  <eggert@cs.ucla.edu>
86286
86287         * modules/getlogin_r, m4/getlogin_r.m4: New files.
86288         * lib/getlogin_r.c, getlogin_r.h: New files.
86289
86290 2005-05-25  Bruno Haible  <bruno@clisp.org>
86291             Derek Price  <derek@ximbiot.com>
86292
86293         * lib/getlogin_r.h: Simplify API documentation.
86294
86295 2005-05-23  Derek Price  <derek@ximbiot.com>
86296
86297         * modules/minmax (Files): Add m4/minmax.m4.
86298         (configure.ac): Add gl_MINMAX.
86299
86300 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
86301
86302         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
86303         so that unistd-safer.h (GPL'ed code) need not be included.
86304
86305 2005-05-22  Bruno Haible  <bruno@clisp.org>
86306
86307         * m4/minmax.m4: New file.
86308         Based on a patch by Derek Price <derek@ximbiot.com>.
86309
86310 2005-05-22  Bruno Haible  <bruno@clisp.org>
86311
86312         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
86313         (INT64_MIN): Fix definition.
86314         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
86315
86316         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
86317         NEED_SIGNED_INT_TYPES.
86318
86319         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
86320         HAVE_SYSTEM_INTTYPES.
86321
86322 2005-05-22  Bruno Haible  <bruno@clisp.org>
86323
86324         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
86325         Also include <sys/param.h> if it defines MIN, MAX.
86326         Based on a patch by Derek Price <derek@ximbiot.com>.
86327
86328 2005-05-21  Jim Meyering  <jim@meyering.net>
86329
86330         * modules/fts (Files): Add m4/inttypes-pri.m4.
86331         (Depends-on): Add lstat and remove gettext.  Alphabetize.
86332
86333 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
86334
86335         New fts module.
86336         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
86337         (setup_dir, free_dir): New functions.
86338         (enter_dir, leave_dir): Define trivial
86339         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
86340         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
86341         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
86342         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
86343         Move to fts-cycle.c.
86344         (fts_open): Use setup_dir.
86345         (fts_close): Use free_dir.
86346         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
86347         This adds a label and some gotos, but the alternatives were messier.
86348         Check for memory allocation failure when entering a dir.
86349         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
86350         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
86351         (FTS): New member fts_cycle, that is a union that contains the
86352         old active_dir_ht and cycle_state.  All uses changed to mention
86353         fts_cycle.ht and fts_cycle.state.
86354         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
86355         fts.c, with the following changes:
86356         (setup_dir, free_dir): New functions.
86357         (enter_dir): Now returns bool.  Return true if successful, false
86358         if memory exhausted.  All callers changed.
86359         Do not bother partly cleaning up on
86360         memory allocation failure; that is free_dir's job.
86361         However, free ad if hash_insert fails, to avoid memory leak.
86362         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
86363         fts->fts_options to see which union member to use.
86364
86365 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
86366
86367         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
86368         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
86369
86370 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
86371
86372         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
86373
86374 2005-05-20  Jim Meyering  <jim@meyering.net>
86375
86376         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
86377         Now a macro, to pacify GCC.
86378
86379 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
86380
86381         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
86382         of -1.
86383
86384 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
86385
86386         * lib/chown.c (rpl_chown): Return -1 on failure.
86387
86388 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
86389
86390         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
86391         Don't check for stddef.h.
86392         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
86393         don't use its results.
86394         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
86395         since we include them unconditionally.  Don't require
86396         AM_STDBOOL_H, since stdbool is a prerequisite.
86397         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
86398         since we assume C89 or better.
86399         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
86400         as we don't use their results.
86401         Don't check for fchdir, memmove, memset, strrchr, as we use
86402         them unconditionally.
86403         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
86404         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
86405
86406 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
86407
86408         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
86409         Include <stddef.h> unconditionally, since we assume C89 now.
86410         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
86411         * lib/fts.c: Include fts_.h first, to check interface.
86412         Do not include intprops.h; no longer needed.
86413         Include cycle-check.h and hash.h, since fts_.h no longer does.
86414         Remove unnecessary casts of closedir to void.
86415         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
86416         decide whether to decrement nlinks.
86417         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
86418         (FTS): Use struct hash_table * instead of Hash_table, so that
86419         we no longer need to include hash.h here.
86420
86421 2005-05-18  Jim Meyering  <jim@meyering.net>
86422
86423         * modules/dirfd (License): Change to LGPL.  Most of the code
86424         is already in the public domain.
86425
86426 2005-05-18  Jim Meyering  <jim@meyering.net>
86427
86428         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
86429         Reported by Yoann Vandoorselaere.
86430
86431 2005-05-17  Jim Meyering  <jim@meyering.net>
86432
86433         * m4/fts.m4: New file, from coreutils.
86434
86435 2005-05-17  Jim Meyering  <jim@meyering.net>
86436
86437         * lib/fts.c, lib/fts_.h: New files, from coreutils.
86438
86439 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
86440
86441         Sync from coreutils.
86442         * m4/unlinkdir.m4: New file.
86443
86444 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
86445
86446         Sync from coreutils.
86447         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
86448         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
86449         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
86450         White space changes only.
86451         * lib/makepath.c (make_path): Port to hosts where leading "//" is
86452         special.
86453         * lib/yesno.c: Include getline.h, not ctype.h.
86454         (yesno): Don't remove leading white space; POSIX doesn't allow it.
86455         Use getline to remove arbitrary restriction on response length.
86456
86457 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
86458
86459         * config/srclist-update: Spell out "Street" in FSF postal
86460         mail address; this is the style the FSF seems to prefer.
86461
86462         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
86463         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
86464         this updates FSF postal mail address.
86465
86466         Sync from coreutils.
86467         * modules/unlinkdir: New file.
86468         * modules/yesno (Depends-on): Add getline.
86469         * MODULES.html.sh (File system functions): Add unlinkdir.
86470
86471 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86472
86473         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
86474         lib/strsep.h:
86475         Change the initial comment to refer to GPL, not LGPL.
86476         gnulib-tool will change it to LGPL as needed.
86477
86478         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
86479         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
86480         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
86481         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
86482         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
86483         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
86484         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
86485         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
86486         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
86487         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
86488         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
86489         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
86490         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
86491         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
86492         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
86493         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
86494         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
86495         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
86496         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
86497         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
86498         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
86499         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
86500         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
86501         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
86502         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
86503         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
86504         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
86505         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
86506         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
86507         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
86508         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
86509         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
86510         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
86511         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
86512         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
86513         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
86514         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
86515         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
86516         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
86517         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
86518         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
86519         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
86520         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
86521         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
86522         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
86523         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
86524         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
86525         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
86526         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
86527         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
86528         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
86529         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
86530         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
86531         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
86532         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
86533         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
86534         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
86535         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
86536         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
86537         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
86538         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
86539         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
86540         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
86541         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
86542         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
86543         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
86544         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
86545         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
86546         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
86547         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
86548         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
86549         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
86550         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
86551         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
86552         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
86553         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
86554         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
86555         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
86556         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
86557         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
86558         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
86559         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
86560         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
86561         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
86562         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
86563         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
86564         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
86565         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
86566         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
86567         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
86568         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
86569         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
86570         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
86571         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
86572         lib/yesno.c, lib/yesno.h:
86573         Update FSF postal mail address.
86574
86575 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86576
86577         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
86578         tests/test-memmem.c, tests/test-stpncpy.c:
86579         Update FSF postal mail address.
86580
86581 2005-05-13  Bruno Haible  <bruno@clisp.org>
86582
86583         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
86584         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
86585         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
86586         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
86587         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
86588         Add support for 64-bit integers in the MSVC compiler.
86589
86590 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86591
86592         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
86593
86594 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
86595
86596         * gnulib-tool (func_import): Sort and uniquify recommended includes.
86597
86598 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
86599
86600         * doc/getdate.texi (General date syntax): Don't say that date
86601         date --iso-8601=ns generates acceptable dates; it doesn't yet.
86602         Problem reported by Nic Ferrier.
86603
86604 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86605
86606         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
86607         specified in ai_socktype. Fix invalid ai_protocol
86608         check. ai_protocol is usually set to 0 or depending on
86609         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
86610         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
86611         ai_socktype / ai_protocol in the returned addrinfo structure.
86612
86613 2005-05-10  Simon Josefsson  <jas@extundo.com>
86614
86615         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
86616         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
86617
86618 2005-05-10  Karl Berry  <karl@gnu.org>
86619
86620         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
86621         (from http://www.gnu.org/licenses).
86622         * doc/COPYING.LIB: also rename to COPYING.LESSER.
86623         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
86624         fdl.texi suffices.
86625
86626 2005-05-10  Karl Berry  <karl@gnu.org>
86627
86628         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
86629         (COPYING.DOC): remove.
86630
86631         * config/srclist-update: new FSF address.
86632
86633 2005-05-10  Derek Price  <derek@ximbiot.com>
86634
86635         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
86636         possible.
86637
86638 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86639             Bruno Haible  <bruno@clisp.org>
86640
86641         * modules/inet_ntop: New file.
86642         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86643         inet_ntop.
86644
86645 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86646             Bruno Haible  <bruno@clisp.org>
86647
86648         * m4/inet_ntop.m4: New file.
86649
86650 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86651             Bruno Haible  <bruno@clisp.org>
86652
86653         * lib/inet_ntop.h: New file.
86654         * lib/inet_ntop.c: New file, from glibc with modifications.
86655
86656 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
86657
86658         * modules/time_r (License): Change to LGPL.
86659         * modules/extensions (License): Change to LGPL.  Actually,
86660         the license is more permissive than that, but currently gnulib-tool
86661         doesn't know how to handle more-permissive licenses.
86662
86663         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
86664         Problem reported by Dave Love.
86665
86666 2005-05-08  Jim Meyering  <jim@meyering.net>
86667
86668         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
86669         blank.
86670
86671 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
86672
86673         * modules/argmatch (Depends-on): Add stdbool.
86674         * modules/backupfile (Depends-on): Likewise.
86675         * modules/chdir-long (Depends-on): Likewise.
86676         * modules/closeout (Depends-on): Likewise.
86677         * modules/cycle-check (Depends-on): Likewise.
86678         * modules/dirname (Depends-on): Likewise.
86679         * modules/fnmatch (Depends-on): Likewise.
86680         * modules/fsusage (Depends-on): Likewise.
86681         * modules/fwriteerror (Depends-on): Likewise.
86682         * modules/getcwd (Depends-on): Likewise.
86683         * modules/getloadavg (Depends-on): Likewise.
86684         * modules/hard-locale (Depends-on): Likewise.
86685         * modules/makepath (Depends-on): Likewise.
86686         * modules/mountlist (Depends-on): Likewise.
86687         * modules/nanosleep (Depends-on): Likewise.
86688         * modules/posixtm (Depends-on): Likewise.
86689         * modules/quotearg (Depends-on): Likewise.
86690         * modules/readtokens (Depends-on): Likewise.
86691         * modules/readtokens0 (Depends-on): Likewise.
86692         * modules/readutmp (Depends-on): Likewise.
86693         * modules/save-cwd (Depends-on): Likewise.
86694         * modules/strftime (Depends-on): Likewise.
86695         * modules/userspec (Depends-on): Likewise.
86696         * modules/utimecmp (Depends-on): Likewise.
86697         * modules/xgetcwd (Depends-on): Likewise.
86698         * modules/xnanosleep (Depends-on): Likewise.
86699         * modules/xstrtod (Depends-on): Likewise.
86700         * modules/yesno (Depends-on): Likewise.
86701
86702 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
86703
86704         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
86705         needless checks.
86706
86707 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
86708
86709         Merge from coreutils.  Among other things,
86710         add bulletproofing for cases where stdin, stdout, or stderr are closed.
86711         * lib/fd-safer.c: New file.
86712         * lib/fcntl-safer.h, open-safer.c: Remove.
86713         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
86714         * lib/dup-safer.c: Include unistd-safer.h first.
86715         Don't include errno.h.
86716         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
86717         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
86718         * lib/file-type.c: Rely on file-type.h change.
86719         * lib/getloadavg.c: Include unistd-safer.h.
86720         (getloadavg): Use safer open.
86721         * lib/getusershell.c: Include "stdio-safer.h".
86722         (getusershell): Use safer fopen.
86723         * lib/long-options.c (long_options): Use NULL rather than 0.
86724         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
86725         'free'.
86726         * lib/modechange.c: Likewise.
86727         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
86728         (MODE_DONE): New constant.
86729         (struct mode_change): Remove 'next' member.
86730         (make_node_op_equals): New function; like the old one of the
86731         same name, except it allocates an array.
86732         (mode_compile, mode_create_from_ref): Use it.
86733         (mode_compile): Allocate result as an array, not a linked list.
86734         Parse octal string ourself, so that we catch mistakes like "+0".
86735         (mode_adjust): Arg is an array, not a linked list.
86736         * lib/modechange.c: Include stat-macros.h, xalloc.h.
86737         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
86738         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
86739         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
86740         Remove.  This is now stat-macros.h's job.
86741         (talloc): Remove.  All callers replaced by xalloc, so that
86742         our invokers don't have to worry about reporting memory failures.
86743         (make_node_op_equals): Remove.
86744         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
86745         New constants.
86746         (struct mode_change): Moved here from modechange.h.
86747         (mode_append_entry): Remove.
86748         (mode_compile): Remove MASKED_OPS arg, since it encouraged
86749         apps to have incorrect behavior.  Use simpler algorithm for head
86750         and tail.  Don't futz with umask; that's now the job of mode_adjust.
86751         Detect more invalid usages rather than having somewhat-random behavior.
86752         Don't insert an "a=" action, as that leads to incorrect behavior.
86753         (mode_compile, mode_create_from_ref): Return NULL on error instead
86754         of an enum, since now there's only one way to have an error.  All
86755         callers changed.
86756         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
86757         at the correct time.  Simplify calculation of "+u" and its ilk.
86758         Don't mishandle "+X".
86759         (mode_free): Remove "register" and localize decls.
86760         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
86761         (struct mode_change): Move to modechange.c; callers don't
86762         need to see this stuff.
86763         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
86764         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
86765         (mode_change, mode_adjust): Reflect the new signatures noted above.
86766         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
86767         that might redefine system include files.
86768         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
86769         (my_usleep): Use NULL rather than (void *) 0.
86770         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
86771         Use siginterrupt to specify that system calls should be interrupted.
86772         (rpl_nanosleep): Move initialization of suspended closer to call of
86773         my_usleep.
86774         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
86775         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
86776         (desirable_utmp_entry): New function.
86777         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
86778         using x2nrealloc, to simplify logic.
86779         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
86780         size calculation.  Do not assume utmp file is a regular file.
86781         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
86782         (READ_UTMP_CHECK_PIDS): New constant.
86783         * lib/save-cwd.c: Include unistd-safer.h.
86784         (save_cwd): Use fd_safer.
86785         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
86786         [!_LIBC] Include "stat-macros.h" instead.
86787         * lib/unistd-safer.h (fd_safer): New decl.
86788
86789 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
86790
86791         * modules/getloadavg (Depends-on): Add unistd-safer.
86792         * modules/getusershell (Depends-on): Add stdio-safer.
86793         * modules/lstat (Depends-on): Remove xalloc.
86794         * modules/mkstemp (Depends-on): Add stat-macros.
86795         * modules/modechange (Depends-on): Remove xstrtol.
86796         Add stat-macros, xalloc.
86797         * modules/save-cwd (Depends-on): Add unistd-safer.
86798         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
86799         * modules/unistd-safer (Files): Add lib/fd-safer.c
86800         (Makefile.am): Remove lib_SOURCES.
86801
86802         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
86803         Remove fcntl-safer; unistd-safer supersedes it.
86804
86805 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
86806
86807         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
86808         AC_HEADER_STAT.
86809         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
86810         (gl_PREREQ_CHOWN): Remove.
86811         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
86812         it.  Don't require AC_HEADER_STAT.
86813         (gl_PREREQ_LSTAT): Remove.
86814         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
86815         Don't require AC_HEADER_STAT.
86816         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
86817         (gl_PREREQ_RMDIR): Remove.
86818         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
86819         mention stat-macros.h or AC_HEADER_STAT, since we'll make
86820         the stat-macros module a prerequisite.
86821         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
86822         * m4/filemode.m4 (gl_FILEMODE): Likewise.
86823         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
86824         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
86825         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
86826         variable names.
86827         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
86828         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
86829         variable prefixes.
86830         * m4/fcntl-safer.m4: Remove.
86831         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
86832         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
86833         Invoke gl_PREREQ_FD_SAFER.
86834         (gl_PREREQ_FD_SAFER): New macro.
86835         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
86836         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
86837         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
86838         Remove duplicate call to AC_LIBOBJ(readutmp).
86839         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
86840
86841         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
86842         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
86843
86844 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
86845
86846         * MODULES.html.sh (Misc): Add byteswap.
86847
86848 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
86849
86850         * modules/getcwd (Depends-on): Add extensions.
86851         * modules/openat (Depends-on): Likewise.
86852
86853 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
86854
86855         * modules/byteswap: New file.
86856
86857 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
86858
86859         * m4/byteswap.m4: New file.
86860
86861 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
86862
86863         * lib/byteswap_.h: New file.
86864
86865 2005-04-25  Karl Berry  <karl@gnu.org>
86866
86867         * m4/gettext.m4: Update from GNU gettext 0.14.4.
86868
86869 2005-04-25  Albert Chin  <china@thewrittenword.com>
86870
86871         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
86872         Toolkit C bug.
86873
86874 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
86875
86876         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
86877         (func_ln_if_changed): Remove forcibly for no error message
86878         in case file does not exist.
86879
86880 2005-04-19  Simon Josefsson  <jas@extundo.com>
86881
86882         * gnulib-tool (Options): Make --symlink mean --symbolic.
86883
86884 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
86885
86886         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
86887
86888 2005-04-16  Simon Josefsson  <jas@extundo.com>
86889
86890         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
86891
86892 2005-04-15  Simon Josefsson  <jas@extundo.com>
86893
86894         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
86895
86896 2005-04-15  Simon Josefsson  <jas@extundo.com>
86897
86898         * gnulib-tool: Rename --symlink to --symbolic.
86899
86900 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
86901
86902         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
86903         symbolic links to files instead of copying/moving.  Add --aux-dir,
86904         specifying directory relative --dir where auxiliary build tools
86905         are placed.
86906
86907 2005-04-14  Bruno Haible  <bruno@clisp.org>
86908
86909         * modules/allocsa (License): Change to LGPL.
86910         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
86911
86912 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
86913
86914         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
86915         that "UTC +1 second" continues to work.  Problem reported
86916         by Dmitry V. Levin.
86917         (relunit_snumber): New rule.
86918         (relunit): Use it.
86919
86920 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
86921
86922         * lib/getdate.y (universal_time_zone_table): New constant.
86923         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
86924         universal_time_zone_table.
86925         (lookup_zone): Prefer universal_time_zone_table to
86926         local_time_zone_table, so that "GMT" time stamps are allowed in
86927         London during the summer.  Problem reported by Ian Abbott.
86928
86929 2005-04-12  Jim Meyering  <jim@meyering.net>
86930
86931         * lib/human.c (humblock): Set *options even when returning due to
86932         xstrtoumax conversion failure.  Thanks to a used-uninitialized
86933         warning from gcc-4.
86934
86935 2005-04-09  Jim Meyering  <jim@meyering.net>
86936
86937         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
86938         -Wuninitialized: initialize tm0.tm_year.
86939
86940 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
86941
86942         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
86943         count, since there's no maximum.  All uses changed.
86944         Add member dsts_seen.
86945         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
86946         not being INT_MAX.
86947         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
86948         Use pc_rels_seen to decide whether a date is absolute.
86949
86950         * lib/getdate.y (number): Don't overwrite year.
86951         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
86952         check.
86953
86954 2005-04-02  Simon Josefsson  <jas@extundo.com>
86955
86956         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
86957         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
86958
86959 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
86960
86961         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
86962         where no absolute path name can be longer than PATH_MAX.
86963
86964 2005-03-27  Jim Meyering  <jim@meyering.net>
86965
86966         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
86967
86968 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
86969
86970         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
86971         "one's complement" -> "ones' complement" in comment, as per Knuth.
86972         "value of type" -> "type or expression" in comment.
86973         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
86974
86975 2005-03-26  Jim Meyering  <jim@meyering.net>
86976
86977         Comment nits.
86978         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
86979         Correct typos: s/or/of/.
86980
86981 2005-03-26  Jim Meyering  <jim@meyering.net>
86982
86983         * modules/check-include-files: Move to ../ and rename to...
86984         * check-module: ...this.
86985
86986 2005-03-25  Jim Meyering  <jim@meyering.net>
86987
86988         * modules/xvasprintf (Files): Add xalloc.h.
86989
86990 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
86991
86992         * modules/gettext (Files): config/config.rpath ->
86993         build-aux/config.rpath
86994         * modules/iconv (Files): Likewise.
86995         Problem reported by Oskar Liljeblad.
86996
86997 2005-03-23  Jim Meyering  <jim@meyering.net>
86998
86999         * modules/check-include-files: New script to check for
87000         missing dependencies, multiple includes, etc.
87001
87002         * modules/c-strtold (Depends-on): Add xalloc.
87003         * modules/c-strtod (Depends-on): Add xalloc.
87004         * modules/hash (Depends-on): Add xalloc.
87005         (Files): Remove lib/xalloc.h.
87006
87007         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
87008         * modules/userspec (Files): Add lib/inttostr.h.
87009
87010 2005-03-23  Jim Meyering  <jim@meyering.net>
87011
87012         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
87013
87014 2005-03-22  Jim Meyering  <jim@meyering.net>
87015
87016         * modules/stat-macros: New module.
87017         * modules/canonicalize, modules/euidaccess, modules/file-type,
87018         * modules/filemode, modules/lchown, modules/makepath,
87019         * modules/rmdir, modules/stat: Depend on new stat-macros module
87020         rather than listing lib/stat-macros.h manually.
87021         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
87022
87023 2005-03-22  Jim Meyering  <jim@meyering.net>
87024
87025         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
87026
87027 2005-03-22  Bruno Haible  <bruno@clisp.org>
87028
87029         * config/srclist.txt: Replace target directory 'config' with
87030         'build-aux'.
87031         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
87032         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
87033         ../build-aux/.
87034
87035 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
87036
87037         * modules/chdir-long (Depends-on): Add mempcpy.
87038
87039         * modules/acl, modules/backupfile, modules/c-strtod,
87040         modules/c-strtold, modules/canon-host, modules/canonicalize,
87041         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
87042         modules/exclude, modules/exitfail, modules/file-type,
87043         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
87044         modules/getdate, modules/getline, modules/getpagesize,
87045         modules/getpass, modules/getugroups, modules/group-member,
87046         modules/hard-locale, modules/hash, modules/human, modules/idcache,
87047         modules/inttostr, modules/long-options, modules/makepath,
87048         modules/md5, modules/memcasecmp, modules/memcoll,
87049         modules/modechange, modules/mountlist, modules/path-concat,
87050         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
87051         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
87052         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
87053         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
87054         modules/strftime, modules/strndup, modules/strverscmp,
87055         modules/timespec, modules/unlocked-io, modules/userspec,
87056         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
87057         modules/yesno:
87058         Remove lib_SOURCES line from Makefile.am section, as this is now
87059         done automatically by the corresponding Autoconf macro.
87060
87061 2005-03-21  Jim Meyering  <jim@meyering.net>
87062
87063         Changes imported from coreutils.
87064
87065         * lib/cycle-check.c: Don't include xalloc.h.
87066
87067         * lib/path-concat.c: Don't include assert.h.
87068         (path_concat): Remove assertion that would have triggered
87069         for ABASE starting with more than one slash.
87070         Reported by Andreas Schwab.
87071
87072         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
87073         properly when ABASE is an absolute file name.
87074         Correct the description of this function.
87075         Include <assert.h>.
87076         Add an assertion and a test driver.
87077         This fixes a bug introduced on 2004-07-02.
87078         Andreas Schwab reported the resulting failure of cp --parents:
87079         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
87080
87081 2005-03-21  Jim Meyering  <jim@meyering.net>
87082
87083         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
87084         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
87085
87086 2005-03-21  Jim Meyering  <jim@meyering.net>
87087         and  Paul Eggert  <eggert@cs.ucla.edu>
87088
87089         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
87090         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
87091         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
87092         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
87093         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
87094         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
87095         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
87096         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
87097         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
87098         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
87099         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
87100         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
87101         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
87102         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
87103         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
87104         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
87105         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
87106         for these modules.
87107
87108 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
87109
87110         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
87111         (which shouldn't happen), generate nothing instead of returning 0
87112         immediately, so that nstrftime (NULL, ...) doesn't return 0.
87113
87114 2005-03-16  Bruno Haible  <bruno@clisp.org>
87115
87116         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
87117         HAVE_LONGLONG_64BIT.
87118
87119 2005-03-16  Bruno Haible  <bruno@clisp.org>
87120
87121         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
87122         HAVE_LONGLONG_64BIT.
87123
87124 2005-03-16  Bruno Haible  <bruno@clisp.org>
87125
87126         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
87127         HAVE_LONGLONG_64BIT.
87128
87129 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
87130
87131         * lib/strftime.c (my_strftime): Prepend space to format so that we can
87132         reliably distinguish strftime failure from empty output on POSIX
87133         hosts.
87134
87135 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
87136
87137         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
87138         (iconv_string): Don't guess a size-zero buffer, as that might cause
87139         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
87140         result would be 'too large', where 'too large' is (heuristically)
87141         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
87142         overflow concerns.  This will prevent some unwanted malloc failures
87143         when the inputs are very large.
87144
87145 2005-03-15  Karl Berry  <karl@gnu.org>
87146
87147         * config/srclist.txt (config.rpath): from gettext.
87148         * config/config.rpath: update.
87149
87150 2005-03-15  Bruno Haible  <bruno@clisp.org>
87151
87152         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
87153         to 'negate'.
87154
87155         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
87156         variable.
87157
87158         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
87159         results.
87160
87161 2005-03-14  Simon Josefsson  <jas@extundo.com>
87162
87163         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
87164         <fx@gnu.org>.
87165
87166 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
87167
87168         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
87169         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
87170         intprops.h.
87171         * lib/strtol.c: Likewise.
87172
87173 2005-03-14  Jim Meyering  <jim@meyering.net>
87174
87175         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
87176         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
87177         to be nonzero so that we (and caller) can detect the difference
87178         between a valid zero-length expansion and an error return, even
87179         when the underlying strftime fails before writing anything into
87180         that location.
87181
87182 2005-03-14  Bruno Haible  <bruno@clisp.org>
87183
87184         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
87185         Update from GNU gettext 0.14.3.
87186
87187 2005-03-10  Jim Meyering  <jim@meyering.net>
87188
87189         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
87190
87191 2005-03-10  Jim Meyering  <jim@meyering.net>
87192
87193         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
87194         so that this module works on systems without fchdir.
87195
87196 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
87197
87198         Factor int-properties macros into a single file, except for
87199         glibc-related files.
87200         * lib/intprops.h: New file.
87201         * lib/getloadavg.c: Include it instead of limits.h.
87202         (INT_STRLEN_BOUND): Remove.
87203         * lib/human.c: Include intprops.h.
87204         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
87205         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
87206         302/1000.
87207         * lib/inttostr.h: Include intprops.h instead of limits.h.
87208         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
87209         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
87210         for consistency with intprops.h.
87211         (time_t_is_integer, twos_complement_arithmetic): Use them.
87212         * lib/sig2str.h: Include <signal.h>, intprops.h.
87213         (INT_STRLEN_BOUND): Remove.
87214         * lib/strftime.c (TYPE_SIGNED): Remove.
87215         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
87216         * lib/strtol.c: Adjust comments to match intprops.h.
87217         * lib/userspec.c: Include intprops.h.
87218         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
87219         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
87220         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
87221         instead of rolling our own expressions.
87222         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
87223
87224         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
87225         instead of int.
87226         (my_strftime): Do not mishandle years close to INT_MAX, by doing
87227         the right thing even if adding 1900 would overflow.  Similarly
87228         for tm_mon + 1 and tm_yday + 1.
87229         Make %Y always equivalent to %C%y, and similarly for %G and %g.
87230         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
87231         (DO_SIGNED_NUMBER): New macro.
87232         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
87233
87234 2005-03-07  Bruno Haible  <bruno@clisp.org>
87235
87236         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
87237
87238 2005-03-07  Bruno Haible  <bruno@clisp.org>
87239
87240         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
87241
87242 2005-03-04  Derek R. Price  <derek@ximbiot.com>
87243
87244         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
87245         (func_import): Only replace files via --import when they have actually
87246         changed.
87247
87248 2005-03-03  Derek R. Price  <derek@ximbiot.com>
87249
87250         * m4/mmap-anon.m4: New file.
87251         * m4/pagealign_alloc.m4: New file.
87252
87253 2005-03-03  Derek R. Price  <derek@ximbiot.com>
87254             Bruno Haible  <bruno@clisp.org>
87255
87256         * modules/pagealign_alloc: New file.
87257         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
87258
87259 2005-03-03  Derek R. Price  <derek@ximbiot.com>
87260             Bruno Haible  <bruno@clisp.org>
87261
87262         * lib/pagealign_alloc.h: New file.
87263         * lib/pagealign_alloc.c: New file.
87264
87265 2005-03-03  Bruno Haible  <bruno@clisp.org>
87266
87267         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
87268         Use an all-permissive copyright notice, recommended by RMS.
87269
87270 2005-03-02  Bruno Haible  <bruno@clisp.org>
87271
87272         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
87273         of AIX, the replacement has to be done only after <string.h> is
87274         included, therefore not in config.h. stpncpy.h does the replacement,
87275         and stpncpy.c uses it.
87276
87277 2005-03-02  Bruno Haible  <bruno@clisp.org>
87278
87279         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
87280         stpncpy.c uses it.
87281
87282 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
87283
87284         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
87285         The workaround isn't strictly needed for POSIX conformance, and
87286         it's too much of a pain to configure and maintain.  We'll ask
87287         people to fix their kernels instead.
87288         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
87289         (NANOSLEEP_BUG_WORKAROUND): Remove.
87290         (xnanosleep): Remove the workaround.
87291
87292 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
87293
87294         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
87295         Reported by Derek Price.
87296         (Include): Add "timespec.h".
87297
87298         * modules/xnanosleep (Depends-on): Remove gethrxtime.
87299
87300 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
87301
87302         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
87303         to detect nanosleep bug.
87304
87305 2005-03-01  Bruno Haible  <bruno@clisp.org>
87306
87307         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
87308
87309 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
87310
87311         * modules/gethrxtime: New file.
87312         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
87313         (Depends-on): Add gethrxtime.
87314         (configure.ac): Add gl_XNANOSLEEP.
87315         (Makefile.am): Remove lib_SOURCES line.
87316
87317 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
87318
87319         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
87320         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
87321
87322 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
87323
87324         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
87325         * lib/timespec.h (gettime): Return void, since it always
87326         succeeds now.  All uses changed.
87327         * lib/gettime.c (gettime): Likewise.
87328         [HAVE_NANOTIME]: Prefer nanotime.
87329         Assume gettimeofday succeeds, as POSIX requires.
87330         Assime time () succeeds, since other code already does.
87331         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
87332         (timespec_subtract): Remove.
87333         (NANOSLEEP_BUG_WORKAROUND): New constant.
87334         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
87335         things considerably.  Use it only on GNU/Linux hosts, since the
87336         workaround shouldn't be needed elsewhere.
87337
87338 2005-02-24  Bruno Haible  <bruno@clisp.org>
87339
87340         * modules/gettext (Files): Add m4/glibc2.m4.
87341
87342 2005-02-24  Bruno Haible  <bruno@clisp.org>
87343
87344         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
87345         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
87346         * m4/progtest.m4:
87347         Update from GNU gettext 0.14.2.
87348         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
87349
87350 2005-02-24  Bruno Haible  <bruno@clisp.org>
87351
87352         * lib/localcharset.c: Update from GNU gettext 0.14.2.
87353         * lib/config.charset: Update from GNU gettext 0.14.2.
87354
87355 2005-02-24  Bruno Haible  <bruno@clisp.org>
87356
87357         * lib/gettext.h: Update from GNU gettext 0.14.2.
87358
87359 2005-02-23  Simon Josefsson  <jas@extundo.com>
87360
87361         * m4/iconvme.m4: New file.
87362
87363 2005-02-23  Jim Meyering  <jim@meyering.net>
87364
87365         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
87366         change.
87367         Thanks to Bruno Haible for catching it.
87368
87369 2005-02-22  Simon Josefsson  <jas@extundo.com>
87370
87371         * modules/iconvme: New file.
87372
87373         * MODULES.html.sh: Add iconvme.
87374
87375 2005-02-22  Simon Josefsson  <jas@extundo.com>
87376
87377         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
87378
87379 2005-02-22  Simon Josefsson  <jas@extundo.com>
87380
87381         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
87382
87383 2005-02-22  Jim Meyering  <jim@meyering.net>
87384
87385         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
87386         s/ifndef/ifdef/.
87387
87388 2005-02-20  Neil Conway  <neilc@samurai.com>
87389
87390         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
87391         returned by OSX/Darwin if the specified buffer is not large
87392         enough for the hostname.
87393
87394 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87395
87396         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
87397         pass it to _help, otherwise the latter coredumps trying to
87398         dereference state.root_argp.
87399
87400 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
87401
87402         * modules/chdir-long (Depends-on): Add memrchr.
87403         * modules/memrchr (Files): Add lib/memrchr.h.
87404         (Include): "memrchr.h".
87405
87406 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
87407
87408         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
87409
87410 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
87411
87412         * lib/memrchr.h: New file.
87413         * lib/chdir-long.c: Include it.
87414         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
87415         Don't bother including stddef.h.
87416
87417 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
87418
87419         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
87420         inclusion.
87421         Include <sys/types.h>, for dev_t.
87422         (ME_DUMMY, ME_REMOTE): Move from here....
87423         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
87424         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
87425         Dmitry V. Levin.
87426         Include mountlist.h first, to test the interface.
87427
87428 2005-01-29  Bruno Haible  <bruno@clisp.org>
87429
87430         * lib/progname.c (program_name): Initialize.
87431         Needed when linking statically on MacOS X.
87432
87433 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
87434
87435         Sync from coreutils.
87436         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
87437         (Depends-on): Add c-strtod.
87438         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
87439
87440 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
87441
87442         Sync from coreutils.
87443         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
87444
87445         Remove files that are specific to coreutils.
87446         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
87447
87448 2005-01-28  Bruno Haible  <bruno@clisp.org>
87449
87450         * modules/javacomp: New file.
87451         * MODULES.html.sh (Java): Add javacomp.
87452
87453 2005-01-28  Bruno Haible  <bruno@clisp.org>
87454
87455         * m4/javacomp.m4: New file, from GNU gettext.
87456
87457 2005-01-28  Bruno Haible  <bruno@clisp.org>
87458
87459         * lib/javacomp.sh.in: New file, from GNU gettext.
87460         * lib/javacomp.h: New file, from GNU gettext.
87461         * lib/javacomp.c: New file, from GNU gettext.
87462
87463 2005-01-26  Simon Josefsson  <jas@extundo.com>
87464
87465         * lib/gai_strerror.c: Use GPL in header.
87466
87467 2005-01-26  Bruno Haible  <bruno@clisp.org>
87468
87469         * modules/javaexec: New file.
87470         * MODULES.html.sh (Java): Add javaexec.
87471
87472 2005-01-26  Bruno Haible  <bruno@clisp.org>
87473
87474         * m4/javaexec.m4: New file, from GNU gettext.
87475
87476 2005-01-26  Bruno Haible  <bruno@clisp.org>
87477
87478         * lib/javaexec.sh.in: New file, from GNU gettext.
87479         * lib/javaexec.h: New file, from GNU gettext.
87480         * lib/javaexec.c: New file, from GNU gettext.
87481
87482 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87483
87484         * modules/lchown (Depends-on): Remove lchown.h
87485
87486 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87487
87488         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
87489         must be defined if the header file was not found, in order
87490         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
87491
87492 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87493
87494         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
87495         initializers for struct pentry_state.
87496         (__argp_error): Check return value of __asprintf
87497         (__argp_failure): Translate error message
87498
87499         * lib/argp-parse.c: Removed braces around the expansion of N_()
87500
87501 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
87502
87503         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
87504         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
87505         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
87506         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
87507         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
87508         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
87509         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
87510         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
87511         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
87512         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
87513         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
87514         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
87515         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
87516         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
87517         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
87518         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
87519         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
87520         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
87521         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
87522         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
87523         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
87524         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
87525         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
87526         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
87527         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
87528         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
87529         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
87530         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
87531         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
87532         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
87533         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
87534         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
87535         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
87536         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
87537         xstrtol.m4, xstrtoumax.m4, yesno.m4:
87538         Use an all-permissive copyright notice, recommended by RMS.
87539
87540 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
87541
87542         * modules/chdir-long (Depends-on): Remove mempcpy.
87543
87544 2005-01-21  Jim Meyering  <jim@meyering.net>
87545
87546         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
87547         same value as for Solaris 9.
87548
87549         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
87550         component length.  This included changing the parameter to be
87551         of type `char *' rather than `char const *'.
87552         * lib/chdir-long.h (chdir_long): Update prototype.
87553
87554         * lib/openat.c (fdopendir, fstatat): New functions.
87555         * lib/openat.h: Include headers required for use of DIR and struct
87556         stat.
87557         [AT_SYMLINK_NOFOLLOW]: Define.
87558         (fdopendir, fstatat): Add prototypes.
87559
87560 2005-01-21  Bruno Haible  <bruno@clisp.org>
87561
87562         * modules/classpath: New file.
87563         * MODULES.html.sh (Java): Add classpath.
87564
87565 2005-01-21  Bruno Haible  <bruno@clisp.org>
87566
87567         * lib/classpath.h: New file, from GNU gettext.
87568         * lib/classpath.c: New file, from GNU gettext.
87569
87570 2005-01-20  Simon Josefsson  <jas@extundo.com>
87571
87572         * modules/version-etc-fsf: New file.
87573
87574 2005-01-20  Simon Josefsson  <jas@extundo.com>
87575
87576         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
87577         * lib/version-etc.c: Remove version_etc_copyright.
87578         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
87579         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
87580
87581 2005-01-20  Simon Josefsson  <jas@extundo.com>
87582
87583         * lib/base64.h (isbase64): Add.
87584
87585         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
87586         using a unsigned prototype, don't inline.
87587         (base64_decode): Use it.
87588
87589 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
87590
87591         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
87592         it.
87593
87594 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
87595
87596         * lib/save-cwd.c (save_cwd): Remove code to support the case
87597         where fchdir is missing or flaky.
87598
87599 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
87600
87601         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
87602
87603 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
87604
87605         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
87606         AC_LIBSOURCES now does this.
87607         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
87608         with new ullong_max module.
87609
87610 2005-01-19  Bruno Haible  <bruno@clisp.org>
87611
87612         * modules/sh-quote: New file.
87613         * MODULES.html.sh (Executing programs): Add sh-quote.
87614
87615 2005-01-19  Bruno Haible  <bruno@clisp.org>
87616
87617         * lib/sh-quote.h: New file, from GNU gettext.
87618         * lib/sh-quote.c: New file, from GNU gettext.
87619
87620 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
87621
87622         Merge from coreutils.
87623         * m4/ullong_max.m4: New file.
87624         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
87625         (gl_MACROS): Assume localeconv exists.
87626
87627 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
87628
87629         Merge changes from coreutils, as described below in several
87630         changelogs dated today.
87631
87632         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
87633         (O_DIRECTORY): Remove; not needed here, since "." must be
87634         a directory.  All uses removed.
87635         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
87636         universal on Suns, and we also need to test for IRIX.
87637         Revamp code to use 'if' rather than '#if'.
87638         Avoid unnecessary comparison of cwd->desc to 0.
87639
87640         * lib/utimens.c (futimens): Robustify the previous patch, by checking
87641         for known valid error numbers rather than observed invalid ones.
87642
87643 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
87644
87645         * modules/ullong_max: New file.
87646
87647         * modules/chdir-long, modules/openat: New files.
87648         * modules/save-cwd (Depends-on): Depend on chdir-long.
87649         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
87650
87651 2005-01-18  Jim Meyering  <jim@meyering.net>
87652
87653         Merge from coreutils.
87654         * m4/chdir-long.m4, m4/openat.m4: New files.
87655         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
87656         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
87657         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
87658         is sane and DOES follow symlinks.  Besides, testing 20 different
87659         systems found no broken chown implementations.
87660         Prompted by a change in rsync's copy of this macro.
87661         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
87662
87663         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
87664
87665         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
87666         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
87667         NULL-means-set-to-current-time semantics.
87668         Remove temporary file immediately, rather than waiting
87669         for configure's at-exit trap code to do it.
87670
87671 2005-01-18  Jim Meyering  <jim@meyering.net>
87672
87673         * lib/version-etc.c (version_etc_copyright): Update copyright date.
87674
87675         * lib/utimens.c (futimens): Account for the fact that futimes
87676         can also fail with errno == ENOSYS or errno == ENOENT.
87677         Patch from Dmitry V. Levin.
87678
87679         Change the name of the robust chdir function from chdir to chdir_long.
87680         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
87681         (restore_cwd): Use chdir_long, not chdir.
87682         * lib/chdir-long.c: Renamed from chdir.c.
87683         * lib/chdir-long.h: Renamed from chdir.h.
87684         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
87685         Hurd.
87686
87687 2005-01-18  Bruno Haible  <bruno@clisp.org>
87688
87689         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
87690         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
87691         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
87692         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
87693         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
87694         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
87695         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
87696         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
87697         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
87698         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
87699         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
87700         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
87701         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
87702         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
87703         Use an all-permissive copyright notice, recommended by RMS.
87704
87705 2005-01-18  Bob Proulx  <bob@proulx.com>
87706
87707         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
87708         simplify offsetof() macro construct to avoid compile failure with
87709         native HP-UX 11.0 ANSI C compiler.
87710
87711 2005-01-17  Bruno Haible  <bruno@clisp.org>
87712
87713         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
87714         redundant because stpncpy.m4 takes care of it.
87715
87716 2005-01-17  Bruno Haible  <bruno@clisp.org>
87717
87718         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
87719
87720 2005-01-17  Bruno Haible  <bruno@clisp.org>
87721
87722         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
87723         used.
87724
87725 2005-01-17  Bruno Haible  <bruno@clisp.org>
87726
87727         * lib/fwriteerror.h (fwriteerror): Change specification to include
87728         fclose.
87729         * lib/fwriteerror.c: Include <stdbool.h>.
87730         (fwriteerror): At the end, close the file stream. Record whether
87731         stdout was already closed.
87732
87733 2005-01-17  Bruno Haible  <bruno@clisp.org>
87734
87735         * lib/execute.c (environ): Declare if needed.
87736         * lib/pipe.c (environ): Likewise.
87737         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
87738
87739 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87740
87741         * modules/argp: Depend on vsnprintf
87742
87743 2005-01-10  Jim Meyering  <jim@meyering.net>
87744
87745         * modules/closeout (Depends-on): Add atexit.
87746
87747 2005-01-06  Bruno Haible  <bruno@clisp.org>
87748
87749         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
87750
87751 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
87752
87753         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
87754         definitions to be after all include files, to avoid collisions.
87755         Problem reported by Bob Proulx.
87756
87757 2005-01-04  Jim Meyering  <jim@meyering.net>
87758
87759         Changes imported from coreutils.
87760         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
87761         as the mkstemp template, use a temporary directory and an
87762         8.3-friendly template to avoid trouble on systems like DJGPP.
87763         Reported by Juan M. Guerrero via Stepan Kasal.
87764         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
87765         close. Remove the temporary directory right away, rather than waiting
87766         for configure's at-exit trap code to do it.
87767         Suggestion from Stepan Kasal.
87768
87769 2005-01-01  Simon Josefsson  <jas@extundo.com>
87770
87771         * gnulib-tool: Print #include directives when --import'ing.
87772
87773 2004-12-28  Simon Josefsson  <jas@extundo.com>
87774
87775         * tests/test-base64.c: Include required header files.  Remove
87776         unused variables.
87777
87778 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
87779
87780         * modules/error (Depends-on): Remove gettext.
87781
87782 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
87783
87784         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
87785         not needed.  This removes a dependency on the gettext module.
87786         [defined _LIBC]: Do not include <libintl.h>; not needed.
87787
87788 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
87789
87790         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
87791         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
87792
87793 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
87794
87795         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
87796         HAVE_DECL_STRTOLD.
87797
87798 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
87799
87800         * modules/getdate (Depends-on): Remove alloca-opt.
87801
87802 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
87803
87804         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
87805
87806 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
87807
87808         * lib/argp-parse.c: Include <stddef.h>.
87809         (alignof, alignto): New macros.
87810         (parser_init): Don't assume that void * is aligned sufficiently
87811         for struct option.
87812
87813         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
87814         need to extend the stack.
87815         (YYINITDEPTH): New macro, so that the initial stack isn't overly
87816         large.
87817
87818 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87819
87820         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
87821
87822 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
87823
87824         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
87825         (2004-10-24) change.  Apparently this was a false alarm.
87826
87827         * modules/getdate: Depend on alloca-opt, not alloca.
87828
87829 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
87830
87831         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
87832         Remove now-obsolete comment about AIX.
87833         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
87834         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
87835         (YYMAXDEPTH): New macro.
87836
87837 2004-12-18  Simon Josefsson  <jas@extundo.com>
87838
87839         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
87840
87841 2004-12-18  Bruno Haible  <bruno@clisp.org>
87842
87843         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
87844
87845 2004-12-18  Bruno Haible  <bruno@clisp.org>
87846
87847         * lib/fatal-signal.c (fatal_signals): Make non-const.
87848         (init_fatal_signals): New function.
87849         (uninstall_handlers, install_handlers): Ignore signals that were set to
87850         SIG_IGN.
87851         (at_fatal_signal): Call init_fatal_signals.
87852         (init_fatal_signal_set): Likewise. Ignore signals that were set to
87853         SIG_IGN.
87854         Reported by Paul Eggert.
87855
87856 2004-12-18  Bruno Haible  <bruno@clisp.org>
87857
87858         * doc/alloca.texi: New file.
87859         * doc/alloca-opt.texi: New file.
87860
87861 2004-12-17  Jim Meyering  <jim@meyering.net>
87862
87863         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
87864         Otherwise, install-sh could exit with improper exit status when
87865         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
87866
87867 2004-12-16  Simon Josefsson  <jas@extundo.com>
87868
87869         * tests/test-base64.c: Add license.
87870
87871 2004-12-15  Stepan Kasal  <address@hidden>
87872
87873         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
87874
87875 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
87876
87877         * modules/getcwd (Files): Add m4/d-ino.m4.
87878         Suggested by Mark D. Baushke.
87879
87880 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
87881
87882         * lib/getdate.y (textint): New member "negative".
87883         (time_zone_hhmm): New function.
87884         Expect 14 shift-reduce conflicts, not 13.
87885         (o_colon_minutes): New rule.
87886         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
87887         (yylex): Set the "negative" member of signed numbers.
87888
87889 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
87890
87891         * doc/getdate.texi (Time of day items, Time zone items):
87892         Describe new formats +00:00, UTC+00:00.
87893
87894 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
87895
87896         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
87897         spurious "-l"s.  Problem reported by Stepan Kasal.
87898
87899 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
87900
87901         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
87902         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
87903
87904 2004-12-04  Simon Josefsson  <jas@extundo.com>
87905
87906         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
87907         Vandoorselaere <yoann@prelude-ids.org>.
87908
87909 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
87910
87911         Changes imported from coreutils.
87912         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
87913         exist.
87914         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
87915
87916 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
87917
87918         Changes imported from coreutils.
87919         * lib/hard-locale.c: Assume <locale.h> exists.
87920         Include "strdup.h".
87921         (GLIBC_VERSION): New macro.
87922         (hard_locale): Assume setlocale exists.
87923         Rewrite to avoid #ifdef.
87924         Use strdup rather than malloc + strcpy.
87925         * lib/human.c: Assume <locale.h> exists.
87926         (human_readable): Assume localeconv exists.
87927
87928 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
87929
87930         * modules/hard-locale (Depends-on): Add strdup.
87931
87932 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
87933
87934         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
87935         convert T2, not T.  (Imported from libc.)
87936
87937 2004-11-30  Simon Josefsson  <jas@extundo.com>
87938
87939         * modules/restrict (License): Change to LGPL.
87940
87941 2004-11-30  Simon Josefsson  <jas@extundo.com>
87942
87943         * m4/restrict.m4: Add copyright and copying conditions.
87944
87945 2004-11-30  Simon Josefsson  <jas@extundo.com>
87946
87947         * m4/base64.m4: New file.
87948
87949 2004-11-30  Simon Josefsson  <jas@extundo.com>
87950
87951         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
87952         base64.
87953
87954         * tests/test-base64.c: New file.
87955
87956         * modules/base64: New file.
87957
87958 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
87959
87960         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
87961         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
87962
87963         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
87964
87965 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
87966
87967         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
87968         (__getcwd.c): Don't restore errno; glibc doesn't.
87969         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
87970         first, falling back to our code only if its results look suspicious.
87971         Ensure that the resulting buffer is only as large as necessary.
87972
87973         * lib/readutmp.c: Include readutmp.h first.
87974         Include <errno.h>, since readutmp.h no longer does that.
87975         * lib/readutmp.h: Don't include <errno.h>,
87976         <sys/param.h>, <time.h>; not needed to establish interface.
87977         (errno): Remove decl.
87978         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
87979         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
87980         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
87981
87982 2004-11-28  Simon Josefsson  <jas@extundo.com>
87983
87984         * lib/base64.h, base64.c: New file.
87985
87986 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
87987
87988         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
87989
87990 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
87991
87992         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
87993         (Depends-on): Remove pathmax, same.  Add mempcpy.
87994         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
87995         (Makefile.am): Append getcwd.h to lib_SOURCES.
87996         (Include): Add getcwd.h.
87997         (Maintainer): Change from Jim Meyering to "all, glibc",
87998         since getdate now uses intended-for-glibc code.
87999         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
88000         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
88001
88002 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
88003
88004         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
88005         HP's ANSI C compiler.
88006         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
88007         Declaring int functions causes warnings on some modern systems and
88008         shouldn't be needed to compile on ancient ones.
88009         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
88010         defined.
88011
88012         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
88013         with the following changes.
88014         (__set_errno): Parenthesize properly.
88015         Include <stdbool.h>.
88016         (MIN, MAX, MATCHING_INO): New macros.
88017         (__getcwd): Define with prototype, not K&R form.
88018         Use heuristics to allocate default buffer on stack if possible.
88019         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
88020         behavior, and to avoid the PATH_MAX limit when computing
88021         ../../../../...
88022         Use MATCHING_INO to compare inode number to file.
88023         Check for arithmetic overflow in size calculations.
88024         Fix bug in reallocation of dot array that caused getcwd to fail
88025         on directories nested deeper than 75.
88026         Be more careful about saving errno on error.
88027         Do not use realloc; use only free+malloc, as this is a bit
88028         more flexible and avoids a needless copy operation.
88029         Do not inspect st_dev and st_ino for symbolic links; POSIX
88030         doesn't specify the latter.
88031         Check for closedir errors.
88032         Avoid needless casts.
88033         Use "#ifdef weak_alias" around weak_alias, to be like other
88034         glibc code.
88035         The following changes to getcwd.c have effect only when used in
88036         gnulib; they have no effect inside glibc proper.
88037         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
88038         as alloca isn't used.
88039         (alloca, __alloca): Likewise.
88040         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
88041         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
88042         unconditionally, as gnulib assumes C89 or better.
88043         Do not include <sys/param.h>.
88044         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
88045         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
88046         better.
88047         (NULL) [!defined NULL]: Remove; we assume C89 or better.
88048         Include <dirent.h> in a way that is compatible with modern Autoconf.
88049         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
88050         New macros, if not already defined.
88051         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
88052         Use "_LIBC", not "defined _LIBC", for consistency.
88053         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
88054         a mempcpy module.
88055         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
88056         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
88057         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
88058         credit only to Jim Meyering and adjust the copyright dates.
88059         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
88060         <stdlib.h>, <unistd.h>, "pathmax.h".
88061         Instead, include "xgetcwd.h" (first) and "getcwd.h".
88062         (INITIAL_BUFFER_SIZE): Remove.
88063         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
88064
88065 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
88066
88067         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
88068         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
88069         Use the _ONCE methods, for efficiency.
88070         Check for fcntl.h.  In test program, include <errno.h>
88071         and <fcntl.h> if available.  Remove old K&R cruft from
88072         test program.  Check for common errors in GNU/Linux,
88073         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
88074         don't do AC_LIBOBJ, as that's getcwd.m4's job.
88075         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
88076         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
88077         name accordingly.
88078         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
88079         accommodate new getcwd.c.
88080         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
88081         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
88082         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
88083         that's all we need now.
88084
88085 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88086
88087         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
88088         argp-parse.c depends on getopt internals, that means we should
88089         always use our getopt, to be on the safe side.
88090         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
88091         order not to spoil the result of an eventual previous invocation
88092         of gl_GETOPT_SUBSTITUTE.
88093
88094 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88095
88096         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
88097         redefinition warnings. To avoid them, include the defines
88098         in `#if !defined __need_getopt ... #endif'. The only place
88099         where __getopt_argv_const is used is in definitions
88100         of getopt_long and getopt_long_only below, which are as well
88101         protected by `#ifndef __need_getopt'.
88102         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
88103         __need_getopt after including <stdio.h> and <unistd.h> These
88104         headers might have defined it.
88105
88106 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
88107
88108         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
88109
88110 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
88111
88112         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
88113         (futimens): New function, which uses futimes if available.
88114         (futimens, utimens): Support timespec==NULL, with same semantics
88115         as utime and utimens.
88116         * lib/utimens.h (futimens): New decl.
88117
88118 2004-11-23  Jim Meyering  <jim@meyering.net>
88119
88120         * lib/getopt_.h: Remove trailing blanks.
88121
88122 2004-11-23  Jim Meyering  <jim@meyering.net>
88123
88124         * lib/__fpending.c: Add comment.
88125
88126 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
88127
88128         * modules/canonicalize (Depends-on): Add xreadlink.
88129         Problem reported by James Youngman.
88130
88131 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
88132
88133         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
88134         New macros.
88135         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
88136         optopt): Use them instead of invoking ## directly; otherwise, the
88137         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
88138
88139 2004-11-19  Bruno Haible  <bruno@clisp.org>
88140
88141         * lib/strtok_r.c: Move comments from here...
88142         * lib/strtok_r.h: ... to here.
88143
88144 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
88145
88146         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
88147         implementations that mishandle size_t overflow.
88148
88149 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
88150
88151         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
88152         might fail.  Problem reported by Yoann Vandoorselaere.
88153         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
88154         implementations that mishandle size_t overflow.
88155
88156 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
88157
88158         * modules/canon-host (Depends-on): Add strdup.
88159
88160 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
88161
88162         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
88163
88164 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
88165
88166         * lib/canon-host.c: Include "strdup.h".
88167         (canon_host): Use getaddrinfo if available, so that IPv6 works.
88168         Use strdup instead of malloc/strcpy to duplicate strings.
88169
88170         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
88171         (human_space_before_unit): New constant.
88172         * lib/human.c (human_readable): Support it.
88173
88174         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
88175         (xgetcwd): Set errno correctly when failing.
88176         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
88177         the failure is actually due to a PATH_MAX problem.
88178
88179         Further getopt changes to make it more likely that glibc will
88180         buy the changes back.
88181         * lib/getopt.c (POSIXLY_CORRECT): New constant.
88182         (getopt): Use it, so to preserve glibc semantic
88183         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
88184         when compiling for libc.
88185         * lib/getopt_.h (__getopt_argv_const): Bring it back.
88186         (getopt_long, getopt_long_only): Use it.
88187
88188         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
88189         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
88190         (getopt): Argv is now char * const *, as per standard.
88191         (_getopt_internal_r, _getopt_internal): Argv is now char **,
88192         not char *__getopt_argv_const *.
88193         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
88194         _getopt_long_only_r): Likewise.
88195         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
88196         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
88197         _getopt_long_r, _getopt_long_only_r): Likewise.
88198         * lib/getopt_.h (__getopt_argv_const): Remove.
88199         (getopt): Argv is now char * const *, as per standard.
88200
88201         * lib/getdate.y (tORDINAL): New token.
88202         (day, relunit): Allow it for relative times.
88203         (relative_time_table): Use tORDINAL for ordinals.
88204
88205 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
88206
88207         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
88208         Document that "second" isn't allowed as an ordinal number.
88209
88210 2004-11-16  Jim Meyering  <jim@meyering.net>
88211
88212         * modules/closeout (Depends-on): Add fpending.
88213
88214 2004-11-15  Jim Meyering  <jim@meyering.net>
88215
88216         * lib/closeout.c: Include "__fpending.h" once again.
88217         Include <stdbool.h>.
88218         (close_stdout): Don't fail just because stdout was closed initially,
88219         since some programs don't write to stdout in the normal course of
88220         operation (other than --version and --help), and we don't want this
88221         function to make e.g. `touch file >&-' fail.
88222         But do fail if it was closed and someone has tried to write to it.
88223         E.g., `printf foo >&-' must fail.
88224
88225 2004-11-13  Jim Meyering  <jim@meyering.net>
88226
88227         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
88228
88229 2004-11-12  Simon Josefsson  <jas@extundo.com>
88230
88231         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
88232         small doc fix is still pending.
88233
88234 2004-11-11  Simon Josefsson  <jas@extundo.com>
88235
88236         * modules/strtok_r: New file.
88237
88238         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88239         strtok_r.
88240
88241 2004-11-11  Simon Josefsson  <jas@extundo.com>
88242
88243         * m4/strtok_r.m4: New file.
88244
88245         * m4/getopt.m4: Replace opterr.
88246
88247 2004-11-11  Simon Josefsson  <jas@extundo.com>
88248
88249         * lib/strtok_r.h, strtok_r.c: New file.
88250
88251 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
88252
88253         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
88254         of replacing opterr, getopt, etc.  This should handle the
88255         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
88256
88257 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
88258
88259         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
88260         we can stop lying to compilers about the constness of argv when we
88261         are compiled outside glibc.
88262         (getopt, getopt_long, getopt_long_only): Use it.
88263         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
88264         _getopt_internal, getopt): Likewise.
88265         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
88266         _getopt_long_only_r): Likewise.
88267         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
88268         _getopt_long_r, _getopt_long_only_r): Likewise.
88269
88270         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
88271         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
88272         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
88273         the other external symbols.
88274         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
88275         declaration, since the above renaming now works around collisions.
88276
88277 2004-11-11  Jim Meyering  <jim@meyering.net>
88278
88279         * lib/linebreak.c: Remove trailing blanks.
88280         * lib/alloca_.h: Likewise.
88281         * lib/acosl.c: Likewise.
88282         * lib/euidaccess.c: Likewise.
88283         * lib/allocsa.h: Likewise.
88284
88285 2004-11-10  Simon Josefsson  <jas@extundo.com>
88286
88287         * m4/getaddrinfo.m4: New file.
88288
88289 2004-11-10  Simon Josefsson  <jas@extundo.com>
88290
88291         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
88292
88293 2004-11-10  Simon Josefsson  <jas@extundo.com>
88294
88295         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88296         getaddrinfo.
88297
88298         * modules/getaddrinfo: New file.
88299
88300 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
88301
88302         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
88303
88304 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
88305
88306         * lib/mktime.c (SHR): New macro, which is a portable
88307         substitute for >> that should work even on Crays.
88308         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
88309         Problem reported by Mark D. Baushke in
88310         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
88311         * lib/getdate.y (SHR): Likewise.
88312         (tm_diff): Use it.
88313         * lib/strftime.c (SHR): Likewise.
88314         (tm_diff): Use it.
88315         * lib/quotearg.c (struct quoting_options): Use unsigned int for
88316         quote_these_too, so that right shifts are well defined.  All uses
88317         changed.
88318
88319 2004-11-10  Jim Meyering  <jim@meyering.net>
88320
88321         Ensure that no close failure goes unreported.
88322         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
88323         return early when it seems there's nothing to flush.
88324         Don't include __fpending.h.
88325
88326 2004-11-10  Jim Meyering  <jim@meyering.net>
88327
88328         * modules/closeout (Depends-on): Remove fpending.
88329
88330 2004-11-10  Jim Meyering  <jim@meyering.net>
88331
88332         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
88333
88334 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
88335
88336         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
88337         gl_FUNC_STRFTIME.
88338         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
88339         and AC_REQUIRE when possible, to avoid duplicate checks.
88340         Check for <wchar.h>.
88341
88342 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
88343
88344         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
88345
88346 2004-11-09  Bruno Haible  <bruno@clisp.org>
88347
88348         * m4/sockpfaf.m4: New file.
88349
88350 2004-11-05  Bruno Haible  <bruno@clisp.org>
88351
88352         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
88353         Reported by Mark D. Baushke <mdb@cvshome.org>.
88354
88355 2004-11-04  Bruno Haible  <bruno@clisp.org>
88356
88357         2004-09-11  Bruno Haible  <bruno@clisp.org>
88358                 * allocsa.valgrind: New file.
88359         2004-02-06  Bruno Haible  <bruno@clisp.org>
88360                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
88361                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
88362                 Reported by Christopher Seip <chris.seip@hp.com>.
88363
88364 2004-11-04  Bruno Haible  <bruno@clisp.org>
88365
88366         * modules/allocsa (Files): Add lib/allocsa.valgrind.
88367         (Makefile.am): Distribute it.
88368
88369 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
88370
88371         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
88372         with errno == ERANGE if the buffer is too small.
88373         Problem reported by Mark D. Baushke.
88374
88375 2004-11-03  Albert Chin  <china@thewrittenword.com>
88376             Paul Eggert  <eggert@cs.ucla.edu>
88377
88378         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
88379         equivalent, substitute $ac_type for equivalent type rather than
88380         blindly using uint32_t *always* which won't work if uint32_t is not
88381         available.  Define _UINT32_T to work around typedef of uint32_t if
88382         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
88383         2.5.1.
88384
88385 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
88386
88387         * m4/jm-macros.m4: Sync from coreutils.
88388         (gl_MACROS): Check for mbrlen, for pathchk.
88389         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
88390
88391 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
88392
88393         * lib/xreadlink.c (MAXSIZE): New macro.
88394         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
88395         size does not exceed MAXSIZE.  Avoid cast.
88396         As suggested by Mark D. Baushke in
88397         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
88398         if readlink fails with buffer size just under MAXSIZE, try again
88399         with MAXSIZE.
88400
88401 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
88402
88403         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
88404
88405 2004-11-02  Derek R. Price  <derek@ximbiot.com>
88406         and  Paul Eggert  <eggert@cs.ucla.edu>
88407
88408         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
88409         (get_date): Overparenthesize to avoid GCC warning.
88410
88411 2004-11-02  Bruno Haible  <bruno@clisp.org>
88412
88413         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
88414         returns void.
88415
88416 2004-11-02  Bruno Haible  <bruno@clisp.org>
88417
88418         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
88419         function returns void.
88420
88421 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
88422
88423         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
88424         fflush_unlocked, flockfile, funlockfile, funlockfile,
88425         fputs_unlocked, putc_unlocked.
88426
88427 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
88428
88429         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
88430         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
88431         already declared.
88432
88433 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
88434
88435         * modules/getdate (Files): Add doc/getdate.texi.
88436         (Depends-on): Add setenv, xalloc.
88437
88438 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
88439
88440         * lib/getdate.y: Add support for TZ="foo" within a date string.
88441         Fix some bugs near time_t boundaries.  Reject dates with
88442         out-of-range components, e.g., "Sept 31".
88443         Include <stdlib.h>, "setenv.h", "xalloc.h".
88444         (ISDIGIT_LOCALE): Remove; unused.
88445         Note that the TZ and time functions used here are not reentrant.
88446         (mktime_ok, get_tz): New functions.
88447         (TZBUFSIZE): New constant.
88448         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
88449         This requires that we sometimes generate our own TZ="XXX..." setting.
88450
88451 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
88452
88453         * doc/getdate.texi: New file, from coreutils with modifications for
88454         the new TZ parsing.
88455
88456 2004-10-27  Derek R. Price  <derek@ximbiot.com>
88457
88458         * lib/mktime.c (not_equal_tm): Remove redundant check.
88459
88460 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
88461
88462         * modules/regex (lib_SOURCES): Add regex.c.
88463         Reported by James Youngman in
88464         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
88465
88466 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
88467
88468         * lib/getdate.y: Use Bison 1.875 features, and some minor
88469         code cleanups.  This change does not affect semantics.
88470         Don't include <stdlib.h>; no longer needed.
88471         Don't include unlocked-io.h; only the "#if TEST" code uses
88472         stdio, and performance isn't crucial there.
88473         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
88474         Bison 1.875 features as described below.
88475         All uses of "PC." replaced by "pc->".
88476         (YYSTYPE): Add a forward declaration.
88477         (yylex, yyerror): Use full prototypes in forward decls.
88478         Use "%pure-parser" rather than obsolescent "%pure_parser".
88479         Use %parse-param and %lex-param instead of obsolescent
88480         YYPARSE_PARAM and YYLEX_PARAM.
88481         (meridian_table, month_and_day_table, time_units_table,
88482         relative_time_table, time_zone_table, military_table,
88483         lookup_zone, lookup_word, get_date):
88484         Use NULL instead of 0 where appropriate.
88485         (to_hour): Avoid abort (), to avoid a dependency on
88486         stdlib.h.
88487         (yyerror, yylex): Now accepts parser_control * arg.
88488         (main) [TEST]: Use '\0' rather than 0 for char.
88489
88490 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
88491
88492         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
88493
88494 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
88495
88496         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
88497         It's now the caller's responsibility to handle the case where
88498         !HAVE_GETPAGESIZE && !defined getpagesize.
88499
88500         * lib/mktime.c (leapyear): Arg is long int, not int.
88501
88502 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
88503
88504         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
88505
88506 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
88507
88508         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
88509         missing.  Problem reported by James Youngman.
88510
88511 2004-10-16  Simon Josefsson  <jas@extundo.com>
88512
88513         * gnulib-tool: Fix comments.  Fix parse problem.
88514         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
88515
88516 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
88517
88518         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
88519         implementation of getopt_long.  Problem reported by Alexander Taler in:
88520         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
88521
88522 2004-10-15  Bruno Haible  <bruno@clisp.org>
88523
88524         * gnulib-tool: Untabify. Initialize supplied_libname.
88525         (func_usage): More homogenous output.
88526         (func_modules_transitive_closure, func_modules_to_filelist,
88527         func_emit_lib_Makefile_am): New functions.
88528         (func_import): New function, extracted from big case statement. Use
88529         func_get_license, func_modules_transitive_closure,
88530         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
88531         opt_lgpl. Don't use test -a, as it's not portable.
88532         (func_create_testdir): Use func_modules_transitive_closure,
88533         func_modules_to_filelist, func_emit_lib_Makefile_am.
88534
88535 2004-10-15  Bruno Haible  <bruno@clisp.org>
88536
88537         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
88538
88539 2004-10-15  Bruno Haible  <bruno@clisp.org>
88540
88541         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
88542         the portions belonging to each module.
88543         Suggested by Derek Robert Price <derek@ximbiot.com>.
88544
88545 2004-10-12  Simon Josefsson  <jas@extundo.com>
88546
88547         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
88548         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
88549         to real functions.
88550
88551 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88552
88553         * modules/vsnprintf: New file.
88554
88555 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88556
88557         * m4/vsnprintf.m4: New file.
88558
88559 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88560
88561         * lib/vsnprintf.h: New file.
88562         * lib/vsnprintf.c: New file.
88563
88564 2004-10-11  Bruno Haible  <bruno@clisp.org>
88565
88566         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
88567         vsnprintf.
88568
88569 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
88570
88571         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
88572
88573 2004-10-07  Bruno Haible  <bruno@clisp.org>
88574
88575         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
88576         fits into the provided buffer.
88577
88578 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
88579
88580         * lib/diacrit.c, diacrit.h: Add GPL notice.
88581
88582         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
88583         notice.
88584         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
88585         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
88586         This avoids a potential constant-folding bug.
88587
88588 2004-10-05  Bruno Haible  <bruno@clisp.org>
88589
88590         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
88591         for the declaration of strsep.
88592
88593 2004-10-05  Bruno Haible  <bruno@clisp.org>
88594
88595         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
88596
88597 2004-10-04  Simon Josefsson  <jas@extundo.com>
88598
88599         * modules/memmem: New file.
88600         * tests/test-memmem.c: New file.
88601         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
88602
88603 2004-10-04  Simon Josefsson  <jas@extundo.com>
88604
88605         * m4/memmem.m4: New file.
88606
88607 2004-10-04  Simon Josefsson  <jas@extundo.com>
88608
88609         * lib/memmem.h: New file.
88610         * lib/memmem.c: New file, taken from glibc.
88611
88612 2004-10-04  Simon Josefsson  <jas@extundo.com>
88613
88614         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
88615         '#ifdef USE_UNLOCKED_IO'.
88616
88617 2004-10-04  Simon Josefsson  <jas@extundo.com>
88618
88619         * config/srclist.txt: Add memmem from glibc.
88620
88621 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
88622
88623         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
88624
88625         * modules/argmatch, modules/argp, modules/closeout, modules/error,
88626         modules/exclude, modules/getdate, modules/getline,
88627         modules/getndelim2, modules/getpass, modules/getpass-gnu,
88628         modules/getusershell, modules/linebuffer, modules/md5,
88629         modules/mountlist, modules/posixtm, modules/readtokens,
88630         modules/readutmp, modules/regex, modules/sha1,
88631         modules/version-etc, modules/yesno:
88632         Remove dependency on unlocked-io.
88633
88634 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
88635
88636         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
88637
88638         * m4/unlocked-io.m4: Add copyright notice.
88639         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
88640
88641 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
88642
88643         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
88644         * lib/xmalloc.c (xmemdup): Likewise.
88645         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
88646         XFREE): Remove these long-obsolescent macros.
88647         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
88648         * lib/xstrdup.c: Remove.
88649
88650         * lib/regex.c (re_comp): Cast gettext return value to char *,
88651         Problem reported by Martin Neitzel via Mark D. Baushke.
88652
88653 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
88654
88655         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
88656         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
88657         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
88658         regex.c, sha1.c, version-etc.c, yesno.c:
88659         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
88660         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
88661         the includer's responsibility.
88662
88663         Sync from coreutils.
88664
88665         * lib/modechange.c (mode_compile): Don't decrement a pointer that
88666         points to the start of a string, as the C Standard says the
88667         resulting behavior is undefined.
88668
88669         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
88670         simple -> simple_backups, numbered_existing ->
88671         numbered_existing_backups, numbered -> numbered_backups
88672         to avoid shadowing problems.  All uses changed.
88673         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
88674         * lib/backupfile.c (check_extension, numbered_backup):
88675         Rename locals to avoid shadowing 'basename'.
88676         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
88677         once.
88678
88679         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
88680         * lib/.cvsignore: Add getopt.h.
88681
88682 2004-10-04  Bruno Haible  <bruno@clisp.org>
88683
88684         * modules/README: New file.
88685         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
88686         not a module.
88687
88688 2004-10-02  Jim Meyering  <jim@meyering.net>
88689
88690         * lib/dirfd.h, getpagesize.h: Add copyright notice.
88691
88692 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88693
88694         * modules/strsep: New file.
88695
88696 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88697
88698         * m4/strsep.m4: New file.
88699
88700 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88701
88702         * lib/strsep.h: New file.
88703         * lib/strsep.c: New file.
88704
88705 2004-10-01  Simon Josefsson  <jas@extundo.com>
88706
88707         * lib/snprintf.c (snprintf): Handle size==0.
88708
88709 2004-10-01  Simon Josefsson  <jas@extundo.com>
88710             Bruno Haible  <bruno@clisp.org>
88711
88712         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
88713         (snprintf): Declare 'args'.
88714
88715 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
88716
88717         * lib/snprintf.c: Remove comments as to why each header is needed.
88718
88719 2004-10-01  Bruno Haible  <bruno@clisp.org>
88720
88721         * MODULES.html.sh: Add strsep.
88722
88723 2004-09-30  Simon Josefsson  <jas@extundo.com>
88724
88725         * modules/snprintf: New file.
88726
88727 2004-09-30  Simon Josefsson  <jas@extundo.com>
88728
88729         * m4/snprintf.m4: New file.
88730
88731 2004-09-30  Simon Josefsson  <jas@extundo.com>
88732
88733         * lib/snprintf.h, lib/snprintf.c: New files.
88734
88735 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88736
88737         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
88738         (hol_entry_help): Never translate an empty string.
88739         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
88740         * lib/argp.h (OPTION_NO_TRANS): New option.
88741
88742 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
88743
88744         * modules/argp (Maintainer): Replace Simon Josefsson
88745         by Sergey Poznyakoff.
88746
88747 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
88748
88749         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
88750         changes merged back into glibc.
88751
88752 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
88753
88754         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
88755
88756 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
88757
88758         * lib/xvasprintf.c: Include xalloc.h.
88759         (xvasprintf): Use xalloc_die, not xmalloc_die.
88760
88761 2004-09-29  Bruno Haible  <bruno@clisp.org>
88762
88763         * modules/alloca-opt: New file, derived from modules/alloca.
88764         * modules/allocsa: Depend on alloca-opt instead of alloca.
88765         * modules/setenv: Likewise.
88766         * modules/vasnprintf: Likewise.
88767         * MODULES.html.sh: Add alloca-opt.
88768
88769 2004-09-28  Simon Josefsson  <jas@extundo.com>
88770
88771         * gnulib-tool: New parameter --lgpl, to asseert that modules are
88772         LGPL, and to replace license template from GPL to LGPL.
88773
88774 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
88775
88776         * modules/dummy: Change license to LGPL.
88777
88778 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
88779
88780         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
88781
88782 2004-09-24  Simon Josefsson  <jas@extundo.com>
88783
88784         * modules/minmax (License): Change from GPL to LGPL.
88785
88786 2004-09-23  Simon Josefsson  <jas@extundo.com>
88787
88788         * gnulib-tool (--import): Typo.
88789
88790 2004-09-23  Simon Josefsson  <jas@extundo.com>
88791
88792         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
88793
88794 2004-09-22  Bruno Haible  <bruno@clisp.org>
88795
88796         * modules/*: Add 'License' field.
88797         * gnulib-tool: Accept --extract-license option.
88798         (func_get_license): New function.
88799
88800 2004-09-21  Bruno Haible  <bruno@clisp.org>
88801
88802         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
88803         Reported by Simon Josefsson.
88804
88805 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
88806
88807         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
88808         gl_AC_TYPE_LONG_LONG.
88809
88810 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
88811
88812         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
88813
88814 2004-09-18  Simon Josefsson  <jas@extundo.com>
88815         and  Paul Eggert  <eggert@cs.ucla.edu>
88816
88817         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
88818         calls with autoreconf.  Define GL_LIB.
88819
88820 2004-09-14  Karl Berry  <karl@gnu.org>
88821
88822         * config/srclist.txt: unsync setenv.c, sigh.
88823
88824 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
88825
88826         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
88827         Problem reported by Bruno Haible in:
88828         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
88829
88830 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
88831
88832         * config/srclist.txt: Comment out argp-pvh.c.
88833
88834 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
88835
88836         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
88837         in case some system header has #define'd it.  Problem reported by
88838         Soeren D. Schulze in
88839         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
88840
88841 2004-09-09  Karl Berry  <karl@gnu.org>
88842
88843         * regex.[ch]: delete from the root.  These were supposed to be
88844                 synced with emacs cvs, but this has not happened for about
88845                 a year, and anyway nothing else uses emacs regex.[ch].
88846                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
88847                 lib/regex[.ch] is untouched.
88848
88849 2004-09-09  Bruno Haible  <bruno@clisp.org>
88850
88851         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
88852
88853 2004-09-09  Bruno Haible  <bruno@clisp.org>
88854
88855         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
88856         modifications.
88857         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
88858
88859 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
88860
88861         * modules/xvasprintf: New file.
88862         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
88863
88864 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
88865
88866         * lib/xvasprintf.h: New file.
88867         * lib/xvasprintf.c: New file.
88868         * lib/xasprintf.c: New file.
88869
88870 2004-09-08  Bruno Haible  <bruno@clisp.org>
88871
88872         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
88873
88874 2004-09-08  Bruno Haible  <bruno@clisp.org>
88875
88876         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
88877         length is > INT_MAX.
88878         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
88879         more.
88880
88881 2004-09-08  Bruno Haible  <bruno@clisp.org>
88882
88883         * lib/stdint_.h: New file, taken from GNU clisp.
88884
88885 2004-09-08  Bruno Haible  <bruno@clisp.org>
88886             Oskar Liljeblad  <oskar@osk.mine.nu>
88887
88888         * modules/stdint: New file.
88889         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
88890
88891 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
88892
88893         Import from coreutils.
88894         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
88895         strings on unbounded length.  alloca's performance benefits aren't
88896         that important here.
88897         (V_STRDUP): Remove.
88898         (parse_with_separator): New function, with most of the internals
88899         of the old parse_user_spec.  Allow user to omit both user and group,
88900         for compatibility with FreeBSD.
88901         Clone only the user name, not the entire spec.
88902         Do not set *uid, *gid unless entirely successful.
88903         Avoid memory leak in some failing cases.
88904         Fix regression for USER.GROUP reported by Dmitry V. Levin in
88905         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
88906         (parse_user_spec): Rewrite to use parse_with_separator.
88907
88908 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
88909
88910         * modules/userspec: Don't depend on alloca.
88911
88912 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
88913
88914         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
88915
88916 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
88917
88918         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
88919         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
88920         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
88921
88922 2004-08-16  Simon Josefsson  <jas@extundo.com>
88923
88924         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
88925         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
88926         Add --dry-run for --import.
88927         Let user provided command line parameters override configure.ac
88928         settings.
88929
88930 2004-08-12  Simon Josefsson  <jas@extundo.com>
88931
88932         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
88933         as discussed with Paul Eggert in threads rooted at
88934         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
88935         and
88936         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
88937         Before, the test was empty, and relied on ELIDE_CODE in source
88938         code.)
88939         (gl_PREREQ_GETOPT): New macro.
88940         (gl_GETOPT): Use them.
88941
88942 2004-08-12  Simon Josefsson  <jas@extundo.com>
88943
88944         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
88945         * lib/getopt_.h: Renamed from getopt.h.
88946
88947 2004-08-12  Simon Josefsson  <jas@extundo.com>
88948
88949         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
88950         Change default library name from libfoo to libgnu.
88951         Now, if you have a configure.ac that says:
88952                 gl_SOURCE_BASE(gl)
88953                 gl_M4_BASE(gl/m4)
88954                 gl_MODULES(error getopt etcetera)
88955                 gl_INIT
88956         you can import all you need by running:
88957                 ../gnulib/gnulib-tool --import
88958
88959         * modules/getopt (Files): Rename getopt.h to getopt_.h.
88960         (Makefile.am): Rewrite, use logic from argz.
88961         (Include): Use <getopt.h> instead of "getopt.h".
88962
88963 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
88964
88965         * modules/argp (Files): Add m4/unlocked-io.m4.
88966         (Depends-on): Add extensions.
88967
88968 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
88969
88970         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
88971         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
88972         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
88973         Check for program_invocation_name, program_invocation_short_name,
88974         flockfile, funlockfile, features.h, _getopt_long_only_r.
88975
88976 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
88977
88978         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
88979         its complicated substitute.
88980         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
88981         and program_invocation_name.
88982         (__argp_basename) [!_LIBC]: Remove; the only use was
88983         replaced by its body.
88984         (__argp_short_program_name): Change condition from
88985         !defined __argp_short_program_name to
88986         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
88987         to match argp-namefrob.h.
88988         (__argp_failure): Don't assume strerror_r returns char *.
88989         * lib/argp-parse.c (N_): Define unconditionally.
88990         (argp_default_options): Fill out initializers with 0 to avoid
88991         gcc warnings.
88992
88993 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
88994
88995         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
88996         getopt1.c.
88997
88998 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
88999
89000         Merge from coreutils.
89001
89002         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
89003
89004         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
89005         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
89006
89007 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
89008
89009         Merge from coreutils.
89010
89011         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
89012         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
89013         for Reliant Unix 5.43.
89014
89015         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
89016         (union fooround): Use uintmax_t, not long int.
89017         The rest is a merge from libc:
89018         [defined _LIBC]: Include <shlib-compat.h>.
89019         (_obstack) [defined _LIBC]: Remove after 2.3.4.
89020
89021         * lib/settime.c (settime): Recode to avoid warning with
89022         Sun Forte C 6U2.
89023
89024         * lib/strverscmp.c: Convert to UTF-8.
89025
89026 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
89027
89028         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
89029         m4/uintmax_t.m4.
89030
89031 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
89032
89033         * modules/xalloc-die: New file.
89034         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
89035
89036         * modules/md5 (Files): Add m4/uint32_t.m4.
89037         * modules/sha1: Renamed from modules/sha.
89038         (Files):
89039         Rename lib/sha.h to lib/sha1.h.
89040         Rename lib/sha.c to lib/sha1.c.
89041         Rename m4/sha.m4 to m4/sha1.m4.
89042         (lib_SOURCES): Likewise.
89043         (configure.ac): Rename gl_SHA to gl_SHA1.
89044         (Include): sha.h -> sha1.h.
89045
89046 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
89047
89048         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
89049         * m4/sha1.m4: Renamed from sha.m4.
89050         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
89051
89052 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
89053
89054         * lib/obstack.h (obstack_empty_p):
89055         Don't assume that chunk->contents is suitably aligned.
89056         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
89057         Likewise. Problem reported by Benno in
89058         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
89059
89060         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
89061         readable.  This could be improved further but it'd take some work.
89062
89063 2004-08-08  Simon Josefsson  <jas@extundo.com>
89064
89065         * modules/xgethostname (Depends-on): Remove exit and error (not
89066         used).
89067
89068         * modules/getpass-gnu: Add getpass.h.
89069         (Depends-on): Add stdbool.
89070         * modules/getpass: Add getpass.h.
89071
89072 2004-08-08  Simon Josefsson  <jas@extundo.com>
89073
89074         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
89075         Check getpass declaration.
89076
89077 2004-08-08  Simon Josefsson  <jas@extundo.com>
89078
89079         * lib/xgethostname.c: Don't include error.h (not used).
89080
89081         * lib/getpass.h: Add.
89082         * lib/getpass.c: Include getpass.h first.
89083
89084 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
89085
89086         * lib/xalloc-die.c: New file.
89087         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
89088         All uses removed.
89089         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
89090         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
89091         xalloc-die.c.
89092         (_, N_, xalloc_die): Move to xalloc-die.c.
89093         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
89094         so that we needn't mess with xalloc_msg_memory_exhausted.
89095
89096         * lib/sha1.h: Renamed from sha.h.
89097         (SHA1_H): Renamed from _SHA_H.
89098         (sha1_ctx): Renamed from sha_ctx.
89099         (sha1_init_ctx): Renamed from sha_init_ctx.
89100         (sha1_process_block): Renamed from sha_process_block.
89101         (sha1_process_bytes): Renamed from sha_process_bytes.
89102         (sha1_finish_ctx): Renamed from sha_finish_ctx.
89103         (sha1_read_ctx): Renamed from sha_read_ctx.
89104         (sha1_stream): Renamed from sha_stream.
89105         (sha1_buffer): Renamed from sha_buffer.
89106         * lib/sha1.c: Likewise; renamed from sha.c.
89107         Do not include <sys/types.h>.
89108         Include <stddef.h> rather than <stdlib.h>.
89109
89110 2004-08-08  Bruno Haible  <bruno@clisp.org>
89111
89112         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
89113         FILESYSTEM_PREFIX_LEN.
89114         * lib/progreloc.c: Likewise.
89115         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
89116
89117 2004-08-06  Simon Josefsson  <jas@extundo.com>
89118
89119         * modules/progname (Depends-on): Don't depend on stdbool.
89120
89121 2004-08-06  Simon Josefsson  <jas@extundo.com>
89122
89123         * modules/getsubopt: New file.
89124         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
89125         getsubopt.
89126
89127 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
89128
89129         More merge from coreutils.
89130
89131         * m4/utimens.m4, m4/utimecmp.m4: New files.
89132         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
89133         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
89134         prereq.m4, sha.m4: Import changes from coreutils.
89135
89136 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
89137
89138         More merge from coreutils.
89139         * modules/raise, modules/readtokens0, modules/utimens:
89140         * modules/utimecmp, module/xnanosleep: New files.
89141         * modules/strftime: Add lib/strftime.h.
89142         Change include from <time.h> to "strftime.h".
89143         * modules/yesno: Add lib/yesno.h.
89144         * modules/backupfile: Remove lib/addext.c.
89145         * modules/euidaccess: Add stat-macros.h.
89146         * modules/canonicalize, modules/euidaccess,
89147         modules/filemode, modules/lchown, modules/makepath,
89148         modules/rmdir, modules/stat: Likewise.
89149
89150 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
89151
89152         Merge from tar.
89153         * lib/argp-help.c (make_hol, hol_append): Don't assume that
89154         SIZE_MAX is a valid preprocessor constant.
89155         (__argp_basename): Change from "#ifndef _LIBC"
89156         to "#ifndef __argp_short_program_name", so that
89157         we don't compile these functions for tar.
89158
89159         More merges from coreutils.
89160         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
89161         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
89162         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
89163         * lib/addext.c: Remove; no longer needed.
89164         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
89165         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
89166         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
89167         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
89168         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
89169         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
89170         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
89171         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
89172         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
89173         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
89174         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
89175         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
89176         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
89177         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
89178         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
89179         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
89180         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
89181         Import changes from coreutils.
89182
89183 2004-08-05  Simon Josefsson  <jas@extundo.com>
89184
89185         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
89186
89187 2004-08-05  Simon Josefsson  <jas@extundo.com>
89188
89189         * m4/getsubopt.m4: New file.
89190
89191 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
89192
89193         Merge from coreutils.
89194
89195         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
89196         * m4/getcwd-path-max.m4: New files.
89197
89198         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
89199         FILESYSTEM_PREFIX_LEN ->
89200         FILE_SYSTEM_PREFIX_LEN.
89201         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
89202         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
89203         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
89204         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
89205
89206         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
89207         prerequisite modules now handle the DOS stuff.
89208         Don't check for unistd.h.
89209
89210 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
89211
89212         Merge from coreutils.
89213
89214         * lib/.gdb-history: Remove; this doesn't belong here.
89215
89216         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
89217         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
89218         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
89219         * lib/getcwd.c: New files.
89220
89221         * lib/dirname.h: Include <stdbool.h>.
89222         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
89223         for consistency with POSIX terminology.  All uses changed.
89224         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
89225         (strip_trailing_slashes): Use bool for booleans.
89226         * lib/stripslash.c (strip_trailing_slashes): Likewise.
89227
89228         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
89229         sometimes returns a positive errno value even when it succeeds.
89230         (print_errno_message) [!LIBC]: Fall back on strerror if
89231         __strerror_r fails.
89232
89233         * lib/path-concat.c (mempcpy): Don't define if a system header defines
89234         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
89235         (longest_relative_suffix): New function.
89236         (path_concat): Use it.  Assume first argument is not NULL.
89237         Port to DOS.  Omit redundant separators.
89238         Report an error instead of returning NULL.
89239         Use mempcpy instead of memcpy.
89240         (xpath_concat): Remove: not declared or used.
89241
89242         * lib/same.h: Include <stdbool.h>
89243         (same_name): Return bool, not int.
89244         * lib/same.c (same_name): Likewise.
89245         (errno): Don't declare; we assume C89 or better now.
89246
89247         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
89248         if not already defined.
89249
89250         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
89251         * lib/dup-safer.c (errno): Likewise.
89252
89253 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
89254
89255         Merge from coreutils.
89256         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
89257         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
89258         * modules/path-concat: Don't depend on strdup.
89259
89260 2004-08-03  Simon Josefsson  <jas@extundo.com>
89261
89262         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
89263         * lib/progname.h: Don't include stdbool.h.
89264
89265 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
89266
89267         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
89268         * MODULES.html.sh (func_all_modules): Remove fatal.
89269
89270 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
89271
89272         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
89273
89274 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
89275
89276         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
89277         working.
89278
89279 2004-08-02  Simon Josefsson  <jas@extundo.com>
89280
89281         * lib/getsubopt.h: New file, with comments from Bruno Haible.
89282         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
89283         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
89284
89285 2004-08-01  Simon Josefsson  <jas@extundo.com>
89286
89287         * lib/xgetdomainname.c: Include stdlib.h, for free().
89288
89289 2004-07-19  Bruno Haible  <bruno@clisp.org>
89290
89291         * MODULES.html.sh (func_all_modules): Add dummy.
89292
89293 2004-07-16  Simon Josefsson  <jas@extundo.com>
89294
89295         * modules/dummy: New file.
89296
89297 2004-07-16  Simon Josefsson  <jas@extundo.com>
89298
89299         * lib/dummy.c: New file.
89300
89301 2004-07-16  Bruno Haible  <bruno@clisp.org>
89302
89303         * lib/backupfile.h: Add extern "C" for C++.
89304         * lib/closeout.h: Likewise.
89305         * lib/copy-file.h: Likewise.
89306         * lib/findprog.h: Likewise.
89307         * lib/full-write.h: Likewise.
89308         * lib/pathname.h: Likewise.
89309         * lib/progname.h: Likewise.
89310         * lib/stpcpy.h: Likewise.
89311         * lib/stpncpy.h: Likewise.
89312         * lib/strcase.h: Likewise.
89313         * lib/strstr.h: Likewise.
89314         * lib/xalloc.h: Likewise.
89315
89316         * lib/mbswidth.h: Add extern "C" for C++.
89317         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
89318
89319 2004-07-13  Robert Millan  <robertmh@gnu.org>
89320
89321         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
89322
89323 2004-07-09  Simon Josefsson  <jas@extundo.com>
89324
89325         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
89326         failed without this.)
89327
89328 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
89329
89330         * modules/chown (Files): Add lib/fchown-stub.c, since
89331         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
89332
89333 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
89334
89335         * lib/fchown-stub.c: New file.
89336
89337 2004-06-24  Jim Meyering  <jim@meyering.net>
89338
89339         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
89340
89341 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
89342
89343         * modules/argz: Omit "#include".
89344
89345         * MODULES.html.sh (func_all_modules): Add calloc, to match
89346         2004-06-01 addition of calloc module.
89347
89348 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
89349
89350         * m4/argz.m4: New file, which is autoupdated from libtool.
89351
89352 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
89353
89354         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
89355         libtool.
89356
89357 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
89358
89359         * config/srclist-update: Don't insist on "USA." before the
89360         close-comment, as libtool omits the period and puts the */ on a
89361         separate line.
89362         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
89363         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
89364
89365 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
89366
89367         * modules/argz: New file.
89368         * MODULES.html.sh (func_all_modules): Add argz.
89369
89370 2004-06-12  Jim Meyering  <jim@meyering.net>
89371         and  Paul Eggert  <eggert@cs.ucla.edu>
89372
89373         * modules/hash (Files): Add lib/xalloc.h.
89374         * modules/pipe (Depends-on): Add wait-process.
89375         * modules/stat (Depends-on): Add xalloc.
89376         * modules/userspec (Files): Add lib/userspec.h.
89377         * modules/xstrto
89378
89379         Upgrade from gettext-0.13.
89380         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
89381         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
89382         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
89383
89384 2004-06-10  Jim Meyering  <jim@meyering.net>
89385
89386         * lib/calloc.c: New file.
89387
89388 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
89389
89390         * lib/getdate.y (yylex): Allow space between sign and number.
89391         Problem reported by Dan Jacobson.
89392
89393 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
89394
89395         Merge from coreutils CVS.
89396
89397         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
89398         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
89399         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
89400         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
89401         xstrtol.m4: Fix copyright date and/or serial number.
89402
89403         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
89404         See if we need an fchown replacement.
89405         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
89406         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
89407         and use the replacement function if we detect either defect.
89408
89409         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
89410         gl_UTIMECMP.
89411
89412 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
89413         and  Jim Meyering  <jim@meyering.net>
89414
89415         Merge from coreutils CVS.
89416
89417         * lib/stat-macros.h: New file, with contents from file-type.h
89418         and coreutils' system.h.
89419         * lib/file-type.c: Include "stat-macros.h".
89420         * lib/file-type.h (file_type): Move all macro definitions to new file,
89421         stat-macros.h.
89422
89423         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
89424         Wrap old code with this conditional.
89425         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
89426         function that does not dereference symlinks.
89427         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
89428
89429         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
89430         dependency problems.
89431         (xreadlink): Accept new arg SIZE, for efficiency.
89432         All decls and uses changed.
89433         * lib/xreadlink.h: Include <stddef.h>, for size_t.
89434
89435         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
89436         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
89437
89438         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
89439         sysexits.h.
89440
89441 2004-06-01  Jim Meyering  <jim@meyering.net>
89442
89443         * m4/calloc.m4: New file.
89444
89445 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
89446
89447         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
89448         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
89449         Also, fix a typo in a diagnostic.
89450
89451 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
89452
89453         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
89454         or AC_FUNC_REALLOC.
89455
89456 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
89457
89458         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
89459         macros to be defined.
89460         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
89461         the allocator returns NULL because the requested size is zero.
89462
89463 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
89464
89465         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
89466         var.  Add comment explaining why libc still defines it.  This
89467         merges the following patch from glibc:
89468         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
89469
89470 2004-05-20  Andreas Schwab  <schwab@suse.de>
89471
89472         * m4/free.m4: Replace free if it not known to work, not the other
89473         way round.
89474
89475 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
89476
89477         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
89478         present in glibc since revision 1.1 of this file.
89479         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
89480         obstack_alignment_mask, obstack_alloc, obstack_base,
89481         obstack_blank, obstack_blank_fast, obstack_chunk_size,
89482         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
89483         obstack_grow0, obstack_init, obstack_int_grow,
89484         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
89485         obstack_next_free, obstack_object_size, obstack_ptr_grow,
89486         obstack_ptr_grow_fast, obstack_room): Remove declarations of
89487         nonexistent functions.
89488
89489 2004-05-18  Karl Berry  <karl@gnu.org>
89490
89491         * config/srclist.txt: break link for vasnprintf.c.
89492
89493 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
89494
89495         Port obstack to the AS/400, where pointers are 16 bytes wide and
89496         you cannot cast an integer to a valid pointer.  This patch is
89497         currently waiting to be integrated into glibc; see
89498         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
89499
89500         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
89501         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
89502         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
89503         (struct obstack): temp member is now a union of a pointer and
89504         an integer, instead of an integer.  All integer uses changed.
89505         This does not affect the physical layout of struct obstack,
89506         except on hosts (like the AS/400) where the size or alignment of
89507         void * is greater than that of ptrdiff_t.
89508         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
89509         __STDC__)]: Store temporary in pointer member of union, not
89510         integer member.
89511         * lib/obstack.c: Include <stddef.h>, for offsetof.
89512         (struct fooalign): Remove; it doesn't need a name.
89513         (union fooround): Change double to long double, and add void *.
89514         (DEFAULT_ALIGNMENT): Use offsetof to compute.
89515         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
89516         not a macro.  Hence the values are always int; so remove all
89517         casts-to-int in uses.
89518
89519 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
89520
89521         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
89522         we can get this patch merged into glibc.
89523
89524 2004-05-17  Derek R. Price  <derek@ximbiot.com>
89525             Paul Eggert  <eggert@cs.ucla.edu>
89526
89527         * m4/argp: Depend on alloca.
89528
89529 2004-05-17  Derek R. Price  <derek@ximbiot.com>
89530             Paul Eggert  <eggert@cs.ucla.edu>
89531
89532         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
89533         freecoding.
89534
89535 2004-05-17  Bruno Haible  <bruno@clisp.org>
89536
89537         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
89538         precision that consists of a '.' followed by an empty digit string.
89539         Patch by Tor Lillqvist <tml@iki.fi>.
89540
89541 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
89542
89543         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
89544         for backward compatibility with older code.  We need our own
89545         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
89546         it under some other name, and our alloca.h will define it.
89547
89548 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
89549             Derek Price  <derek@ximbiot.com>
89550
89551         * lib/alloca.c: Include <alloca.h>, to get our interface.
89552         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
89553         include <alloca.h> first.  Use C89 prototype for alloca; this
89554         requires including <stddef.h> for size_t.  Use extern "C" if C++.
89555         Use #elif for simplicity, since we can assume C89 now.
89556         Don't try to source the system alloca.h since it will not be found
89557         and to prevent recursively including its replacement.
89558         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
89559         * lib/regex.c: Likewise.
89560
89561 2004-05-16  Derek Price  <derek@ximbiot.com>
89562             Paul Eggert  <eggert@cs.ucla.edu>
89563
89564         getline cleanup.  This changes the getndelim2 API: both order of
89565         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
89566         no delimiter).
89567
89568         * lib/getline.c: Don't include stddef.h or stdio.h, since our
89569         interface does that.
89570         (getline): Always use getdelim, so that we don't have two
89571         copies of this code.
89572         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
89573         if available.
89574         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
89575         (GETNDELIM2_MAXIMUM): New macro.
89576         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
89577         instead of the old practice of delim2==0.  All callers changed.
89578         Return -1 on overflow, instead of returning junk.
89579         Do not set *linesize unless allocation succeeds.
89580         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
89581         that we include sys/types.h.
89582         * lib/getnline.h: Likewise.
89583         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
89584         (getndelim2): Reorder arguments.
89585         * lib/getnline.c (getnline, getndelim):
89586         Don't discard the NMAX argument.
89587         (getnline): Invoke getndelim, to avoid code duplication.
89588         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
89589         of (size_t) -1 by callers of the getnline family.
89590
89591 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
89592
89593         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
89594         Check for gettimeofday.
89595         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
89596         Check for settimeofday, stime.
89597
89598 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
89599
89600         * lib/nanosleep.c (suspended): Change its type from int to
89601         sig_atomic_t volatile.
89602         (first_call): Make it private to rpl_nanosleep, and have it
89603         be zero initially as that's a bit faster.
89604         (my_usleep): Round up fractional times instead of truncating them,
89605         as this is the usual meaning for 'sleep'.
89606
89607         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
89608         doesn't work.
89609         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
89610         (ENOSYS): Define if not defined.
89611         (settime): Fall back on stime if it exists and settimeofday fails.
89612         But don't bother with fallbacks if a method fails with errno == EPERM.
89613
89614 2004-05-11  Jim Meyering  <jim@meyering.net>
89615
89616         Prior to this change, the save_cwd caller required read access to the
89617         current directory on most systems (ones with the fchdir function).
89618
89619         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
89620         fails, try write-only, and finally, resort to using xgetcwd.
89621
89622 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
89623
89624         * lib/obstack.c, obstack.h: Import changes from libc.
89625
89626 2004-04-28  Bruno Haible  <bruno@clisp.org>
89627
89628         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
89629         also implicitly appends .exe to executables.
89630         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
89631         accepts Windows pathnames.
89632         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
89633         Treat Cygwin like Windows, since it now accepts Windows pathnames.
89634         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
89635         Treat Cygwin like Windows, since it now accepts Windows pathnames.
89636         Reported by Derek Robert Price <derek@ximbiot.com>.
89637
89638 2004-04-21  Karl Berry  <karl@gnu.org>
89639
89640         * config/srclist.txt (localcharset.c): break sync.
89641
89642 2004-04-20  Paul Eggert  <eggert@twinsun.com>
89643
89644         * m4/host-os.m4: Add a copyright notice.
89645
89646 2004-04-20  Jim Meyering  <jim@meyering.net>
89647
89648         Change UTILS_ to gl_ in AC_DEFINE'd names.
89649         Change utils_- and jm_-prefixed variables, too.
89650         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
89651         UTILS_FUNC_MKDIR_TRAILING_SLASH.
89652         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
89653
89654         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
89655         Don't emit trailing blanks.
89656         Also rename jm_-prefixed variables to have gl_ prefix.
89657
89658         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
89659         Also rename jm_-prefixed variables to have gl_ prefix.
89660
89661         * m4/jm-macros.m4: Reflect the renamings.
89662         * m4/prereq.m4: Likewise.
89663
89664 2004-04-20  Jim Meyering  <jim@meyering.net>
89665
89666         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
89667         memory.
89668
89669 2004-04-20  Jim Meyering  <jim@meyering.net>
89670             Bruno Haible  <bruno@clisp.org>
89671
89672         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
89673         memory when realloc fails.
89674
89675 2004-04-19  Jim Meyering  <jim@meyering.net>
89676
89677         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
89678         now that readutmp.c may call `free (0)'.
89679
89680 2004-04-19  Bruno Haible  <bruno@clisp.org>
89681
89682         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
89683         * m4/inttypes_h.m4: Likewise.
89684         * m4/stdint_h.m4: Likewise.
89685         * m4/intmax_t.m4: Likewise.
89686         * m4/uintmax_t.m4: Likewise.
89687
89688 2004-04-18  Jim Meyering  <jim@meyering.net>
89689
89690         * m4/prereq.m4: Don't forbid jm_ prefix.
89691
89692         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
89693         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
89694         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
89695         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
89696         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
89697         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
89698         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
89699         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
89700         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
89701         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
89702         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
89703         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
89704         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
89705         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
89706         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
89707         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
89708         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
89709         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
89710         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
89711
89712 2004-04-18  Jim Meyering  <jim@meyering.net>
89713
89714         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
89715         failure, don't leak memory and do call END_UTMP_ENT.
89716
89717 2004-04-16  Jim Meyering  <jim@meyering.net>
89718
89719         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
89720         coreutils' stat program.
89721         (gl_PREREQ): Don't require jm_PREREQ_STAT.
89722
89723 2004-04-11  Paul Eggert  <eggert@twinsun.com>
89724
89725         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
89726         C89.
89727         (CHAR_BIT): Remove, since we assume C89.
89728         Include <stdint.h> if available, as per current Autoconf CVS advice.
89729
89730 2004-03-31  Jim Meyering  <jim@meyering.net>
89731
89732         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
89733         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
89734         * m4/xalloc.m4: Likewise.
89735
89736 2004-03-30  Paul Eggert  <eggert@twinsun.com>
89737
89738         Merge from coreutils.
89739
89740         * m4/inttostr.m4: New file.
89741         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
89742         Require AM_STDBOOL_H and gl_TIMESPEC instead.
89743         Require gl_CLOCK_TIME.
89744         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
89745
89746 2004-03-30  Paul Eggert  <eggert@twinsun.com>
89747
89748         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
89749         not bool, to be more consistent with Unix conventions.
89750         Suggested by Bruno Haible.
89751
89752         Merge from coreutils.
89753
89754         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
89755         * lib/umaxtostr.c: New files.
89756
89757         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
89758         the usual <time.h> dance.
89759         (get_date): Change signature to support fractional time stamps.
89760         All callers changed.
89761         * lib/getdate.y: Include "getdate.h" first, as we can now
89762         assume C89 and don't need to worry about 'const'.
89763         Similarly, include "unlocked-io.h" near start, not in middle.
89764         Include <limits.h>.
89765         (textint.value): Use long int rather than int.
89766         (textint.digits): Use size_t rather than int.
89767         (BILLION, LOG10_BILLION): New constants.
89768         (parser_control): New member rel_ns.  Members day_ordinal,
89769         time_zone, month, day, hour, minutes, rel_year, rel_month,
89770         rel_day, rel_hour, rel_minutes, rel_seconds
89771         are now long int, not int.  Member seconds is now struct timespec,
89772         not int.  New member timespec_seen.  Members dates_seen, days_seen,
89773         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
89774         not int.
89775         (%union.intval): Now long int, not int.
89776         New member timespec.
89777         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
89778         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
89779         (spec): Now is a timespec or an item list.
89780         (timespec, items): New nonterminals.
89781         (time, rel, relunit, number, get_date):
89782         Add support for fractional seconds.
89783         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
89784         (gmtime, localtime, mktime): Remove decls; not needed with C89.
89785         (to_hour): First arg is now long int, not int.
89786         (to_year): Returns long int, not int.
89787         Don't treat year -70 like 70.
89788         (tm_diff): Returns long int, not int.
89789         (lookup_word): Use bool instead of int when appropriate.
89790         (yylex): Use size_t for count, not int.
89791         Detect overflow when parsing large integer constants.
89792         Add support for fractions.
89793         (get_date): Make pointers 'const' if possible.
89794         Use more-portable code to detect integer overflow.
89795         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
89796         Don't use ctime; it's not reliable if the year has >4 digits.
89797
89798         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
89799         This is for compatibility with BSD.
89800
89801         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
89802         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
89803         From coreutils' system.h.
89804
89805         * lib/userspec.c: Don't include "posixver.h".
89806         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
89807         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
89808         compatible extension.  Simplify code by removing a boolean int
89809         that was always nonzero if a string was nonnull.
89810
89811 2004-03-30  Jim Meyering  <jim@meyering.net>
89812
89813         Merge from coreutils.
89814
89815         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
89816         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
89817         on some systems one must include <grp.h> before it.
89818         Reported by Christian Krackowizer.
89819
89820 2004-03-30  Jim Meyering  <jim@meyering.net>
89821
89822         Merge from coreutils.
89823
89824         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
89825
89826         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
89827         an empty input stream.
89828
89829         * lib/readtokens.c: Include <stdbool.h>.
89830         (readtoken): Use `size_t' rather than int/long.
89831         All callers adjusted.
89832         Use `bool' rather than `int' where appropriate.
89833         Use memset rather than an explicit loop.
89834         Use x2nrealloc rather than xrealloc.
89835         Allow the use of `\0' as a delimiter.
89836         (readtokens): Likewise.
89837         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
89838
89839 2004-03-30  Jim Meyering  <jim@meyering.net>
89840
89841         * m4/realloc.m4: Remove file, since now it does no more than
89842         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
89843         the `configure.ac' section of module/realloc.
89844         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
89845
89846 2004-03-30  Bruno Haible  <bruno@clisp.org>
89847
89848         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
89849         nonnull.
89850
89851 2004-03-29  Paul Eggert  <eggert@twinsun.com>
89852
89853         Merge changes to getloadavg.c from coreutils and Emacs.
89854
89855         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
89856         Define to an expression, not to the empty string.
89857         Include cloexec.h and xalloc.h.
89858         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
89859         Use set_cloexec_flag rather than rolling our own.
89860         * lib/cloexec.c, lib/cloexec.h: New files.
89861
89862 2004-03-29  Paul Eggert  <eggert@twinsun.com>
89863
89864         * m4/cloexec.m4: New file.
89865
89866 2004-03-18  Paul Eggert  <eggert@twinsun.com>
89867
89868         * lib/getopt.h: Sync with libc CVS.
89869
89870 2004-03-18  Paul Eggert  <eggert@twinsun.com>
89871             Bruno Haible  <bruno@clisp.org>
89872
89873         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
89874         mbswidth.
89875
89876 2004-03-18  Paul Eggert  <eggert@twinsun.com>
89877             Bruno Haible  <bruno@clisp.org>
89878
89879         * lib/mbswidth.h: Include <wchar.h> only if
89880         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
89881         <wchar.h>.
89882         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
89883
89884 2004-03-09  Paul Eggert  <eggert@twinsun.com>
89885
89886         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
89887         Sync with libc CVS.
89888         * lib/getopt_int.h: New file, also synced from libc.
89889
89890 2004-03-09  Paul Eggert  <eggert@twinsun.com>
89891
89892         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
89893         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
89894         Bring back getopt.c, getopt.h, getopt1.c.
89895
89896 2004-03-07  Paul Eggert  <eggert@twinsun.com>
89897
89898         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
89899         All uses changed.  Check for sa_sigaction member; this fixes
89900         a bug first reported by Jason Andrade in
89901         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
89902
89903 2004-03-07  Paul Eggert  <eggert@twinsun.com>
89904
89905         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
89906         '#if' expressions.  Unlike the code it replaces, it does not
89907         depend on (defined _SC_PAGESIZE).  However, it does depend on
89908         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
89909         first reported by Jason Andrade in
89910         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
89911
89912 2004-02-25  Simon Josefsson  <jas@extundo.com>
89913
89914         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
89915
89916 2004-02-25  Simon Josefsson  <jas@extundo.com>
89917
89918         * lib/strdup.h: New file.
89919         * lib/strdup.c: Include it.
89920         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
89921         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
89922
89923 2004-02-23  Karl Berry  <karl@gnu.org>
89924
89925         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
89926         (from fencepost.gnu.org:/gd/gnuorg).
89927
89928 2004-02-23  Karl Berry  <karl@gnu.org>
89929
89930         * config/srclistvars.sh (GNUORG) [karl]: redefine.
89931         * config/srclist.txt: add maintain/standards documents.
89932
89933 2004-02-18  Bruno Haible  <bruno@clisp.org>
89934
89935         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
89936         Reported by Derek Robert Price <derek@ximbiot.com>.
89937
89938 2004-02-16  Karl Berry  <karl@gnu.org>
89939
89940         * config/mkinstalldirs, install-sh: update from automake.
89941
89942 2004-02-06  Karl Berry  <karl@gnu.org>
89943
89944         * m4/po.m4: update from gettext 0.14.1.
89945
89946 2004-02-06  Karl Berry  <karl@gnu.org>
89947
89948         * lib/config.charset: update from gettext 0.14.1.
89949
89950 2004-02-05  Paul Eggert  <eggert@twinsun.com>
89951
89952         Add comments and code, prompted by suggestions from Bruno Haible
89953         for sh-quote.
89954         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
89955         describing the enum quoting_style values.
89956         * lib/quotearg.c (quotearg_alloc): New function.
89957         (quotearg_buffer_restyled): Treat lone { and } as special.
89958         Treat = as special.  Work around bug with older shells
89959         that "see" a '\' that is really the 2nd byte of a multibyte char.
89960         Quote empty string with shell_quoting_style.
89961
89962 2004-02-03  Bruno Haible  <bruno@clisp.org>
89963
89964         * m4/pipe.m4: New file, from GNU gettext.
89965
89966 2004-02-03  Bruno Haible  <bruno@clisp.org>
89967
89968         * lib/pipe.h: New file, from GNU gettext.
89969         * lib/pipe.c: New file, from GNU gettext.
89970
89971 2004-01-27  Bruno Haible  <bruno@clisp.org>
89972
89973         * m4/execute.m4: New file, from GNU gettext.
89974
89975 2004-01-27  Bruno Haible  <bruno@clisp.org>
89976
89977         * lib/execute.h: New file, from GNU gettext.
89978         * lib/execute.c: New file, from GNU gettext.
89979         * lib/w32spawn.h: New file, from GNU gettext.
89980
89981 2004-01-24  Paul Eggert  <eggert@twinsun.com>
89982
89983         Merge from diffutils.
89984
89985         * lib/file-type.c (file_type): Add typed memory objects.
89986         * lib/file-type.h (S_TYPEISTMO): New macro.
89987
89988         * lib/c-stack.h (c_stack_action): Remove argv argument.
89989         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
89990         (die): Don't calculate message unless segv_action returns.
89991         (get_stack_location, min_address_from_argv, max_address_from_argv,
89992         volatile stack_base, volatile_stack_size): Remove.
89993         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
89994         that every segmentation violation is a stack overflow.  (Ouch!)
89995         See Debian bug 136249 (still outstanding) for more info about why
89996         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
89997
89998 2004-01-24  Paul Eggert  <eggert@twinsun.com>
89999
90000         Exit-status fix from coreutils.
90001
90002         Use exit_failure consistently in place of EXIT_FAILURE,
90003         so that program exit statuses are consistent on failure.
90004
90005         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
90006         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
90007         * lib/argmatch.h: Comment fix to match the above.
90008         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
90009         Now a macro referring to exit_failure, instead of a separate
90010         variable.  Include "exitfail.h" to get it.
90011         * lib/xstrtol.h: Include "exitfail.h".
90012         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
90013
90014         * lib/long-options.c (parse_long_options): Use prototype
90015         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
90016         for clarity.
90017
90018 2004-01-21  Jim Meyering  <jim@meyering.net>
90019
90020         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
90021         so as not to conflict with a different-sized __mktime_internal
90022         function in GNU libc.
90023         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
90024         Problem building statically-linked `ls' reported by Michael Brunnbauer.
90025
90026 2004-01-20  Karl Berry  <karl@gnu.org>
90027
90028         * config/config.guess: update from config.
90029
90030         * config/srclistvars.sh: GNUWWWLICENSES for karl.
90031
90032 2004-01-20  Bruno Haible  <bruno@clisp.org>
90033
90034         Safer stack allocation.
90035         * lib/setenv.c: Include allocsa.h.
90036         (alloca): Remove fallback definition.
90037         (freea): Remove macro.
90038         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
90039         instead of freea.
90040
90041 2004-01-20  Bruno Haible  <bruno@clisp.org>
90042
90043         * m4/eealloc.m4: New file, from GNU gettext.
90044
90045 2004-01-20  Bruno Haible  <bruno@clisp.org>
90046
90047         * m4/allocsa.m4: New file, from GNU gettext.
90048
90049 2004-01-20  Bruno Haible  <bruno@clisp.org>
90050
90051         * lib/xallocsa.h: New file, from GNU gettext.
90052         * lib/xallocsa.c: New file, from GNU gettext.
90053
90054 2004-01-20  Bruno Haible  <bruno@clisp.org>
90055
90056         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
90057
90058 2004-01-20  Bruno Haible  <bruno@clisp.org>
90059
90060         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
90061         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
90062         specially.
90063
90064 2004-01-20  Bruno Haible  <bruno@clisp.org>
90065
90066         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
90067         patch.
90068
90069 2004-01-20  Bruno Haible  <bruno@clisp.org>
90070
90071         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
90072
90073 2004-01-20  Bruno Haible  <bruno@clisp.org>
90074
90075         * lib/eealloc.h: New file.
90076
90077 2004-01-20  Bruno Haible  <bruno@clisp.org>
90078
90079         * lib/binary-io.h: Avoid warnings on Cygwin.
90080
90081 2004-01-20  Bruno Haible  <bruno@clisp.org>
90082
90083         * lib/allocsa.h: New file, from GNU gettext.
90084         * lib/allocsa.c: New file, from GNU gettext.
90085
90086 2004-01-18  Karl Berry  <karl@gnu.org>
90087
90088         * doc/gpl.texi, doc/lgpl.texi: new files.
90089
90090 2004-01-18  Karl Berry  <karl@gnu.org>
90091
90092         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
90093         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
90094
90095 2004-01-15  Paul Eggert  <eggert@twinsun.com>
90096
90097         Merge from coreutils.
90098
90099         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
90100         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
90101         (gl_DEFAULT_POSIX2_VERSION): Move
90102         the documentation from 'configure' into 'config.hin',
90103         so that 'configure --help' isn't burdened by it and
90104         we don't have to worry about its formatting there.
90105         Reword the documentation so that it's more succinct
90106         and can be run together into a single paragraph.
90107         * m4/same.m4 (gl_SAME): Check for pathconf.
90108
90109 2004-01-15  Paul Eggert  <eggert@twinsun.com>
90110
90111         Merge from coreutils.
90112
90113         * lib/posixver.c: Include posixver.h.
90114
90115         * lib/same.c: Include <stdbool.h>, <limits.h>.
90116         (_POSIX_NAME_MAX): Define if not defined.
90117         (MIN): New macro.
90118         (same_name): If file names are silently truncated, report
90119         that the file names are the same if they are the same after
90120         the silent truncation.
90121
90122         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
90123         conversion function.
90124         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
90125         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
90126         longer needed.
90127
90128 2004-01-15  Jim Meyering  <jim@meyering.net>
90129
90130         Merge from coreutils.
90131
90132         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
90133         if no library is required.
90134         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
90135         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
90136         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
90137         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
90138         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
90139         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
90140         value, $ac_cv_search_crypt, if it's "none required".
90141         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
90142         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
90143         not gl_FUNC_GETLOADAVG.
90144         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
90145         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
90146
90147 2004-01-15  Jim Meyering  <jim@meyering.net>
90148
90149         Merge from coreutils.
90150
90151         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
90152         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
90153         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
90154
90155         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
90156         optional configure-time default.
90157
90158         * lib/version-etc.c (version_etc_copyright): Update copyright date.
90159
90160         * lib/xreadlink.c (xreadlink): Correct outdated comment.
90161
90162 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
90163
90164         Merge from coreutils.
90165
90166         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
90167         value, $ac_cv_search_nanosleep, if it's "none required".
90168
90169 2004-01-14  Paul Eggert  <eggert@twinsun.com>
90170
90171         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
90172         with like-named macro in fnmatch.c.
90173         (EXT): Use an internal constant instead.
90174
90175         Merge fnmatch patches from glibc.
90176         * lib/fnmatch.c (mbsinit): Remove define.
90177         Add libc_hidden_ver (__fnmatch, fnmatch).
90178         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
90179         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
90180
90181 2004-01-14  Karl Berry  <karl@gnu.org>
90182
90183         * config/install-sh: update from automake.
90184
90185 2004-01-13  Karl Berry  <karl@gnu.org>
90186
90187         * config/install-sh: update from automake.
90188
90189 2004-01-09  Karl Berry  <karl@gnu.org>
90190
90191         * config/install-sh: update from automake.
90192
90193 2004-01-05  Karl Berry  <karl@gnu.org>
90194
90195         * config/config.{sub,guess}: update from config.
90196
90197 2003-12-31  Karl Berry  <karl@gnu.org>
90198
90199         * config/depcomp: update from automake.
90200
90201 2003-12-14  Karl Berry  <karl@gnu.org>
90202
90203         * lib/config.charset: update from gettext-runtime.
90204
90205 2003-12-03  Paul Eggert  <eggert@twinsun.com>
90206
90207         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
90208         Bug reported by Alfred M. Szmidt.
90209
90210 2003-12-03  Bruno Haible  <bruno@clisp.org>
90211
90212         * m4/gettext.m4: Upgrade from gettext-0.13.
90213         * m4/po.m4: Upgrade from gettext-0.13.
90214         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
90215         * m4/intmax.m4: New file, from gettext-0.13.
90216         * m4/printf-posix.m4: New file, from gettext-0.13.
90217
90218 2003-11-29  Karl Berry  <karl@gnu.org>
90219
90220         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
90221
90222 2003-11-25  Paul Eggert  <eggert@twinsun.com>
90223             Bruno Haible  <bruno@clisp.org>
90224
90225         * lib/printf-parse.h: Don't include sys/types.h.
90226         (ARG_NONE): New macro.
90227         (char_directive): Change type of *arg_index fields to size_t.
90228         * lib/printf-parse.c: Don't include sys/types.h.
90229         (SSIZE_MAX): Remove macro.
90230         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
90231         Remove unnecessary overflow check.
90232         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
90233         fields.
90234
90235 2003-11-25  Bruno Haible  <bruno@clisp.org>
90236
90237         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
90238
90239 2003-11-25  Bruno Haible  <bruno@clisp.org>
90240
90241         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
90242         gt_TYPE_SSIZE_T.
90243
90244 2003-11-24  Paul Eggert  <eggert@twinsun.com>
90245
90246         * modules/alloca: Remove dependency on xalloc.
90247
90248 2003-11-24  Paul Eggert  <eggert@twinsun.com>
90249
90250         * lib/alloca.c: Remove dependency on xalloc module.
90251         (xalloc_die): Remove.
90252         (memory_full) [!defined emacs]: New macro.
90253         [!defined emacs]: Don't include xalloc.h.
90254         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
90255         address arithmetic overflows.  Change datatypes a bit to avoid
90256         unnecessary casts.
90257
90258 2003-11-22  Jim Meyering  <jim@meyering.net>
90259
90260         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
90261         s/size/size_t/.
90262
90263 2003-11-21  Karl Berry  <karl@gnu.org>
90264
90265         * config/config.{sub,guess}: update from config.
90266
90267 2003-11-18  Karl Berry  <karl@gnu.org>
90268
90269         * config/config.{sub,guess}: update from config.
90270
90271         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
90272
90273 2003-11-17  Paul Eggert  <eggert@twinsun.com>
90274
90275         * README: Mention that S+T cannot overflow if S is the size of
90276         an existing object and T is sufficiently small.
90277
90278 2003-11-17  Jim Meyering  <jim@meyering.net>
90279
90280         On systems without utime and without a utimes function capable of
90281         dealing with a NULL struct utimbuf* argument, this utime replacement
90282         could -- in unusual circumstances -- leak a file descriptor.
90283         * lib/utime.c: Include <unistd.h> and <errno.h>.
90284         (utime_null): Be sure to close `fd' and to preserve errno.
90285         Reported by Geoff Collyer via Arnold Robbins.
90286
90287 2003-11-17  Bruno Haible  <bruno@clisp.org>
90288
90289         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
90290         (Depends-on): Add xsize.
90291
90292 2003-11-17  Bruno Haible  <bruno@clisp.org>
90293
90294         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
90295
90296 2003-11-17  Bruno Haible  <bruno@clisp.org>
90297
90298         * lib/vasnprintf.c (alloca): Remove fallback definition.
90299         (freea): Remove definition.
90300         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
90301         Reported by Paul Eggert.
90302
90303 2003-11-16  Paul Eggert  <eggert@twinsun.com>
90304             Bruno Haible  <bruno@clisp.org>
90305
90306         Protect against address arithmetic overflow.
90307         * lib/printf-args.h: Include stddef.h.
90308         (arguments): Change type of field 'count' to size_t.
90309         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
90310         'unsigned int' where appropriate.
90311         * lib/printf-parse.h: Include sys/types.h.
90312         (char_directive): Change type of *arg_index fields to ssize_t.
90313         (char_directives): Change type of fields 'count', max_*_length to
90314         size_t.
90315         * lib/printf-parse.c: Include sys/types.h and xsize.h.
90316         (SSIZE_MAX): Define fallback value.
90317         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
90318         instead of 'int' where appropriate. Check a_allocated, d_allocated
90319         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
90320         * lib/vasnprintf.c: Include xsize.h.
90321         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
90322         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
90323         overflow. Avoid wraparound when converting a width or precision from
90324         decimal to binary.
90325
90326 2003-11-16  Bruno Haible  <bruno@clisp.org>
90327
90328         Update from GNU gettext.
90329         * lib/printf-parse.c: Generalize to it can be compiled for wide
90330         strings.
90331         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
90332         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
90333         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
90334         SNPRINTF): New macros.
90335         Don't include <alloca.h> if the file is used inside libintl.
90336         (local_wcslen): New function, for Solaris 2.5.1.
90337         (VASNPRINTF): Use it instead of wcslen.
90338
90339 2003-11-16  Bruno Haible  <bruno@clisp.org>
90340
90341         * lib/xsize.h (xmax): New function.
90342         (xsum, xsum3, xsum4): Declare as "pure" functions.
90343
90344 2003-11-12  Paul Eggert  <eggert@twinsun.com>
90345
90346         * modules/xalloc (Files): Undo latest change, since xalloc.h
90347         no longer needs SIZE_MAX or PTRDIFF_MAX.
90348
90349 2003-11-12  Paul Eggert  <eggert@twinsun.com>
90350
90351         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
90352         gl_PTRDIFF_MAX.
90353
90354 2003-11-12  Paul Eggert  <eggert@twinsun.com>
90355
90356         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
90357         "return", to pacify some unknown compiler.  Problem reported
90358         by Joerg Schilling.
90359
90360 2003-11-12  Paul Eggert  <eggert@twinsun.com>
90361
90362         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
90363         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
90364         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
90365         heuristic is just as accurate as far as we know, and it removes a
90366         dependency on size_max.m4 and ptrdiff_max.m4.
90367
90368 2003-11-11  Bruno Haible  <bruno@clisp.org>
90369
90370         * modules/xsize (Files): Add m4/size_max.m4.
90371         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
90372
90373 2003-11-11  Bruno Haible  <bruno@clisp.org>
90374
90375         * m4/size_max.m4: New file.
90376         * m4/ptrdiff_max.m4: New file.
90377         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
90378         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
90379         (gl_XALLOC): Invoke it.
90380
90381 2003-11-11  Bruno Haible  <bruno@clisp.org>
90382
90383         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
90384         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
90385         defined.
90386
90387 2003-11-10  Paul Eggert  <eggert@twinsun.com>
90388
90389         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
90390         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
90391         rejected some allocations of exactly SIZE_MAX - 2 bytes.
90392         From Bruno Haible.
90393         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
90394         not (size_t) -1, since it's defined here.
90395
90396 2003-11-09  Karl Berry  <karl@gnu.org>
90397
90398         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
90399
90400 2003-11-06  Paul Eggert  <eggert@twinsun.com>
90401
90402         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
90403         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
90404         Reject sizes of exactly SIZE_MAX bytes.
90405         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
90406         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
90407
90408 2003-11-05  Bruno Haible  <bruno@clisp.org>
90409
90410         * lib/xsize.h: Include limits.h, to avoid a possible collision with
90411         SIZE_MAX defined in <limits.h> on Solaris.
90412
90413 2003-11-04  Jim Meyering  <jim@meyering.net>
90414
90415         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
90416         variable names, rather than @VAR@.
90417         * modules/poll: Likewise.
90418
90419 2003-11-04  Bruno Haible  <bruno@clisp.org>
90420
90421         * modules/xsize: New file.
90422         * modules/linebreak: Depend on xsize.
90423         * MODULES.html.sh (func_all_modules): Add xsize.
90424
90425 2003-11-04  Bruno Haible  <bruno@clisp.org>
90426
90427         * m4/xsize.m4: New file.
90428
90429 2003-11-04  Bruno Haible  <bruno@clisp.org>
90430
90431         * lib/xsize.h: New file.
90432         * lib/linebreak.c: Include xsize.h.
90433         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
90434         argument for overflow.
90435         Suggested by Paul Eggert.
90436
90437 2003-11-03  Karl Berry  <karl@gnu.org>
90438
90439         * config/config.{guess,sub}: update from config.
90440
90441 2003-11-03  Jim Meyering  <jim@meyering.net>
90442
90443         * modules/userspec (lib_SOURCES): Add userspec.h.
90444         (Include): Add "userspec.h".
90445         Improve description.
90446
90447 2003-11-03  Jim Meyering  <jim@meyering.net>
90448
90449         * lib/userspec.c: Include "userspec.h".
90450         * lib/userspec.h: New file.
90451
90452 2003-11-03  Bruno Haible  <bruno@clisp.org>
90453
90454         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
90455
90456 2003-11-03  Bruno Haible  <bruno@clisp.org>
90457
90458         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
90459         available, to avoid (extremely rare) race condition.
90460         Suggested by Paul Eggert.
90461
90462 2003-11-02  Karl Berry  <karl@gnu.org>
90463
90464         * config/srclist.txt (vasprintf.c): sync broken, sigh.
90465
90466 2003-10-31  Paul Eggert  <eggert@twinsun.com>
90467
90468         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
90469         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
90470         (read_filesystem_list): Set and use me_type_malloced.
90471         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
90472         whatever the type happens to be), for brevity and consistency.
90473         Check for size calculation overflow on Alphas running OSF/1.
90474
90475 2003-10-31  Jim Meyering  <jim@meyering.net>
90476
90477         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
90478
90479         * lib/linebuffer.c: Include <string.h> for declaration of memset.
90480
90481 2003-10-30  Paul Eggert  <eggert@twinsun.com>
90482             Bruno Haible  <bruno@clisp.org>
90483
90484         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
90485         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
90486
90487 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
90488
90489         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
90490         netbsd*-gnu*.  Suggested by Robert Millan.
90491
90492 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90493
90494         * modules/group-member: Depend on stdbool.
90495
90496 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90497
90498         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
90499
90500 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90501
90502         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
90503         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
90504         after the 'gnu' in these cases.  This fixes some bugs in the
90505         previous change, and is based on suggestions by Robert Millan.
90506
90507 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90508
90509         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
90510         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
90511         no longer needed.
90512         * lib/quotearg.c (quotearg_n_options): Use it.
90513         * lib/group-member.c: Include <stdbool.h>.
90514         (free_group_info): Arg is now const *; don't free arg.
90515         (get_group_info): Now returns bool and accepts struct group_info *,
90516         rather than returning a malloc'ed struct group_info *.
90517         All uses changed.  Check for overflow in internal size calculation.
90518
90519         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
90520         rather than xmalloc/xrealloc.
90521         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
90522         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
90523         conformance bug: the old code used a pointer after freeing the
90524         storage that it addressed.
90525         * lib/hash.c (hash_initialize): Simplify the code by using
90526         xalloc_oversized rather than doing it by hand.
90527         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
90528         the buffer preserved.  Use free and xmalloc instead.
90529         * lib/quotearg.c (quotearg_n_options): Likewise.
90530         Use a simpler test for size overflow.  Don't use xalloc_oversized
90531         because unsigned int might be wider than size_t (!); this suggests
90532         that we should switch from unsigned int to size_t for slot numbers.
90533
90534 2003-10-28  Paul Eggert  <eggert@twinsun.com>
90535
90536         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
90537         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
90538         NetBSD kernels.  Requested by Richard Stallman.
90539
90540 2003-10-27  Paul Eggert  <eggert@twinsun.com>
90541
90542         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
90543         to allocate the returned structure.  Do not allocate a subarray,
90544         as x2nrealloc will do that.
90545         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
90546         instead of xnrealloc.
90547         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
90548
90549 2003-10-27  Bruno Haible  <bruno@clisp.org>
90550
90551         * lib/stdbool_.h: Better support for BeOS.
90552
90553 2003-10-26  Paul Eggert  <eggert@twinsun.com>
90554
90555         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
90556         now uses inline.
90557
90558 2003-10-26  Paul Eggert  <eggert@twinsun.com>
90559
90560         * lib/xalloc.h (xalloc_oversized): New static inline function, for
90561         callers that want to do their own size-overflow checking.  Include
90562         <stdbool.h>, since xalloc_oversized returns bool.
90563         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
90564         to use xalloc_oversized.
90565
90566         Add two functions x2realloc, x2nrealloc, for programs that grow
90567         arrays dynamically by doubling their sizes.
90568         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
90569         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
90570         New functions.
90571
90572         Port to C99 semantics for 'inline' of external functions.
90573         Bug reported by Bruno Haible.
90574         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
90575         with the old contents of xnmalloc.
90576         (xnmalloc, xmalloc): Use it.
90577         (xnrealloc_inline): New static inline function,
90578         with the old contents of xnrealloc.
90579         (xnrealloc, xrealloc): Use it.
90580
90581         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
90582         that.
90583
90584 2003-10-26  Karl Berry  <karl@gnu.org>
90585
90586         * config/srclist.txt (COPYING.DOC): no longer available from
90587         /gd/gnuorg; don't know where the ultimate source is.
90588
90589 2003-10-25  Paul Eggert  <eggert@twinsun.com>
90590
90591         Fix several address-calculation bugs in the hash modules,
90592         plus some minor code cleanup.
90593
90594         * lib/hash.h: Include <stdbool.h>, for bool.
90595         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
90596         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
90597         hash_get_n_entries, hash_get_max_bucket_length,
90598         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
90599         hash_rehash): Use size_t rather than unsigned.
90600         * lib/hash.c (struct hash_table, hash_get_n_buckets,
90601         hash_get_n_buckets_used, hash_get_n_entries,
90602         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
90603         hash_get_entries, hash_do_for_each, hash_string, is_prime,
90604         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
90605         Likewise.
90606         (SIZE_MAX): Define if not defined.
90607         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
90608         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
90609         hash_print):
90610         Use const * when possible.
90611         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
90612         (check_tuning): Fix bug: if tuning parameters were very close to
90613         0 or 1, rounding errors could have caused subscript violations.
90614         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
90615         (hash_initialize): Add 'fail:' label
90616         to free table and return NULL, and use it to simplify code.
90617         Use calloc rather than clearing the storage ourself.
90618         (hash_initialize, hash_rehash): Check for arithmetic overflow in
90619         buffer size calculations.
90620         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
90621         Include <stddef.h>, for size_t.
90622         * lib/hash-pjw.c (hash_pjw): Likewise.
90623         Switch to method described by Bruno Haible.
90624         Include <limits.h>, for CHAR_BIT.
90625         (SIZE_BITS): New macro.
90626
90627 2003-10-23  Paul Eggert  <eggert@twinsun.com>
90628
90629         * m4/getline.m4 (AM_FUNC_GETLINE):
90630         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
90631         hosts.  Problem reported by Derek Robert Price in
90632         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
90633         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
90634         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
90635
90636 2003-10-21  Paul Eggert  <eggert@twinsun.com>
90637
90638         * lib/getndelim2.c (getndelim2): When size calculation overflows,
90639         ceiling the allocation at NMAX bytes rather than silently
90640         discarding input bytes before NMAX is reached.  This makes
90641         a difference only if NMAX exceeds SIZE_MAX / 2.
90642
90643         * lib/obstack.c: Merge from glibc.
90644         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
90645         Add libc_hidden_def (_obstack_newchunk).
90646         (_obstack_free) [! defined _LIBC]: Remove.
90647         [defined _LIBC]: Make a strong alias from obstack_free, rather than
90648         a clone of the function body.
90649         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
90650         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
90651
90652         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
90653         glibc.
90654         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
90655         arg to memcpy.
90656
90657         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
90658         (obstack_ptr_grow_fast, obstack_int_grow_fast):
90659         Don't use lvalue casts, as GCC plans to remove support for them
90660         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
90661         was also present in the non-GCC version, indicating that this
90662         code had always been buggy and had never been widely used.
90663         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
90664         Use the fast variant of each macro, rather than copying the
90665         definiens of the fast variant; that way, we'll be more likely to
90666         catch future bugs in the fast variants.
90667
90668 2003-10-20  Bruno Haible  <bruno@clisp.org>
90669
90670         * modules/wait-process: New file.
90671         * MODULES.html.sh (func_all_modules): Add wait-process.
90672
90673 2003-10-20  Bruno Haible  <bruno@clisp.org>
90674
90675         * m4/wait-process.m4: New file.
90676
90677 2003-10-20  Bruno Haible  <bruno@clisp.org>
90678
90679         * lib/wait-process.h: New file, from GNU gettext.
90680         * lib/wait-process.c: New file, from GNU gettext.
90681
90682 2003-10-19  Jim Meyering  <jim@meyering.net>
90683
90684         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
90685         HPUX 10.20.
90686
90687 2003-10-18  Karl Berry  <karl@gnu.org>
90688
90689         * config/config.guess: update from config.
90690
90691 2003-10-16  Paul Eggert  <eggert@twinsun.com>
90692
90693         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
90694         (getgroups): First arg is int, not size_t.
90695         Don't let 'free' mangle errno.
90696
90697 2003-10-16  Paul Eggert  <eggert@twinsun.com>
90698
90699         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
90700
90701 2003-10-16  Karl Berry  <karl@gnu.org>
90702
90703         * config/config.{guess,sub}: update from config.
90704
90705 2003-10-16  Jim Meyering  <jim@meyering.net>
90706
90707         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
90708         memcpy.
90709
90710 2003-10-15  Paul Eggert  <eggert@twinsun.com>
90711
90712         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
90713         (SIZE_MAX): Remove.
90714         (new_exclude, add_exclude_file): Initial size no longer needs to
90715         be a power of 2.
90716         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
90717         our own address arithmetic overflow checking.
90718
90719         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
90720         (fnmatch): Do not alloca more than 2000 wide characters;
90721         instead, use malloc for large buffers.
90722         Check for address arithmetic overflow, and return -1
90723         with errno set to ENOMEM in that case.
90724         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
90725         (NEW_PATTERN): Do not alloca more than 8000 bytes;
90726         instead, return -1.  Check for address arithmetic overflow.
90727
90728 2003-10-14  Paul Eggert  <eggert@twinsun.com>
90729
90730         Handle invalid suffixes and overflow independently, so that
90731         callers can treat them independently as needed.  Fix some bugs in
90732         suffix handling, e.g., "100k@" was not diagnosed as an invalid
90733         suffix for a human-readable blocksize.  The major caller-visible
90734         change is the addition of a new
90735         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
90736         that both overflow and suffix chars were found.
90737
90738         * lib/human.c (humblock): Don't check separately for invalid suffix
90739         char; that is xstrtoumax's job (now that its bug is fixed).
90740         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
90741         INTMAX_MAX]: New macros.
90742         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
90743         TYPE_MAXIMUM): New macros.
90744         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
90745         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
90746         if overflow occurs, as it's what __strtol does and it's more useful
90747         in practice.
90748         (__xstrtol): If __strtol reports some error other than ERANGE,
90749         reflect it to the caller as LONGINT_INVALID.  If it reports
90750         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
90751         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
90752         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
90753         value.
90754         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
90755         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
90756         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
90757         [defined UINTMAX_MAX]: New macros.
90758
90759 2003-10-14  Bruno Haible  <bruno@clisp.org>
90760
90761         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
90762
90763 2003-10-14  Bruno Haible  <bruno@clisp.org>
90764
90765         * m4/sig_atomic_t: New file, from GNU gettext.
90766         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
90767
90768 2003-10-14  Bruno Haible  <bruno@clisp.org>
90769
90770         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
90771         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
90772         Also use volatile where needed.
90773
90774 2003-10-12  Paul Eggert  <eggert@twinsun.com>
90775
90776         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
90777         Change maintainer from Bruno Haible to 'all'.
90778
90779 2003-10-12  Paul Eggert  <eggert@twinsun.com>
90780
90781         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
90782
90783 2003-10-12  Paul Eggert  <eggert@twinsun.com>
90784
90785         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
90786         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
90787         and define in terms of the other primitives.
90788         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
90789         (SIZE_MAX): Define if not already defined.
90790         (array_size_overflow): New function.
90791         (xalloc_die): Abort instead of exiting if 'error' returns.
90792         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
90793         (xmalloc, xrealloc): Use them.
90794         (xcalloc): Check for address arithmetic overflow.
90795         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
90796         a bit faster than strcpy.
90797
90798 2003-10-10  Simon Josefsson  <jas@extundo.com>
90799
90800         * modules/argp (Depends-on): Add restrict and strcase.
90801
90802 2003-10-10  Simon Josefsson  <jas@extundo.com>
90803
90804         * m4/argp.m4: Add AC_C_INLINE.
90805
90806 2003-10-08  Paul Eggert  <eggert@twinsun.com>
90807
90808         Merge getpass from libc, plus a few fixes.
90809
90810         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
90811         Include <stdbool.h>.
90812         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
90813         __fsetlocking to empty.
90814         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
90815         do include <bits/libc-lock.h>.
90816         Do not include <fcntl.h>; not needed.
90817         [_LIBC]: Include <wchar.h>.
90818         (NOTCANCEL_MODE): New macro.
90819         (flockfile, funlockfile) [_LIBC]: New macros.
90820         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
90821         [!_LIBC]: New macros.
90822         (call_fclose): New function.
90823         (getpass): Use it.  Save tty stream separately; this simplifies the
90824         code and makes it more reliable if stdin happens to equal stdout.
90825         Invoke __fsetlocking on tty.
90826         Handle thread cancellation if needed.
90827         Namespace cleanup (use __tcgetattr, __getline).
90828         Use bool for Booleans.
90829         [USE_IN_LIBIO]: Handle wide streams.
90830         [!_LIBC]: Unconditionally do the fseek, since we don't know what
90831         stream might go where.
90832
90833         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
90834         doesn't have to include <stdio.h> before us.
90835         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
90836         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
90837         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
90838         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
90839         if not declared, so that we can use getpass.c code from libc without
90840         rewriting it.
90841         (flockfile, ftrylockfile, funlockfile): New macros.
90842
90843 2003-10-08  Paul Eggert  <eggert@twinsun.com>
90844
90845         * modules/getpass: Depend on stdbool.
90846
90847 2003-10-08  Paul Eggert  <eggert@twinsun.com>
90848
90849         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
90850
90851 2003-10-07  Karl Berry  <karl@gnu.org>
90852
90853         * config/config.{guess,sub}: update from config.
90854
90855 2003-10-06  Jim Meyering  <jim@meyering.net>
90856             Bruno Haible  <bruno@clisp.org>
90857
90858         This lets translators provide better translations for the
90859         "Written by ..." part of --version output.
90860         * lib/version-etc.h: Include stdarg.h.
90861         (version_etc_copyright): Declare as readonly.
90862         (version_etc): Make this function variadic with a NULL-terminated list
90863         of author name strings.
90864         (version_etc_va): New declaration.
90865         * lib/version-etc.c: Include stdarg.h, stdlib.h.
90866         (version_etc_copyright): Declare as readonly.
90867         (version_etc_va): New function. Provide a different translatable string
90868         for each possible number of authors < 10. Abbreviate when there are 10
90869         authors or more.
90870         (version_etc): Make this function variadic. Call version_etc_va.
90871         Suggestion from Gary V. Vaughan.
90872
90873         * lib/long-options.h (parse_long_options): Change prototype: the
90874         authors string is moved to the end and becomes variadic.
90875         * lib/long-options.c: Include stdarg.h.
90876         (parse_long_options): Make this function variadic, too.
90877         Call version_etc_va, not version_etc.
90878
90879 2003-10-06  Bruno Haible  <bruno@clisp.org>
90880
90881         * modules/version-etc-2: Remove file.
90882         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
90883
90884 2003-10-06  Bruno Haible  <bruno@clisp.org>
90885
90886         * modules/fatal-signal: New file.
90887         * MODULES.html.sh (func_all_modules): Add fatal-signal.
90888
90889 2003-10-06  Bruno Haible  <bruno@clisp.org>
90890
90891         * m4/fatal-signal.m4: New file.
90892         * m4/signalblocking.m4: New file, from GNU gettext.
90893
90894 2003-10-06  Bruno Haible  <bruno@clisp.org>
90895
90896         * lib/version-etc-2.h: Remove file.
90897         * lib/version-etc-2.c: Remove file.
90898
90899 2003-10-06  Bruno Haible  <bruno@clisp.org>
90900
90901         * lib/fatal-signal.h: New file, from GNU gettext.
90902         * lib/fatal-signal.c: New file, from GNU gettext.
90903
90904 2003-10-05  Paul Eggert  <eggert@twinsun.com>
90905
90906         * README: Rework advice for preventing empty .o files.
90907         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
90908         not <sys/types.h>.
90909
90910 2003-10-04  Karl Berry  <karl@gnu.org>
90911
90912         * lib/argp*: update from libc.
90913
90914 2003-10-04  Karl Berry  <karl@gnu.org>
90915
90916         * config/config.{guess,sub}: update from config.
90917
90918 2003-10-02  Bruno Haible  <bruno@clisp.org>
90919
90920         * modules/lchown (Include): Add lchown.h.
90921         * modules/time_r (Include): Use "..." syntax.
90922         * modules/xgetdomainname (Include): Add xgetdomainname.h.
90923
90924 2003-10-01  Simon Josefsson  <jas@extundo.com>
90925
90926         * MODULES.html.sh (func_all_modules): Move gethostname from section
90927         'based on' to section 'lacking' POSIX:2001.
90928
90929 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
90930
90931         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
90932         to output mode on the same stream.
90933
90934 2003-09-29  Paul Eggert  <eggert@twinsun.com>
90935
90936         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
90937         Fix arg typo in previous patch.
90938
90939 2003-09-28  Jim Meyering  <jim@meyering.net>
90940
90941         * lib/error.c: Correct cpp indentation.
90942
90943 2003-09-27  Paul Eggert  <eggert@twinsun.com>
90944
90945         * modules/free: New file.
90946
90947 2003-09-27  Paul Eggert  <eggert@twinsun.com>
90948
90949         * m4/free.m4: New file.
90950
90951 2003-09-27  Paul Eggert  <eggert@twinsun.com>
90952
90953         * lib/minmax.h (MIN, MAX)
90954         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
90955         Omit the special code that used __typeof__, since we worry that
90956         it could be more trouble than it's worth.  See:
90957         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
90958         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
90959
90960         * lib/free.c: New file.
90961
90962 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
90963
90964         Trivial fixes to Makefile.am parts of module listings.
90965         * modules/strstr: Append strstr.h to lib_SOURCES.
90966         * modules/strcase: Likewise, for strcase.h.
90967
90968 2003-09-27  Karl Berry  <karl@gnu.org>
90969
90970         * config/mkinstalldirs: update from automake.
90971
90972 2003-09-26  Paul Eggert  <eggert@twinsun.com>
90973
90974         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
90975         (error_tail): Do not loop, reallocating temporary buffer, since
90976         the output cannot contain more wide characters than the input
90977         contains bytes, the size must be big enough already.  This avoids
90978         one potential size overflow calculation.  Check for size overflow
90979         when calculating temporary buffer size.  Free temporary buffer
90980         when done, if it was allocated with malloc; this plugs a memory
90981         leak.  Remove casts from void * to pointers, that are no longer
90982         needed now that we're assuming C89 or better.
90983
90984         Merge error changes from glibc.
90985
90986         * lib/error.c, error.h: Update copyright notice header to match glibc.
90987         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
90988         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
90989         Disable cancellation while printing error.
90990         * lib/error.h: Prepend __ to parameter names.
90991
90992 2003-09-26  Jim Meyering  <jim@meyering.net>
90993
90994         * lib/error.c (error_tail): Move some declarations
90995         into inner scope where the local variables are used.
90996
90997 2003-09-26  Bruno Haible  <bruno@clisp.org>
90998
90999         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
91000         stpncpy().
91001         Don't define stpncpy through config.h; it's now done through stpncpy.h.
91002
91003 2003-09-26  Bruno Haible  <bruno@clisp.org>
91004
91005         * lib/stpncpy.h (gnu_stpncpy): New declaration.
91006         (stpncpy): Define as alias for gnu_stpncpy.
91007         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
91008
91009 2003-09-25  Simon Josefsson  <jas@extundo.com>
91010
91011         * lib/xgetdomainname.h: New file.
91012         * lib/xgetdomainname.c: New file.
91013
91014 2003-09-25  Simon Josefsson  <jas@extundo.com>
91015             Bruno Haible  <bruno@clisp.org>
91016
91017         * modules/getdomainname: New file.
91018         * modules/xgetdomainname: New file.
91019         * MODULES.html.sh (func_all_modules): Add getdomainname,
91020         xgetdomainname.
91021
91022 2003-09-25  Simon Josefsson  <jas@extundo.com>
91023             Bruno Haible  <bruno@clisp.org>
91024
91025         * m4/getdomainname.m4: New file.
91026
91027 2003-09-25  Simon Josefsson  <jas@extundo.com>
91028             Bruno Haible  <bruno@clisp.org>
91029
91030         * lib/getdomainname.h: New file.
91031         * lib/getdomainname.c: New file.
91032
91033 2003-09-25  Karl Berry  <karl@gnu.org>
91034
91035         * lib/argp-fmtstream.c, argp-help.c: update from libc.
91036
91037 2003-09-25  Karl Berry  <karl@gnu.org>
91038
91039         * config/install-sh: update from automake.
91040
91041 2003-09-25  Bruno Haible  <bruno@clisp.org>
91042
91043         * modules/version-etc-2: New file, from modules/version-etc with
91044         modifications.
91045         * MODULES.html.sh (func_all_modules): Add version-etc-2.
91046
91047 2003-09-25  Bruno Haible  <bruno@clisp.org>
91048
91049         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
91050         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
91051
91052 2003-09-24  Simon Josefsson  <jas@extundo.com>
91053
91054         * modules/xgethostname: Add xgethostname.h.
91055
91056 2003-09-24  Paul Eggert  <eggert@twinsun.com>
91057
91058         * lib/linebuffer.c (freebuffer): Don't free the argument, just
91059         the buffer associated with the argument.  Bug reported by
91060         Simon Josefsson.
91061
91062 2003-09-24  Paul Eggert  <eggert@twinsun.com>
91063
91064         * README: Document assumptions that 'int' is at least 32 bits
91065         wide, that integer arithmetic is 2's complement without overflow,
91066         that there are no holes in integer values, that adding sizes of
91067         two nonoverlapping objects can't overflow, and that all-bits-zero
91068         yields scalar zero.  Fix spelling and capitalization typos.
91069
91070 2003-09-19  Karl Berry  <karl@gnu.org>
91071
91072         * lib/argp.h: update from libc.
91073
91074 2003-09-17  Paul Eggert  <eggert@twinsun.com>
91075
91076         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
91077         to avoid spurious warnings like "AC_RUN_IFELSE was called before
91078         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
91079
91080 2003-09-17  Paul Eggert  <eggert@twinsun.com>
91081
91082         * gnulib-tool: Use "test -h", not "test -L", for portability
91083         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
91084         (tags_regexp): Remove, since \| doesn't conform to POSIX.
91085         (sed_extract_prog): Issue s commands one-by-one, rather than
91086         using \| in one s command.
91087
91088 2003-09-16  Paul Eggert  <eggert@twinsun.com>
91089
91090         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
91091         input error, instead of returning NULL the next time we are called
91092         (and therefore losing track of errno).
91093
91094 2003-09-16  Bruno Haible  <bruno@clisp.org>
91095
91096         * gnulib-tool (func_create_testdir): Warn about duplicated
91097         dependencies.
91098
91099 2003-09-15  Paul Eggert  <eggert@twinsun.com>
91100
91101         * modules/argmatch, modules/fatal, modules/obstack,
91102         modules/xalloc, modules/xgethostname: Sort dependencies by
91103         importance, not alphabetically.
91104
91105 2003-09-15  Paul Eggert  <eggert@twinsun.com>
91106
91107         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
91108         fails, so that the caller gets the proper errno.
91109
91110         * lib/readutmp.c (read_utmp): Likewise.
91111         Check for fstat error.  Close stream and free storage
91112         when failing.
91113
91114 2003-09-14  Karl Berry  <karl@gnu.org>
91115
91116         * config/srclist.txt (strdup.c): disable for c89 changes.
91117
91118 2003-09-14  Jim Meyering  <jim@meyering.net>
91119
91120         * lib/getloadavg.c: Correct cpp indentation.
91121         * lib/strdup.c: Likewise.
91122         * lib/vasnprintf.c: Likewise.
91123
91124 2003-09-14  Bruno Haible  <bruno@clisp.org>
91125
91126         * modules/fwriteerror: New file.
91127         * MODULES.html.sh (func_all_modules): Add fwriteerror.
91128
91129 2003-09-14  Bruno Haible  <bruno@clisp.org>
91130
91131         * lib/fwriteerror.h: New file.
91132         * lib/fwriteerror.c: New file.
91133
91134 2003-09-12  Paul Eggert  <eggert@twinsun.com>
91135
91136         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
91137         modules/xgethostname, modules/xalloc: Depend on exit.
91138
91139 2003-09-12  Paul Eggert  <eggert@twinsun.com>
91140
91141         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
91142
91143         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
91144         and AC_MINIX, too, so that their extensions are available.
91145
91146         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
91147         This macro has been superseded by gl_BACKUPFILE.
91148
91149         More patches to assume C89 or better.
91150
91151         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
91152
91153         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
91154         unconditionally.
91155         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
91156         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
91157         Include <string.h>, <stdlib.h> unconditionally.
91158         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
91159         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
91160         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
91161         headers or for string.h.
91162         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
91163         or strtoul.
91164
91165         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
91166         headers.
91167         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
91168         * m4/userspec.m4 (gl_USERSPEC): Likewise.
91169         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
91170         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
91171         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
91172         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
91173         memcpy, memset.
91174         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
91175         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
91176         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
91177         strtol.
91178         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
91179         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
91180         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
91181         strtoul.
91182
91183 2003-09-12  Paul Eggert  <eggert@twinsun.com>
91184
91185         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
91186         * lib/obstack.c [!defined _LIBC]: Likewise.
91187         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
91188         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
91189         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
91190
91191         More changes to assume C89 or better.
91192
91193         * lib/error.c (error_tail): Assume vprintf.
91194
91195         * lib/argmatch.c (getenv): Remove decl.
91196         * lib/progreloc.c (get_full_program_name): Define via prototype.
91197         * lib/setenv.c (clearenv): Likewise.
91198         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
91199         needed.
91200         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
91201         (malloc, memcpy): Remove decls.
91202         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
91203         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
91204         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
91205         (memcpy): Remove macro.
91206         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
91207         (__P): Remove.  All uses removed.
91208         (PTR): Remove.  All uses changed to void *.
91209         (CHAR_BIT, NULL): Remove.
91210         (spaces, zeros, memset_space, memset_zero)
91211         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
91212         Remove.
91213         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
91214         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
91215         Define with prototype.
91216         Remove now-unnecessary prototype decl.
91217         (extra_args_spec): Assume ANSI C.  All uses changed.
91218         (extra_args_spec_iso): Remove.
91219         (my_strftime, emacs_strftimeu): Define via prototype.
91220         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
91221         unconditionally.
91222         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
91223         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
91224         (strtoul, strtol): Remove decls.
91225         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
91226         LONG_MAX): Remove.
91227         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
91228         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
91229         (LOCALE_PARAM_PROTO): New macro.
91230         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
91231         (INTERNAL (strtol), strtol): Define with a prototype.
91232         (PARAMS): Remove.  All uses removed.
91233         * lib/tempname.c: Include <string.h> unconditionally.
91234         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
91235         * lib/xgethostname.c (main): Define with a prototype.
91236         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
91237         Include <stdlib.h> unconditionally.
91238         (calloc, malloc, realloc, free): Remove decls.
91239         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
91240         Include <stdlib.h> unconditionally.  Sort include file names.
91241         (strtod): Remove.
91242         (xstrtod): Define with a prototype.
91243         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
91244         (strtol, strtoul): Remove decls.
91245
91246 2003-09-11  Paul Eggert  <eggert@twinsun.com>
91247
91248         More patches to assume C89 or better.
91249         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
91250         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
91251         string.h, memchr, STDC_HEADERS.
91252
91253 2003-09-11  Paul Eggert  <eggert@twinsun.com>
91254
91255         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
91256         Include <stdlib.h>, <string.h> unconditionally.
91257         Remove now-unnecessary cast to char *.
91258         * lib/strnlen.c: Include <string.h> unconditionally.
91259         * lib/yesno.c (yesno): Define with a prototype.
91260
91261 2003-09-11  Bruno Haible  <bruno@clisp.org>
91262
91263         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
91264
91265 2003-09-10  Jim Meyering  <jim@meyering.net>
91266
91267         * lib/error.c: Correct indentation of cpp directives.
91268
91269 2003-09-10  Bruno Haible  <bruno@clisp.org>
91270
91271         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
91272         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
91273         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
91274         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
91275         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
91276         <stdlib.h> and <string.h> checks.
91277         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
91278         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
91279
91280 2003-09-10  Bruno Haible  <bruno@clisp.org>
91281
91282         * lib/strcspn.c: Include <string.h> unconditionally.
91283         * lib/strpbrk.c: Include <string.h> unconditionally.
91284         * lib/strstr.c: Include <string.h> unconditionally.
91285         * lib/unicodeio.c: Include <string.h> unconditionally.
91286         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
91287         * lib/unsetenv.c: Likewise.
91288         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
91289         * lib/yesno.c: Include <stdlib.h> unconditionally.
91290         (rpmatch): Add prototype.
91291
91292 2003-09-09  Paul Eggert  <eggert@twinsun.com>
91293
91294         More patches to assume C89 or better.
91295         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
91296         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
91297         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
91298         or for string.h.
91299         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
91300         stdlib.h.
91301         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
91302         C headers.
91303         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
91304         string.h.
91305         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
91306         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
91307         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
91308         or for string.h.
91309         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
91310         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
91311         C headers.
91312         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
91313         memcpy.
91314         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
91315         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
91316         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
91317         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
91318         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
91319         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
91320         string.h, free.
91321         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
91322         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
91323         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
91324         C headers, or for string.h.
91325         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
91326         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
91327         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
91328         headers, memory.h, stdlib.h, string.h, strings.h.
91329         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
91330         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
91331         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
91332         strchr.
91333         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
91334         headers, memory.h, string.h.
91335         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
91336         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
91337         free.
91338         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
91339         headers.
91340         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
91341         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
91342         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
91343         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
91344         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
91345
91346 2003-09-09  Paul Eggert  <eggert@twinsun.com>
91347
91348         More K&R removal.
91349
91350         * lib/acosl.c (main): Use a prototype.
91351         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
91352         tanl.c: Likewise.
91353
91354         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
91355
91356         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
91357         (getopt, etopt_long, getopt_long_only, _getopt_internal)
91358         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
91359         with a prototype.
91360         * lib/getopt.c (const): Remove macro.
91361         Include <string.h> unconditionally.
91362         (my_index): Remove; all uses changed to strchr.
91363         (strlen): Remove decl.
91364         (exchange): Remove forward decl; no longer needed.
91365         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
91366         Define with prototype.
91367         * lib/getopt1.c (const): Remove macro.
91368         (getopt_long, getopt_long_only, main): Define with prototype.
91369
91370         * lib/getugroups.c: Include <string.h> unconditionally.
91371
91372         * lib/getusershell.c: Include <stdlib.h> unconditionally.
91373         (getusershell, setusershell, endusershell, readname, main):
91374         Define with prototypes.
91375
91376         * lib/group-member.c: Include group-member.h first.
91377         Include <stdlib.h> unconditionally.
91378
91379         * lib/hard-locale.c: Include hard-locale.h first.
91380         Include <stdlib.h>, <string.h> unconditionally.
91381
91382         * lib/hash.c (free, malloc): Remove decls.
91383         Include <stdlib.h> unconditionally.
91384
91385         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
91386         (getenv): Do not declare.
91387
91388         * lib/idcache.c: Include <string.h> unconditionally.
91389
91390         * lib/long-options.c: Include long-options.h first, to test interface.
91391         Include <stdlib.h> unconditionally.
91392
91393         * lib/makepath.c: Include makepath.h first, to test interface.
91394         Include <stdlib.h> and <string.h> unconditionally.
91395
91396         * lib/linebuffer.c: Include <stdlib.h>.
91397         (free): Remove decl.
91398
91399         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
91400         stddef.h. rpl_malloc returns void *, not char *.
91401         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
91402         prototype.
91403
91404         * lib/md5.h: Include <limits.h> unconditionally.
91405         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
91406         (__P): Remove; all uses removed.
91407         * lib/md5.c: Include "md5.h" first.
91408         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
91409         md5_buffer, md5_process_bytes, md5_process_block):
91410         Define with prototypes.
91411         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
91412         * lib/sha.c: Include "sha.h" first.
91413         Include <stdlib.h>, <string.h> unconditionally.
91414
91415         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
91416         * lib/memcmp.c (__ptr_t): Likewise.
91417         * lib/memrchr.c (__ptr_t): Likewise.
91418         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
91419         Include <string.h> unconditionally.
91420         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
91421         * lib/memchr.c: Include <stdlib.h> unconditionally.
91422         * lib/memchr.c (LONG_MAX): Remove.
91423         * lib/memrchr.c (LONG_MAX): Likewise.
91424         * lib/memchr.c (__memchr): Define via a prototype.
91425         * lib/memrchr.c (__memrchr): Likewise.
91426         * lib/memcmp.c (__P): Remove, and remove all uses.
91427         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
91428         Remove forward decls; no longer needed.
91429         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
91430         Use types required by C89 in prototype.
91431
91432         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
91433         * lib/savedir.c: Likewise.
91434         * lib/mkdir.c (free): Remove decl.
91435         * lib/rmdir.c (rmdir): Define with a prototype.
91436         * lib/savedir.c: Include savedir.h first, to test interface.
91437
91438         * lib/mktime.c (STDC_HEADERS): Remove.
91439         Include <stdlib.h>, <string.h> unconditionally.
91440
91441         * lib/modechange.c: Include <stdlib.h> unconditionally.
91442         (malloc): Remove decl.
91443
91444         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
91445         (free): Remove decl.
91446
91447         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
91448         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
91449         (This type really should be intptr_t, but that's a C99ism.)
91450         (_obstack_memcpy): Remove: all uses changed to memcpy.
91451         Include <string.h> unconditionally.
91452         (struct obstack): Assume __STDC__ for types of members
91453         chunkfun, freefun, extra_arg.
91454         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
91455         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
91456         obstack_begin, obstack_specify_allocation,
91457         obstack_specify_allocation_with_arg, obstack_chunkfun,
91458         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
91459         Remove unprototyped decls and the macros that use them.
91460         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
91461         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
91462         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
91463         (defined __STDC__ && __STDC__)]:
91464         Remove nonprototyped code.
91465         Include <stdlib.h> unconditionally.
91466         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
91467         _obstack_allocated_p, _obstack_free, obstack_free,
91468         _obstack_memory_used, print_and_abort):
91469         Define using prototypes.
91470         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
91471         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
91472         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
91473         obstack_next_free, obstack_object_size, obstack_room) [0]:
91474         Remove unused, unprototyped code.
91475
91476         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
91477
91478         * lib/physmem.c (physmem_total, physmem_available, main): Define
91479         with prototypes.
91480
91481         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
91482         (main): Define with a prototype.
91483
91484         * lib/posixver.c (getenv): Remove decl.
91485
91486         * lib/putenv.c (malloc): Returns void *, not char *.
91487         Include <string.h> unconditionally.
91488         (strchr, memcpy, NULL): Do not define.
91489
91490         * lib/readtokens.c: Include readtokens.h first, to test interface.
91491         Include <stdlib.h>, <string.h> unconditionally.
91492         (init_tokenbuffer): Define with a prototype.
91493
91494         * lib/regex.c (PARAMS): Remove.  All uses removed.
91495         All uses of _RE_ARGS removed, too.
91496         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
91497         unconditionally.
91498         (bzero): Assume memset exists.
91499         (memcmp, memcpy, NULL): Remove.
91500         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
91501         char, or assignments to local vars of type signed char.
91502         (init_syntax_once, PREFIX(extract_number_and_incr),
91503         PREFIX(print_partial_compiled_pattern),
91504         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
91505         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
91506         PREFIX(regex_grow_registers), PREFIX(regex_compile),
91507         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
91508         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
91509         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
91510         wcs_compile_range, byte_compile_range, truncate_wchar,
91511         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
91512         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
91513         count_mbs_length, wcs_re_match_2_internal,
91514         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
91515         PREFIX(alt_match_null_string_p),
91516         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
91517         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
91518         regfree, PREFIX(extract_number)): Define with prototype.  Remove
91519         now-unnecessary declaration, if any.
91520         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
91521         regcomp, regexec):
91522         Remove now-unnecessary casts among pointer types.
91523         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
91524
91525         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
91526         (free): Remove decl.
91527
91528         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
91529
91530         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
91531         (free): Remove decl.
91532
91533         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
91534         * lib/xgetcwd.c: Likewise.
91535
91536         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
91537         (free): Remove decl.
91538
91539         * lib/strchrnul.c (strchrnul): Define with a prototype.
91540         Fix bug: c_in was not converted to char before searching.
91541
91542         The following changes are not K&R related:
91543
91544         * lib/group-member.h: Include <sys/types.h>, so that this file is
91545         self-contained.
91546         * lib/makepath.h: Likewise.
91547
91548         * lib/getusershell.c (readname, default_index, line_size, readname):
91549         Use size_t, not int, for sizes.
91550         (readname): If the size overflows, report an error instead of
91551         looping forever.
91552
91553 2003-09-09  Paul Eggert  <eggert@twinsun.com>
91554
91555         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
91556         libc.
91557
91558 2003-09-09  Paul Eggert  <eggert@twinsun.com>
91559
91560         * README: New section: portability guidelines.
91561
91562 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
91563
91564         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
91565         C89 spec.
91566
91567 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
91568
91569         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
91570
91571 2003-09-08  Paul Eggert  <eggert@twinsun.com>
91572
91573         Assume C89 or better; remove K&R cruft.
91574         A few of these changes were first proposed by Derek Robert Price
91575         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
91576
91577         * lib/addext.c: Include <string.h> unconditionally.
91578         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
91579         Don't declare getenv or malloc.
91580
91581         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
91582         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
91583         (NULL): Remove.
91584         (find_stack_direction, alloca): Use prototypes.
91585
91586         * lib/atexit.c (atexit): Define using a prototype.
91587
91588         * lib/basename.c, dirname.c, stripslash.c:
91589         Include <string.h> unconditionally.
91590
91591         * lib/bcopy.c: Include <stddef.h>.
91592         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
91593
91594         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
91595
91596         * lib/error.h (error, error_at_line, error_print_progname)
91597         [! (defined (__STDC__) && __STDC__)]: Remove decls.
91598         * lib/error.c: Include error.h first, to check interface.
91599         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
91600         (VA_START): Remove; all uses changeed to va_start.
91601         (exit, strerror): Remove decls.
91602         (error_print_progname): Prototype uncondionally.
91603         Don't include <errno.h>; no longer needed.
91604         (private_strerror): Remove.
91605         (error_tail): Always define.
91606         (error, error_at_line): Assume C89 or better; always use prototypes.
91607         * lib/fatal.c: Include "fatal.h" first, to test interface.
91608         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
91609         (VA_START): Remove; all uses changed to va_start.
91610         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
91611         this case.
91612         (exit): Remove decl.
91613         (fatal): Prototype unconditionally.  Assume va_start works.
91614         Abort at end, to pacify gcc.
91615
91616         * lib/euidaccess.c (main): Define with a prototype.
91617
91618         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
91619
91620         * lib/exitfail.c: Include <stdlib.h> unconditionally.
91621
91622         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
91623         prototypes.
91624         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
91625         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
91626         (getenv): Remove decl.
91627         (fnmatch): Define using a prototype.
91628         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
91629         (FCT): Define using a prototype.
91630
91631         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
91632
91633         * lib/gethostname.c: Include <stddef.h>.
91634         (gethostname): Define with prototype.  Length is size_t, not int.
91635
91636 2003-09-08  Paul Eggert  <eggert@twinsun.com>
91637
91638         Assume C89 or better; remove K&R cruft.
91639         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
91640         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
91641         string.h, getenv, malloc.
91642         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
91643         headers.
91644         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
91645         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
91646         do not check for strerror.
91647         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
91648         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
91649         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
91650         do not check for doprnt or vprintf.
91651         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
91652         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
91653
91654 2003-09-08  Paul Eggert  <eggert@twinsun.com>
91655
91656         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
91657         getversion.c should have been removed then, but was accidentally
91658         preserved.
91659
91660         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
91661         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
91662
91663 2003-09-08  Karl Berry  <karl@gnu.org>
91664
91665         * config/config.sub, config.guess, srclistvars.sh: update from savannah
91666                 config, forget about prep.
91667
91668         * config/depcomp, missing: update from automake.
91669
91670 2003-09-07  Paul Eggert  <eggert@twinsun.com>
91671
91672         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
91673         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
91674
91675 2003-09-07  Paul Eggert  <eggert@twinsun.com>
91676
91677         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
91678         copy_tm_result.  Bug reported by Simon Josefsson in
91679         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
91680
91681 2003-09-06  Paul Eggert  <eggert@twinsun.com>
91682
91683         * m4/time_r.m4: New file.
91684         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
91685         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
91686         is. Check for timegm declaration.
91687         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
91688         Do not check for gmtime_r.
91689         Replace mktime if __mktime_internal does not exist and if mktime
91690         hasn't been replaced already.
91691
91692 2003-09-06  Paul Eggert  <eggert@twinsun.com>
91693
91694         * lib/time_r.c, lib/time_r.h: New files.
91695
91696         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
91697         __localtime_r.
91698         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
91699         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
91700
91701         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
91702         __gmtime_r.
91703         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
91704         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
91705         Include <time_r.h>.
91706
91707         * lib/timegm.c: Switch to glibc implementation, with the following
91708         changes:
91709         [defined HAVE_CONFIG_H]: Include <config.h>.
91710         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
91711         (__mktime_internal) [!defined _LIBC]: New decl.
91712         (__gmtime_r) [!defined _LIBC]: New macro and function.
91713         (timegm): Use a prototype, since gnulib assumes C89.
91714         Do not bother declaring tmp to be const, as it's not really usefu.
91715         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
91716         (timegm): Declare only if HAVE_DECL_TIMEGM.
91717
91718 2003-09-06  Paul Eggert  <eggert@twinsun.com>
91719
91720         * MODULES.html.sh (func_all_modules): Add time_r.
91721         * modules/time_r: New file.
91722         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
91723         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
91724
91725 2003-09-03  Paul Eggert  <eggert@twinsun.com>
91726
91727         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
91728         Bug reported by Lute Kamstra in
91729         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
91730
91731         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
91732         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
91733         course with correspondingly smaller numbers for tomorrow and
91734         yesterday.  From Tadayoshi Funaba.  Originally installed into
91735         sh-utils on 1999-08-07, but the patch got lost (I guess during the
91736         coreutils merge?).
91737
91738 2003-08-31  Simon Josefsson  <jas@extundo.com>
91739
91740         * modules/timegm: New file.
91741         * MODULES.html.sh (func_all_modules): Add timegm.
91742
91743 2003-08-31  Simon Josefsson  <jas@extundo.com>
91744
91745         * m4/timegm.m4: New file.
91746
91747 2003-08-31  Simon Josefsson  <jas@extundo.com>
91748
91749         * lib/timegm.h: New file.
91750         * lib/timegm.c: New file.  Based on
91751         wget-1.8.2/src/http.c:mktime_from_utc.
91752
91753 2003-08-31  Karl Berry  <karl@gnu.org>
91754
91755         * lib/argp.h: update from libc.
91756
91757 2003-08-28  Bruno Haible  <bruno@clisp.org>
91758
91759         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
91760         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
91761         followed by '#define fnmatch fnmatch_posix' gives an error.
91762
91763 2003-08-28  Bruno Haible  <bruno@clisp.org>
91764
91765         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
91766         warning on QNX, which defines O_BINARY to 000000.
91767
91768 2003-08-27  Jim Meyering  <jim@meyering.net>
91769
91770         * m4/mkstemp.m4: Require that the system mkstemp be able to create
91771         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
91772         would fail after 32.  Reported by Danny Levinson.  Details here:
91773         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
91774
91775 2003-08-24  Bruno Haible  <bruno@clisp.org>
91776
91777         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
91778         MSVC7 <stdio.h> is included later.
91779
91780 2003-08-22  Simon Josefsson  <jas@extundo.com>
91781
91782         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
91783
91784 2003-08-20  Karl Berry  <karl@gnu.org>
91785
91786         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
91787
91788 2003-08-20  Bruno Haible  <bruno@clisp.org>
91789
91790         * modules/progname: New file.
91791         * MODULES.html.sh (func_all_modules): Add progname.
91792
91793 2003-08-20  Bruno Haible  <bruno@clisp.org>
91794
91795         * lib/progname.h: New file, from GNU gettext.
91796         * lib/progname.c: New file, from GNU gettext.
91797         * lib/progreloc.c: New file, from GNU gettext.
91798
91799 2003-08-19  Jim Meyering  <jim@meyering.net>
91800
91801         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
91802         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
91803
91804 2003-08-19  Bruno Haible  <bruno@clisp.org>
91805
91806         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
91807         more.
91808
91809 2003-08-19  Bruno Haible  <bruno@clisp.org>
91810
91811         * lib/xstrdup.c: Assume <string.h> exists.
91812
91813 2003-08-18  Paul Eggert  <eggert@twinsun.com>
91814
91815         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
91816         in makefile rules.
91817
91818 2003-08-18  Jim Meyering  <jim@meyering.net>
91819
91820         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
91821         * m4/lib-ld.m4: Likewise.
91822
91823 2003-08-18  Jim Meyering  <jim@meyering.net>
91824
91825         * lib/setenv.h: Indent nested cpp directive.
91826         * lib/vasnprintf.c: Remove trailing blanks.
91827
91828 2003-08-17  Simon Josefsson  <jas@extundo.com>
91829
91830         * modules/xstrndup: New file.
91831         * MODULES.html.sh (func_all_modules): Add xstrndup.
91832
91833 2003-08-17  Simon Josefsson  <jas@extundo.com>
91834
91835         * modules/argp: Fix autoconf macro name. Add more dependencies.
91836
91837 2003-08-17  Simon Josefsson  <jas@extundo.com>
91838
91839         * m4/xstrndup.m4: New file.
91840
91841 2003-08-17  Simon Josefsson  <jas@extundo.com>
91842
91843         * m4/argp.m4: New file.
91844
91845 2003-08-17  Simon Josefsson  <jas@extundo.com>
91846             Bruno Haible  <bruno@clisp.org>
91847
91848         * lib/xstrndup.h: New file.
91849         * lib/xstrndup.c: New file.
91850
91851 2003-08-17  Bruno Haible  <bruno@clisp.org>
91852
91853         * modules/strndup (Files, Include): Add lib/strndup.h.
91854
91855 2003-08-17  Bruno Haible  <bruno@clisp.org>
91856
91857         * modules/euidaccess (Files): Add lib/euidaccess.h.
91858
91859 2003-08-17  Bruno Haible  <bruno@clisp.org>
91860
91861         * lib/strndup.h: New file.
91862
91863 2003-08-17  Bruno Haible  <bruno@clisp.org>
91864
91865         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
91866         like AC_GNU_SOURCE.
91867         * modules/extensions (configure.ac): Comment out the invocation of
91868         gl_USE_SYSTEM_EXTENSIONS.
91869
91870 2003-08-16  Paul Eggert  <eggert@twinsun.com>
91871
91872         Merges from coreutils, etc.
91873         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
91874         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
91875         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
91876         fixing a typo.
91877         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
91878         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
91879
91880 2003-08-16  Paul Eggert  <eggert@twinsun.com>
91881
91882         Document merge from coreutils.
91883         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
91884         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
91885         * modules/utime: Add m4/utimes-null.m4.
91886
91887 2003-08-16  Paul Eggert  <eggert@twinsun.com>
91888
91889         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
91890         space, undoing this 2003-08-12 change:
91891         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
91892
91893 2003-08-16  Paul Eggert  <eggert@twinsun.com>
91894
91895         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
91896         strtoul.c from libc, undoing this 2003-08-12 change:
91897         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
91898
91899 2003-08-16  Jim Meyering  <jim@meyering.net>
91900
91901         Merges from coreutils.
91902         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
91903         prefix.  Adjust cache variables similarly.  Create 500 rather than
91904         just 300 files, to exercise bug on Darwin6.5, too.
91905         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
91906         $missing_dir.
91907         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
91908         AM_SYS_POSIX_TERMIOS.
91909         Reported by mkc@mathdogs.com.
91910         Also change use of $am_cv_sys_posix_termios
91911         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
91912         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
91913         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
91914         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
91915         in /proc/mounts until it finds one with matching device number.  This
91916         is unnecessary when the FILE argument *is* a mount point.  No stat call
91917         is necessary in that case.  So, disable the statvfs-testing code on
91918         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
91919         as RedHat bug# 84846.
91920         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
91921         to 1MB, so as not to render systems with no stack size limit (e.g.,
91922         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
91923         Include <unistd.h>.  On some systems,
91924         it is required for the definition of _SC_PAGESIZE.
91925
91926 2003-08-16  Jim Meyering  <jim@meyering.net>
91927
91928         Merge from coreutils.
91929         * lib/xstrtoimax.c: #else #if -> #elif.
91930         * lib/xstrtoumax.c: Likewise.
91931
91932 2003-08-16  Jim Meyering  <jim@meyering.net>
91933
91934         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
91935         * m4/utimes.m4: Removed.
91936         * m4/utimes-null.m4: Renamed from utimes.m4.
91937
91938         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
91939         to 1MB, so as not to render systems with no stack size limit (e.g.,
91940         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
91941         Include <unistd.h>.  On some systems,
91942         it is required for the definition of _SC_PAGESIZE.
91943
91944 2003-08-16  Jim Meyering  <jim@meyering.net>
91945         and Paul Eggert  <eggert@cs.ucla.edu>
91946
91947         Merges from coreutils, etc.
91948
91949         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
91950         using the latest version from cvs.  This avoids problems with #line
91951         directives using a vendor (Sun) compiler.
91952         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
91953         Don't set GETGROUPS_LIB here; now it's
91954         done via getgroups.m4's wrapper function.
91955         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
91956         rather than just in sh-util/configure.in, so that the
91957         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
91958         same.
91959         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
91960         AC_FUNC_GETLOADAVG where to find getloadavg.c.
91961         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
91962         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
91963         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
91964         Remove code that is now done by the newly-required macros.
91965         Append $(EXEEXT) to DF_PROG.
91966         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
91967         Do not invoke or require the following here,
91968         since prereq.m4 or some gnulib .m4 now does this for us:
91969         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
91970         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
91971         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
91972         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
91973         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
91974         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
91975         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
91976         AC_FUNC_OBSTACK.
91977         Do not replace the following functions, as this is now the job
91978         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
91979         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
91980         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
91981         atexit getpass, strdup, getpagesize.
91982         Replace 'raise'.
91983         Do not check for the following functions, as this is now the job
91984         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
91985         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
91986         setregid.
91987         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
91988         Check for sys/sysctl.h.
91989         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
91990         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
91991         of checking for ssize_t ourselves.
91992
91993         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
91994         Require every macro that gnulib/modules/* suggests for us.
91995         (jm_PREREQ_ADDEXT): New macro.
91996         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
91997         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
91998
91999         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
92000         (gl_PHYSMEM): Use it.
92001         Also check for `table' function.
92002         Check for new headers and functions.
92003         Add check for sys/sysmp.h.
92004         With suggestions from Kaveh Ghazi.
92005         Ignore headers that are present but cannot be compiled.  This
92006         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
92007         C 5.4.
92008
92009 2003-08-15  Paul Eggert  <eggert@twinsun.com>
92010
92011         Document merge from coreutils.
92012         * modules/userspec: Depend on posixver.
92013         * modules/strftime: Depend on tzset.
92014
92015 2003-08-15  Paul Eggert  <eggert@twinsun.com>
92016
92017         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
92018         rather than tab, after '#' in shell-script copyright notices.
92019         Suggested by Bruno Haible.
92020
92021 2003-08-15  Paul Eggert  <eggert@twinsun.com>
92022
92023         * config/srclist-update: Use three spaces, rather than tab, after '#'
92024         in shell-script copyright notices.  Suggested by Bruno Haible.
92025         Remove unnecessary parenthesization in regular expression.
92026
92027 2003-08-15  Jim Meyering  <jim@meyering.net>
92028
92029         Merge from coreutils.
92030         * lib/xgethostname.c: Include <stdlib.h>.
92031         (xghostname): Don't exit for anything other than memory-related
92032         failure; just return NULL.
92033         * lib/userspec.c: Include "posixver.h".
92034         (parse_user_spec): Accept `.' as a separator only
92035         in pre-POSIX-200112 mode.
92036         * lib/strtoimax.c: Use #elif rather than #else #if.
92037         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
92038         Remove function, now that we can rely on a working tzset function.
92039         [!_LIBC]: Ensure that the required autoconf test has been run.
92040         [!defined _NL_CURRENT && HAVE_STRFTIME]:
92041         Use underlying_strftime for %r.
92042         * lib/sha.c: Merge in some clean-up and optimization changes from
92043         glibc.
92044         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
92045         Ensure that it is a multiple of 64.
92046         Rearrange loop exit tests so as to avoid performing an
92047         additional fread after encountering an error or EOF.
92048         * lib/realloc.c: Update copyright date.
92049
92050 2003-08-15  Jim Meyering  <jim@meyering.net>
92051         and Paul Eggert  <eggert@twinsun.com>
92052
92053         Merge from coreutils.
92054         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
92055         member but strut utmpx does not.  Needed for AIX 4.3.3.
92056         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
92057
92058 2003-08-15  Jim Meyering  <jim@meyering.net>
92059         and Paul Eggert  <eggert@cs.ucla.edu>
92060
92061         Merges from coreutils, etc.
92062         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
92063         Require gl_FUNC_TZSET_CLOBBER.
92064         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
92065         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
92066         members.
92067
92068 2003-08-14  Paul Eggert  <eggert@twinsun.com>
92069
92070         Help the merge from coreutils.
92071         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
92072         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
92073         * m4/tzset.m4: Use it too.
92074
92075 2003-08-14  Paul Eggert  <eggert@twinsun.com>
92076
92077         * modules/tzset: New file.
92078
92079 2003-08-14  Jim Meyering  <jim@meyering.net>
92080
92081         Merges from coreutils.
92082         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
92083         variable names, rather than @FNMATCH_H@.
92084         * modules/alloca: Likewise for $(ALLOCA_H).
92085
92086         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
92087         the three copies of the literal target, `fnmatch.h'.
92088         * modules/alloca (alloca.h): Likewise.
92089
92090 2003-08-14  Jim Meyering  <jim@meyering.net>
92091
92092         Merge from coreutils.
92093         * m4/tzset.m4: New file.
92094         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
92095         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
92096         otherwise, AIX 5.1 systems would end up using the latter.
92097         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
92098         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
92099         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
92100         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
92101
92102 2003-08-14  Jim Meyering  <jim@meyering.net>
92103
92104         Merge from coreutils.
92105         * lib/obstack.h: Whitespace changes.
92106         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
92107         and xcalloc return values.
92108         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
92109         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
92110         hang on OSF/1 5.1 for DIR on both local and remote file systems.
92111         Reported by (and fix confirmed by) Nelson H. F. Beebe.
92112         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
92113         error from mntctl.
92114         Use mntctl's return value to drive the entry-processing loop, since
92115         we can't rely on the value of the vmt_length member in the last
92116         entry.  On some systems doing so could result in exhausting
92117         virtual memory.  Based in part on a patch from Mike Jetzer.
92118
92119 2003-08-14  Jim Meyering  <jim@meyering.net>
92120         and Paul Eggert  <eggert@twinsun.com>
92121
92122         Merges from coreutils, plus other fixes.
92123         * lib/physmem.c: Merge in portability changes from gcc/libiberty
92124         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
92125         for credits and details.  Thanks to Kaveh Ghazi for helping
92126         to keep these files in sync.
92127         (ARRAY_SIZE): Define it.
92128         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
92129         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
92130         (memcasecmp): Don't assume size_t fits in unsigned int.
92131         Remove casts and duplicate code.
92132         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
92133         (memcpy): Remove definition.
92134         Merge in some clean-up and optimization changes from glibc.
92135         [BLOCKSIZE]: Move definition to top of file.
92136         Ensure that it is a multiple of 64.
92137         Rearrange loop exit tests so as to avoid performing an
92138         additional fread after encountering an error or EOF.
92139         * lib/md5.h (md5_uintptr): Define.
92140         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
92141         return to the initial working directory.  Preserve errno
92142         for caller.
92143         * lib/idcache.c: Include "xalloc.h".
92144         (xmalloc, xrealloc): Remove decls.
92145         (getuser): Remove casts no longer required in C89.
92146         * lib/human.c: Include stdio.h, for sprintf.
92147         * lib/group-member.c: Include "xalloc.h".
92148         (xmalloc, xrealloc): Remove decls.
92149         (get_group_info): Remove casts no longer required in C89.
92150         * lib/getusershell.c (readname): Remove casts no longer required in
92151         C89.
92152         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
92153         * lib/getline.c: Whitespace fix, from coreutils.
92154
92155 2003-08-13  Paul Eggert  <eggert@twinsun.com>
92156
92157         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
92158         Check for isascii.
92159
92160         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
92161         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
92162         Undo previous (whitespace-only) change.
92163
92164 2003-08-13  Paul Eggert  <eggert@twinsun.com>
92165
92166         * lib/exclude.c: Include <ctype.h>
92167         (IN_CTYPE_DOMAIN): New macro.
92168         (is_space): New fn.
92169         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
92170         and empty lines.
92171
92172         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
92173         Undo previous (whitespace-only) change.
92174
92175 2003-08-13  Paul Eggert  <eggert@twinsun.com>
92176
92177         * config/srclist-update: Change update back to the old behavior,
92178         leaving whitespace alone.  Use one 'sed' command rather than a
92179         pipeline.
92180         (fixlicense): Now a variable, not a function.
92181         (remove_trailing_blanks): Remove.
92182         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
92183         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
92184         Undo previous (whitespace-only) change.
92185
92186 2003-08-12  Paul Eggert  <eggert@twinsun.com>
92187
92188         Merge from coreutils.
92189         * modules/euidaccess: Add lib_SOURCES, include for new
92190         file euidaccess.h
92191
92192 2003-08-12  Paul Eggert  <eggert@twinsun.com>
92193
92194         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
92195         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
92196         Normalize leading white space and remove trailing white space.
92197
92198         Merge from coreutils
92199         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
92200
92201         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
92202         0.12.1.  These files are now being upgraded automatically by
92203         ../config/srclist-update.
92204
92205 2003-08-12  Paul Eggert  <eggert@twinsun.com>
92206
92207         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
92208         Normalize leading white space and remove trailing white space.
92209         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
92210         notice, as per ../config/srclist-update.
92211
92212         Merge from coreutils.
92213         * lib/euidaccess.h: New file.
92214         * lib/euidaccess.c: Include it.
92215         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
92216         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
92217         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
92218
92219 2003-08-12  Paul Eggert  <eggert@twinsun.com>
92220
92221         * config/srclist-update: Add copyright notice.
92222         (remove_id_lines, remove_trailing_blanks): New constants.
92223         (fixfile): Use them to normalize spacing a bit in copied files.
92224         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
92225         Normalize leading white space and remove trailing white space.
92226
92227         * config/texinfo.tex: Sync with texinfo.
92228
92229         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
92230         strtoul.c from libc, to merge coreutils whitespace changes.
92231
92232         * config/srclist.txt: Get the following m4 files from gettext:
92233         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
92234         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
92235         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
92236         wint_t.m4.
92237
92238 2003-08-12  Karl Berry  <karl@gnu.org>
92239
92240         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
92241         been made.
92242
92243 2003-08-11  Paul Eggert  <eggert@twinsun.com>
92244
92245         * modules/gnu-source, m4/gnu-source.m4:
92246         Remove; we're assuming Autoconf 2.54 or later now.
92247         Suggested by Bruno Haible.
92248         * MODULES.html.sh (func_all_modules): Remove gnu-source.
92249
92250 2003-08-11  Bruno Haible  <bruno@clisp.org>
92251
92252         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
92253
92254 2003-08-11  Bruno Haible  <bruno@clisp.org>
92255
92256         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
92257         (vasnprintf): Use it instead of wcslen.
92258
92259 2003-08-11  Bruno Haible  <bruno@clisp.org>
92260
92261         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
92262         value to ensure that _Bool promotes to int. Use #define for _Bool when
92263         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
92264
92265 2003-08-10  Karl Berry  <karl@gnu.org>
92266
92267         * lib/regex.h: update from libc (whitespace fix).
92268
92269 2003-08-09  Paul Eggert  <eggert@twinsun.com>
92270
92271         Merge some files from coreutils.  These changes were
92272         originally made by Jim Meyering.
92273         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
92274         many older Unixes require this.
92275         * lib/alloca.c (alloca): Remove cast to argument of free;
92276         no longer needed in C89.
92277         * lib/alloca_.h, regex.h: Fix white space to match
92278         what GNU indent does.
92279
92280 2003-08-09  Paul Eggert  <eggert@twinsun.com>
92281
92282         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
92283         apparently Emacs's Unicode mode got confused before my 2003-08-05
92284         checkin.
92285
92286 2003-08-08  Paul Eggert  <eggert@twinsun.com>
92287
92288         * m4/extensions.m4: New file.
92289         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
92290         Require gl_USE_SYSTEM_EXTENSIONS.
92291         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
92292         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
92293
92294 2003-08-08  Paul Eggert  <eggert@twinsun.com>
92295
92296         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
92297         * modules/extensions, modules/gnu-source: New files.
92298         * modules/timespec, modules/unlocked-io: Depend on extensions.
92299
92300 2003-08-07  Paul Eggert  <eggert@twinsun.com>
92301
92302         * modules/restrict: New file.
92303         * MODULES.html.sh (func_all_modules): Add restrict.
92304         * modules/regex: Depend on restrict.
92305
92306 2003-08-07  Paul Eggert  <eggert@twinsun.com>
92307
92308         * m4/restrict.m4: New file.
92309         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
92310
92311 2003-08-07  Bruno Haible  <bruno@clisp.org>
92312
92313         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
92314         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
92315
92316 2003-08-07  Bruno Haible  <bruno@clisp.org>
92317
92318         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
92319         makes the module 'getndelim2' compatible with the module 'getline'.
92320
92321 2003-08-05  Paul Eggert  <eggert@twinsun.com>
92322
92323         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
92324         byte with "\201" to avoid glitches when editing that source file
92325         with multi-gnome-terminal.
92326
92327 2003-08-05  Paul Eggert  <eggert@twinsun.com>
92328
92329         * lib/bumpalloc.h: Remove.
92330
92331 2003-08-05  Paul Eggert  <eggert@twinsun.com>
92332
92333         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
92334         * modules/bumpalloc: Remove.
92335
92336 2003-08-04  Paul Eggert  <eggert@twinsun.com>
92337
92338         * lib/getloadavg.c: Change copyright notice and spacing to conform to
92339         GNU coding style.
92340
92341         Merge from coreutils.
92342         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
92343         1. From glibc.
92344         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
92345         from Karl Berry, implemented by Jim Meyering.
92346         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
92347         from Dmitry V. Levin.
92348         Remove anachronistic cast of xrealloc.
92349         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
92350         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
92351         type. Otherwise, it wouldn't compile with at least /bin/cc on
92352         ymp-cray-unicos9.0.2.X.
92353         Combine two mostly-identical uses of alloca into one.
92354         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
92355
92356 2003-08-04  Dave Love  <d.love@dl.ac.uk>
92357
92358         [From Emacs.]
92359
92360         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
92361         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
92362         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
92363         obsolete NLIST_NAME_UNION.
92364         [__GNU__]: Undef BSD and FSCALE.
92365         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
92366
92367 2003-08-03  Paul Eggert  <eggert@twinsun.com>
92368
92369         * lib/stdbool_.h (_Bool): Make it signed char, instead of
92370         an enum type, so that it's guaranteed to promote to int.  See:
92371         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
92372
92373 2003-08-03  Karl Berry  <karl@gnu.org>
92374
92375         * config/depcomp: update from automake.
92376
92377 2003-07-31  Paul Eggert  <eggert@twinsun.com>
92378
92379         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
92380         (strerror): Don't assume that a printable int fits in 14 bytes.
92381
92382 2003-07-31  Bruno Haible  <bruno@clisp.org>
92383
92384         * modules/getpass-gnu: New file.
92385         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
92386
92387 2003-07-31  Bruno Haible  <bruno@clisp.org>
92388
92389         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
92390
92391 2003-07-24  Karl Berry  <karl@gnu.org>
92392
92393         * config/missing: update from automake.
92394
92395 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
92396             Bruno Haible  <bruno@clisp.org>
92397
92398         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
92399         * lib/getline.c (getline, getdelim): Likewise.
92400         Remove _GNU_SOURCE define; now it's defined in config.h through
92401         m4/getline.m4.
92402
92403 2003-07-23  Karl Berry  <karl@gnu.org>
92404
92405         * config/config.sub: update from prep.
92406
92407 2003-07-22  Paul Eggert  <eggert@twinsun.com>
92408
92409         * modules/xalloc (Depends-on): Add exitfail.
92410         * modules/xmemcoll: Likewise.
92411
92412 2003-07-22  Paul Eggert  <eggert@twinsun.com>
92413
92414         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
92415         over-parenthesization in macros.
92416
92417         Sync with coreutils.
92418
92419         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
92420         required by C99.
92421
92422         Use `exit_failure' for xalloc and xmemcoll instead of their own
92423         private exit-failure variables.
92424         * lib/xalloc.h (xalloc_exit_failure): Remove.
92425         * lib/xmalloc.c: Likewise.  Include exitfail.h.
92426         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
92427         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
92428         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
92429         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
92430
92431 2003-07-20  Jim Meyering  <jim@meyering.net>
92432
92433         * modules/closeout (Depends-on): Add exitfail.
92434         Suggestion from Bruno Haible.
92435
92436 2003-07-19  Karl Berry  <karl@gnu.org>
92437
92438         * config/config.sub: update from prep.
92439
92440 2003-07-18  Paul Eggert  <eggert@twinsun.com>
92441
92442         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
92443         Remove.
92444         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
92445         to test that it can stand by itself.  Include "exitfail.h".
92446         Clients should set exit_failure instead.
92447         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
92448
92449 2003-07-18  Bruno Haible  <bruno@clisp.org>
92450
92451         * modules/getndelim2: New file.
92452         * modules/getline: Share files with module getndelim2.
92453         * modules/getnline: Depend on getndelim2 instead of sharing files with
92454         it. Add getnline.c to lib_SOURCES.
92455         * MODULES.html.sh (func_all_modules): Add getndelim2.
92456
92457 2003-07-18  Bruno Haible  <bruno@clisp.org>
92458
92459         * m4/getndelim2.m4: New file.
92460         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
92461         invoke gl_PREREQ_GETNDELIM2.
92462         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
92463         gl_PREREQ_GETNDELIM2.
92464         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
92465         gl_GETNDELIM2.
92466
92467 2003-07-18  Bruno Haible  <bruno@clisp.org>
92468
92469         * lib/getndelim2.h: New file.
92470         * lib/getndelim2.c: Make into a module of its own. Include config.h,
92471         getndelim2.h.
92472         (getndelim2): Make non-static. Change return type to ssize_t.
92473         * lib/getline.h: Change argument names.
92474         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
92475         * lib/getnline.c: Include getndelim2.h.
92476
92477 2003-07-18  Andreas Schwab  <schwab@suse.de>
92478
92479         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
92480
92481 2003-07-17  Karl Berry  <karl@gnu.org>
92482
92483         * config/config.sub: update from prep.
92484
92485 2003-07-17  Bruno Haible  <bruno@clisp.org>
92486
92487         * modules/getnline: New file.
92488         * modules/getline: Add lib/getndelim2.c to source file list.
92489         * MODULES.html.sh (func_all_modules): Add getnline.
92490
92491 2003-07-17  Bruno Haible  <bruno@clisp.org>
92492
92493         * m4/getnline.m4: New file.
92494
92495 2003-07-17  Bruno Haible  <bruno@clisp.org>
92496
92497         * m4/Makefile.am.in: Remove file.
92498         * m4/Makefile.am: Remove file.
92499         * m4/Makefile.in: Remove file.
92500
92501 2003-07-17  Bruno Haible  <bruno@clisp.org>
92502
92503         * lib/getnline.h: New file.
92504         * lib/getnline.c: New file.
92505         * lib/getndelim2.c: New file, extracted from getline.c.
92506         (getndelim2): Renamed from getdelim2, with added nmax argument.
92507         * lib/getline.c: Include getndelim2.c.
92508         (getdelim2): Moved out to getndelim2.c.
92509         (getline, getdelim): Update.
92510
92511 2003-07-17  Bruno Haible  <bruno@clisp.org>
92512
92513         * lib/Makefile.am: Remove file.
92514         * lib/Makefile.in: Remove file.
92515
92516 2003-07-17  Bruno Haible  <bruno@clisp.org>
92517
92518         * configure.in: Remove file.
92519         * Makefile.in: Remove file.
92520
92521 2003-07-17  Bruno Haible  <bruno@clisp.org>
92522
92523         * MODULES.html.sh: Put the </BODY> right before </HTML>.
92524
92525 2003-07-16  Karl Berry  <karl@gnu.org>
92526
92527         * config/srclist-update: was running fixlicense twice, which caused
92528                 texinfo.tex to be nullified for some reason.  Simplify,
92529                 $gplsrc is no longer needed as far as I can see?
92530
92531 2003-07-16  Jim Meyering  <jim@meyering.net>
92532
92533         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
92534
92535 2003-07-15  Paul Eggert  <eggert@twinsun.com>
92536
92537         * config/srclist.txt: Get the following files from gettext-runtime/intl
92538         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
92539         ref-del.sin.  From Bruno Haible.
92540         * config/srclist-update (fixfile): Change grep pattern again, since the
92541         previous fix didn't work (there was another trailing $).  Use
92542         '[$]' to escape the $s.
92543
92544 2003-07-15  Karl Berry  <karl@gnu.org>
92545
92546         * lib/vasnprintf.c: update from gettext.
92547
92548 2003-07-15  Karl Berry  <karl@gnu.org>
92549
92550         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
92551         gets expanded when surrounded by '$'.
92552
92553 2003-07-15  Jim Meyering  <jim@meyering.net>
92554
92555         * modules/save-cwd: Don't depend on error.  From Derek Price.
92556
92557 2003-07-15  Jim Meyering  <jim@meyering.net>
92558
92559         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
92560
92561 2003-07-14  Simon Josefsson  <jas@extundo.com>
92562
92563         * modules/mempcpy: New file.
92564         * MODULES.html.sh (func_all_modules): Add mempcpy.
92565
92566 2003-07-14  Simon Josefsson  <jas@extundo.com>
92567
92568         * m4/mempcpy.m4: New file.
92569
92570 2003-07-14  Simon Josefsson  <jas@extundo.com>
92571
92572         * lib/mempcpy.h: New file.
92573         * lib/mempcpy.c: New file.
92574
92575 2003-07-14  Paul Eggert  <eggert@twinsun.com>
92576
92577         * modules/getdate, modules/posixtm: Depend on mktime.
92578
92579 2003-07-14  Paul Eggert  <eggert@twinsun.com>
92580
92581         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
92582         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
92583         unicodeio.c, unicodeio.h, unlocked-io.h:
92584         Switch from LGPL to GPL.
92585
92586 2003-07-14  Paul Eggert  <eggert@twinsun.com>
92587
92588         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
92589         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
92590         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
92591         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
92592         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
92593         updated automatically by ../config/srclist-update.  This changes
92594         their license from LPGL to GPL.
92595
92596 2003-07-14  Paul Eggert  <eggert@twinsun.com>
92597
92598         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
92599         assumed to refer to the root of the most recent stable gettext version.
92600         * config/srclistvars.sh: Add defaults for eggert.
92601         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
92602         Match "This program" as well as "The program".  This is needed
92603         for gettext.
92604
92605 2003-07-14  Jim Meyering  <jim@meyering.net>
92606
92607         Don't emit diagnostics.  Let callers do that.
92608         * lib/save-cwd.c: Don't include "error.h".
92609         (save_cwd): Don't call error.  Ensure that errno is valid
92610         when returning nonzero.
92611
92612         * lib/save-cwd.h (restore_cwd): Update prototype.
92613         * lib/save-cwd.c (restore_cwd): Remove two parameters.
92614         Simplify.  Don't call error upon failure.  Let callers do that.
92615         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
92616         when auditing is enabled.  But don't bother updating the #if.
92617
92618 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
92619
92620         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
92621         it breaks C++ compilation.
92622         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
92623
92624 2003-07-10  Simon Josefsson  <jas@extundo.com>
92625
92626         * modules/strchrnul (Makefile.am): Add strchrnul.h.
92627
92628 2003-07-10  Jim Meyering  <jim@meyering.net>
92629
92630         * m4/clock_time.m4: Remove trailing blank.
92631         * m4/intmax_t.m4: Likewise.
92632
92633 2003-07-10  Jim Meyering  <jim@meyering.net>
92634
92635         * lib/vasnprintf.c: Remove trailing blanks.
92636         Make cpp indentation consistent.
92637
92638 2003-07-09  Paul Eggert  <eggert@twinsun.com>
92639
92640         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
92641         posixver.c, strftime.c, strnlen.c, strverscmp.c:
92642         Switch from LGPL to GPL.
92643
92644 2003-07-09  Paul Eggert  <eggert@twinsun.com>
92645
92646         * config/srclist.txt: Sort sublists.  Add
92647         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
92648         that differ from gnulib for one reason or another; we'd like this list
92649         to be smaller but for now let's document what we have.
92650
92651 2003-07-08  Paul Eggert  <eggert@twinsun.com>
92652
92653         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
92654         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
92655         and sweeter "eval x=$x".
92656         * config/srclist.txt: Get lib/argp* from glibc.
92657
92658 2003-07-07  Paul Eggert  <eggert@twinsun.com>
92659
92660         * lib/mktime.c: Fix some boundary cases and remove need for floating
92661         point.
92662
92663         Issue a compile-time diagnostic if time_t is floating point, or if
92664         two's complement arithmetic is not in effect, or if arithmetic
92665         right shift does not propagate the sign.  These assumptions were
92666         all in the original code but they weren't checked.
92667
92668         (TIME_T_MIDPOINT, verify): New macros.
92669         (__isleap): Remove; it has integer overflow problems.
92670         (leapyear): New function, without those problems.
92671         (ydhms_tm_diff): Remove; splitting into two parts.
92672         (ydhms_diff): New function, containing the arithmetic part of
92673         the old ydhms_tm_diff function.  Issue a compile-time
92674         diagnostic if we are not using C99 integer division.
92675         Avoid casts when possible.
92676         (guess_time_tm): New function, containing the checking part of
92677         the old ydhms_tm_diff function.  Return the new value, rather than
92678         the difference between it and the old.  Accept a new argument T
92679         so that *T specifies the old value.  Check for overflow in the result.
92680
92681         (__mktime_internal): Use a time_t offset, not a long int offset.
92682         This undoes the 2003-06-04 change, which is no longer needed now
92683         that we have better overflow checking.
92684         (localtime_offset): Likewise.
92685
92686         (__mktime_internal): Avoid harmful overflow on hosts where time_t
92687         and long are 64-bit but int is only 32-bit.
92688         (ydhms_diff): Use long int to store year1 and yday1.
92689         Issue a compile-time diagnostic if long int is not wide enough.
92690
92691         (__mktime_internal): Use long int to store adjusted year and yday.
92692         Use plain C rather than preprocessor commands, if that doesn't
92693         affect efficiency.
92694         Check for overflow (and try to repair) after each probe
92695         rather than checking only at the very end.  This avoids some bugs
92696         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
92697         does not equal GMT offset at maximum time).
92698         Use integer to check for overflow rather than floating point; this
92699         is more portable to non-IEEE hosts, and is a tad faster.
92700         When we detect that we are oscillating between two values,
92701         don't check whether tm_isdst has the requested value, since
92702         we already know the answer.  When tm_isdst has the wrong value,
92703         use a different heuristic to find the right one, based on the
92704         extreme values actually observed in practice in tz2003a,
92705         rather than the (overly optimistic) "previous 3 calendar quarters".
92706
92707         (not_equal_tm, print_tm, check_result): Use "const T" rather than
92708         "T const" to accommodate glibc style.
92709         (check_result): Use less-confusing report format.  "long" -> "long int.
92710         (main): Likewise.
92711         Don't loop if the iteration overflows time_t.
92712         Allow a negative step in the iteration.
92713
92714 2003-07-06  Karl Berry  <karl@gnu.org>
92715
92716         * config/depcomp: update from automake.
92717         * config/config.sub: update from prep.
92718
92719 2003-07-03  Karl Berry  <karl@gnu.org>
92720
92721         * config/config.guess: update from prep.
92722
92723 2003-07-01  Paul Eggert  <eggert@twinsun.com>
92724
92725         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
92726         xreadlink.c now includes it unconditionally.
92727
92728 2003-07-01  Paul Eggert  <eggert@twinsun.com>
92729
92730         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
92731         having it depend on HAVE_SYS_TYPES_H.
92732
92733 2003-07-01  Bruno Haible  <bruno@clisp.org>
92734
92735         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
92736         <sys/types.h> should be sufficient.
92737         Reported by Paul Eggert.
92738
92739 2003-06-26  Karl Berry  <karl@gnu.org>
92740
92741         * config/depcomp: update from automake.
92742
92743 2003-06-26  Bruno Haible  <bruno@clisp.org>
92744
92745         * modules/human: Depend on module stdbool.
92746
92747 2003-06-25  Bruno Haible  <bruno@clisp.org>
92748
92749         * modules/readlink: New file.
92750         * modules/xreadlink: Depend on it.
92751         * MODULES.html.sh (func_all_modules): Add readlink.
92752
92753 2003-06-25  Bruno Haible  <bruno@clisp.org>
92754
92755         * m4/readlink.m4: New file.
92756
92757 2003-06-25  Bruno Haible  <bruno@clisp.org>
92758
92759         * lib/readlink.c: New file.
92760
92761 2003-06-22  Karl Berry  <karl@gnu.org>
92762
92763         * config/srclist.txt: update mkinstalldirs from automake.
92764         * config/mkinstalldirs: update.
92765
92766 2003-06-22  Bruno Haible  <bruno@clisp.org>
92767
92768         Portability to mingw32.
92769         * m4/ssize_t.m4: New file, from GNU gettext.
92770         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
92771         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
92772
92773 2003-06-22  Bruno Haible  <bruno@clisp.org>
92774
92775         * modules/safe-read: Add m4/ssize_t.m4.
92776         * modules/xreadlink: Add m4/ssize_t.m4.
92777
92778 2003-06-20  Bruno Haible  <bruno@clisp.org>
92779
92780         Assume C89, so PARAMS isn't needed.
92781         * lib/unicodeio.h (PARAMS): Remove.
92782         * lib/unicodeio.c: Don't use PARAMS.
92783
92784 2003-06-18  Karl Berry  <karl@gnu.org>
92785
92786         * config/config.{guess,sub}: update from prep.
92787
92788 2003-06-18  Jim Meyering  <jim@meyering.net>
92789
92790         Merge changes from coreutils.
92791         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
92792         Remove explicit declarations of xmalloc and realloc.
92793         Include xalloc.h.
92794         (read_utmp): Remove anachronistic cast of xmalloc.
92795
92796 2003-06-17  Paul Eggert  <eggert@twinsun.com>
92797
92798         Assume C89, so PARAMS isn't needed.
92799         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
92800         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
92801         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
92802         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
92803         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
92804         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
92805         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
92806         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
92807         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
92808         lib/xstrtod.h, lib/xstrtol.h: Likewise.
92809         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
92810         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
92811         no longer needed. Anyway, config.h should always be included before any
92812         other file.
92813
92814 2003-06-11  Simon Josefsson  <jas@extundo.com>
92815
92816         * modules/sysexits: New file.
92817         * MODULES.html.sh (func_all_modules): Add sysexits.
92818
92819 2003-06-11  Simon Josefsson  <jas@extundo.com>
92820
92821         * lib/sysexit_.h: New file.
92822
92823 2003-06-11  Derek Price  <derek@ximbiot.com>
92824
92825         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
92826         necessary.
92827
92828 2003-06-11  Bruno Haible  <bruno@clisp.org>
92829
92830         * m4/sysexits.m4: New file.
92831
92832 2003-06-10  Simon Josefsson  <jas@extundo.com>
92833
92834         * lib/argp.h: New file, from glibc.
92835         * lib/argp-ba.c: New file, from glibc.
92836         * lib/argp-eexst.c: New file, from glibc.
92837         * lib/argp-fmtstream.c: New file, from glibc.
92838         * lib/argp-fmtstream.h: New file, from glibc.
92839         * lib/argp-fs-xinl.c: New file, from glibc.
92840         * lib/argp-help.c: New file, from glibc.
92841         * lib/argp-namefrob.h: New file, from glibc.
92842         * lib/argp-parse.c: New file, from glibc.
92843         * lib/argp-pv.c: New file, from glibc.
92844         * lib/argp-pvh.c: New file, from glibc.
92845         * lib/argp-xinl.c: New file, from glibc.
92846
92847 2003-06-10  Simon Josefsson  <jas@extundo.com>
92848
92849         * modules/strchrnul: New file.
92850
92851 2003-06-10  Simon Josefsson  <jas@extundo.com>
92852
92853         * modules/argp: New file.
92854
92855 2003-06-10  Simon Josefsson  <jas@extundo.com>
92856
92857         * m4/strchrnul.m4: New file.
92858
92859 2003-06-10  Simon Josefsson  <jas@extundo.com>
92860
92861         * lib/strchrnul.h: New file.
92862         * lib/strchrnul.c: New file.
92863
92864 2003-06-10  Bruno Haible  <bruno@clisp.org>
92865
92866         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
92867
92868 2003-06-07  Karl Berry  <karl@gnu.org>
92869
92870         * config/config.{guess,sub}: update from prep.
92871
92872 2003-06-07  Jim Meyering  <jim@meyering.net>
92873
92874         * modules/strtod: Use $(...) notation, not @...@ for
92875         AC_REPLACE'd variables.
92876         * modules/localcharset: Likewise.
92877
92878 2003-06-07  Jim Meyering  <jim@meyering.net>
92879
92880         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
92881         in place of my name in the copyright comment.
92882         Remove definition and uses of __P.
92883
92884         From coreutils.
92885         * lib/stat.c: Don't declare xmalloc explicitly.
92886         Instead, include "xalloc.h".
92887         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
92888         xrealloc, and xcalloc return values.
92889         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
92890         Improve comment.
92891         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
92892
92893 2003-06-07  Bruno Haible  <bruno@clisp.org>
92894
92895         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
92896         avoid AC_CONFIG_LINKS.
92897         * modules/fnmatch (Makefile.am): Use explicit creation rule for
92898         fnmatch.h, to avoid AC_CONFIG_LINKS.
92899         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
92900
92901 2003-06-07  Bruno Haible  <bruno@clisp.org>
92902
92903         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
92904         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
92905         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
92906         directory.
92907         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
92908         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
92909         directory.
92910
92911 2003-06-06  Jim Meyering  <jim@meyering.net>
92912
92913         Merge from coreutils.
92914         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
92915         Consolidate declarations and initializations of *_base* locals.
92916
92917         Merge from coreutils.
92918         This avoids a core dump on systems without GNU putenv,
92919         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
92920         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
92921         (unsetenv): New static function, from GNU libc.
92922         (rpl_putenv): Use it.
92923
92924         * lib/modechange.c: Remove trailing blanks.
92925
92926         Merge from coreutils.
92927         * lib/fsusage.c: Remove declaration of statfs.
92928         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
92929
92930         * lib/posixtm.c: Include <stdbool.h> unconditionally.
92931
92932 2003-06-06  Jim Meyering  <jim@meyering.net>
92933
92934         * lib/stdbool_.h: Renamed from stdbool.h.in.
92935
92936 2003-06-06  Jim Meyering  <jim@meyering.net>
92937             Bruno Haible  <bruno@clisp.org>
92938
92939         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
92940         Adjust Makefile.am snippet not to redirect directly to target.
92941         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
92942
92943 2003-06-05  Paul Eggert  <eggert@twinsun.com>
92944
92945         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
92946         mismatch, look in future quarters as well as past.  This fixes a
92947         bug when processing fall-backwards gaps immediately after a long
92948         period of daylight-saving time.
92949
92950         * lib/mktime.c: Assume freestanding C89 or better.
92951         (HAVE_LIMITS_H): Remove.  Assume it's 1.
92952         (__P): Remove; not used.
92953         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
92954         (mktime, not_equal_tm, print_tm, check_result,
92955         main): Use prototypes.  Use const * where appropriate.
92956         (main): Fix typo in testing code that uncovered by above changes.
92957         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
92958
92959 2003-06-04  Paul Eggert  <eggert@twinsun.com>
92960
92961         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
92962         locale.h, localeconv.  This merges changes from coreutils.
92963
92964         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
92965         It can be removed after the next Autoconf is released.
92966         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
92967         needed.
92968
92969 2003-06-04  Paul Eggert  <eggert@twinsun.com>
92970
92971         * lib/mktime.c: Fix Debian bug 177940
92972         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
92973         (localtime_offset): Now long int, not time_t, because we want it
92974         to be guaranteed to be signed.  All uses changed.
92975         (__mktime_internal): If overflow would occur when adding offset,
92976         don't add it.
92977
92978         Merge 'human' changes from coreutils.  Rewrite to support
92979         locale-specific notations like thousands separators.
92980         * lib/human.c: Simplify authorship notice.
92981         Include human.h immediately after config.h.
92982         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
92983         <limits.h>: Do not include, since human.h does.
92984         (SIZE_MAX, UINTMAX_MAX): New macros.
92985         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
92986         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
92987         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
92988         (power_letter): Renamed from suffixes.
92989         (generate_suffix_backwards): Remove.
92990         (adjust_value): Now takes int style (because of human.h changes)
92991         and long double value (for greater precision on some platforms).
92992         (group_number): New function.
92993         (human_readable): Use it.  Use integer options, not enum.
92994         Put the options before the sizes in the arg list.
92995         Support all the new options.
92996         The old human_readable function has been removed;
92997         use inttostr.h instead.
92998         (human_readable, default_block_size, humblock):
92999         Use uintmax_t, not int, for block sizes.
93000         (human_readable_inexact, block_size_types): Remove.
93001         (block_size_opts): New constant.
93002         (human_options): Renamed from human_block_size, with new signature
93003         that allows block sizes up to UINTMAX_MAX.  All callers changed.
93004         * lib/human.h: Add copyright and authorship notice.
93005         Include <limits.h> and <stdbool.h> unconditionally.
93006         (PARAMS): Remove.  All uses removed.
93007         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
93008         (enum human_inexact_style): Remove tag; now a nameless enum.
93009         (human_floor, human_ceiling, human_round_to_even): Now have
93010         values 2, 0, 1 rather than -1, 1, 0.
93011         (human_group_digits, human_suppress_point_zero, human_autoscale,
93012         human_base_1024, human_SI, human_B): New constants.
93013         (human_readable_inexact, human_block_size): Remove.
93014         (human_readable): Size args are now uintmax_t, not int.
93015         (human_options): New decl.
93016
93017         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
93018         unnecessary now that we assume C89 or better.  This change
93019         imported from coreutils.
93020
93021         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
93022         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
93023         in the 2003-05-30 sync from glibc.
93024
93025         .h files should stand alone, but we shouldn't include <sys/types.h>
93026         if we can get away with just <stddef.h>.
93027
93028         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
93029         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
93030         rather than <sys/types.h>, as we merely need size_t.
93031         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
93032         to get size_t.
93033         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
93034         Include <stdio.h>, to get FILE.
93035         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
93036         memcasecmp.h has included <stddef.h> and all we need is size_t.
93037         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
93038         our interface, instead of including <sys/types.h>
93039
93040 2003-06-04  Paul Eggert  <eggert@twinsun.com>
93041
93042         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
93043         now, as glibc mktime is buggy on non-glibc systems.
93044
93045 2003-06-03  Karl Berry  <karl@gnu.org>
93046
93047         * config/config.sub: update from prep.
93048
93049 2003-06-02  Paul Eggert  <eggert@twinsun.com>
93050
93051         [from coreutils]
93052         Fix some minor time-related bugs with POSIX time arguments.
93053         Some valid time stamps were being rejected (notably -1, and
93054         time stamps before 1900 on 64-bit hosts).  And some invalid
93055         time stamps were being accepted, e.g. September 31.
93056
93057         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
93058         that we can return (time_t) -1 successfully.
93059         * lib/posixtm.c: Likewise.
93060         [HAVE_STDBOOL_H]: Include <stdbool.h>.
93061         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
93062         (t): Remove static var.
93063         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
93064         of static var.  All uses changed.
93065         (year): Do not reject years before 1900; they can occur with
93066         64-bit time_t.
93067         (posix_time_parse): Do not check for out-of-range components;
93068         that is now the caller's responsibility, since our checks were
93069         only approximations.
93070         (posixtime): Use mktime to check for out-of-range components,
93071         since it knows them exactly.
93072         If mktime returns (time_t) -1, check whether an error actually occurred
93073         by invoking localtime on -1.
93074         (main) [TEST_POSIXTIME]: Check for input data errors, and report
93075         posixtime failures better.
93076         Improve the test data (in comments only).
93077
93078 2003-06-02  Karl Berry  <karl@gnu.org>
93079
93080         * config/mkinstalldirs (version): new variable.
93081         (--version): new option.
93082         (usage): improve message.
93083
93084 2003-05-30  Karl Berry  <karl@gnu.org>
93085
93086         * lib/mktime.c: update from libc.
93087
93088 2003-05-30  Bruno Haible  <bruno@clisp.org>
93089
93090         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
93091         * config/config.rpath: Upgrade to gettext-0.12.1.
93092
93093 2003-05-30  Bruno Haible  <bruno@clisp.org>
93094
93095         * m4/gettext.m4: Upgrade to gettext-0.12.1.
93096         * m4/nls.m4: New file, from gettext-0.12.1.
93097         * m4/po.m4: New file, from gettext-0.12.1.
93098         * m4/progtest.m4: Upgrade to gettext-0.12.1.
93099
93100 2003-05-30  Bruno Haible  <bruno@clisp.org>
93101
93102         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
93103         * lib/localcharset.h: Likewise.
93104         * lib/localcharset.c: Likewise.
93105
93106 2003-05-29  Karl Berry  <karl@gnu.org>
93107
93108         * config/config.rpath: update from gettext.
93109
93110 2003-05-28  Paul Eggert  <eggert@twinsun.com>
93111
93112         Assume the headers required for C89 freestanding compilers.
93113         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
93114         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
93115         * m4/human.m4 (gl_HUMAN): Likewise.
93116         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
93117         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
93118         * m4/userspec.m4 (gl_USERSPEC): Likewise.
93119         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
93120         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
93121         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
93122
93123 2003-05-28  Paul Eggert  <eggert@twinsun.com>
93124
93125         Assume the headers required for C89 freestanding compilers.
93126         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
93127         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
93128         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
93129         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
93130         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
93131         define, since <limits.h> is guaranteed to do that.
93132         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
93133         * lib/exclude.c: Include <stdbool.h> unconditionally.
93134         * lib/tempname.c: Include <stddef.h> unconditionally.
93135         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
93136         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
93137         <stddef.h> does that.
93138         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
93139         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
93140         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
93141         needed.
93142         * lib/xstrtol.c: Likewise.
93143         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
93144         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
93145
93146         * lib/addext.c (addext): Use assignment rather than cast, to avoid
93147         warnings on some platforms.
93148
93149         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
93150         arbitrarily.
93151
93152 2003-05-26  Jim Meyering  <jim@meyering.net>
93153
93154         Merge in a change from coreutils:
93155         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
93156         that is guaranteed to be `no'.  Use `no_such_member' to indicate
93157         that condition, rather than `-1' which is slightly misleading.
93158         Change the name of the cache variable to have the gl_ prefix.
93159         Prompted by a patch from Richard Dawe for DJGPP.
93160
93161 2003-05-24  Karl Berry  <karl@gnu.org>
93162
93163         * config/config.guess: update from prep.
93164
93165 2003-05-22  Karl Berry  <karl@gnu.org>
93166
93167         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
93168
93169 2003-05-20  Karl Berry  <karl@gnu.org>
93170
93171         * config/config.guess: update from prep.
93172
93173 2003-05-18  Karl Berry  <karl@gnu.org>
93174
93175         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
93176         might actually be set by the user.
93177
93178         * config/depcomp, install-sh, mdate-sh: update from automake.
93179
93180 2003-05-17  Bruno Haible  <bruno@clisp.org>
93181
93182         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
93183         invalid expansion for AC_EGREP_CPP.
93184         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
93185         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
93186         Suggested by Akim Demaille <akim@epita.fr> in
93187         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
93188
93189 2003-05-12  Jim Meyering  <jim@meyering.net>
93190
93191         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
93192         the space-padded-by-default conversion specifiers, %e, %k, %l.
93193
93194 2003-05-12  Bruno Haible  <bruno@clisp.org>
93195
93196         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
93197         the string is longer than 4 KB.
93198
93199 2003-05-11  Karl Berry  <karl@gnu.org>
93200
93201         * config/config.{guess,sub}: update from prep.
93202
93203 2003-05-09  Bruno Haible  <bruno@clisp.org>
93204
93205         * modules/error: Add m4/strerror_r.m4 to file list.
93206
93207 2003-05-03  Bruno Haible  <bruno@clisp.org>
93208
93209         Upgrade to Unicode-4.0.
93210         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
93211         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
93212         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
93213         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
93214         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
93215         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
93216         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
93217         Change width of U+E0100..U+E01EF from 1 to 0.
93218
93219 2003-04-25  Jim Meyering  <jim@meyering.net>
93220
93221         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
93222         of type size_t, not int.
93223
93224 2003-04-25  Bruno Haible  <bruno@clisp.org>
93225
93226         * lib/copy-file.c: Include <stddef.h>, for size_t.
93227
93228 2003-04-21  Paul Eggert  <eggert@twinsun.com>
93229
93230         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
93231         code which expansion is under static control.  Patch imported from
93232         Akim Demaille's patch to Bison; see
93233         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
93234
93235 2003-04-14  Bruno Haible  <bruno@clisp.org>
93236
93237         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
93238
93239 2003-04-11  Jim Meyering  <jim@meyering.net>
93240
93241         Merge changes from Coreutils.
93242
93243         2003-03-22  Jim Meyering  <jim@meyering.net>
93244
93245         * lib/strftime.c (widen): Cast alloca return value to proper type.
93246
93247         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
93248
93249         From GNU libc.
93250         * lib/strftime.c (my_strftime): Handle very large width
93251         specifications for numeric values correctly.  Improve checks for
93252         overflow.
93253
93254         2003-01-19  Jim Meyering  <jim@meyering.net>
93255
93256         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
93257         definitions.
93258         (nl_get_alt_digit) [! defined my_strftime]: Define.
93259         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
93260         _nl_get_alt_digit and _nl_get_walt_digit.
93261
93262         * lib/strftime.c (my_strftime): Merge in locale-related changes from
93263         libc. These changes have no effect outside of _LIBC.
93264
93265 2003-04-10  Bruno Haible  <bruno@clisp.org>
93266
93267         * modules/findprog: New file.
93268         * MODULES.html.sh (func_all_modules): Add it.
93269
93270 2003-04-10  Bruno Haible  <bruno@clisp.org>
93271
93272         * m4/findprog.m4: New file.
93273         * m4/eaccess.m4: New file.
93274
93275 2003-04-10  Bruno Haible  <bruno@clisp.org>
93276
93277         * lib/findprog.h: New file, from GNU gettext.
93278         * lib/findprog.c: New file, from GNU gettext.
93279
93280 2003-04-05  Jim Meyering  <jim@meyering.net>
93281
93282         Merge changes from Coreutils.
93283
93284         * lib/exclude.h (PARAMS): Remove definition and uses.
93285         * lib/exclude.c: Remove uses of `PARAMS'.
93286
93287         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
93288         Add test-cases for DOS filenames. Declare program_name.
93289         (main): Set up program_name.  Patch by Rich Dawe.
93290
93291         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
93292         error from mntctl.
93293         Use mntctl's return value to drive the entry-processing loop, since
93294         we can't rely on the value of the vmt_length member in the last
93295         entry.  On some systems doing so could result in exhausting
93296         virtual memory.  Based in part on a patch from Mike Jetzer.
93297
93298 2003-04-04  Bruno Haible  <bruno@clisp.org>
93299
93300         * modules/linebreak: New file.
93301         * MODULES.html.sh (func_all_modules): Add it.
93302
93303 2003-04-04  Bruno Haible  <bruno@clisp.org>
93304
93305         * m4/linebreak.m4: New file.
93306
93307 2003-04-04  Bruno Haible  <bruno@clisp.org>
93308
93309         * lib/linebreak.h: New file, from GNU gettext.
93310         * lib/linebreak.c: New file, from GNU gettext with slight
93311         modifications.
93312         * lib/lbrkprop.h: New file, from GNU gettext.
93313
93314 2003-04-03  Bruno Haible  <bruno@clisp.org>
93315
93316         * modules/utf8-ucs4: New file.
93317         * modules/utf16-ucs4: New file.
93318         * modules/ucs4-utf8: New file.
93319         * modules/ucs4-utf16: New file.
93320         * MODULES.html.sh (func_all_modules): Add them.
93321
93322 2003-04-03  Bruno Haible  <bruno@clisp.org>
93323
93324         * m4/utf-ucs4.m4: New file.
93325         * m4/ucs4-utf.m4: New file.
93326
93327 2003-04-03  Bruno Haible  <bruno@clisp.org>
93328
93329         * lib/utf8-ucs4.h: New file, from GNU gettext.
93330         * lib/utf16-ucs4.h: New file, from GNU gettext.
93331         * lib/ucs4-utf8.h: New file, from GNU gettext.
93332         * lib/ucs4-utf16.h: New file, from GNU gettext.
93333
93334 2003-04-02  Bruno Haible  <bruno@clisp.org>
93335
93336         * modules/binary-io: New file.
93337         * MODULES.html.sh (func_all_modules): Add it.
93338
93339 2003-04-02  Bruno Haible  <bruno@clisp.org>
93340
93341         * lib/binary-io.h: New file, from GNU gettext.
93342
93343 2003-04-01  Bruno Haible  <bruno@clisp.org>
93344
93345         * modules/pathname: New file.
93346         * MODULES.html.sh (func_all_modules): Add it.
93347
93348 2003-04-01  Bruno Haible  <bruno@clisp.org>
93349
93350         * lib/pathname.h: New file, from GNU gettext.
93351         * lib/concatpath.c: New file, from GNU gettext.
93352
93353 2003-03-30  Bruno Haible  <bruno@clisp.org>
93354
93355         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
93356
93357 2003-03-30  Bruno Haible  <bruno@clisp.org>
93358
93359         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
93360         function chown() doesn't exist.
93361
93362 2003-03-28  Bruno Haible  <bruno@clisp.org>
93363
93364         * modules/copy-file: New file.
93365         * MODULES.html.sh (func_all_modules): Add it.
93366
93367 2003-03-28  Bruno Haible  <bruno@clisp.org>
93368
93369         * m4/copy-file.m4: New file.
93370
93371 2003-03-28  Bruno Haible  <bruno@clisp.org>
93372
93373         * lib/copy-file.h: New file, from GNU gettext.
93374         * lib/copy-file.c: New file, from GNU gettext.
93375
93376 2003-03-18  Jim Meyering  <jim@meyering.net>
93377
93378         * lib/quote.c (quote_n): Fix typo in comment.
93379
93380 2003-03-18  Bruno Haible  <bruno@clisp.org>
93381
93382         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
93383         checking.
93384         * m4/onceonly_2_57.m4: Likewise.
93385
93386 2003-03-17  Bruno Haible  <bruno@clisp.org>
93387
93388         * m4/onceonly.m4: Require autoconf 2.54 or newer.
93389         (m4_quote): Remove macro.
93390         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
93391
93392 2003-03-14  Jim Meyering  <jim@meyering.net>
93393
93394         Merge changes from Coreutils.
93395         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
93396         to be const, in order to avoid warnings.
93397         (obstack_room): Likewise.
93398         (obstack_empty_p): Likewise.
93399
93400 2003-03-14  Bruno Haible  <bruno@clisp.org>
93401
93402         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
93403         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
93404
93405 2003-03-13  Paul Eggert  <eggert@twinsun.com>
93406
93407         Merge changes from Bison.
93408         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
93409         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
93410         when compiling Bison 1.875's `bitset bset = obstack_alloc
93411         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
93412         * lib/hash.c: Include <stdbool.h> unconditionally.
93413
93414 2003-03-13  Paul Eggert  <eggert@twinsun.com>
93415
93416         * m4/onceonly.m4 (m4_quote): New macro.
93417         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
93418         Quote AC_FOREACH variable-expansions properly.
93419
93420 2003-03-13  Paul Eggert  <eggert@twinsun.com>
93421
93422         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
93423
93424 2003-03-09  Paul Eggert  <eggert@twinsun.com>
93425
93426         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
93427         Reported by Bruce Becker; see:
93428         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
93429
93430 2003-03-03  Paul Eggert  <eggert@twinsun.com>
93431             Bruno Haible  <bruno@clisp.org>
93432
93433         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
93434         Reported by John Hughes, see
93435         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
93436
93437 2003-02-20  Bruno Haible  <bruno@clisp.org>
93438
93439         * MODULES.html.sh (func_all_modules): Add poll.
93440
93441 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
93442
93443         * modules/poll: New file.
93444
93445 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
93446
93447         * lib/poll_.h: New file.
93448         * lib/poll.c: New file.
93449
93450 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
93451
93452         * m4/poll.m4: New file.
93453
93454 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
93455
93456         * modules/mathl: New file.
93457
93458 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
93459
93460         * lib/mathl.h: New file.
93461         * lib/acosl.c: New file.
93462         * lib/asinl.c: New file.
93463         * lib/atanl.c: New file.
93464         * lib/ceill.c: New file.
93465         * lib/cosl.c: New file.
93466         * lib/expl.c: New file.
93467         * lib/floorl.c: New file.
93468         * lib/frexpl.c: New file.
93469         * lib/ldexpl.c: New file.
93470         * lib/logl.c: New file.
93471         * lib/sincosl.c: New file.
93472         * lib/sinl.c: New file.
93473         * lib/sqrtl.c: New file.
93474         * lib/tanl.c: New file.
93475         * lib/trigl.c: New file.
93476         * lib/trigl.h: New file.
93477
93478 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
93479
93480         * m4/mathl.m4: New file.
93481
93482 2003-02-18  Bruno Haible  <bruno@clisp.org>
93483
93484         * MODULES.html.sh (func_all_modules): Add mathl.
93485
93486 2003-02-17  Bruno Haible  <bruno@clisp.org>
93487
93488         * modules/mkdtemp: New module.
93489         * MODULES.html.sh (func_all_modules): Add it.
93490
93491 2003-02-17  Bruno Haible  <bruno@clisp.org>
93492
93493         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
93494
93495 2003-02-17  Bruno Haible  <bruno@clisp.org>
93496
93497         * lib/mkdtemp.h: New file, from GNU gettext.
93498         * lib/mkdtemp.c: New file, from GNU gettext.
93499
93500 2003-02-02  Jim Meyering  <jim@meyering.net>
93501
93502         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
93503         e.g. glibc-2.2.93.
93504
93505 2003-01-31  Bruno Haible  <bruno@clisp.org>
93506
93507         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
93508         'rpl_rename'.
93509         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
93510         'rpl_strnlen'.
93511         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
93512         'rpl_strtod'.
93513         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
93514         'rpl_utime'.
93515
93516 2003-01-31  Bruno Haible  <bruno@clisp.org>
93517
93518         * lib/rename.c: #undef rename before defining rpl_rename.
93519         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
93520
93521 2003-01-30  Bruno Haible  <bruno@clisp.org>
93522
93523         * modules/vasnprintf, modules/vasprintf: New modules.
93524         * MODULES.html.sh (func_all_modules): Add them.
93525
93526 2003-01-30  Bruno Haible  <bruno@clisp.org>
93527
93528         * m4/signed.m4: New file, from GNU gettext.
93529         * m4/longdouble.m4: New file, from GNU gettext.
93530         * m4/wchar_t.m4: New file, from GNU gettext.
93531         * m4/wint_t.m4: New file, from GNU gettext.
93532         * m4/vasnprintf.m4: New file.
93533         * m4/vasprintf.m4: New file.
93534
93535 2003-01-30  Bruno Haible  <bruno@clisp.org>
93536
93537         * lib/printf-args.h: New file, from GNU gettext.
93538         * lib/printf-args.c: New file, from GNU gettext.
93539         * lib/printf-parse.h: New file, from GNU gettext.
93540         * lib/printf-parse.c: New file, from GNU gettext.
93541         * lib/vasnprintf.h: New file, from GNU gettext.
93542         * lib/vasnprintf.c: New file, from GNU gettext.
93543         * lib/asnprintf.c: New file, from GNU gettext.
93544         * lib/vasprintf.h: New file, from GNU gettext with modifications.
93545         * lib/vasprintf.c: New file, from GNU gettext.
93546         * lib/asprintf.c: New file, from GNU gettext.
93547
93548 2003-01-29  Bruno Haible  <bruno@clisp.org>
93549
93550         * modules/stpncpy: New module.
93551         * MODULES.html.sh (func_all_modules): Add it.
93552
93553 2003-01-29  Bruno Haible  <bruno@clisp.org>
93554
93555         * m4/stpncpy.m4: New file.
93556
93557 2003-01-29  Bruno Haible  <bruno@clisp.org>
93558
93559         * lib/stpncpy.h: New file, from GNU gettext with modifications.
93560         * lib/stpncpy.c: New file, from GNU gettext with modifications.
93561
93562 2003-01-28  Bruno Haible  <bruno@clisp.org>
93563
93564         * modules/c-ctype: New module.
93565         * MODULES.html.sh (func_all_modules): Add it.
93566
93567 2003-01-28  Bruno Haible  <bruno@clisp.org>
93568
93569         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
93570         Paul Eggert.
93571         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
93572         Paul Eggert.
93573
93574 2003-01-27  Bruno Haible  <bruno@clisp.org>
93575
93576         * modules/xsetenv: New module.
93577         * MODULES.html.sh (func_all_modules): Add it.
93578
93579 2003-01-27  Bruno Haible  <bruno@clisp.org>
93580
93581         * lib/xsetenv.h: New file, from GNU gettext.
93582         * lib/xsetenv.c: New file, from GNU gettext.
93583
93584 2003-01-23  Jim Meyering  <jim@meyering.net>
93585
93586         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
93587         from working on systems without dirfd (at least Irix and OSF1/Tru64).
93588
93589 2003-01-23  Bruno Haible  <bruno@clisp.org>
93590
93591         * modules/minmax: New module.
93592         * MODULES.html.sh (func_all_modules): Add it.
93593
93594 2003-01-23  Bruno Haible  <bruno@clisp.org>
93595
93596         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
93597         Eggert.
93598
93599 2003-01-22  Bruno Haible  <bruno@clisp.org>
93600
93601         * modules/exit: New module.
93602         * MODULES.html.sh (func_all_modules): Add it.
93603
93604 2003-01-22  Bruno Haible  <bruno@clisp.org>
93605
93606         * lib/exit.h: New file, from GNU gettext.
93607
93608 2003-01-19  Bruno Haible  <bruno@clisp.org>
93609
93610         * gnulib-tool: Recognize option --extract-maintainer.
93611         (func_get_maintainer): New function.
93612         * modules/*: Add Maintainer entry.
93613
93614 2003-01-16  Jim Meyering  <jim@meyering.net>
93615
93616         * m4/regex.m4: The `regex' struct is both input and output.
93617         Initialize it before each use.  Patch by Tim Waugh.
93618
93619 2003-01-16  Bruno Haible  <bruno@clisp.org>
93620
93621         * MODULES.html.sh: Add a table of contents. Add the module name as
93622         leftmost column. Add hyperlinks.
93623
93624 2003-01-15  Bruno Haible  <bruno@clisp.org>
93625
93626         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
93627
93628 2003-01-15  Bruno Haible  <bruno@clisp.org>
93629
93630         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
93631         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
93632         suffix.
93633
93634 2003-01-15  Bruno Haible  <bruno@clisp.org>
93635
93636         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
93637
93638 2003-01-15  Bruno Haible  <bruno@clisp.org>
93639
93640         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
93641         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
93642
93643 2003-01-14  Jim Meyering  <jim@meyering.net>
93644
93645         * lib/same.c (same_name): Tweak a comment.
93646
93647 2003-01-14  Bruno Haible  <bruno@clisp.org>
93648
93649         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
93650         when a string comparison is sufficient.
93651
93652 2003-01-14  Bruno Haible  <bruno@clisp.org>
93653
93654         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
93655         'unsigned int'.
93656
93657 2003-01-14  Bruno Haible  <bruno@clisp.org>
93658
93659         * lib/hash-pjw.c: Add comment about low quality of this function.
93660
93661 2003-01-13  Bruno Haible  <bruno@clisp.org>
93662
93663         * modules/stpcpy: Distribute lib/stpcpy.h.
93664         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
93665
93666 2003-01-13  Bruno Haible  <bruno@clisp.org>
93667
93668         * modules/*: Add a description.
93669         * modules/strpbrk: Fix Makefile.am snippet.
93670         * modules/strtoimax: Fix dependencies.
93671         * modules/strtoumax: Likewise.
93672
93673 2003-01-13  Bruno Haible  <bruno@clisp.org>
93674
93675         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
93676         * modules/alloca (Makefile.am): All object files depend on alloca.h.
93677         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
93678
93679 2003-01-13  Bruno Haible  <bruno@clisp.org>
93680
93681         * gnulib-tool (func_create_testdir): Store config/* files in the main
93682         directory.
93683         * config.rpath: Move to ...
93684         * config/config.rpath: ... here.
93685         * modules/gettext: Contains config/config.rpath, not config.rpath.
93686         * modules/iconv: Likewise.
93687
93688 2003-01-12  Paul Eggert  <eggert@twinsun.com>
93689
93690         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
93691         to avoid collisions with libcurses and libreadline.
93692
93693         * m4/getstr.m4: Remove.
93694         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
93695
93696 2003-01-12  Paul Eggert  <eggert@twinsun.com>
93697
93698         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
93699         to avoid collisions with libcurses and libreadline.
93700
93701         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
93702         * lib/getstr.h, getstr.c: Remove.
93703         * lib/getline.c: Include "getline.h", to check interface.
93704         Move body of old getstr.c here: this defines MIN_CHUNK and
93705         declares getdelim2, which is renamed from getstr.
93706         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
93707
93708         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
93709         All uses changed.
93710         * lib/linebuffer.h: Likewise.
93711         (readline): Remove backward-compatibility macro.
93712
93713 2003-01-12  Paul Eggert  <eggert@twinsun.com>
93714
93715         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
93716         to avoid collisions with libcurses and libreadline.
93717         * getstr: Remove.
93718         * MODULES.html.sh: Remove getstr.
93719         * modules/getline: Depend on unlocked-io, not getstr.
93720
93721 2003-01-12  Jim Meyering  <jim@meyering.net>
93722
93723         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
93724
93725 2003-01-10  Bruno Haible  <bruno@clisp.org>
93726
93727         * modules/alloca: Change Makefile.am requirements. Simplify Include
93728         requirements. Add lib/alloca_.h to file list.
93729
93730 2003-01-10  Bruno Haible  <bruno@clisp.org>
93731
93732         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
93733
93734 2003-01-10  Bruno Haible  <bruno@clisp.org>
93735
93736         * lib/alloca_.h: New file.
93737         * lib/getdate.y: Unconditionally include alloca.h.
93738         * lib/makepath.c: Likewise.
93739         * lib/setenv.c: Likewise.
93740         * lib/userspec.c: Likewise.
93741
93742 2003-01-09  Karl Berry  <karl@gnu.org>
93743
93744         * MODULES.html.sh: include `dirname $0` in PATH, to find
93745         gnulib-tool.
93746
93747 2003-01-09  Bruno Haible  <bruno@clisp.org>
93748
93749         * modules/stdbool: Change configure.ac, Makefile.am requirements.
93750         Simplify Include requirements. Add lib/stdbool.h.in to file list.
93751
93752 2003-01-09  Bruno Haible  <bruno@clisp.org>
93753
93754         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
93755
93756 2003-01-09  Bruno Haible  <bruno@clisp.org>
93757
93758         * lib/stdbool.h.in: New file.
93759
93760 2003-01-09  Bruno Haible  <bruno@clisp.org>
93761
93762         * gnulib-tool (func_all_modules): Ignore files ending in ~.
93763         * MODULES.html.sh: Likewise.
93764
93765 2003-01-08  Jim Meyering  <jim@meyering.net>
93766
93767         * lib/full-write.c: Undefine and define-away `const' after inclusion
93768         of errno.h, not before.  Suggestion from Bruno Haible.
93769
93770 2003-01-08  Bruno Haible  <bruno@clisp.org>
93771
93772         * modules/full-read: Depend on full-write.
93773
93774 2003-01-08  Bruno Haible  <bruno@clisp.org>
93775
93776         * lib/safe-read.c: Include specification header first, to ensure its
93777         selfcontainedness.
93778         * lib/full-write.c: Likewise.
93779
93780 2003-01-07  Jim Meyering  <jim@meyering.net>
93781
93782         * lib/full-write.c: Rework so that it may serve to define full_read,
93783         too.
93784         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
93785
93786 2003-01-07  Bruno Haible  <bruno@clisp.org>
93787
93788         * lib/strtoimax.c: Include <stdint.h> as an alternative to
93789         <inttypes.h>.
93790         * lib/xstrtol.h: Likewise.
93791         * lib/xstrtoimax.c: Likewise.
93792         * lib/xstrtoumax.c: Likewise.
93793         * lib/human.h: Likewise.
93794
93795         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
93796         on systems that have <inttypes.h> but not <stdint.h>.
93797
93798 2003-01-07  Bruno Haible  <bruno@clisp.org>
93799
93800         * MODULES.html.sh: Add copyright notice.
93801         (missed_files): Omit CVS directory entries.
93802         (func_module): Make it work with sed-3.02.
93803         * MODULES.txt: Remove file.
93804
93805 2003-01-06  Jim Meyering  <jim@meyering.net>
93806
93807         * lib/version-etc.c: Update year in translatable copyright string.
93808
93809 2003-01-03  Karl Berry  <karl@gnu.org>
93810
93811         * config/config.{guess,sub}: update from prep.
93812
93813 2003-01-02  Karl Berry  <karl@gnu.org>
93814
93815         * doc/COPYING.DOC: belatedly updated to 1.2.
93816
93817 2003-01-01  Karl Berry  <karl@gnu.org>
93818
93819         * gnulib-tool (func_verify_module): report module name $module in
93820         error message, not $1.
93821         * gnulib-tool (create-testdir): don't complain if destdir couldn't
93822         be created, only if it doesn't exist.
93823         * gnulib-tool (last_checkin_date): don't expand the $Date here.
93824
93825 2002-12-31  Paul Eggert  <eggert@twinsun.com>
93826
93827         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
93828
93829 2002-12-31  Paul Eggert  <eggert@twinsun.com>
93830
93831         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
93832         memcmp if strcoll doesn't work.
93833
93834 2002-12-31  Bruno Haible  <bruno@clisp.org>
93835
93836         * lib/utime.c (utime_null): No need to call ftruncate if the file was
93837         nonempty.
93838
93839 2002-12-31  Bruno Haible  <bruno@clisp.org>
93840
93841         * lib/memcoll.c (STRCOLL): New macro.
93842         (memcoll): Use it.
93843
93844 2002-12-31  Bruno Haible  <bruno@clisp.org>
93845
93846         * lib/localcharset.h: New file.
93847         * lib/localcharset.c: Include it.
93848         * lib/unicodeio.c: Likewise.
93849
93850 2002-12-31  Bruno Haible  <bruno@clisp.org>
93851
93852         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
93853         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
93854
93855 2002-12-31  Bruno Haible  <bruno@clisp.org>
93856
93857         * lib/getline.h: Include <stddef.h>, for size_t.
93858
93859         * lib/unicodeio.h: Include <stddef.h>, for size_t.
93860         * lib/unicodeio.c: Don't include <stddef.h>.
93861
93862 2002-12-31  Bruno Haible  <bruno@clisp.org>
93863
93864         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
93865         HAVE_TM_ZONE.
93866
93867 2002-12-24  Karl Berry  <karl@gnu.org>
93868
93869         * config/config.guess: update from prep.
93870
93871 2002-12-24  Bruno Haible  <bruno@clisp.org>
93872
93873         General infrasructure.
93874         * m4/README: Rewritten.
93875         * m4/onceonly.m4: New file.
93876         * m4/onceonly_2_57.m4: New file.
93877
93878         Module atexit.
93879         * m4/atexit.m4: New file.
93880
93881         Module strtod.
93882         * m4/strtod.m4: New file.
93883
93884         Module strtol.
93885         * m4/strtol.m4: New file.
93886
93887         Module strtoul.
93888         * m4/strtoul.m4: New file.
93889
93890         Module memchr.
93891         * m4/memchr.m4: New file.
93892
93893         Module memcmp.
93894         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
93895         (jm_FUNC_MEMCMP): Invoke it.
93896
93897         Module memcpy.
93898         * m4/memcpy.m4: New file.
93899
93900         Module memmove.
93901         * m4/memmove.m4: New file.
93902
93903         Module memset.
93904         * m4/memset.m4: New file.
93905
93906         Module strcspn.
93907         * m4/strcspn.m4: New file.
93908
93909         Module strpbrk.
93910         * m4/strpbrk.m4: New file.
93911
93912         Module strstr.
93913         * m4/strstr.m4: New file.
93914
93915         Module strerror.
93916         * m4/strerror.m4: New file.
93917
93918         Module mktime.
93919         * m4/mktime.m4: Renamed from jm-mktime.m4.
93920         (gl_PREREQ_MKTIME): New macro.
93921         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
93922
93923         Module malloc.
93924         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
93925         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
93926         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
93927
93928         Module realloc.
93929         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
93930         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
93931         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
93932
93933         Module strftime.
93934         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
93935         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
93936         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
93937         gl_TM_GMTOFF.
93938         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
93939
93940         Module xalloc.
93941         * m4/xalloc.m4: New file.
93942
93943         Module alloca.
93944         * m4/alloca.m4: New file.
93945
93946         Module putenv.
93947         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
93948         (jm_FUNC_PUTENV): Invoke it.
93949
93950         Module setenv.
93951         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
93952         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
93953         when invoked twice.
93954         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
93955         gt_FUNC_SETENV.
93956
93957         Module memrchr.
93958         * m4/memrchr.m4: New file.
93959
93960         Module stpcpy.
93961         * m4/stpcpy.m4: New file.
93962
93963         Module strcase.
93964         * m4/strcase.m4: New file.
93965
93966         Module strdup.
93967         * m4/strdup.m4: New file.
93968
93969         Module strnlen.
93970         * m4/strnlen.m4: New file.
93971
93972         Module strndup.
93973         * m4/strndup.m4: New file.
93974
93975         Module xstrtod.
93976         * m4/xstrtod.m4: New file.
93977
93978         Module xstrtol.
93979         * m4/xstrtol.m4: New file.
93980
93981         Module getdate.
93982         * m4/getdate.m4: New file.
93983
93984         Module unlocked-io.
93985         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
93986         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
93987         * m4/jm-glibc-io.m4n: Remove file.
93988
93989         Module long-options.
93990         * m4/long-options.m4: New file.
93991
93992         Module md5.
93993         * m4/md5.m4: New file.
93994
93995         Module sha.
93996         * m4/sha.m4: New file.
93997
93998         Module getstr.
93999         * m4/getstr.m4: New file.
94000
94001         Module getline.
94002         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
94003         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
94004         <sys/types.h>, for size_t. Use the function name gnu_getline, not
94005         simply getline. Infoke gl_PREREQ_GETLINE.
94006
94007         Module obstack.
94008         * m4/obstack.m4: New file.
94009
94010         Module hash.
94011         * m4/hash.m4: New file.
94012
94013         Module readtokens.
94014         * m4/readtokens.m4: New file.
94015
94016         Module strverscmp.
94017         * m4/strverscmp.m4: New file.
94018
94019         Module stdbool.
94020         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
94021         OSF/1.
94022
94023         Module strtoll.
94024         * m4/strtoll.m4: New file.
94025
94026         Module strtoull.
94027         * m4/strtoull.m4: New file.
94028
94029         Module strtoimax.
94030         * m4/strtoimax.m4: New file.
94031
94032         Module strtoumax.
94033         * m4/strtoumax.m4: New file.
94034
94035         Module xstrtoimax.
94036         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
94037         jm_AC_PREREQ_XSTRTOIMAX.
94038         Moved the strtol prerequisites to strtol.m4.
94039         Moved the strtoll prerequisites to strtoll.m4.
94040         Moved the strtoimax prerequisites to strtoimax.m4.
94041
94042         Module xstrtoumax.
94043         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
94044         jm_AC_PREREQ_XSTRTOUMAX.
94045         Moved the strtoul prerequisites to strtoul.m4.
94046         Moved the strtoull prerequisites to strtoull.m4.
94047         Moved the strtoumax prerequisites to strtoumax.m4.
94048
94049         Module chown.
94050         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
94051         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
94052
94053         Module dup2.
94054         * m4/dup2.m4: New file.
94055
94056         Module ftruncate.
94057         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
94058         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
94059
94060         Module getgroups.
94061         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
94062         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
94063
94064         Module gettimeofday.
94065         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
94066         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
94067         gl_PREREQ_GETTIMEOFDAY.
94068
94069         Module mkdir.
94070         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
94071         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
94072
94073         Module mkstemp.
94074         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
94075         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
94076         jm_AC_TYPE_UINTMAX_T.
94077         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
94078
94079         Module stat.
94080         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
94081         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
94082
94083         Module lstat.
94084         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
94085         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
94086
94087         Module timespec.
94088         * m4/timespec.m4 (gl_TIMESPEC): New macro.
94089         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
94090         * m4/st_mtim.m4: Indentation.
94091
94092         Module nanosleep.
94093         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
94094         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
94095         gl_PREREQ_NANOSLEEP.
94096
94097         Module regex.
94098         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
94099         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
94100         (gl_REGEX): New macro.
94101
94102         Module rename.
94103         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
94104         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
94105
94106         Module rmdir.
94107         * m4/rmdir.m4: New file.
94108
94109         Module utime.
94110         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
94111         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
94112         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
94113
94114         Module dirname.
94115         * m4/dirname.m4: New file.
94116
94117         Module getopt.
94118         * m4/getopt.m4: New file.
94119
94120         Module unistd-safer.
94121         * m4/unistd-safer.m4: New file.
94122
94123         Module fnmatch.
94124         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
94125         declaration.
94126         (gl_PREREQ_FNMATCH_EXTRA): New macro.
94127         (gl_FUNC_FNMATCH_POSIX): New macro.
94128         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
94129         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
94130         simply fnmatch.
94131
94132         Module exclude.
94133         * m4/exclude.m4: New file.
94134
94135         Module human.
94136         * m4/human.m4: New file.
94137
94138         Module acl.
94139         * m4/acl.m4: Nop.
94140
94141         Module backupfile.
94142         * m4/backupfile.m4: New file.
94143         * m4/d-ino.m4: Indentation.
94144
94145         Module fsusage.
94146         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
94147         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
94148         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
94149
94150         Module dirfd.
94151         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
94152         requirements.
94153
94154         Module euidaccess.
94155         * m4/euidaccess.m4: New file.
94156
94157         Module file-type.
94158         * m4/file-type.m4: New file.
94159
94160         Module fileblocks.
94161         * m4/fileblocks.m4: New file.
94162
94163         Module filemode.
94164         * m4/filemode.m4: New file.
94165
94166         Module isdir.
94167         * m4/isdir.m4: New file.
94168
94169         Module lchown.
94170         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
94171         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
94172
94173         Module makepath.
94174         * m4/makepath.m4: New file.
94175
94176         Module modechange.
94177         * m4/modechange.m4: New file.
94178
94179         Module mountlist.
94180         * m4/mountlist.m4: New file.
94181         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
94182         Indentation.
94183
94184         Module path-concat.
94185         * m4/path-concat.m4: New file.
94186
94187         Module pathmax.
94188         * m4/pathmax.m4: New file.
94189
94190         Module same.
94191         * m4/same.m4: New file.
94192
94193         Module save-cwd.
94194         * m4/save-cwd.m4: New file.
94195
94196         Module savedir.
94197         * m4/savedir.m4: New file.
94198
94199         Module xgetcwd.
94200         * m4/xgetcwd.m4: New file.
94201         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
94202
94203         Module xreadlink.
94204         * m4/xreadlink.m4: New file.
94205
94206         Module safe-read.
94207         * m4/safe-read.m4: New file.
94208
94209         Module safe-write.
94210         * m4/safe-write.m4: New file.
94211
94212         Module closeout.
94213         * m4/closeout.m4: New file.
94214
94215         Module stdio-safer.
94216         * m4/stdio-safer.m4: New file.
94217
94218         Module getpass.
94219         * m4/getpass.m4: New file.
94220
94221         Module getugroups.
94222         * m4/getugroups.m4: New file.
94223
94224         Module group-member.
94225         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
94226         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
94227
94228         Module idcache.
94229         * m4/idcache.m4: New file.
94230
94231         Module userspec.
94232         * m4/userspec.m4: New file.
94233
94234         Module gettime.
94235         * m4/clock_time.m4: New file.
94236         * m4/gettime.m4: New file.
94237
94238         Module settime.
94239         * m4/settime.m4: New file.
94240
94241         Module posixtm.
94242         * m4/posixtm.m4: New file.
94243
94244         Module gethostname.
94245         * m4/gethostname.m4: New file.
94246
94247         Module canon-host.
94248         * m4/canon-host.m4: New file.
94249
94250         Module gettext.
94251         * m4/codeset.m4: New file, from gettext-0.11.5.
94252         * m4/gettext.m4: New file, from gettext-0.11.5.
94253         * m4/glibc21.m4: New file, from gettext-0.11.5.
94254         * m4/iconv.m4: New file, from gettext-0.11.5.
94255         * m4/intdiv0.m4: New file, from gettext-0.11.5.
94256         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
94257         * m4/inttypes.m4: New file, from gettext-0.11.5.
94258         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
94259         * m4/isc-posix.m4: New file, from gettext-0.11.5.
94260         * m4/lcmessage.m4: New file, from gettext-0.11.5.
94261         * m4/lib-ld.m4: New file, from gettext-0.11.5.
94262         * m4/lib-link.m4: New file, from gettext-0.11.5.
94263         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
94264         * m4/progtest.m4: New file, from gettext-0.11.5.
94265         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
94266         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
94267         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
94268
94269         Module localcharset.
94270         * m4/localcharset.m4: New file.
94271
94272         Module hard-locale.
94273         * m4/hard-locale.m4: New file.
94274
94275         Module mbswidth.
94276         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
94277         onceonly macros.
94278         * m4/mbrtowc.m4: Add comment.
94279
94280         Module memcasecmp.
94281         * m4/memcasecmp.m4: New file.
94282
94283         Module memcoll.
94284         * m4/memcoll.m4: New file.
94285
94286         Module unicodeio.
94287         * m4/unicodeio.m4: New file.
94288
94289         Module rpmatch.
94290         * m4/rpmatch.m4: New file.
94291
94292         Module yesno.
94293         * m4/yesno.m4: New file.
94294
94295         Module exitfail.
94296         * m4/exitfail.m4: New file.
94297
94298         Module c-stack.
94299         * m4/c-stack.m4 (gl_C_STACK): New macro.
94300         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
94301
94302         Module error.
94303         * m4/error.m4 (gl_ERROR): New macro.
94304         (jm_PREREQ_ERROR): Use onceonly macros.
94305
94306         Module fatal.
94307         * m4/fatal.m4: New file.
94308
94309         Module getloadavg.
94310         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
94311         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
94312
94313         Module getpagesize.
94314         * m4/getpagesize.m4: New file.
94315
94316         Module getusershell.
94317         * m4/getusershell.m4: New file.
94318
94319         Module physmem.
94320         * m4/physmem.m4: New file.
94321
94322         Module posixver.
94323         * m4/posixver.m4: New file.
94324
94325         Module quotearg.
94326         * m4/quotearg.m4: New file.
94327
94328         Module quote.
94329         * m4/quote.m4: New file.
94330
94331         Module readutmp.
94332         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
94333
94334         Module sig2str.
94335         * m4/sig2str.m4: New file.
94336
94337         Other.
94338         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
94339         ulonglong.m4.
94340         * m4/intmax_t.m4: New file.
94341         * m4/d-type.m4: Indentation.
94342         * m4/jm-macros.m4: Update.
94343         * m4/prereq.m4 (jm_PREREQ): Update.
94344         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
94345         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
94346         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
94347         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
94348         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
94349         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
94350         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
94351         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
94352         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
94353         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
94354         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
94355         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
94356         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
94357         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
94358         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
94359         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
94360         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
94361         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
94362         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
94363
94364 2002-12-24  Bruno Haible  <bruno@clisp.org>
94365
94366         * MODULES.txt: Update according to m4/ changes.
94367
94368         Module gettext.
94369         * config.rpath: New file, from gettext-0.11.5.
94370
94371         * modules/*: New module descriptions.
94372         * gnulib-tool: New file.
94373         * MODULES.html.sh: New file.
94374
94375 2002-12-21  Karl Berry  <karl@gnu.org>
94376
94377         * doc/fdl.texi: update to version 1.2.
94378
94379 2002-12-19  Karl Berry  <karl@gnu.org>
94380
94381         * config/config.guess: update from prep.
94382
94383 2002-12-18  Bruno Haible  <bruno@clisp.org>
94384
94385         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
94386         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
94387
94388 2002-12-17  Bruno Haible  <bruno@clisp.org>
94389
94390         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
94391         stdlib.h, string.h.
94392
94393 2002-12-17  Bruno Haible  <bruno@clisp.org>
94394
94395         * lib/canon-host.c (strdup): Remove unused declaration.
94396
94397         * lib/fsusage.c: Include full_read.h.
94398         (get_fs_usage): Use full_read instead of safe_read.
94399
94400         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
94401
94402 2002-12-12  Karl Berry  <karl@gnu.org>
94403
94404         * config/config.guess: update from prep.
94405
94406 2002-12-11  Bruno Haible  <bruno@clisp.org>
94407
94408         * m4/setenv.m4: New file, from gettext-0.11.5.
94409
94410 2002-12-11  Bruno Haible  <bruno@clisp.org>
94411
94412         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
94413         not unsetenv().
94414         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
94415         modifications:
94416
94417         2002-12-11  Bruno Haible  <bruno@clisp.org>
94418
94419                 * setenv.c (alloca): Fall back to malloc.
94420                 (freea): New macro.
94421                 (setenv): Use freea() to free memory allocated with alloca().
94422
94423         2002-11-13  Bruno Haible  <bruno@clisp.org>
94424
94425                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
94426                 function declarations.
94427                 * unsetenv.c (unsetenv): Likewise.
94428
94429         2002-03-04  Bruno Haible  <bruno@clisp.org>
94430
94431                 Portability to AIX 4.3.3.
94432                 * unsetenv.c: New file, extracted from setenv.c.
94433                 * setenv.c: Move the unsetenv() function to unsetenv.c.
94434
94435         2001-12-20  Bruno Haible  <bruno@clisp.org>
94436
94437                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
94438                 use malloc instead. For SunOS 4.
94439
94440         2001-12-11  Bruno Haible  <bruno@clisp.org>
94441
94442                 * setenv.c: Declare alloca.
94443                 (compar_fn_t): New typedef.
94444                 (KNOWN_VALUE, STORE_VALUE): Use it.
94445
94446         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
94447         setenv.h.
94448
94449 2002-12-10  Paul Eggert  <eggert@twinsun.com>
94450
94451         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
94452         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
94453         Choose values that are less likely to collide with system fnmatch
94454         options.
94455         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
94456         defined (e.g., a pure POSIX system).
94457         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
94458         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
94459
94460 2002-12-06  Paul Eggert  <eggert@twinsun.com>
94461
94462         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
94463         a pain in practice to deal with generated m4 files.  This change
94464         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
94465
94466         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
94467         and jm-glibc-io.m4, as they are no longer a special case.
94468         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
94469         kludge and the auto-generation stuff.  Check only whether the
94470         functions are declared, not whether they exist, since older hosts
94471         that don't declare the functions can't use the optimization anyway.
94472
94473 2002-12-06  Jim Meyering  <jim@meyering.net>
94474
94475         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
94476
94477         Merge in changes from libc's misc/error.c, in preparation
94478         for the merge of gnulib's changes back into libc.
94479
94480         * lib/error.c (_): Define only if not already defined.
94481         Move definition to follow all #include directives.
94482         Include unlocked-io.h only if !_LIBC.
94483         [_LIBC]: Include <libio/libioP.h>.
94484         [USE_IN_LIBIO]: Include <libio/iolibio.h>
94485         (fflush): Tweak definition to use INTUSE.
94486         (putc): Define.
94487
94488 2002-12-05  Paul Eggert  <eggert@twinsun.com>
94489
94490         * lib/alloca.c [defined emacs]: Include "lisp.h".
94491         (xalloc_die) [defined emacs]: New macro.
94492         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
94493         [! defined emacs]: Include <xalloc.h>.
94494         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
94495         (pointer): Typedef to POINTER_TYPE *.
94496         (malloc): Remove decl; we now always use xmalloc.
94497         (alloca): Use old-style definition, since Emacs needs this.
94498         Check for arithmetic overflow when computing combined size.
94499
94500 2002-12-04  Paul Eggert  <eggert@twinsun.com>
94501
94502         Do not generate unlocked-io.h automatically, since it's easier to
94503         maintain it by hand.
94504
94505         * lib/unlocked-io.h: New file, from GNU diffutils,
94506         but with proper copyright notice and attribution.
94507         * lib/gen-uio: Remove.
94508         * lib/Makefile.am: Add copyright notice.
94509         (libfetish_a_SOURCES): Add unlocked-io.h.
94510         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
94511         (DISTCLEANFILES, io_functions): Remove macros.
94512         (EXTRA_DIST): Remove gen_uio.
94513         (unlocked-io.h): Remove rule.
94514
94515 2002-12-04  Jim Meyering  <jim@meyering.net>
94516
94517         Reflect the fact that stat.c and lstat.c are no longer generated.
94518         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
94519         (DISTCLEANFILES): Likewise.
94520         (EXTRA_DIST): Likewise.
94521         (all_local): Don't depend on stat.c or lstat.c.
94522         (stat.c, lstat.c): Remove rules.
94523         (EXTRA_DIST): Remove xstat.in.
94524
94525         * lib/xstat.in: Remove file.  Contents moved into stat.c.
94526         * lib/stat.c: New file.  Contents mostly from xstat.in.
94527         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
94528         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
94529
94530         * lib/safe-read.c: Rework so that it may serve to define safe_write,
94531         too.
94532         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
94533
94534 2002-12-03  Jim Meyering  <jim@meyering.net>
94535
94536         * lib/safe-read.c, safe-write.c: Change variable names and comments,
94537         but not semantics, to minimize the differences between these two files.
94538         (safe_read): Change comment to mention SAFE_READ_ERROR.
94539
94540         * lib/safe-read.c (IS_EINTR): Define.
94541         (safe_read): Use IS_EINTR in place of in-function cpp directives.
94542
94543 2002-12-02  Jim Meyering  <jim@meyering.net>
94544
94545         * lib/safe-read.c (EINTR): Define.
94546         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
94547         (INT_MAX): Provide fallback.
94548         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
94549
94550         * lib/safe-read.h (SAFE_READ_ERROR): Define.
94551
94552 2002-12-02  Bruno Haible  <bruno@clisp.org>
94553
94554         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
94555         Define, taken from safe-read.c.
94556         (INT_MAX): Provide fallback.
94557         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
94558         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
94559
94560         * lib/safe-read.c (EINTR): Remove definition.
94561         (safe_read): Don't use EINTR if it is absent.
94562
94563 2002-12-01  Jim Meyering  <jim@meyering.net>
94564
94565         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
94566         zero.
94567         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
94568
94569 2002-11-27  Paul Eggert  <eggert@twinsun.com>
94570
94571         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
94572         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
94573         with `if (! (value < limit)) abort ();', for readability.
94574
94575 2002-11-26  Karl Berry  <karl@gnu.org>
94576
94577         * lib/strdup.c: copy from libc again, with jim's ok.
94578         * lib/.cppi-disable: re-add strdup.c
94579
94580 2002-11-25  Karl Berry  <karl@gnu.org>
94581
94582         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
94583         instead of "strtol.c".
94584
94585 2002-11-25  Karl Berry  <karl@gnu.org>
94586
94587         * config/install-sh: update from automake for variable quoting, $0 in
94588         error msgs, etc.
94589
94590         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
94591         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
94592         entry.
94593
94594 2002-11-25  Jim Meyering  <jim@meyering.net>
94595
94596         * lib/mktime.c: Sync from libc, now that it has the latest fix.
94597
94598 2002-11-24  Karl Berry  <karl@gnu.org>
94599
94600         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
94601         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
94602
94603 2002-11-24  Jim Meyering  <jim@meyering.net>
94604
94605         Update from coreutils:
94606
94607         * lib/mktime.c: Merge in changes from libc.
94608
94609         Avoid a link-time failure on some Linux systems.
94610         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
94611         (otherwise).
94612         (__mon_yday): Declare with the STATIC attribute.
94613         (__mktime_internal): Likewise.
94614         Based on a report from Greg Schafer.
94615
94616 2002-11-23  Jim Meyering  <jim@meyering.net>
94617
94618         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
94619         Use `unsigned', not `int', as type of index.
94620
94621         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
94622
94623         * lib/fsusage.c: Remove unneeded parentheses around operands of
94624         `defined'.
94625
94626 2002-11-22  Paul Eggert  <eggert@twinsun.com>
94627
94628         * lib/quotearg.h: Allow multiple inclusion by surrounding with
94629         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
94630         so that we can be included first.
94631         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
94632         * lib/quotearg.c: Include quotearg.h immediately after config.h.
94633         No need to include stddef.h or sys/types.h any more.
94634         Surround local include files with "", not "<>".
94635         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
94636         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
94637         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
94638         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
94639         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
94640         (ISPRINT): Remove; no longer needed now that we assume C89.
94641
94642         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
94643         Preserve errno.
94644
94645         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
94646         quotearg_char): Use SIZE_MAX rather than
94647         (size_t) -1 when we are talking about "infinity".
94648
94649         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
94650
94651 2002-11-22  Paul Eggert  <eggert@twinsun.com>
94652
94653         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
94654         hint that one should use `if (! x) abort ();' rather than `assert
94655         (x);', and anyway it's one less thing to worry about configuring.
94656         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
94657         hash_rehash, hash_insert): Use abort rather than assert.
94658
94659 2002-11-22  Bruno Haible  <bruno@clisp.org>
94660
94661         * lib/safe-read.h: Assume C89. Add comments.
94662         (safe_read): Change return type to size_t.
94663         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
94664         byte counts > SSIZE_MAX correctly.
94665         * lib/safe-write.h: New file.
94666         * lib/safe-write.c: New file.
94667         * lib/full-read.h: New file.
94668         * lib/full-read.c: New file.
94669         * lib/full-write.h: Assume C89. Add comments.
94670         * lib/full-write.c: Include safe-write.h.
94671         (full_write): Rewritten to use safe_write.
94672         Suggested by Jim Meyering and Paul Eggert.
94673
94674 2002-11-21  Jim Meyering  <jim@meyering.net>
94675
94676         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
94677
94678         Merge in changes from the coreutils.
94679
94680         2002-09-25  Paul Eggert  <eggert@twinsun.com>
94681         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
94682         <stdint.h>.
94683         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
94684         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
94685         int.  Work more efficiently if X is the same width as uintmax_t.
94686         Do not compare X to -1, to avoid bogus compiler warning.
94687         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
94688         Don't assume that f_frsize and f_bsize are the same type.
94689
94690         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
94691         warning on FreeBSD.
94692
94693         * lib/makepath.c (make_path): Restore umask *before* creating the final
94694         component.
94695         (make_path): Minor reformatting.
94696
94697         * lib/xmalloc.c: Adjust to work with new autoconf macros,
94698         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
94699         HAVE_MALLOC/HAVE_REALLOC.
94700
94701         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
94702         dummy ones.  At least on GNU/Linux systems, `auto' means something
94703         else.
94704         From Michael Stone.
94705
94706 2002-11-21  Bruno Haible  <bruno@clisp.org>
94707
94708         Remove case insensitive option matching.
94709         * lib/argmatch.h (argcasematch): Remove declaration.
94710         (ARGCASEMATCH): Remove macro.
94711         (__xargmatch_internal): Remove case_sensitive argument.
94712         (XARGMATCH): Update.
94713         (XARGCASEMATCH): Remove macro.
94714         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
94715         case_sensitive argument.
94716         (argcasematch): Remove function.
94717         (__xargmatch_internal): Remove case_sensitive argument.
94718         (main): Use XARGMATCH instead of XARGCASEMATCH.
94719
94720         * lib/xmalloc.c: Change compile-time error message. Add comment about
94721         required autoconf version.
94722
94723 2002-11-20  Paul Eggert  <eggert@twinsun.com>
94724
94725         Merge argmatch cleanups from Bison.  Assume C89.
94726
94727         * lib/argmatch.c: Include config.h here, not in argmatch.h.
94728         Include stdlib.h, for EXIT_FAILURE.
94729         Always include <string.h>, since we assume C89.
94730         (EXIT_FAILURE): Remove pre-C89 bug workaround.
94731         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
94732         Include <stddef.h> instead, since it's all we need for size_t.
94733         (PARAMS): Remove.  All uses removed.
94734         (ARRAY_CARDINALITY): Do not bother to #undef.
94735         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
94736         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
94737         Remove unnecessary parentheses.
94738         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
94739         Insert necessary parentheses.
94740         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
94741         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
94742
94743 2002-11-19  Bruno Haible  <bruno@clisp.org>
94744
94745         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
94746         * lib/mbswidth.h: Include <stddef.h>, for size_t.
94747
94748         * lib/mbswidth.h (PARAMS): Remove macro.
94749         (mbswidth, mbsnwidth): Use ANSI C function declarations.
94750         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
94751
94752         * lib/gcd.h (PARAMS): Remove macro.
94753         (gcd): Use ANSI C function declarations.
94754         * lib/gcd.c (gcd): Likewise.
94755
94756 2002-11-15  Bruno Haible  <bruno@clisp.org>
94757
94758         * lib/strcspn.c: Include <stddef.h>.
94759         (strcspn): Use ANSI C function declaration. Change return type to
94760         size_t. Use NULL.
94761         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
94762         (strpbrk): Use NULL.
94763         * lib/strpbrk.h (PARAMS): Remove macro.
94764         (strpbrk): Use ANSI C function declaration.
94765         * lib/strstr.c: Don't include <sys/types.h>.
94766         * lib/strstr.h (PARAMS): Remove macro.
94767         (strstr): Use ANSI C function declarations.
94768
94769 2002-11-14  Karl Berry  <karl@gnu.org>
94770
94771         * config/mkinstalldirs: `do' on separate line, instead of
94772         `for var; do'.
94773
94774 2002-11-06  Bruno Haible  <bruno@clisp.org>
94775
94776         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
94777         * lib/gcd.c (gcd): Likewise.
94778
94779 2002-11-05  Bruno Haible  <bruno@clisp.org>
94780
94781         * lib/gcd.h: New file, from gettext-0.11.5.
94782         * lib/gcd.c: New file, from gettext-0.11.5.
94783
94784 2002-11-05  Bruno Haible  <bruno@clisp.org>
94785
94786         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
94787         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
94788         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
94789         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
94790
94791         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
94792         <libintl.h>.
94793         * lib/makepath.c: Include gettext.h instead of <locale.h> and
94794         <libintl.h>.
94795
94796         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
94797         * lib/human.c: Include gettext.h instead of <libintl.h>.
94798         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
94799         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
94800         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
94801         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
94802         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
94803         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
94804         (textdomain): Remove definition.
94805         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
94806
94807         * lib/long-options.c: Remove include of <libintl.h> and definition of
94808         _.
94809         * lib/same.c: Remove include of <libintl.h> and definition of _.
94810
94811 2002-11-04  Owen Taylor  <otaylor@redhat.com>
94812
94813         * lib/config.charset: A few additions for Solaris.
94814
94815 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
94816
94817         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
94818         * lib/localcharset.c (locale_charset): Declare as extern "C".
94819
94820 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
94821
94822         * lib/config.charset: msdos in uk_UA uses CP1125.
94823
94824 2002-11-04  Bruno Haible  <bruno@clisp.org>
94825
94826         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
94827         * lib/strcase.h: New file, from GNU gettext-0.11.5.
94828         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
94829         * lib/strstr.h: New file, from GNU gettext-0.11.5.
94830         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
94831
94832 2002-11-04  Bruno Haible  <bruno@clisp.org>
94833
94834         * lib/localcharset.c (locale_charset): Don't return an empty string.
94835
94836 2002-11-04  Bruno Haible  <bruno@clisp.org>
94837
94838         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
94839         aliases.
94840
94841 2002-11-04  Bruno Haible  <bruno@clisp.org>
94842
94843         * lib/config.charset: Update for newest glibc. Add canonical names
94844         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
94845
94846 2002-11-04  Bruno Haible  <bruno@clisp.org>
94847
94848         * lib/config.charset: Add support for NetBSD.
94849
94850 2002-11-04  Bruno Haible  <bruno@clisp.org>
94851
94852         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
94853
94854 2002-11-01  Bruno Haible  <bruno@clisp.org>
94855
94856         * configure.in: Add AC_CONFIG_AUX_DIR call.
94857         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
94858         test/Makefile.
94859         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
94860
94861 2002-09-28  Karl Berry  <karl@gnu.org>
94862
94863         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
94864         installed automake until the next release, since changes have been
94865         made.
94866
94867 2002-09-25  Karl Berry  <karl@gnu.org>
94868
94869         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
94870         * lib/getopt*: copy from libc/posix.
94871         * lib/gettext.h: copy from gettext.
94872         * lib/.cppi-disable: add strdup.c, gettext.h.
94873
94874 2002-09-25  Karl Berry  <karl@gnu.org>
94875
94876         * config/srclist.txt: enable gettext.h check.
94877         * config/config.{guess,sub}: update from prep.
94878         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
94879                 from automake 1.6.3.
94880         See srclist*.
94881
94882 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
94883
94884         * regex.c (PATFETCH): Remove the translating fetch.
94885         (PATFETCH_RAW): Rename to PATFETCH.
94886         (set_image_of_range): New fun.
94887         (SET_RANGE_TABLE_WORK_AREA): Use it.
94888         (regex_compile): Don't translate the pattern chars so eagerly.
94889         Only do it when inserting an `exactn' bytecode or when handling
94890         a char-range.
94891         (mutually_exclusive_p): Avoid empty statement.
94892
94893 2002-07-06  Jim Meyering  <meyering@lucent.com>
94894
94895         * m4/README: Don't mention Makefile.am.in.
94896         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
94897
94898 2002-07-01  Jim Meyering  <meyering@lucent.com>
94899
94900         * lib/c-stack.c: Include sys/time.h.
94901         From Volker Borchert.
94902
94903 2002-06-26  Paul Eggert  <eggert@twinsun.com>
94904
94905         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
94906
94907 2002-06-26  Paul Eggert  <eggert@twinsun.com>
94908
94909         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
94910         New macro.  Use it uniformly instead of
94911         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
94912         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
94913         reported by Vin Shelton.
94914
94915 2002-06-22  Paul Eggert  <eggert@twinsun.com>
94916
94917         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
94918         Do not assume SA_SIGINFO behavior.
94919         Bug reported by Jim Meyering on NetBSD 1.5.2.
94920
94921 2002-06-22  Jim Meyering  <meyering@lucent.com>
94922
94923         * m4/c-stack.m4: New file, from diffutils-2.8.2.
94924         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
94925
94926         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
94927         now that configure.ac uses AC_GNU_SOURCE.
94928         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
94929         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
94930
94931         Update to latest tools.  Suggestions from Paul Eggert.
94932         * m4/stdbool.m4: New file, from diffutils-2.8.2.
94933         * m4/gnu-source.m4: Update from diffutils-2.8.2.
94934         * m4/fnmatch.m4: Likewise.
94935         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
94936         to AC_HEADER_STDBOOL
94937
94938 2002-06-22  Jim Meyering  <meyering@lucent.com>
94939
94940         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
94941         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
94942
94943 2002-06-22  Jim Meyering  <meyering@lucent.com>
94944
94945         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
94946
94947         * lib/exitfail.c, exitfail.h: Likewise.
94948         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
94949
94950         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
94951         of fnmatch.h.
94952         (EXTRA_DIST): Add fnmatch_loop.c.
94953         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
94954
94955         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
94956         * lib/fnmatch.c: Update from diffutils-2.8.2.
94957         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
94958         * lib/fnmatch.h: Remove file.
94959
94960 2002-06-21  Jim Meyering  <meyering@lucent.com>
94961
94962         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
94963         * m4/mbrtowc.m4: Likewise.
94964
94965         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
94966         * m4/mbswidth.m4: Reflect name change:
94967         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
94968         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
94969
94970         * m4/lib-link.m4: Update from gettext-0.11.2.
94971         * m4/gettext.m4: Likewise.
94972
94973         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
94974         From Alfred M. Szmidt.
94975
94976 2002-06-18  Paul Eggert  <eggert@twinsun.com>
94977
94978         * lib/file-type.h: Report an error if neither S_ISREG nor
94979         S_IFREG is defined, instead of using a test specific to glibc
94980         2.2.  This should be safe, since POSIX requires S_ISREG and
94981         Unix Version 7 had S_IFREG.  We don't need to check for
94982         <sys/types.h> since we don't use any symbols that it defines.
94983
94984 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
94985
94986         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
94987         $@-t, so that each temporary file name is unique and valid in the first
94988         8 characters, for operation under DOS.
94989
94990 2002-06-15  Paul Eggert  <eggert@twinsun.com>
94991
94992         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
94993
94994 2002-06-15  Jim Meyering  <meyering@lucent.com>
94995
94996         Work even with DJGPP 2.03, which lacks support for symlinks.
94997         From Richard Dawe.
94998         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
94999         is defined.
95000         * lib/lchown.c (S_ISLNK): Likewise.
95001
95002 2002-06-15  Jim Meyering  <meyering@lucent.com>
95003
95004         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
95005         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
95006         have been included before this file.
95007
95008 2002-06-14  Jim Meyering  <meyering@lucent.com>
95009
95010         * lib/file-type.h: Use the version from diffutils-2.8.2.
95011         * lib/file-type.c: Likewise.
95012
95013 2002-06-07  Jim Meyering  <meyering@lucent.com>
95014
95015         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
95016         They're needed at least for NetBSD 1.5.2.
95017         ($statxfs_includes): Include those same headers.
95018         ($statxfs_includes): Include sys/vfs.h if available.
95019         ($statxfs_includes): Likewise for sys/statvfs.h.
95020         Check for the following members in both structs statfs and statvfs:
95021         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
95022
95023 2002-06-01  Jim Meyering  <meyering@lucent.com>
95024
95025         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
95026         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
95027
95028 2002-05-28  Jim Meyering  <meyering@lucent.com>
95029
95030         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
95031         Reported by Volker Borchert.
95032
95033 2002-05-27  Jim Meyering  <meyering@lucent.com>
95034
95035         Fix a problem seen only on nonconforming systems whereby ls.c's
95036         use of localtime, and then of gettimeofday would cause trouble:
95037         the localtime call used to initialize rpl_gettimeofday's save
95038         mechanism would clobber ls's current local time information so
95039         that in any long listing the first file would always be listed
95040         with date 1970-01-01.  Analysis by Volker Borchert.
95041
95042         * lib/gettimeofday.c (localtime): Undefine.
95043         (rpl_localtime): New function.
95044
95045 2002-05-27  Jim Meyering  <meyering@lucent.com>
95046
95047         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
95048         localtime.
95049
95050         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
95051         use the replacement function; it wouldn't resolve at link time.
95052         Reported by Volker Borchert.
95053
95054 2002-05-22  Jim Meyering  <meyering@lucent.com>
95055
95056         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
95057         file-type.h.
95058         * lib/file-type.h: New file.
95059         * lib/file-type.c (file_type): New file/function.  Extracted from
95060         diffutils.
95061
95062 2002-04-30  Jim Meyering  <meyering@lucent.com>
95063
95064         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
95065
95066 2002-04-29  Paul Eggert  <eggert@twinsun.com>
95067
95068         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
95069
95070 2002-04-29  Paul Eggert  <eggert@twinsun.com>
95071
95072         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
95073         Do not check for alloca.h (no longer used) or stdbool.h (was never
95074         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
95075
95076 2002-04-29  Paul Eggert  <eggert@twinsun.com>
95077
95078         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
95079
95080 2002-04-29  Jim Meyering  <meyering@lucent.com>
95081
95082         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
95083         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
95084         Use AC_FUNC_STRNLEN here instead.
95085
95086         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
95087         With autoconf-2.53a, it's part of AC_PROG_CC.
95088
95089 2002-04-28  Paul Eggert  <eggert@twinsun.com>
95090
95091         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
95092         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
95093
95094 2002-04-28  Paul Eggert  <eggert@twinsun.com>
95095
95096         * lib/sig2str.h, lib/sig2str.c: New files.
95097         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
95098
95099 2002-04-28  Paul Eggert  <eggert@twinsun.com>
95100
95101         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
95102         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
95103         of 127, since 64 is the largest conceivable number for ancient
95104         nonstandard hosts.
95105         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
95106
95107 2002-04-28  Jim Meyering  <meyering@lucent.com>
95108
95109         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
95110
95111 2002-04-24  Jim Meyering  <meyering@lucent.com>
95112
95113         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
95114         (jm_PREREQ): Use it.
95115
95116         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
95117         mach/mach.h fcntl.h.
95118         Check for this function: setlocale.
95119
95120 2002-04-24  Jim Meyering  <meyering@lucent.com>
95121
95122         * lib/gettext.h: New file, from Gettext.
95123         * lib/Makefile.am (INCLUDES): Remove -I../intl.
95124         (libfetish_a_SOURCES): Add gettext.h.
95125
95126 2002-04-16  Jim Meyering  <meyering@lucent.com>
95127
95128         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
95129         ut_pid, ut_id, ut_exit.
95130
95131 2002-04-16  Jim Meyering  <meyering@lucent.com>
95132
95133         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
95134         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
95135         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
95136
95137 2002-04-12  Jim Meyering  <meyering@lucent.com>
95138
95139         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
95140         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
95141         existence of the getmntinfo function.  Needed for Darwin 5.3.
95142
95143         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
95144         This is necessary at least on Darwin 5.3.
95145
95146         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
95147         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
95148         strnlen.o in the library, and that makes some versions of ranlib
95149         object.
95150
95151 2002-04-12  Jim Meyering  <meyering@lucent.com>
95152
95153         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
95154
95155 2002-04-09  Jim Meyering  <meyering@lucent.com>
95156
95157         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
95158         to be more precise.  Rather than saying we're checking whether the
95159         function `works', say what we're testing.
95160         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
95161         Reported by Bruno Haible.
95162
95163 2002-03-10  Jim Meyering  <meyering@lucent.com>
95164
95165         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
95166         Suggestion from Santiago Vila.
95167
95168 2002-03-08  Jim Meyering  <meyering@lucent.com>
95169
95170         * lib/rename.c: Mention that this wrapper is needed also on
95171         mips-dec-ultrix4.4 systems.
95172
95173 2002-03-02  Jim Meyering  <meyering@lucent.com>
95174
95175         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
95176         not HAVE_CLOCK_SETTIME.
95177
95178 2002-02-27  Paul Eggert  <eggert@twinsun.com>
95179
95180         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
95181         Check for clock_settime.
95182
95183 2002-02-27  Paul Eggert  <eggert@twinsun.com>
95184
95185         * lib/nanosleep.h: Rename to....
95186         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
95187
95188         * lib/gettime.c: New file.
95189         * lib/settime.c: New file.
95190         * lib/stime.c: Remove.
95191
95192         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
95193         timespec.h.  Remove nanosleep.h.
95194
95195 2002-02-25  Paul Eggert  <eggert@twinsun.com>
95196
95197         * m4/acl.m4: New file.
95198         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
95199         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
95200
95201 2002-02-25  Paul Eggert  <eggert@twinsun.com>
95202
95203         * lib/acl.c, lib/acl.h: New files.
95204         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
95205
95206 2002-02-24  Jim Meyering  <meyering@lucent.com>
95207
95208         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
95209         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
95210         cause trouble.  Reported by Nelson Beebe.
95211
95212 2002-02-23  Paul Eggert  <eggert@twinsun.com>
95213
95214         * lib/path-concat.c (xpath_concat): Reorder code to pacify
95215         compilers that don't know that xalloc_die never returns.
95216
95217 2002-02-20  Jim Meyering  <meyering@lucent.com>
95218
95219         * lib/getdate.c: Regenerate using bison-1.33.
95220
95221 2002-02-17  Jim Meyering  <meyering@lucent.com>
95222
95223         * config/config.guess (main): Don't use `head -1'; it's no longer
95224         portable. Use `sed 1q' instead.
95225
95226 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
95227
95228         * m4/codeset.m4: Upgrade to gettext-0.11.
95229         * m4/gettext.m4: Upgrade to gettext-0.11.
95230         * m4/glibc21.m4: Upgrade to gettext-0.11.
95231         * m4/iconv.m4: Upgrade to gettext-0.11.
95232         * m4/isc-posix.m4: Upgrade to gettext-0.11.
95233         * m4/lcmessage.m4: Upgrade to gettext-0.11.
95234         * m4/lib-ld.m4: New file, from gettext-0.11.
95235         * m4/lib-link.m4: New file, from gettext-0.11.
95236         * m4/lib-prefix.m4: New file, from gettext-0.11.
95237         * m4/progtest.m4: Upgrade to gettext-0.11.
95238
95239 2002-02-15  Paul Eggert  <eggert@twinsun.com>
95240
95241         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
95242         (jm_PREREQ): Use it.
95243
95244 2002-02-15  Paul Eggert  <eggert@twinsun.com>
95245
95246         * lib/posixver.c, lib/posixver.h: New files.
95247         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
95248
95249 2002-02-02  Paul Eggert  <eggert@twinsun.com>
95250             Bruno Haible  <bruno@clisp.org>
95251
95252         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
95253         (fwrite_success_callback): New declaration.
95254         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
95255         print_unicode_char. Call failure callback instead of error.
95256         (fwrite_success_callback): New function.
95257         (exit_failure_callback): New function.
95258         (fallback_failure_callback): New function.
95259         (print_unicode_char): Call unicode_to_mb.
95260
95261 2002-01-26  Jim Meyering  <meyering@lucent.com>
95262
95263         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
95264         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
95265
95266 2002-01-26  Jim Meyering  <meyering@lucent.com>
95267
95268         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
95269
95270 2002-01-22  Paul Eggert  <eggert@twinsun.com>
95271
95272         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
95273
95274 2002-01-22  Jim Meyering  <meyering@lucent.com>
95275
95276         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
95277         Otherwise, some versions of automake would omit the rule that makes
95278         Makefile from Makefile.in.
95279
95280 2002-01-21  Paul Eggert  <eggert@twinsun.com>
95281
95282         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
95283         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
95284         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
95285         (memcoll): Set errno to zero if there is no error.
95286
95287         * lib/quotearg.c (quotearg_buffer_restyled):
95288         Fix bug with quoting buffers containing NUL when backslashing escapes.
95289         This bug was exposed by the other changes in this patch.
95290         (quotearg_n_options): New arg ARGSIZE.
95291         All callers changed.
95292         (quoting_options_from_style): New function.
95293         (quotearg_n_style): Use it.
95294         (quotearg_n_style_mem): New function.
95295
95296         * lib/quotearg.h (quotearg_n_style_mem): New function.
95297
95298 2002-01-19  Jim Meyering  <meyering@lucent.com>
95299
95300         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
95301         Remove useless quotes: DF_PROG="df".
95302         * m4/strnlen.m4: New file.
95303
95304 2002-01-16  Paul Eggert  <eggert@twinsun.com>
95305
95306         * lib/backupfile.c (ISDIGIT): Comment fix.
95307         * lib/getdate.y (ISDIGIT): Likewise.
95308         * lib/posixtm.c (ISDIGIT, year): Likewise.
95309         * lib/strverscmp.c (ISDIGIT): Likewise.
95310         * lib/userspec.c (ISDIGIT): Likewise.
95311
95312 2002-01-16  Jim Meyering  <meyering@lucent.com>
95313
95314         * lib/getdate.y: Add three semicolons, each just before a closing
95315         brace. Bison (as of version 1.31) no longer papers over that mistake.
95316
95317 2002-01-05  Jim Meyering  <meyering@lucent.com>
95318
95319         * lib/version-etc.c (version_etc_copyright): Update copyright year.
95320
95321 2001-12-19  Paul Eggert  <eggert@twinsun.com>
95322
95323         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
95324         not silently exit merely because the output buffer happens to
95325         have nothing pending.
95326
95327 2001-12-18  Paul Eggert  <eggert@twinsun.com>
95328
95329         See the big note in ../ChangeLog.
95330         * lib/human.c (suffixes): Prefer K to k for 1024.
95331         (generate_suffix_backwards): New function.
95332         (human_readable_inexact): Use it.
95333         * lib/xstrtol.c (__xstrtol): If there is no number but there
95334         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
95335         Accept 'K' as well as 'k'.
95336
95337 2001-12-15  Jim Meyering  <meyering@lucent.com>
95338
95339         * lib/regex.h (__restrict_arr): Update from libc.
95340
95341         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
95342         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
95343         (STREQ): Define.
95344
95345 2001-12-14  Jim Meyering  <meyering@lucent.com>
95346
95347         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
95348         Suggestion from Bruno Haible.
95349
95350 2001-12-10  Jim Meyering  <meyering@lucent.com>
95351
95352         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
95353         xrealloc, Instead, include "xalloc.h".
95354         (initbuffer): Don't cast xmalloc return value to char*.
95355         (readline): Reword comment.
95356         Don't cast xrealloc return value to char*
95357         Return NULL, not 0.
95358
95359 2001-12-09  Jim Meyering  <meyering@lucent.com>
95360
95361         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
95362         about `signed and unsigned type in conditional expression'.
95363         * lib/posixtm.c (posix_time_parse): Likewise.
95364
95365         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
95366
95367         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
95368         to avoid a pedantic warning.
95369
95370         * lib/getstr.c: Don't include assert.h.
95371         (getstr): Remove warning-evoking assertions.
95372         Return -1 if offset parameter is out of bounds.
95373         Change the type of a local from int to size_t.
95374
95375         * lib/strftime.c (my_strftime_localtime_r): Include this function
95376         definition in the `#if ! HAVE_TM_GMTOFF' block.
95377
95378         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
95379         Include xalloc.h instead.
95380
95381 2001-12-02  Jim Meyering  <meyering@lucent.com>
95382
95383         * lib/tempname.c: Don't declare getenv, thus reverting the change of
95384         2001-11-18.  It's no longer necessary, now that stdlib.h is always
95385         included.
95386
95387         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
95388         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
95389
95390 2001-11-30  Akim Demaille  <akim@epita.fr>
95391
95392         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
95393         before being defined.
95394
95395 2001-11-27  Paul Eggert  <eggert@twinsun.com>
95396
95397         * lib/quotearg.h (quotearg_n, quotearg_n_style):
95398         First arg is int, not unsigned.
95399         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
95400         (SIZE_MAX, UINT_MAX): New macros.
95401         (quotearg_n_options): Abort if N is negative.
95402         Avoid overflow check on hosts where size_t is 64 bits and int
95403         is 32 bits, as overflow is impossible there.
95404         Fix off-by-one typo that caused unnecessary reallocation.
95405
95406 2001-11-27  Jim Meyering  <meyering@lucent.com>
95407
95408         * lib/tempname.c: Merge with version from libc.
95409         * lib/regex.c: Likewise.
95410
95411         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
95412         systems for which STDC_HEADERS is 0, it was not included, resulting in
95413         a warning about an integer-to-pointer conversion problem with getenv.
95414         Reported by Volker Borchert.
95415
95416 2001-11-26  Jim Meyering  <meyering@lucent.com>
95417
95418         * lib/gtod.h: Remove file.
95419         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
95420         * lib/gettimeofday.c: Don't include gtod.h.
95421         (GTOD_init): Remove function.
95422         (rpl_gettimeofday): Do its job here instead, rather than aborting.
95423         Suggestion from Volker Borchert.
95424
95425 2001-11-23  Jim Meyering  <meyering@lucent.com>
95426
95427         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
95428         it.
95429         * lib/hash.c (struct hash_table): Define it here instead.
95430
95431 2001-11-22  Jim Meyering  <meyering@lucent.com>
95432
95433         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
95434
95435 2001-11-20  Jim Meyering  <meyering@lucent.com>
95436
95437         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
95438         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
95439
95440 2001-11-19  Jim Meyering  <meyering@lucent.com>
95441
95442         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
95443         directory.  Use "conftestXXXXXX" as the template.
95444         Suggestion from Paul Eggert.
95445
95446         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
95447         immediately, so the test doesn't mistakenly hit the max-open-files
95448         limit.
95449
95450 2001-11-18  Paul Eggert  <eggert@twinsun.com>
95451
95452         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
95453         (TEMPORARIES): New macro.
95454         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
95455         removes an artificial limitation (e.g. HP-UX 10.20, where
95456         TMP_MAX is 17576).
95457
95458 2001-11-18  Jim Meyering  <meyering@lucent.com>
95459
95460         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
95461
95462 2001-11-18  Jim Meyering  <meyering@lucent.com>
95463
95464         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
95465         on SunOS 4.
95466
95467         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
95468         files will be created before anything else.
95469
95470 2001-11-17  Paul Eggert  <eggert@twinsun.com>
95471
95472         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
95473         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
95474
95475 2001-11-17  Jim Meyering  <meyering@lucent.com>
95476
95477         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
95478         Prompted by a report from Bob Proulx.
95479
95480         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
95481         Instead, require UTILS_FUNC_MKSTEMP.
95482
95483 2001-11-17  Jim Meyering  <meyering@lucent.com>
95484
95485         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
95486         Now, that's done as part of AC_FUNC_STRTOD.
95487
95488 2001-11-17  Jim Meyering  <meyering@lucent.com>
95489
95490         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
95491         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
95492         rather than group writable.  Patch by Juan F. Codagnone.
95493
95494         * lib/readtokens.c: Remove explicit declarations of xmalloc and
95495         xrealloc, Instead, include "xalloc.h".
95496
95497         * lib/mountlist.c: Include unlocked-io.h after all system headers.
95498         Remove explicit declarations of xmalloc, xrealloc,
95499         and xstrdup.  Instead, include "xalloc.h".
95500
95501         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
95502         unlocked-io.h.
95503         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
95504         Likewise.
95505         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
95506
95507         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
95508         Reported by Padraig Brady.
95509
95510         * lib/mkstemp.c: #undef mkstemp.
95511         Include config.h.
95512         (rpl_mkstemp): Rename from mkstemp.
95513         Protoize.
95514
95515 2001-11-16  Jim Meyering  <meyering@lucent.com>
95516
95517         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
95518         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
95519         determine the amount of total physical memory, use pstat_getstatic.
95520         HPUX-11 doesn't define _SC_PHYS_PAGES.
95521         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
95522         If sysconf couldn't be used to determine the amount of available
95523         physical memory, use both pstat_getstatic and pstat_getdynamic.
95524         Based on a patch from Bob Proulx.
95525
95526 2001-11-10  Jim Meyering  <meyering@lucent.com>
95527
95528         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
95529         (jm_PREREQ): Use it.
95530
95531 2001-11-09  Jim Meyering  <meyering@lucent.com>
95532
95533         * m4/jm-macros.m4: Require autoconf-2.52f.
95534         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
95535         Use these AC_-prefixed names, not the AM_-prefixed ones.
95536
95537         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
95538
95539 2001-11-05  Jim Meyering  <meyering@lucent.com>
95540
95541         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
95542
95543 2001-11-04  Jim Meyering  <meyering@lucent.com>
95544
95545         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
95546         $DEFS.
95547
95548 2001-11-03  Jim Meyering  <meyering@lucent.com>
95549
95550         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
95551         of AC_DEFUN.
95552
95553         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
95554         know the name of the variable in the macro definition.
95555
95556 2001-11-03  Jim Meyering  <meyering@lucent.com>
95557
95558         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
95559         in argmatch_to_argument call.
95560
95561         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
95562         argument.
95563
95564         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
95565         e.g., a fault due to an attempt to free a NULL pointer.
95566
95567 2001-11-01  Jim Meyering  <meyering@lucent.com>
95568
95569         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
95570         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
95571
95572 2001-11-01  Jim Meyering  <meyering@lucent.com>
95573
95574         * lib/dirfd.c, lib/dirfd.h: New files.
95575         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
95576
95577         * lib/hash.c (hash_print) [TESTING]: Clean up.
95578
95579 2001-10-22  Paul Eggert  <eggert@twinsun.com>
95580
95581         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
95582         to avoid a warning if -Wall.
95583
95584 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
95585
95586         * README: New file
95587         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
95588         (per RMS's instructions, this is now the canonical source)
95589         * lgpl/, gpl/: New directories.
95590
95591 2001-10-21  Paul Eggert  <eggert@twinsun.com>
95592
95593         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
95594
95595 2001-10-21  Jim Meyering  <meyering@lucent.com>
95596
95597         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
95598         this code would end up calling gettext even in packages built
95599         with --disable-nls.
95600         * lib/getopt.c (_): Likewise.
95601         * lib/regex.c (_): Likewise.
95602
95603 2001-10-20  Paul Eggert  <eggert@twinsun.com>
95604
95605         * m4/error.m4 (jm_PREREQ_ERROR):
95606         Do not invoke AC_CHECK_FUNCS with strerror_r, as
95607         AC_FUNC_STRERROR_R does that.
95608         Check for strerror declaration.
95609
95610         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
95611         are supposed to have them these days.
95612         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
95613         Merge changes from latest Autoconf CVS.
95614         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
95615         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
95616         POSIX decided to standardize on the int flavor of strerror_r.
95617
95618 2001-10-20  Paul Eggert  <eggert@twinsun.com>
95619
95620         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
95621         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
95622         Use strerror_r that is only a macro, even if it is not a function.
95623         (strerror): Check for HAVE_DECL_STRERROR before declaring.
95624         (private_strerror): Use prototypes, not old-style function definition.
95625         (print_errno_message): New function.
95626         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
95627         char*-flavored one.
95628         (error_tail, error, error_at_line): Use it.
95629
95630 2001-10-11  Jim Meyering  <meyering@lucent.com>
95631
95632         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
95633         and quote_n (1, ... to avoid clobbering a buffer.
95634
95635 2001-10-05  Jim Meyering  <meyering@lucent.com>
95636
95637         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
95638         hash-pjw.h.
95639         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
95640         * lib/hash-pjw.h: New file.
95641
95642 2001-09-30  Jim Meyering  <meyering@lucent.com>
95643
95644         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
95645         `struct fsstat' has the `f_fstypename' member.
95646         Use that to define FS_TYPE, which is now used to make
95647         the getfsstat link test tighter.
95648
95649 2001-09-30  Jim Meyering  <meyering@lucent.com>
95650
95651         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
95652         Include <sys/ucred.h>, for Apple Darwin.
95653         Include sys/mount.h and sys/fs_types.h only if available.
95654         (FS_TYPE): Define.
95655         (read_filesystem_list): Use FS_TYPE.
95656
95657 2001-09-29  Paul Eggert  <eggert@twinsun.com>
95658
95659         * lib/exclude.c (excluded_filename): 0 -> false, since it's
95660         a boolean context.
95661
95662 2001-09-29  Jim Meyering  <meyering@lucent.com>
95663
95664         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
95665         [one-argument getmntent function]): Include stdio.h before mntent.h.
95666         SunOS 4.1.x needs it for the declaration of `FILE'.
95667         Patch by Volker Borchert.
95668
95669         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
95670         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
95671         sys/fs_types.h, and make the link-test for getfsstat guard #include
95672         directives with appropriate #if HAVE_*_H tests so that we can
95673         detect getfsstat on Apple Darwin1.3.7 systems.
95674         Reported by Nelson Beebe.
95675         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
95676
95677 2001-09-28  Paul Eggert  <eggert@twinsun.com>
95678
95679         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
95680         #defines strtoimax.  Also treat the other strto* functions
95681         like strtoimax.
95682
95683         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
95684         Check for strtoul and strtoumax,
95685         as those declarations are made even in the signed case.
95686         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
95687         Likewise, for strtol and strtoimax.
95688
95689 2001-09-28  Paul Eggert  <eggert@twinsun.com>
95690
95691         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
95692         #defines strtoimax.  Also treat the other strto* functions
95693         like strtoimax.
95694
95695         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
95696         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
95697         (strtoimax, strtoumax): Do not declare if already defined as a macro.
95698
95699 2001-09-26  Jim Meyering  <meyering@lucent.com>
95700
95701         Most macros in unlocked-io.h had the wrong number of arguments.
95702         * lib/gen-uio: New script.
95703         (USE_UNLOCKED_IO): Define to 1 if not already defined.
95704         * lib/unlocked-io.hin: Remove file.
95705         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
95706         rather than trying to embed it here.
95707         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
95708         Reported by Padraig Brady.
95709
95710 2001-09-25  Volker Borchert  <bt@teknon.de>
95711
95712         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
95713         `result'.
95714
95715 2001-09-24  Jim Meyering  <meyering@lucent.com>
95716
95717         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
95718
95719 2001-09-23  Jim Meyering  <meyering@lucent.com>
95720
95721         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
95722         instead of the mere test for existence of mntent.h.  The latter
95723         would get a false-positive on AIX 3.4 systems.
95724         In the outer getmntent if-block, don't die if neither of the getmntent
95725         tests succeeds.  Instead, just fall through and continue with the
95726         remaining tests.
95727
95728 2001-09-23  Jim Meyering  <meyering@lucent.com>
95729
95730         * lib/mountlist.c: Remove useless parentheses in #if directives.
95731         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
95732         the deprecated MOUNTED symbol is no longer defined in mntent.h.
95733
95734 2001-09-22  Jim Meyering  <meyering@lucent.com>
95735
95736         * m4/gettext.m4: New file.  From gettext.
95737         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
95738         * m4/progtest.m4: Likewise
95739         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
95740         * m4/glibc21.m4: Likewise.
95741
95742         * m4/libintl.m4: Remove.  No longer used.
95743
95744 2001-09-22  Jim Meyering  <meyering@lucent.com>
95745
95746         * lib/localcharset.c: Update from latest gettext.
95747         * lib/config.charset: Likewise.
95748
95749 2001-09-20  Jim Meyering  <meyering@lucent.com>
95750
95751         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
95752         strtoimax.
95753         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
95754         strtoumax.
95755
95756 2001-09-20  Jim Meyering  <meyering@lucent.com>
95757
95758         * lib/xstrtol.c (strtoimax): Guard declaration with
95759         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
95760         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
95761         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
95762         (strtoumax): Likewise, for completeness (it wasn't necessary).
95763
95764 2001-09-17  Paul Eggert  <eggert@twinsun.com>
95765
95766         * lib/strtoimax.c (HAVE_LONG_LONG):
95767         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
95768         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
95769         to work around bug in IBM C compiler.
95770
95771 2001-09-17  Jim Meyering  <meyering@lucent.com>
95772
95773         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
95774         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
95775         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
95776         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
95777         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
95778         whenever the right hand side need not be expanded by the shell.
95779
95780 2001-09-16  Paul Eggert  <eggert@twinsun.com>
95781
95782         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
95783         library.  It's not correct, as some older glibcs are buggy.
95784         fnmatch wasn't fixed until glibc 2.2.
95785
95786         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
95787         special shell magic here.
95788
95789 2001-09-16  Jim Meyering  <meyering@lucent.com>
95790
95791         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
95792         * m4/jm-macros.m4: Require it.
95793
95794 2001-09-16  Jim Meyering  <meyering@lucent.com>
95795
95796         * lib/mkdir.c: New file.
95797
95798 2001-09-15  Jim Meyering  <meyering@lucent.com>
95799
95800         * m4/jm-macros.m4: Check for help2man.
95801
95802 2001-09-11  Jim Meyering  <meyering@lucent.com>
95803
95804         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
95805         The body, by Paul Eggert, was moved here from configure.in.
95806         * m4/jm-macros.m4: Require UTILS_HOST_OS.
95807
95808 2001-09-04  Paul Eggert  <eggert@twinsun.com>
95809
95810         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
95811         (jm_PREREQ): Use it.
95812
95813 2001-09-04  Paul Eggert  <eggert@twinsun.com>
95814
95815         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
95816         Use ssize_t, not int, to store result of readlink.
95817         Check for ssize_t overflow as well as size_t overflow,
95818         as POSIX says the result of readlink is implementation-defined
95819         when ssize_t overflows.
95820         Remove unnecessary cast to char*.
95821         Use free+malloc instead of realloc, as the storage doesn't need
95822         to be preserved and it's clearer and can be more efficient that way.
95823         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
95824         * lib/xreadlink.h (xreadlink): Update prototype.
95825
95826 2001-09-04  Paul Eggert  <eggert@twinsun.com>
95827
95828         * lib/xgetcwd.c: Revert some of the previous change; intead,
95829         fix the HAVE_GETCWD_NULL code to behave more like the
95830         !HAVE_GETCWD_NULL code used to.
95831
95832         Include "xalloc.h".
95833         (xgetcwd): Do not return NULL when memory is exhausted; instead,
95834         invoke xalloc_die.
95835
95836 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95837
95838         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
95839         sys/param.h, as pathmax.h includes them.
95840
95841 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95842
95843         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
95844         (jm_PREREQ_XGETCWD): New macro.
95845
95846         * m4/getcwd.m4: New file.
95847
95848 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95849
95850         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
95851         like the HAVE_GETCWD_NULL code.
95852         Include pathmax.h if not HAVE_GETCWD.
95853         Do not include xalloc.h.
95854         (INITIAL_BUFFER_SIZE): New symbol.
95855         Do not use xmalloc / xrealloc, since the caller is responsible for
95856         handling errors.  Preserve errno around `free' during failure.
95857         Do not overrun buffer when using getwd.
95858
95859 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95860
95861         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
95862         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
95863         getcwd (NULL, 0).
95864
95865 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95866
95867         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
95868         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
95869         spotted by Jim Meyering.
95870
95871 2001-09-03  Jim Meyering  <meyering@lucent.com>
95872
95873         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
95874         failure.
95875
95876 2001-09-02  Jim Meyering  <meyering@lucent.com>
95877
95878         * lib/error.c: Update from GNU libc.
95879
95880 2001-09-01  Jim Meyering  <meyering@lucent.com>
95881
95882         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
95883         Used by df.
95884
95885 2001-09-01  Jim Meyering  <meyering@lucent.com>
95886
95887         * lib/xreadlink.c: New file.
95888         * lib/xreadlink.h: New file.
95889         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
95890         xreadlink.h.
95891
95892         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
95893         doesn't conflict with sparc Solaris 7's definition in
95894         /usr/include/sys/int_types.h.
95895
95896         * lib/exclude.c: Use `""', not `<>' to #include non-system header
95897         files.
95898         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
95899         and strncasecmp as r-values.  Unixware didn't have declarations.
95900
95901 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95902
95903         * lib/xstrtol.h: Add copyright notice.
95904         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
95905         LONGINT_INVALID_SUFFIX_CHAR.
95906
95907 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95908
95909         * lib/xstrtol.c (strtoimax): New decl.
95910
95911 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95912
95913         * lib/xgetcwd.c: Don't include pathmax.h.
95914         Include stdlib.h and unistd.h if available.
95915         Include xalloc.h.
95916         (xmalloc, xstrdup, free): Remove decls.
95917         (xgetcwd): Don't assume sizes fit in unsigned.
95918         Check for overflow when computing sizes.
95919         Simplify reallocation code.
95920
95921 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95922
95923         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
95924         a directory's st_size can have an arbitrary value, so the old
95925         usage could waste an arbitrary amount of memory.  All uses
95926         changed.
95927         * lib/savedir.h: Update prototype.
95928
95929 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95930
95931         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
95932
95933         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
95934         old strtoimax.c.
95935
95936         Also, make the following further changes to make this file's
95937         configuration more similar to that of strtol.c:
95938         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
95939         (strtoumax, uintmax_t, strtoull, strtol): Remove.
95940         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
95941         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
95942         changed to signed values.
95943
95944         And make the following changes as well:
95945         Fix copyright notice, as 1999 was missing.
95946         (verify): New macro.
95947         (strtoimax): Check sizes at compile-time, not run-time.
95948         Prefer strtol to strtoll if both work.
95949         (main): Remove; it was not that useful and was a pain to maintain.
95950
95951         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
95952
95953 2001-08-31  Jim Meyering  <meyering@lucent.com>
95954
95955         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
95956         Use an initial, malloc'd, buffer of length 128 rather than
95957         a statically allocated one of length 1024.
95958
95959 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95960
95961         Simplify code, partly by assuming autoconf 2.52 semantics.
95962
95963         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
95964
95965         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
95966         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
95967         All uses removed.
95968         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
95969         Move AC_REQUIRE to next-to-top level, to avoid confusion.
95970         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
95971         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
95972         jm_AC_HEADER_INTTYPES_H.
95973         * m4/jm-macros.m4 (jm_MACROS): Likewise.
95974
95975         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
95976
95977         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
95978         Quote first arg of AC_DEFUN.
95979         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
95980         since they are needed to parse the include file even if we need
95981         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
95982         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
95983         but with opposite signedness.
95984
95985 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95986
95987         Merge 'exclude' changes from tar 1.13.22.
95988         This fixes one or two unlikely storage allocation overflow bugs,
95989         but doesn't change user-visible behavior otherwise.
95990
95991 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95992
95993         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
95994         (jm_PREREQ_EXCLUDE): New macro.
95995
95996 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95997
95998         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
95999         tm to be declared.
96000
96001 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96002
96003         * lib/hash.c: Remove '2001' from copyright notice.
96004
96005 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96006
96007         * lib/full-write.h: New file.
96008         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
96009         * lib/full-write.c: Correct credits, as cccp.c no longer
96010         exists and anyway it was so heavily changed from the old cccp
96011         code as to be unrecognizable.  Include full-write.h.
96012         (full_write): Return size_t, with short writes meaning failure.
96013         All callers changed.  This fixes a bug with large buffers
96014         on 64-bit hosts.
96015         * lib/utime.c: Include full-write.h.
96016
96017 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96018
96019         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
96020         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
96021         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
96022         Include if available.
96023         (<xalloc.h>): Include
96024         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
96025         (verify): New macro.  Use it to verify that EXCLUDE macros do not
96026         collide with FNM macros.
96027         (struct patopts): New struct.
96028         (struct exclude): Use it, as exclude patterns now come with options.
96029         (new_exclude): Support above changes.
96030         (new_exclude, add_exclude_file):
96031         Initial size must now be a power of two to simplify overflow checking.
96032         (free_exclude, fnmatch_no_wildcards): New function.
96033         (excluded_filename): No longer requires options arg, as the options
96034         are determined by add_exclude.  Now returns bool, not int.
96035         (excluded_filename, add_exclude):
96036         Add support for the fancy new exclusion options.
96037         (add_exclude, add_exclude_file): Now takes int options arg.
96038         Check for arithmetic overflow when computing sizes.
96039         (add_exclude_file): xrealloc might modify errno, so don't
96040         realloc until after errno might be used.
96041
96042         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
96043         New macros.
96044         (free_exclude): New decl.
96045         (add_exclude, add_exclude_file): Now takes int options arg.
96046         (excluded_filename): No longer requires options arg, as the options
96047         are determined by add_exclude.  Now returns bool, not int.
96048
96049 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96050
96051         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
96052
96053 2001-08-27  Jim Meyering  <meyering@lucent.com>
96054
96055         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
96056
96057         * lib/version-etc.c (N_): Remove definition.
96058         Revert most of last change.
96059         Instead, simply don't mark the `Copyright...' string for translation.
96060         Based on advice from Paul Eggert.
96061
96062         * lib/strtoxmax.c: Tweak comment.
96063
96064 2001-08-26  Jim Meyering  <meyering@lucent.com>
96065
96066         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
96067
96068         * m4/xstrtoimax.m4: New file.
96069         * m4/xstrtoumax.m4: Add comments explaining why we
96070         AC_REPLACE_FUNCS(strtol).
96071
96072 2001-08-26  Jim Meyering  <meyering@lucent.com>
96073
96074         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
96075         of copyright with `%s' so translators don't get an untranslated
96076         message in 2002.
96077         (COPYRIGHT_YEAR): Define.
96078         (version_etc): Use fprintf rather than fputs.
96079         Suggestion from Ulrich Drepper.
96080
96081         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
96082
96083         * lib/strtoll.c: New file, from GNU libc.
96084         * lib/xstrtoimax.c: New file.
96085
96086         * lib/xstrtol.h: Add xstrtoimax.
96087         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
96088         * lib/strtoimax.c: New file.  Likewise, but first define
96089         STRTOUXMAX_SIGNED.
96090
96091         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
96092         ...
96093         * lib/strtoxmax.c: ... then renamed to this.
96094
96095 2001-08-18  Paul Eggert  <eggert@twinsun.com>
96096
96097         * m4/inttypes.m4: Add AC_PREREQ(2.13).
96098         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
96099         (jm_AC_TYPE_INTMAX_T): New macro.
96100         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
96101
96102         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
96103
96104         * m4/longlong.m4: Renamed from ulonglong.m4.
96105         * m4/inttypes.m4: Renamed from inttypes_h.m4.
96106         * m4/uintmax_t.m4: Removed.
96107
96108 2001-08-13  Paul Eggert  <eggert@twinsun.com>
96109
96110         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
96111         Port to Solaris 8, where 'sed' requires a space after the 'r'
96112         command, and where sh dislikes "$/".  Clean up the spacing a bit.
96113         Redirect output to $tmp just once.
96114
96115 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
96116
96117         * lib/addext.c (<errno.h>): Include.
96118         (errno): Declare if not defined.
96119         (addext): Work correctly when pathconf returns -1 and leaves
96120         errno alone because there is no limit.  Also, work even if
96121         pathconf returns a value greater than SIZE_MAX.
96122
96123 2001-08-12  Jim Meyering  <meyering@lucent.com>
96124
96125         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
96126         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
96127         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
96128         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
96129         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
96130         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
96131         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
96132         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
96133         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
96134         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
96135         utime.m4, utimes.m4, xstrtoumax.m4:
96136         Quote the first argument in each use of AC_DEFUN.
96137
96138 2001-08-12  Jim Meyering  <meyering@lucent.com>
96139
96140         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
96141         Simply `return getcwd (NULL, 0);'.
96142         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
96143         Use 1300 as initial value for length, not PATH_MAX.
96144
96145         * lib/pathmax.h: Clean up cpp syntax.
96146
96147 2001-08-12  Jim Meyering  <meyering@lucent.com>
96148
96149         * lib/gettimeofday.c: New file.
96150         * lib/gtod.h: New file.
96151         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
96152
96153 2001-08-05  Jim Meyering  <meyering@lucent.com>
96154
96155         * m4/jm-macros.m4: Require autoconf-2.52.
96156
96157 2001-08-04  Jim Meyering  <meyering@lucent.com>
96158
96159         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
96160         stmt, to get in sync with glibc.
96161
96162 2001-08-03  Paul Eggert  <eggert@twinsun.com>
96163
96164         The following changes are from gettext 0.10.39 as maintained by
96165         Bruno Haible.
96166
96167         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
96168         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
96169         with inverted sense.  All uses changed.
96170
96171         * lib/mbswidth.c: Don't include <limits.h>.
96172         Include <stdlib.h> and <string.h> unconditionally.
96173         (iswcntrl, mbsinit, ISCNTRL): New macros.
96174         (mbsnwidth): Use K&R style function declarations.
96175         Don't bother checking for MB_LEN_MAX == 1, since the compiler
96176         can optimize it when MB_CUR_MAX == 1.
96177         The width of control characters is zero, not 1.
96178
96179 2001-08-03  Paul Eggert  <eggert@twinsun.com>
96180
96181         The following changes are from gettext 0.10.39 as maintained by
96182         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
96183
96184         * m4/codeset.m4: Upgrade to serial AM1.
96185         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
96186         all uses changed.  Quote first arg of AC_DEFUN.
96187         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
96188
96189         * m4/iconv.m4: Upgrade to serial AM2.
96190         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
96191         Add --with-libconv-prefix.
96192         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
96193         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
96194         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
96195         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
96196         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
96197
96198         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
96199         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
96200         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
96201         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
96202         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
96203         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
96204         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
96205         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
96206         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
96207
96208         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
96209         string.h any more.
96210
96211         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
96212         not the default value.
96213
96214         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
96215         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
96216         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
96217         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
96218         Also check for iswcntrl, used for wcwidth fallback.
96219         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
96220         to Autoconf 2.13.
96221
96222 2001-08-03  Jim Meyering  <meyering@lucent.com>
96223
96224         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
96225         as it was in the original.  Reported by Paul Eggert.
96226
96227 2001-07-16  Jim Meyering  <meyering@lucent.com>
96228
96229         * m4/gettimeofday.m4: New file.
96230         Prompted by a report from Bernhard Baehr.
96231
96232 2001-07-15  Jim Meyering  <meyering@lucent.com>
96233
96234         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
96235         stuff. Now it's in ../Makefile.cfg.
96236
96237 2001-07-15  Jim Meyering  <meyering@lucent.com>
96238
96239         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
96240         (BUILT_SOURCES): Add unlocked-io.h.
96241         (io_functions): Define.
96242         (unlocked-io.h): New rule.
96243         (DISTCLEANFILES): Add unlocked-io.h.
96244         (all-local): Depend on unlocked-io.h, to ensure it is created.
96245
96246         * lib/unlocked-io.hin: New file
96247
96248         * lib/regex.c: Update from glibc.
96249
96250 2001-07-05  Jim Meyering  <meyering@lucent.com>
96251
96252         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
96253         recommendation.
96254         (libfetish_a_SOURCES): Put all .h files here instead.
96255         Remove a thus-exposed (better checks in automake) duplicate and
96256         two unnecessary .h files.
96257
96258 2001-07-04  Jim Meyering  <meyering@lucent.com>
96259
96260         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
96261         that generates jm-glibc-io.m4 so that it doesn't trigger any make
96262         distcheck failure.
96263
96264 2001-07-02  Jim Meyering  <meyering@lucent.com>
96265
96266         The following changes were prompted by suggestions from Bruno Haible.
96267
96268         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
96269         is now generated.
96270         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
96271         definition of EXTRA_DIST.
96272         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
96273         ensure that the generated file is created/updated whenever the list
96274         of $(unlocked_functions) is changed.
96275         (jm-glibc-io.m4): New rule.
96276         (unlocked-io.h): New rule -- currently unused.
96277
96278 2001-06-24  Jim Meyering  <meyering@lucent.com>
96279
96280         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
96281         unmatched right bracket, rather than kludging it with an extra,
96282         falsely-matching quote in a comment.  Patch by Akim Demaille.
96283
96284 2001-06-11  Jim Meyering  <meyering@lucent.com>
96285
96286         * lib/regex.c: Update from GNU libc.
96287
96288 2001-05-27  Jim Meyering  <meyering@lucent.com>
96289
96290         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
96291         Check for ut_type in struct utmp.
96292
96293 2001-05-27  Jim Meyering  <meyering@lucent.com>
96294
96295         * lib/readutmp.h (UT_TYPE): Define.
96296
96297 2001-05-24  Jim Meyering  <meyering@lucent.com>
96298
96299         * lib/argmatch.c: Include "quote.h".
96300         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
96301         quote function.  Reported by Göran Uddeborg.
96302
96303 2001-05-22  Jim Meyering  <meyering@lucent.com>
96304
96305         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
96306         now that we use the package-supplied version unconditionally.
96307         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
96308
96309 2001-05-21  Jim Meyering  <meyering@lucent.com>
96310
96311         * m4/regex.m4: Change a couple backticks to single quotes to avoid
96312         shell syntax errors.
96313
96314 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
96315
96316         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
96317
96318 2001-05-20  Paul Eggert  <eggert@twinsun.com>
96319
96320         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
96321         Don't bother to check library strftime, since
96322         we'll be using our own my_strftime function anyway.
96323         Define my_strftime instead of strftime.
96324
96325 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
96326
96327         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
96328         which is not yet declared.
96329
96330 2001-05-15  Jim Meyering  <meyering@lucent.com>
96331
96332         * m4/regex.m4: Use proper quoting so brackets appear in the test
96333         program.
96334         Reported by, and with help from, Bruno Haible.
96335
96336 2001-05-13  Jim Meyering  <meyering@lucent.com>
96337
96338         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
96339         undefined.
96340
96341 2001-05-11  Paul Eggert  <eggert@twinsun.com>
96342
96343         dirname code cleanup.  base_name now behaves more compatibly
96344         with POSIX basename when given file names that have trailing
96345         slashes, and similarly for dir_name.  Add new primitives
96346         base_len and dir_len.  Put the directory-name-related decls
96347         into dirname.h.
96348
96349         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
96350         * lib/backupfile.c (base_name): Likewise.
96351         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
96352         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
96353         * lib/makepath.c (strip_trailing_slashes): Likewise.
96354         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
96355         ISSLASH): Likewise.
96356         * lib/rename.c (strip_trailing_slashes): Likewise.
96357         * lib/same.c (base_name): Likewise.
96358         * lib/stripslash.c (ISSLASH): Likewise.
96359
96360         * lib/addext.c: Include <dirname.h> after size_t is defined.
96361         * lib/backupfile.c: Likewise.
96362
96363         * lib/addext.c (addext): Use base_len to trim redundant
96364         trailing slashes instead of doing it ourselves.
96365         But do not trim the last slash if it is not redundant.
96366
96367         * lib/backupfile.c (find_backup_file_name,
96368         max_backup_version): Use base_len instead of rolling it ourselves.
96369         Handle the case of "" and (on DOS) "C:" correctly.
96370
96371         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
96372         needed. Include <string.h>, <dirname.h>.
96373         (base_name): Allow file names ending in slashes, other than names
96374         that are all slashes.  In this case, return the basename followed
96375         by the slashes.  This is more general, and can be used in places
96376         where the original base_name purposely had an assertion failure.
96377         (base_len): New function.
96378
96379         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
96380         Do not include <assert.h>; no longer needed.
96381         Include xalloc.h.
96382         (memrchr): Remove decl.
96383         (dir_name_r): Remove.
96384         (dir_len): Renamed from dirlen.  All callers changed.
96385         Rewrite in terms of base_name, for simplicity and consistency.
96386         (dir_name): Never return NULL.  All callers changed.
96387         Do not include <stdlib.h> in test program; no longer needed.
96388         return 0; is fine for test program.
96389
96390         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
96391         New macros.
96392         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
96393
96394         * lib/path-concat.c (path_concat): Use base_len to compute
96395         base length, not strlen; this means we cannot rely on memcpy
96396         to null-terminate.
96397
96398         * lib/same.c (STREQ): Remove.
96399         (same_name): Handle the case where the basename ends in trailing '/'.
96400
96401         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
96402         a slash was stripped.  Do not strip the last slash after a
96403         file system prefix.
96404
96405 2001-05-11  Paul Eggert  <eggert@twinsun.com>
96406
96407         * lib/Makefile.am (libfetish_a_SOURCES):
96408         Add strftime.c, since we now compile it on all hosts.
96409
96410         * lib/strftime.c (my_strftime):
96411         Define to nstrftime if emacs, but only if my_strftime is not defined.
96412         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
96413         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
96414         Add one more extra argument: a nanoseconds value.
96415         All uses changed.
96416         (ns): New macro.
96417         (my_strftime function): Add %N format.
96418         (emacs_strftimeu): Renamed from emacs_strftime,
96419         with extra ut argument.
96420
96421 2001-05-09  Paul Eggert  <eggert@twinsun.com>
96422
96423         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
96424
96425 2001-04-21  Jim Meyering  <meyering@lucent.com>
96426
96427         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
96428         doesn't interfere.
96429
96430 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
96431
96432         * m4/ftruncate.m4: Check for chsize.
96433         Link with ftruncate.o unconditionally if ftruncate is missing.
96434         This was required when cross-compiling to i586-mingw32msvc.
96435
96436 2001-04-08  Jim Meyering  <meyering@lucent.com>
96437
96438         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
96439         recomputed; that's necessary when the offset spans a DST transition.
96440         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
96441
96442 2001-04-02  Jim Meyering  <meyering@lucent.com>
96443
96444         * lib/regex.h, regex.c: Update from GNU libc.
96445
96446 2001-03-24  Jim Meyering  <meyering@lucent.com>
96447
96448         * m4/jm-macros.m4: Require autoconf-2.49d.
96449
96450 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
96451
96452         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
96453
96454 2001-03-19  Paul Eggert  <eggert@twinsun.com>
96455
96456         * lib/version-etc.c (version_etc_copyright): Update to 2001.
96457
96458 2001-03-17  Jim Meyering  <meyering@lucent.com>
96459
96460         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
96461         now that the version in autoconf is equivalent.
96462         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
96463
96464         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
96465         Suggestion from Akim Demaille.
96466
96467         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
96468         (jm_PREREQ_TEMPNAME): New function.
96469
96470 2001-03-16  Paul Eggert  <eggert@twinsun.com>
96471
96472         * lib/tempname.c (uint64_t): Define to uintmax_t if
96473         not defined, and if UINT64_MAX is not defined.
96474         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
96475         Reported by John David Anglin.
96476
96477 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
96478
96479         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
96480         resolve alias if codeset is empty.
96481         * lib/config.charset (BeOS): Use wildcard syntax.
96482
96483 2001-03-13  Jim Meyering  <meyering@lucent.com>
96484
96485         * lib/path-concat.c (path_concat)
96486         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
96487         concatenating e.g., `C:' and `foo'.
96488         From Bruno Haible.
96489
96490 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
96491
96492         * lib/localcharset.c (locale_charset): Don't use
96493         setlocale(LC_CTYPE,NULL). Don't return NULL.
96494         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
96495
96496 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
96497
96498         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
96499         support for DOS/DJGPP.
96500
96501 2001-03-01  Paul Eggert  <eggert@twinsun.com>
96502
96503         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
96504         lacks mkstemp.  Compile our own tempname.c if we compile our own
96505         mkstemp.c, as mkstemp relies on tempname.
96506
96507 2001-03-01  Jim Meyering  <meyering@lucent.com>
96508
96509         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
96510         AH_VERBATIM really does output its argument verbatim.
96511
96512 2001-02-28  Paul Eggert  <eggert@twinsun.com>
96513
96514         * lib/Makefile.am (libfetish_a_SOURCES):
96515         Add dup-safer.c, fopen-safer.c.
96516         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
96517
96518         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
96519         * lib/unistd-safer.h: New files.
96520
96521 2001-02-25  Paul Eggert  <eggert@twinsun.com>
96522
96523         The mkstemp replacement is taken from glibc 2.2.2, with some
96524         portability fixes for use outside glibc, as follows:
96525
96526         * lib/tempname.c (struct_stat64): New macro.
96527         (direxists, __gen_tempname): Use it.
96528         This avoids a portability problem with Solaris 8.
96529
96530         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
96531         (<stddef.h>, <stdint.h>, <string.h>):
96532         Include only if STDC_HEADERS || _LIBC.
96533         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
96534         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
96535         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
96536         (__set_errno): Define this macro if <errno.h> doesn't.
96537         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
96538         Define these macros if <stdio.h> doesn't.
96539         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
96540         Define these macros if <sys/stat.h>
96541         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
96542         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
96543         __xstat64): Define if not _LIBC.
96544         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
96545         (__gen_tempname): Invoke gettimeofday only if
96546         HAVE_GETTIMEOFDAY || _LIBC;
96547         otherwise, fall back on plain "time".
96548         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
96549
96550         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
96551
96552         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
96553
96554 2001-02-18  Paul Eggert  <eggert@twinsun.com>
96555
96556         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
96557
96558 2001-02-17  Paul Eggert  <eggert@twinsun.com>
96559
96560         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
96561         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
96562         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
96563         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
96564
96565 2001-02-17  Paul Eggert  <eggert@twinsun.com>
96566
96567         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
96568         Remove workaround macros for hosts that have mbrtowc but not
96569         mbstate_t, as we now insist on proper declarations for both
96570         before using mbrtowc.
96571
96572 2001-02-17  Jim Meyering  <meyering@lucent.com>
96573
96574         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
96575         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
96576         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
96577         UnixWare 7.1.1.
96578
96579         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
96580         rather than AC_CACHE_VAL.
96581
96582 2001-02-17  Jim Meyering  <meyering@lucent.com>
96583
96584         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
96585         around included file name.
96586
96587         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
96588
96589         * lib/strftime.c: Update from GNU libc (the only changes were to
96590         comments).
96591
96592 2001-02-17  Jim Meyering  <meyering@lucent.com>
96593
96594         * lib/regex.c: Update from libc.
96595
96596 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
96597
96598         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
96599         clash.
96600
96601 2001-02-16  Paul Eggert  <eggert@twinsun.com>
96602
96603         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
96604         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
96605         Reported by Mark Hounschell via Paul Eggert.
96606
96607 2001-02-07  Jim Meyering  <meyering@lucent.com>
96608
96609         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
96610
96611 2001-02-05  Jim Meyering  <meyering@lucent.com>
96612
96613         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
96614         it includes the patch required for `large file' support with at least
96615         HP-UX's 10.20 /bin/cc.
96616
96617 2001-02-03  Jim Meyering  <meyering@lucent.com>
96618
96619         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
96620         AS_IF, now that it works once again (mysteriously).
96621         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
96622
96623 2001-01-30  Jim Meyering  <meyering@lucent.com>
96624
96625         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
96626         * m4/chown.m4: Rename conftestchown to conftest.chown.
96627         * m4/rename.m4: s/conftestdir/conftest.d1/ and
96628         s/conftestdir2/conftest.d2/.
96629         * m4/utimes.m4: s/conftestdata/conftest.data/
96630         Inspired by Pavel Roskin's change in autoconf.
96631
96632 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
96633
96634         * lib/config.charset: Update for FreeBSD 4.2.
96635
96636 2001-01-27  Jim Meyering  <meyering@lucent.com>
96637
96638         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
96639         a use of AS_IF.
96640         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
96641
96642 2001-01-26  Jim Meyering  <meyering@lucent.com>
96643
96644         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
96645         quotearg.c includes it.
96646
96647 2001-01-26  Jim Meyering  <meyering@lucent.com>
96648
96649         * lib/quotearg.c: Include stddef.h.
96650         * lib/quote.c: Include stddef.h.
96651         Reported by Axel Kittenberger.
96652
96653         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
96654         line in double quotes so that it evokes a better diagnostic.
96655         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
96656         Reported by Axel Kittenberger.
96657
96658 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
96659
96660         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
96661         as if it was a `charset'.
96662
96663 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
96664
96665         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
96666         has const.
96667
96668 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
96669
96670         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
96671         to avoid a warning.  Add back 'const' to inptr.
96672
96673 2001-01-20  Jim Meyering  <meyering@lucent.com>
96674
96675         Be sure that headers are checked before used in code compiled
96676         for the type checks.
96677         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
96678         In place of that, invoke jm_CHECK_ALL_TYPES.
96679         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
96680         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
96681         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
96682         The check for ssize_t was mistakenly run before the test for unistd.h.
96683
96684         The configure-time check for stdbool.h was missing.
96685         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
96686         (jm_PREREQ_HASH): New function.
96687
96688 2001-01-17  Jim Meyering  <meyering@lucent.com>
96689
96690         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
96691         for autoconf-2.49c.
96692         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
96693
96694 2001-01-16  Jim Meyering  <meyering@lucent.com>
96695
96696         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
96697         From Bruno Haible.
96698
96699 2001-01-14  Jim Meyering  <meyering@lucent.com>
96700
96701         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
96702         foo and bar.  Create conftestdir/ in the script, not in the C code.
96703         Remove directories in the script, not in the C code.
96704         Remove conftestdir{,2} before trying to create the directory.
96705         Make the entire configure script fail if the mkdir fails.
96706
96707 2001-01-14  Jim Meyering  <meyering@lucent.com>
96708
96709         * lib/rename.c: New file.  From Volker Borchert.
96710         Include stdlib.h, string.h or strings.h, and xalloc.h.
96711         Use strip_trailing_slashes rather than open-coding it.
96712
96713 2001-01-03  Paul Eggert  <eggert@twinsun.com>
96714
96715         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
96716
96717 2001-01-03  Jim Meyering  <meyering@lucent.com>
96718
96719         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
96720         of local `inptr' to avoid warning with some system declarations of
96721         iconv.
96722
96723 2001-01-02  Volker Borchert  <bt@teknon.de>
96724
96725         * m4/rename.m4: New file.
96726         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
96727
96728 2001-01-01  Jim Meyering  <meyering@lucent.com>
96729
96730         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
96731         even on systems with utmpx.h.  It's necessary for the declaration of
96732         utmp's ut_user member.  Reported by Andreas Jaeger.
96733
96734         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
96735         available. They are required for the declarations of getgrgid and
96736         getpwuid resp.
96737         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
96738         Reported by Andreas Jaeger.
96739
96740 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
96741
96742         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
96743         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
96744         so `make install' also works in VPATH builds.
96745
96746 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
96747
96748         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
96749         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
96750         can be used in subdirectories.
96751
96752 2000-12-29  Paul Eggert  <eggert@twinsun.com>
96753
96754         * lib/modechange.c: Do not assume that mode_t uses the
96755         traditional octal encoding.  E.g. "chmod 1 FOO" should set
96756         the other-execute bit of FOO even if S_IXOTH != 1.
96757
96758         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
96759         WOTH, XOTH, ALLM): New macros.
96760         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
96761          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
96762         Use them.
96763         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
96764         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
96765         (mode_compile):
96766         No need to use uintmax_t; unsigned long is long enough.
96767         Don't bother to get suffix since we don't use it.
96768
96769 2000-12-26  Jim Meyering  <meyering@lucent.com>
96770
96771         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
96772         better with autoheader.
96773
96774 2000-12-24  Jim Meyering  <meyering@lucent.com>
96775
96776         * lib/hash.c (is_prime): Return explicit boolean values.
96777         (hash_get_first): Return NULL to appease Irix5.6's 89.
96778         Reported by Nelson Beebe.
96779
96780 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
96781
96782         * lib/localcharset.c (locale_charset): Add support for Win32.
96783
96784 2000-12-18  Paul Eggert  <eggert@twinsun.com>
96785
96786         * lib/physmem.h, lib/physmem.c: New files.
96787
96788         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
96789         (noinst_HEADERS): Add physmem.h.
96790
96791         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
96792         't' for compatibility with Solaris 8 sort.
96793
96794 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
96795
96796         * lib/config.charset: Add support for BeOS.
96797
96798 2000-12-17  Jim Meyering  <meyering@lucent.com>
96799
96800         * m4/dos.m4 (jm_AC_DOS): New file and macro.
96801         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
96802
96803 2000-12-16  Jim Meyering  <meyering@lucent.com>
96804
96805         This bug had a serious impact on chown: `chown N:M FILE' (for integer
96806         N and M) would have treated it like `chown N:N FILE'.
96807
96808         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
96809
96810 2000-12-16  Jim Meyering  <meyering@lucent.com>
96811
96812         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
96813         SHELLS_FILE to a file name that's useful on djgpp systems.
96814         Include stdlib.h.
96815         (ADDITIONAL_DEFAULT_SHELLS): Define.
96816         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
96817         Based mostly on a patch from Prashant TR.
96818
96819 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
96820
96821         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
96822         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
96823         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
96824
96825 2000-12-08  Andreas Schwab  <schwab@suse.de>
96826
96827         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
96828         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
96829
96830 2000-12-07  Jim Meyering  <meyering@lucent.com>
96831
96832         * lib/stripslash.c (ISSLASH): Define.
96833         (strip_trailing_slashes): Use ISSLASH rather than comparing against
96834         `/'.
96835         From Prashant TR.
96836
96837         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
96838         (dir_name_r): Declare this function as static.
96839         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
96840         manifest itself on a name containing a mix of slashes and
96841         backslashes.
96842         Make this function work with names starting with a DOS-style
96843         drive letter and colon prefix.
96844         (dir_name): Append `.' if necessary.
96845         Based mostly on patches from Prashant TR and Eli Zaretskii.
96846
96847         * lib/dirname.h (dir_name_r): Remove prototype.
96848
96849 2000-12-06  Paul Eggert  <eggert@twinsun.com>
96850
96851         * m4/off_t-format.m4: Remove this file.
96852         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
96853
96854 2000-12-06  Jim Meyering  <meyering@lucent.com>
96855
96856         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
96857         replacement strtoull, we may well need the replacement strtoul, too.
96858         Check for declarations of strtoul and strtoull.
96859         Check for strtol.  Mainly as a cue to cause automake to include
96860         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
96861         Check for limits.h -- strtol.c needs it.
96862
96863 2000-12-05  Jim Meyering  <meyering@lucent.com>
96864
96865         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
96866
96867 2000-12-04  Jim Meyering  <meyering@lucent.com>
96868
96869         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
96870         Also include memory.h, stdlib.h, unistd.h if appropriate.
96871         Reported by Andreas Jaeger (conflicting declaration of malloc).
96872
96873 2000-12-02  Jim Meyering  <meyering@lucent.com>
96874
96875         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
96876         * m4/jm-macros.m4 (jm_MACROS): require it.
96877
96878 2000-12-02  Jim Meyering  <meyering@lucent.com>
96879
96880         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
96881
96882 2000-12-01  Paul Eggert  <eggert@twinsun.com>
96883
96884         * lib/memrchr.c: Include <config.h> before any system include file.
96885
96886 2000-11-30  Jim Meyering  <meyering@lucent.com>
96887
96888         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
96889
96890 2000-11-30  Jim Meyering  <meyering@lucent.com>
96891
96892         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
96893
96894 2000-11-29  Paul Eggert  <eggert@twinsun.com>
96895
96896         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
96897
96898 2000-11-26  Jim Meyering  <meyering@lucent.com>
96899
96900         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
96901
96902 2000-11-22  Paul Eggert  <eggert@twinsun.com>
96903
96904         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
96905         size of (size_t) -1; it's not portable.
96906
96907 2000-11-17  Jim Meyering  <meyering@lucent.com>
96908
96909         * lib/strstr.c: Update from GNU libc.
96910
96911 2000-11-17  Akim Demaille  <akim@epita.fr>
96912
96913         * lib/obstack.h: Formatting changes.
96914         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
96915         prevent type checking.
96916         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
96917         cast the value to (void *): assigning a `foo *' to a `void *'
96918         variable is valid.
96919         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
96920
96921 2000-11-16  Jim Meyering  <meyering@lucent.com>
96922
96923         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
96924
96925 2000-11-11  Jim Meyering  <meyering@lucent.com>
96926
96927         * lib/error.c: Add a couple #includes, merging from GNU libc version.
96928
96929 2000-11-10  Jim Meyering  <meyering@lucent.com>
96930
96931         * lib/obstack.h: Update from GNU libc.
96932         * lib/obstack.c: Likewise.
96933
96934 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
96935
96936         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
96937
96938 2000-11-06  Paul Eggert  <eggert@twinsun.com>
96939
96940         * lib/getusershell.c (setusershell): Use rewind rather than
96941         fseek/fseeko, to avoid configuration hassles with fseeko.
96942         Don't bother opening SHELLS_FILE if shellstream is NULL;
96943         it's not necessary.
96944
96945 2000-11-05  Jim Meyering  <meyering@lucent.com>
96946
96947         * lib/makepath.h (make_dir): Declare.
96948         * lib/makepath.c (make_dir): Remove `static' attribute.
96949         Tweak a comment.
96950
96951 2000-11-04  Jim Meyering  <meyering@lucent.com>
96952
96953         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
96954
96955 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
96956
96957         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
96958         last one in a bucket, advance to the next bucket.
96959
96960 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
96961
96962         * lib/fnmatch.c: Do not comment out all the code if we are using
96963         the GNU C library, because in some cases we are replacing buggy
96964         code in the GNU C library itself.
96965
96966 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
96967
96968         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
96969         (regex_compile): Catch bogus \(\1\).
96970
96971 2000-10-30  Paul Eggert  <eggert@twinsun.com>
96972
96973         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
96974         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
96975         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
96976
96977 2000-10-30  Paul Eggert  <eggert@twinsun.com>
96978
96979         * lib/error.h, getline.h, modechange.h:
96980         Remove "2000" from Copyright line, as the file hasn't been
96981         changed this year other than in the copyright notice.
96982
96983         * lib/xalloc.h: Add "2000" to Copyright line, as this file
96984         was changed this year.
96985
96986 2000-10-29  Jim Meyering  <meyering@lucent.com>
96987
96988         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
96989         renaming.
96990         * m4/ls-mntd-fs.m4: Likewise
96991
96992 2000-10-29  Jim Meyering  <meyering@lucent.com>
96993
96994         * lib/xstat.in: Fix grammar in comment.
96995
96996 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
96997
96998         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
96999         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
97000         doesn't define __restrict_arr.
97001
97002 2000-10-28  Jim Meyering  <meyering@lucent.com>
97003
97004         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
97005         (jm_PREREQ_MEMCHR): New function.
97006
97007 2000-10-28  Jim Meyering  <meyering@lucent.com>
97008
97009         * lib/memchr.c: Update from libc.
97010         Adjust for portability:
97011         [HAVE_STDLIB_H]: Include stdlib.h.
97012         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
97013         Undef __memchr, too.
97014         [!weak_alias]: Define __memchr to memchr.
97015
97016         * lib/regex.c: Update from libc.
97017         * lib/regex.h: Likewise.
97018         * lib/getopt1.c: Likewise.
97019         * lib/memcmp.c: Likewise.
97020
97021         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
97022         Avoid using fseek, when possible -- it's broken by design.
97023         Patch by Ulrich Drepper.
97024
97025 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
97026
97027         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
97028         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
97029         Giving in to popular pressure to shut up the compiler with casts.
97030
97031 2000-10-26  Jim Meyering  <meyering@lucent.com>
97032
97033         * lib/strftime.c: Update from libc.
97034
97035 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
97036
97037         * regex.c: More `unsigned char' -> `re_char' changes.
97038         Also change several `int' into `re_wchar_t'.
97039         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
97040         (PUSH_FAILURE_POINTER): Don't cast any more.
97041         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
97042         We want GCC to complain, since this piece of code makes
97043         re_match non-reentrant, which *should* be fixed.
97044         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
97045         (EXTEND_BUFFER): Use RETALLOC.
97046         (SET_LIST_BIT): Don't cast.
97047         (re_wchar_t): New type.
97048         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
97049         that those two functions will always properly return.
97050         (IMMEDIATE_QUIT_CHECK): Cast to void.
97051         (analyse_first): Use recursion rather than an explicit stack.
97052         (re_compile_fastmap): Can't fail anymore.
97053         (re_search_2): Don't check re_compile_fastmap for failure.
97054         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
97055         Now also sets the new value (passed in a new argument).
97056         (re_match_2_internal): Use it.
97057         Also, use a new var `reg' of type size_t when looping through regs
97058         rather than reuse the inappropriate `mcnt'.
97059
97060 2000-10-25  Jim Meyering  <meyering@lucent.com>
97061
97062         * lib/obstack.c: Update from libc.
97063
97064 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
97065
97066         * regex.c (regex_compile): Change the way of handling a range from
97067         a char less than 256 to a char not less than 256.
97068
97069 2000-10-24  Andrew Innes  <andrewi@gnu.org>
97070
97071         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
97072         NT-Emacs only.
97073         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
97074         so that re_search functions only quit when callers expect them to.
97075
97076 2000-10-23  Jim Meyering  <meyering@lucent.com>
97077
97078         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
97079         wrong.  That set_locale call must not have any side effects.
97080         From Paul Eggert.
97081
97082 2000-10-22  Jim Meyering  <meyering@lucent.com>
97083
97084         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
97085         [CYCLIC]: Remove now-unused definition.
97086
97087         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
97088         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
97089         Suggestion from Ulrich Drepper.
97090
97091 2000-10-21  Jim Meyering  <meyering@lucent.com>
97092
97093         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
97094         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
97095         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
97096
97097 2000-10-21  Jim Meyering  <meyering@lucent.com>
97098
97099         * lib/dirname.c (memrchr): Declare if necessary.
97100         (dir_name): Remove the restriction that there be no
97101         trailing slashes.  Now, this code skips past them, effectively
97102         ignoring them.
97103         [TEST_DIRNAME] (main): New unit tests.
97104
97105         * lib/memrchr.c: New file from GNU libc.
97106         Undef __memrchr, too.
97107         [!weak_alias]: Define __memrchr to memrchr.
97108         Guard weak_alias use with `#ifdef weak_alias'.
97109
97110 2000-10-21  Jim Meyering  <meyering@lucent.com>
97111
97112         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
97113         (dir_name): Use dir_name_r.
97114         * lib/dirname.h (dir_name_r): Declare it.
97115
97116 2000-10-17  Jim Meyering  <meyering@lucent.com>
97117
97118         * lib/quote.h (PARAMS): Define and use.
97119         Reported by Akim Demaille.
97120
97121         * lib/getopt.c: Update from libc.
97122
97123 2000-10-16  Jim Meyering  <meyering@lucent.com>
97124
97125         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
97126         setlocale.
97127         From Jan Fedak.
97128
97129 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
97130
97131         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
97132
97133 2000-09-25  Jim Meyering  <meyering@lucent.com>
97134
97135         * lib/md5.h (rol): Define (from GnuPG).
97136
97137         * lib/sha.c: Give credit (GnuPG) where due.
97138         (M): Use rol rather than open-coding it.
97139         Add a FIXME comment.
97140
97141 2000-09-21  Jim Meyering  <meyering@lucent.com>
97142
97143         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
97144         Reported by Michael Stone.
97145
97146 2000-09-20  Jim Meyering  <meyering@lucent.com>
97147
97148         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
97149         (noinst_HEADERS): Add sha.h.
97150         Based on code from Scott G. Miller and from GnuPG.
97151
97152 2000-09-18  Jim Meyering  <meyering@lucent.com>
97153
97154         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
97155         LIBS. Otherwise, everyone ends up linking with -lelf for some
97156         configurations.
97157         Reported by Mike Stone.
97158
97159 2000-09-15  Jim Meyering  <meyering@lucent.com>
97160
97161         * lib/regex.c: Update from libc.
97162
97163 2000-09-10  Jim Meyering  <meyering@lucent.com>
97164
97165         * lib/getopt.c (_getopt_internal): Update from glibc.
97166
97167 2000-09-09  Jim Meyering  <meyering@lucent.com>
97168
97169         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
97170         think it should be used as a general replacement for isascii.
97171         * lib/fnmatch.c: Likewise.
97172         * lib/mbswidth.c: Likewise
97173         * lib/regex.c: Likewise.
97174
97175         Don't use atoi.
97176         * lib/userspec.c: Include sys/param.h and limits.h.
97177         Include xstrtol.h.
97178         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
97179         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
97180         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
97181         UID, GID.  Check range.
97182
97183 2000-09-06  Jim Meyering  <meyering@lucent.com>
97184
97185         * lib/getopt.c (_getopt_internal): Update from glibc.
97186
97187 2000-08-30  Jim Meyering  <meyering@lucent.com>
97188
97189         * lib/strftime.c: Merge in changes from GNU libc.
97190
97191 2000-08-26  Jim Meyering  <meyering@lucent.com>
97192
97193         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
97194         * m4/fpending.m4: New file.
97195
97196 2000-08-26  Jim Meyering  <meyering@lucent.com>
97197
97198         * lib/closeout.c: Include "__fpending.h".
97199         (close_stdout_status): Return right away if there's nothing to flush.
97200
97201         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
97202         * lib/__fpending.c: New file.
97203         * lib/__fpending.h: New file.
97204
97205 2000-08-20  Jim Meyering  <meyering@lucent.com>
97206
97207         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
97208         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
97209         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
97210
97211 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
97212
97213         Improve fileutils installation on systems where running
97214         programs (like install) can't be unlinked.
97215         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
97216         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
97217
97218 2000-08-07  Paul Eggert  <eggert@twinsun.com>
97219
97220         Standardize on "memory exhausted" instead of "Memory exhausted"
97221         or "virtual memory exhausted".
97222         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
97223         "virtual memory exhausted".
97224         * lib/same.c (same_name): Invoke xalloc_die instead of printing
97225         our own message.
97226         * lib/userspec.c (parse_user_spec): Likewise.
97227         * lib/bumpalloc.h: comment fix
97228         * lib/same.c, userspec.c: Include xalloc.h.
97229
97230         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
97231         not char *const and pointing to a constant array.
97232         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
97233         (xrealloc): Comment fix.
97234
97235         * lib/userspec.c (parse_user_spec):
97236         Don't translate a message until just before returning,
97237         to avoid unnecessary translation.
97238
97239 2000-08-07  Jim Meyering  <meyering@lucent.com>
97240
97241         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
97242         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
97243         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
97244         getgroups.c, gethostname.c, getopt.h, group-member.c,
97245         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
97246         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
97247         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
97248         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
97249         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
97250         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
97251         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
97252         yesno.c: Back out Copyright date changes for each file with no change
97253         this year.  This eases coordination with other programs using the same
97254         source code modules.  From Paul Eggert.
97255
97256 2000-08-06  Paul Eggert  <eggert@twinsun.com>
97257
97258         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
97259         not char, for compatibility with glibc 2.1.3 strftime.c.
97260
97261 2000-08-03  Greg McGary  <greg@mcgary.org>
97262
97263         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
97264         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
97265         (EXTEND_BUFFER): Use them.
97266
97267 2000-08-01  Jim Meyering  <meyering@lucent.com>
97268
97269         * lib/dirname.c (ISSLASH): Define.
97270         (BACKSLASH_IS_PATH_SEPARATOR): Define.
97271         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
97272         both `\' and `/' may be use as path separators.
97273         Based on a patch from Prashant TR.
97274
97275 2000-07-31  Paul Eggert  <eggert@twinsun.com>
97276
97277         * lib/quotearg.c (quotearg_n_options): Don't make the initial
97278         slot vector a constant, since it might get modified.
97279
97280 2000-07-31  Jim Meyering  <meyering@lucent.com>
97281
97282         * lib/xmalloc.c: Use `virtual memory exhausted', not
97283         `Memory exhausted'.
97284         * lib/obstack.c (print_and_abort): Likewise.
97285
97286 2000-07-30  Paul Eggert  <eggert@twinsun.com>
97287
97288         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
97289         buffer, so that the caller can always quote one small
97290         component of a "memory exhausted" message in slot 0.
97291         From a suggestion by Jim Meyering.
97292
97293 2000-07-30  Jim Meyering  <meyering@lucent.com>
97294
97295         * lib/makepath.c (make_path): Quote the other instance, too.
97296
97297         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
97298         (STATIC_BUF_SIZE): Define.
97299         (quotearg_n_options): Use only statically allocated storage when
97300         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
97301         than STATIC_BUF_SIZE.
97302
97303 2000-07-29  Jim Meyering  <meyering@lucent.com>
97304
97305         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
97306         * lib/dirname.c (dir_name): Likewise.
97307
97308         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
97309         `/'.
97310
97311         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
97312         (dir_name): Assert that there are no trailing slashes.
97313
97314 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
97315
97316         * lib/mbswidth.h (mbswidth): Add a flags argument.
97317         (mbswidth): New declaration.
97318         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
97319         * lib/mbswidth.c (mbswidth): Add a flags argument.
97320         (mbsnwidth): New function.
97321
97322 2000-07-24  Jim Meyering  <meyering@lucent.com>
97323
97324         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
97325
97326 2000-07-23  Paul Eggert  <eggert@twinsun.com>
97327
97328         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
97329
97330 2000-07-23  Paul Eggert  <eggert@twinsun.com>
97331
97332         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
97333         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
97334         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
97335         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
97336         invoke multibyte primitives.
97337
97338 2000-07-23  Paul Eggert  <eggert@twinsun.com>
97339
97340         * lib/quotearg.c:
97341         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
97342         so that mbstate_t is always defined.
97343
97344         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
97345         be 1 in at least one GCC installation, and this configuration
97346         error is likely to be common.  Ignoring MB_LEN_MAX hurts
97347         performance on hosts that have mbrtowc but have only unibyte
97348         locales, but I assume these hosts are rare.
97349
97350 2000-07-23  Paul Eggert  <eggert@twinsun.com>
97351
97352         * lib/mbswidth.c (_XOPEN_SOURCE):
97353         Don't define; this causes problems on Solaris 7.
97354         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
97355
97356 2000-07-23  Jim Meyering  <meyering@lucent.com>
97357
97358         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
97359         too: getgrgid, getpwuid, getuid.
97360
97361 2000-07-23  Jim Meyering  <meyering@lucent.com>
97362
97363         * lib/basename.c (base_name): Add an assertion.
97364
97365 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
97366
97367         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
97368         shadow its mbsinit function.
97369
97370 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
97371
97372         * lib/mbswidth.h: New file.
97373         * lib/mbswidth.c: New file.
97374         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
97375         (noinst_HEADERS): Add mbswidth.h.
97376
97377 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
97378
97379         * lib/config.charset: Add support for FreeBSD. Improve support for
97380         HP-UX and IRIX 6.
97381
97382 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
97383
97384         * m4/mbswidth.m4: New file.
97385         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
97386
97387 2000-07-15  Jim Meyering  <meyering@lucent.com>
97388
97389         * lib/makepath.c: Include quote.h.
97390         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
97391         corresponding argument in a `quote (...)' call.
97392         Give better diagnostics.
97393
97394         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
97395         (noinst_HEADERS): Add quote.h.
97396
97397         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
97398         from tar's src/misc.c.
97399         * lib/quote.h: New file.  Prototypes for same.
97400
97401 2000-07-14  Paul Eggert  <eggert@twinsun.com>
97402
97403         From a suggestion by Bruno Haible.
97404         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
97405         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
97406         to decide whether to define the BeOS workaround macro;
97407         this adjusts to the change to AC_MBSTATE_T.
97408
97409 2000-07-14  Jim Meyering  <meyering@lucent.com>
97410
97411         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
97412         jm_AC_TYPE_UINTMAX_T.
97413
97414 2000-07-13  Paul Eggert  <eggert@twinsun.com>
97415
97416         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
97417
97418         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
97419         quotearg_buffer_restyled): Add support for
97420         clocale_quoting_style.  Undo previous change to
97421         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
97422         and "{RIGHT QUOTATION MARK}" msgids.
97423
97424 2000-07-10  Paul Eggert  <eggert@twinsun.com>
97425
97426         From a suggestion by Bruno Haible.
97427         * m4/mbstate_t.m4 (AC_MBSTATE_T):
97428         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
97429         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
97430         and mbstate_t, to a single-part test that simply defines mbstate_t.
97431         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
97432         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
97433
97434 2000-07-10  Jim Meyering  <meyering@lucent.com>
97435
97436         * m4/strerror_r.m4: Mirror the correction made in autoconf.
97437
97438         * m4/gnu-source.m4: Output to confdefs.h directly.
97439         Suggestion from Akim Demaille.
97440
97441 2000-07-09  Paul Eggert  <eggert@twinsun.com>
97442
97443         The old behavior of quoting `like this' doesn't look good with
97444         newer, ISO-style fonts.  See:
97445         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
97446
97447         Instead, quote "like this" by default.  Let the translator
97448         tailor the locale-specific quoting behavior by providing
97449         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
97450
97451         * lib/quotearg.c (N_): New macro.
97452         (gettext_default): New function.
97453         (quotearg_buffer_restyled): Use
97454         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
97455         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
97456
97457 2000-07-09  Jim Meyering  <meyering@lucent.com>
97458
97459         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
97460         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
97461
97462         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
97463         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
97464
97465 2000-07-09  Jim Meyering  <meyering@lucent.com>
97466
97467         * lib/Most files: Update copyright dates to include 2000.
97468
97469 2000-07-08  Jim Meyering  <meyering@lucent.com>
97470
97471         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
97472         if not defined.
97473         (xgethostname): Remove now-unnecessary #ifdef.
97474         Move declaration of `err' into loop where it's used.
97475
97476 2000-07-05  Paul Eggert  <eggert@twinsun.com>
97477         and Bruno Haible  <haible@clisp.cons.org>
97478
97479         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
97480         only if the test for an object-type mbstate_t fails.  This
97481         prevents us from mistakenly reporting that mbstate_t is a
97482         system object type after we "#define mbstate_t int" to work
97483         around its lack.
97484
97485 2000-07-05  Paul Eggert  <eggert@twinsun.com>
97486         and Bruno Haible  <haible@clisp.cons.org>
97487
97488         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
97489
97490 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
97491
97492         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
97493         to strerror_r.
97494         Include <ctype.h> for use of isalpha.
97495
97496 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
97497
97498         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
97499         by allocating a larger buffer. Test the gethostname return value for
97500         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
97501         returns an error and ENAMETOOLONG isn't defined.
97502
97503 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
97504
97505         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
97506         dimension.
97507
97508 2000-07-04  Jim Meyering  <meyering@lucent.com>
97509
97510         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
97511         of the deprecated AC_CHECKING.
97512
97513 2000-07-04  Jim Meyering  <meyering@lucent.com>
97514
97515         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
97516         Reported by Bruno Haible.
97517
97518 2000-07-04  Jim Meyering  <meyering@lucent.com>
97519
97520         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
97521         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
97522         lacks mbrtowc.
97523
97524 2000-07-03  Paul Eggert  <eggert@twinsun.com>
97525
97526         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
97527         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
97528
97529 2000-07-03  Paul Eggert  <eggert@twinsun.com>
97530         and Bruno Haible  <haible@clisp.cons.org>
97531
97532         * lib/quotearg.c (mbrtowc):
97533         Assign to *pwc, and return 1 only if result is nonzero.
97534         (iswprint): Use ISPRINT when substituting our own mbrtowc.
97535
97536 2000-07-03  Jim Meyering  <meyering@lucent.com>
97537
97538         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
97539
97540 2000-07-03  Jim Meyering  <meyering@lucent.com>
97541
97542         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
97543         This is necessary to get a definition of e.g., UTMP_FILE on
97544         HP-UX 10.20.
97545         From Bob Proulx.
97546
97547 2000-07-02  Jim Meyering  <meyering@lucent.com>
97548
97549         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
97550
97551         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
97552         AC_LIBOBJ(function_name).
97553         * m4/chown.m4: Likewise.
97554         * m4/fnmatch.m4: Likewise.
97555         * m4/ftruncate.m4: Likewise.
97556         * m4/getgroups.m4: Likewise.
97557         * m4/getline.m4: Likewise.
97558         * m4/group-member.m4: Likewise.
97559         * m4/jm-macros.m4: Likewise.
97560         * m4/lstat.m4: Likewise.
97561         * m4/malloc.m4: Likewise.
97562         * m4/memcmp.m4: Likewise.
97563         * m4/nanosleep.m4: Likewise.
97564         * m4/putenv.m4: Likewise.
97565         * m4/realloc.m4: Likewise.
97566         * m4/regex.m4: Likewise.
97567         * m4/stat.m4: Likewise.
97568         * m4/strftime.m4: Likewise.
97569
97570 2000-07-02  Jim Meyering  <meyering@lucent.com>
97571
97572         * lib/quotearg.c (mbstate_t): Don't define here.
97573
97574 2000-07-02  Jim Meyering  <meyering@lucent.com>
97575
97576         * lib/nanosleep.c (SIGCONT): Define if not already defined.
97577
97578 2000-07-01  Jim Meyering  <meyering@lucent.com>
97579
97580         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
97581
97582 2000-07-01  Jim Meyering  <meyering@lucent.com>
97583
97584         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
97585         problem.
97586
97587 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
97588
97589         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
97590         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
97591
97592 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
97593
97594         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
97595         per change in ../m4/ls-mntd-fs.m4.
97596         (read_filesystem_list): Ignore symbolic links.
97597
97598 2000-06-29  Jim Meyering  <meyering@lucent.com>
97599
97600         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
97601         for declaration of strcmp.
97602
97603         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
97604
97605         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
97606         Avoid warning by casting result to `char *' to remove `const'.
97607
97608 2000-06-28  Jim Meyering  <meyering@lucent.com>
97609
97610         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
97611         included by quotearg.c, for which we perform this test.  From
97612         Bruno Haible.
97613
97614 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
97615
97616         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
97617         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
97618         <utmpx.h> exists, put readutmp.o into LIBOBJS.
97619
97620 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
97621
97622         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
97623
97624 2000-06-26  Paul Eggert  <eggert@twinsun.com>
97625
97626         savedir now sets errno on failure and invokes xmalloc to get memory.
97627         Fix a couple of other minor bugs while we're at it.
97628
97629         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
97630         (NAMLEN): Remove macro.
97631         (malloc, realloc): Remove decls.
97632         (stpcpy): Likewise.
97633         ("xalloc.h"): Include.
97634         (NAME_SIZE_DEFAULT): New macro.
97635         (savedir): Use xmalloc / xrealloc to allocate memory.
97636         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
97637         Skip "" directory entries.
97638         Use strlen to calculate directory entry length, since the old method
97639         is rarely used these days and isn't worth supporting.
97640         Don't use a pointer after freeing it.
97641         Check for integer overflow when calculating allocation size.
97642         Use memcpy to copy entries, instead of stpcpy.
97643         Set errno properly when returning NULL.
97644         Check for readdir error.
97645
97646 2000-06-26  Jim Meyering  <meyering@lucent.com>
97647
97648         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
97649
97650 2000-06-25  Jim Meyering  <meyering@lucent.com>
97651
97652         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
97653         Linux header bug when _XOPEN_SOURCE is defined to 500.
97654
97655 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
97656
97657         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
97658         deficiency.
97659
97660 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
97661
97662         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
97663         Include xalloc.h.
97664         Don't include <stdlib.h>.  Don't declare malloc, realloc.
97665
97666 2000-06-24  Jim Meyering  <meyering@lucent.com>
97667
97668         * m4/strerror_r.m4: Revive this file -- to try out an experimental
97669         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
97670         for which strerror does return char*, but which lacks a conveniently
97671         accessible declaration of the function.  If the compile-test says
97672         strerror_r doesn't work, then resort to a `run'-test that works on
97673         BeOS and segfaults on DEC Unix.
97674
97675 2000-06-24  Jim Meyering  <meyering@lucent.com>
97676
97677         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
97678
97679 2000-06-23  Paul Eggert  <eggert@twinsun.com>
97680
97681         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
97682         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
97683
97684 2000-06-23  Paul Eggert  <eggert@twinsun.com>
97685
97686         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
97687         (mbrtowc, mbstate_t): Define substitutes if
97688         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
97689         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
97690         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
97691
97692 2000-06-23  Jim Meyering  <meyering@lucent.com>
97693
97694         * m4/afs.m4: Add missing AC_MSG_RESULT.
97695         Reported by Bruno Haible.
97696
97697         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
97698         Suggestion from Bruno Haible.
97699
97700 2000-06-23  Jim Meyering  <meyering@lucent.com>
97701
97702         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
97703
97704 2000-06-21  Jim Meyering  <meyering@lucent.com>
97705
97706         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
97707
97708 2000-06-21  Jim Meyering  <meyering@lucent.com>
97709
97710         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
97711         (noinst_HEADERS): Add getstr.h.
97712
97713         * lib/getline.c (getstr): Move into a separate file.
97714         * lib/getstr.c (getstr): New file, extracted from getline.c, with
97715         the following changes: new parameter, delim2; both delim[12]
97716         parameters have type `int', not `char'.  The latter would lose
97717         with 8-bit delimiters.
97718         * lib/getstr.h: New file.
97719
97720 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
97721
97722         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
97723         than 1024, return a memory chunk of least possible size, instead
97724         of size PATH_MAX + 2. In the loop, increment the size proportionally.
97725         Use free/xmalloc instead of xrealloc to avoid copying for very long
97726         paths.
97727
97728 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
97729
97730         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
97731         the empty string.
97732
97733 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
97734
97735         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
97736         address, not strdup.  Include <stdlib.h> and don't declare free().
97737
97738 2000-06-19  Jim Meyering  <meyering@lucent.com>
97739
97740         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
97741
97742 2000-06-18  Jim Meyering  <meyering@lucent.com>
97743
97744         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
97745
97746         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
97747         `checking whether...' message to be consistent with that of the
97748         lstat test.
97749
97750 2000-06-18  Jim Meyering  <meyering@lucent.com>
97751
97752         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
97753         Besides, these days every porting target provides a mkdir function.
97754
97755         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
97756         needed. (this snippet comes from src/system.h).
97757
97758 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
97759
97760         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
97761
97762 2000-06-15  Paul Eggert  <eggert@twinsun.com>
97763
97764         * lib/human.c (adjust_value): New function.
97765         (human_readable_inexact): Apply rounding style even when
97766         printing approximate values.
97767
97768 2000-06-14  Paul Eggert  <eggert@twinsun.com>
97769
97770         * lib/human.c (human_readable_inexact): Allow an input block
97771         size that is not a multiple of the output block size, and vice versa.
97772         Reported by Piergiorgio Sartor.
97773
97774 2000-06-14  Paul Eggert  <eggert@twinsun.com>
97775
97776         * lib/getdate.y (get_date): Apply relative times after time
97777         zone indicator, not before.  Reported by Todd A. Jacobs.
97778
97779 2000-06-13  Jim Meyering  <meyering@lucent.com>
97780
97781         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
97782
97783         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
97784
97785 2000-06-12  Paul Eggert  <eggert@twinsun.com>
97786
97787         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
97788
97789 2000-06-12  Jim Meyering  <meyering@lucent.com>
97790
97791         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
97792         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
97793         optional argument.
97794         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
97795         the optional argument, `lib'.
97796
97797 2000-06-08  Jim Meyering  <meyering@lucent.com>
97798
97799         * m4/largefile.m4: Remove file (now that it's part of autoconf).
97800
97801 2000-06-04  Paul Eggert  <eggert@twinsun.com>
97802
97803         Rewrite largefile configuration so that we don't need to run
97804         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
97805         AC_CANONICAL_HOST in configure.in -- jmm]
97806
97807         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
97808         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
97809         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
97810         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
97811         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
97812         All uses changed.
97813         Instead of inspecting the output of getconf, try to compile the
97814         test program without and with the macro definition.
97815         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
97816         for getconf.  Instead, check for the needed flags by compiling
97817         test programs.
97818
97819 2000-06-04  Paul Eggert  <eggert@twinsun.com>
97820
97821         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
97822
97823 2000-06-04  Jim Meyering  <meyering@lucent.com>
97824
97825         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
97826         SunOS 4.1.4 for which gid_t is an unsigned type.
97827
97828 2000-06-03  Jim Meyering  <meyering@lucent.com>
97829
97830         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
97831         now that autoconf requires that.
97832
97833         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
97834         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
97835         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
97836
97837 2000-06-03  Jim Meyering  <meyering@lucent.com>
97838
97839         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
97840
97841 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
97842
97843         * m4/glibc21.m4: New file.
97844         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
97845
97846 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
97847
97848         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
97849         newer, don't install charset.alias.
97850         * lib/config.charset: Change the Linux/glibc rules so they become empty
97851         on glibc-2.1 or newer.
97852
97853 2000-06-02  Jim Meyering  <meyering@lucent.com>
97854
97855         * lib/mountlist.c: Back out last change.  Instead, do this...
97856         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
97857         me_dummy member using the same `ignore'-testing code.
97858         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
97859         fs_type strings.
97860         From Mark D. Roth.
97861
97862 2000-05-29  Jim Meyering  <meyering@lucent.com>
97863
97864         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
97865         mounts with the `ignore' attribute.  Based on a patch from
97866         Mark D. Roth.
97867
97868 2000-05-28  Jim Meyering  <meyering@lucent.com>
97869
97870         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
97871         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
97872         * m4/stat.m4: Likewise.
97873         * m4/lstat.m4: Likewise.
97874         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
97875
97876         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
97877         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
97878
97879 2000-05-26  Jim Meyering  <meyering@lucent.com>
97880
97881         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
97882
97883 2000-05-24  Jim Meyering  <meyering@lucent.com>
97884
97885         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
97886         autoconf requires that.
97887         * m4/lib-check.m4: Likewise.
97888         * m4/jm-macros.m4: Likewise.
97889         * m4/strftime.m4: Likewise.
97890
97891         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
97892         AC_CHECK_DECLS, now that autoconf requires that.
97893
97894 2000-05-22  Jim Meyering  <meyering@lucent.com>
97895
97896         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
97897         * m4/lstat.m4: Likewise.
97898
97899 2000-05-22  Jim Meyering  <meyering@lucent.com>
97900
97901         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
97902
97903 2000-05-20  Jim Meyering  <meyering@lucent.com>
97904
97905         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
97906         (jm_PREREQ): Use it.
97907
97908 2000-05-18  Jim Meyering  <meyering@lucent.com>
97909
97910         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
97911         back, too, since it may have been modified by allocate_entry.
97912         (hash_delete): Rewrite to use neither the assignment operator
97913         nor the comma operator in an if-expression.
97914
97915 2000-05-15  Paul Eggert  <eggert@twinsun.com>
97916
97917         * lib/closeout.c:
97918         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
97919         Remove; no longer needed.
97920         "quotearg.h": Add include.
97921         (file_name): Do not bother to explicitly initialize to NULL; it's less
97922         efficient on some hosts.
97923         (close_stdout_status): Remove test as to whether stdout was already
97924         closed; it breaks for the case "echo x | sort >&-".
97925         Quote file name colons.
97926         Do not assume that _("write error") lacks format strings.
97927
97928 2000-05-15  Jim Meyering  <meyering@lucent.com>
97929
97930         * lib/version-etc.c (version_etc_copyright): Update the copyright
97931         string used in all --version output.
97932
97933 2000-05-14  Jim Meyering  <meyering@lucent.com>
97934
97935         * lib/closeout.c (close_stdout_set_file_name): New function.
97936         (close_stdout_status): Use new file-scoped global.
97937         Return right away if fstat says the stdout file descriptor is invalid.
97938         * lib/closeout.h (close_stdout_set_file_name): Declare.
97939
97940 2000-05-10  Jim Meyering  <meyering@lucent.com>
97941
97942         * lib/closeout.c [default_exit_status]: New file-scoped variable.
97943         (close_stdout_set_status): New function.
97944         * lib/closeout.h (close_stdout_set_status): Declare.
97945
97946 2000-05-09  Jim Meyering  <meyering@lucent.com>
97947
97948         * m4/gettext.m4: Rename this...
97949         * m4/libintl.m4: ...to this.
97950
97951 2000-05-08  Jim Meyering  <meyering@lucent.com>
97952
97953         * lib/long-options.c: Don't include closeout.h.
97954         (parse_long_options): Don't call close_stdout for --version.
97955
97956 2000-05-06  Paul Eggert  <eggert@twinsun.com>
97957
97958         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
97959         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
97960         2.1.3 bug.  This avoids a clash when files like regex.c define
97961         _GNU_SOURCE.
97962
97963 2000-05-06  Jim Meyering  <meyering@lucent.com>
97964
97965         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
97966         (AC_REPLACE_FUNCS): Add strnlen.
97967
97968         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
97969         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
97970
97971         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
97972         AC_SEARCH_LIBS call for nanosleep.
97973         (LIB_NANOSLEEP): Set and AC_SUBST.
97974
97975 2000-05-06  Jim Meyering  <meyering@lucent.com>
97976
97977         * lib/strnlen.c: Undefine __strnlen and strnlen.
97978         [!weak_alias]: Define __strnlen to strnlen.
97979
97980         * lib/atexit.c: New file, from libiberty.
97981
97982 2000-05-06  Jim Meyering  <meyering@lucent.com>
97983
97984         * lib/closeout.c (close_stdout_status): Also check for errors on the
97985         stderr stream.
97986
97987 2000-05-05  Jim Meyering  <meyering@lucent.com>
97988
97989         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
97990         AC_SEARCH_LIBS call for clock_gettime.
97991         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
97992
97993         * m4/search-libs.m4: Update from autoconf.
97994
97995         su doesn't work on Solaris 2.6.
97996         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
97997         <shadow.h>.  Reported by Dragos Harabor.
97998
97999 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
98000
98001         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
98002         memcpy instead of xmalloc, xrealloc, path_concat.
98003         (locale_charset): Treat empty environment variables as absent.
98004         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
98005
98006 2000-05-04  Jim Meyering  <meyering@lucent.com>
98007
98008         * lib/getopt.c: Update from glibc.
98009         * lib/obstack.c: Likewise.
98010         * lib/obstack.h: Likewise.
98011         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
98012         file
98013
98014         * lib/regex.h: Likewise.
98015         * lib/strndup.c: Likewise.
98016         * lib/strnlen.c: New file, from glibc.
98017
98018 2000-05-03  Jim Meyering  <meyering@lucent.com>
98019
98020         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
98021
98022 2000-05-02  Paul Eggert  <eggert@twinsun.com>
98023
98024         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
98025         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
98026         compile-time test, rather than inspecting host and OS, to
98027         decide whether to define _LARGEFILE_SOURCE.
98028
98029 2000-05-01  Jim Meyering  <meyering@lucent.com>
98030
98031         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
98032
98033         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
98034         Based on a patch from Bruno Haible.
98035
98036 2000-05-01  Jim Meyering  <meyering@lucent.com>
98037
98038         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
98039
98040 2000-04-29  Jim Meyering  <meyering@lucent.com>
98041
98042         * lib/path-concat.c: Declare strdup only if it's not defined.
98043         * lib/canon-host.c: Likewise.
98044
98045 2000-04-28  Jim Meyering  <meyering@lucent.com>
98046
98047         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
98048         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
98049         is included first, then limits.h is included by locale.h by libintl.h.
98050         From John David Anglin.
98051
98052 2000-04-25  Jim Meyering  <meyering@lucent.com>
98053
98054         * lib/makepath.c (S_IRWXUGO): Define.
98055         (make_path): Always perform explicit chmod if MODE specifies any
98056         of the `special' permission bits.  Prompted by a bug report against
98057         install from Mate Wierdl and Joost van Baal.
98058
98059 2000-04-18  Jim Meyering  <meyering@lucent.com>
98060
98061         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
98062         (jm_PREREQ): Use it.
98063
98064 2000-04-18  Jim Meyering  <meyering@lucent.com>
98065
98066         * lib/README: New file.
98067
98068         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
98069         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
98070
98071 2000-04-17  Jim Meyering  <meyering@lucent.com>
98072
98073         Get it right :-)
98074         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
98075         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
98076         Suggestion from Akim Demaille.
98077
98078 2000-04-17  Jim Meyering  <meyering@lucent.com>
98079
98080         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
98081         the definition of it to rpl_strftime also defined-away the system's
98082         declaration.
98083
98084 2000-04-15  Jim Meyering  <meyering@lucent.com>
98085
98086         Use `C' to denote so-called `contiguous' files, the same way
98087         that tar does.
98088         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
98089         (ftypelet): Use S_ISCTG.
98090         From Michael Deutschmann.
98091
98092 2000-04-14  Jim Meyering  <meyering@lucent.com>
98093
98094         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
98095         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
98096         clobbered.
98097
98098 2000-04-14  Jim Meyering  <meyering@lucent.com>
98099
98100         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
98101
98102 2000-04-13  Jim Meyering  <meyering@lucent.com>
98103
98104         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
98105         AH_VERBATIM to insert required #ifndef into config.h.in.
98106         Suggestion from Akim Demaille.
98107
98108 2000-04-12  Jim Meyering  <meyering@lucent.com>
98109
98110         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
98111         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
98112         Christian Krackowizer.
98113
98114         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
98115         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
98116         (AC_SYS_LARGEFILE): Require.
98117         (AM_C_PROTOTYPES): Require.
98118
98119 2000-04-08  Jim Meyering  <meyering@lucent.com>
98120
98121         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
98122         names don't conflict.  Reported by Eli Zaretskii.
98123
98124 2000-04-07  Jim Meyering  <meyering@lucent.com>
98125
98126         * lib/putenv.c: Move inclusion of errno.h so it follows that of
98127         sys/types.h, to work around system header problems on AIX 3.2.5.
98128         From Bruno Haible.
98129
98130 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
98131
98132         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
98133         bug.  Deal with the different error behavior of Irix iconv.
98134
98135 2000-04-05  Paul Eggert  <eggert@twinsun.com>
98136
98137         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
98138         IRIX if the installer said otherwise.
98139
98140 2000-04-05  Jim Meyering  <meyering@lucent.com>
98141
98142         Portability tweaks required for ultrix4.3.
98143         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
98144         (jm_CHECK_DECLS): Add getutent to the list of functions.
98145         (_jm_DECL_HEADERS): Add utmpx.h.
98146         From John David Anglin.
98147
98148         * m4/strftime.m4: Back out the 2000-04-02 change.
98149         Instead of that change, simply undefine putenv in the test program.
98150
98151 2000-04-05  Jim Meyering  <meyering@lucent.com>
98152
98153         Portability tweaks required for ultrix4.3.
98154         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
98155         getutent.
98156         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
98157         * lib/canon-host.c: Declare strdup.
98158         * lib/path-concat.c: Likewise.
98159         From John David Anglin.
98160
98161 2000-04-04  Jim Meyering  <meyering@lucent.com>
98162
98163         Be more DOS 8.3-friendly.
98164         * lib/ref-add.sin: Renamed from ref-add.sed.in.
98165         * lib/ref-del.sin: Renamed from ref-del.sed.in.
98166         * lib/Makefile.am: Reflect renaming.
98167         Reported by Eli Zaretskii.
98168
98169         Use a temporary file name that won't clash with `charset.alias'
98170         in the DOS 8.3 name space.
98171         * lib/Makefile.am (charset_tmp): Define.
98172         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
98173         (uninstall-local): Likewise.
98174         Reported by Eli Zaretskii.
98175
98176 2000-04-03  Jim Meyering  <meyering@lucent.com>
98177
98178         * m4/gettext.m4: Fix typo in comment.
98179
98180         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
98181         textutils/configure.in).  Suggestion from Paul Eggert.
98182         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
98183
98184 2000-04-02  Paul Eggert  <eggert@twinsun.com>
98185
98186         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
98187         variable in the shell rather than using putenv, which isn't
98188         portable.  This avoids the configure-time inter-test dependency
98189         on the potentially-renamed putenv function.
98190
98191 2000-03-30  Paul Eggert  <eggert@twinsun.com>
98192
98193         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
98194         before checking struct stat.st_blksize, so that
98195         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
98196
98197 2000-03-29  Paul Eggert  <eggert@twinsun.com>
98198
98199         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
98200         since strftime.c uses HAVE_STRFTIME to decide whether to use
98201         the underlying strftime.
98202
98203 2000-03-29  Paul Eggert  <eggert@twinsun.com>
98204
98205         * lib/time/strftime.c (my_strftime): Make sure we call the system
98206         strftime, not ourselves, when invoking the underlying strftime.
98207
98208 2000-03-24  Jim Meyering  <meyering@lucent.com>
98209
98210         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
98211         (charset_alias): Define.
98212         (install-exec-local): Factor out common code.
98213         (uninstall-local): Split lines longer than 80.
98214         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
98215         (SUFFIXES): Define.
98216         (.sed.in.sed): New rule.  Don't redirect directly to $@.
98217         (CLEANFILES): Add ref-add.sed and ref-del.sed.
98218
98219 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
98220
98221         * lib/config.charset: Output a line containing "Packages using this
98222         file".
98223         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
98224         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
98225         ref-del.sed): New rules.
98226
98227 2000-03-17  Jim Meyering  <meyering@lucent.com>
98228
98229         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
98230         Otherwise, include <strings.h>
98231
98232 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
98233
98234         * lib/unicodeio.c (utf8_wctomb): New function.
98235         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
98236         format instead of in UCS-4 with platform dependent endianness.
98237
98238 2000-03-10  Jim Meyering  <meyering@lucent.com>
98239
98240         * m4/lib-check.m4: Look for getspnam in -lgen, too.
98241         From Marco Franzen.
98242
98243 2000-03-07  Paul Eggert  <eggert@twinsun.com>
98244
98245         * lib/savedir.c (savedir): Work even if directory size is
98246         negative; this can happen with some screwy NFS configurations.
98247
98248 2000-03-06  Jim Meyering  <meyering@lucent.com>
98249
98250         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
98251         if it's NULL (because we ran out of memory).  From Bruno Haible.
98252
98253 2000-03-05  Jim Meyering  <meyering@lucent.com>
98254
98255         * lib/localcharset.c ("path-concat.h"): Include.
98256         (get_charset_aliases): Use path_concat instead of ANSI string
98257         concatenation.
98258
98259         * lib/unicodeio.h (PARAMS): Define.
98260         Use it to guard prototype.
98261
98262 2000-03-04  Jim Meyering  <meyering@lucent.com>
98263
98264         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
98265         for lib/localcharset.c.
98266
98267 2000-03-04  Jim Meyering  <meyering@lucent.com>
98268
98269         * lib/Makefile.am (install-exec-local): Create $(libdir) before
98270         installing into it.
98271         (uninstall-local): Uncomment this rule so `make distcheck' works
98272         once again.
98273
98274         * lib/unicodeio.c (<errno.h>): Include it.
98275         (errno): Declare if not defined.
98276
98277         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
98278
98279         * lib/config.charset: New version, incorporating remarks from a linux
98280         i18n mailing list.  From Bruno Haible.
98281
98282 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
98283
98284         * m4/codeset.m4: New file.
98285         * m4/iconv.m4: New file.
98286         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
98287
98288 2000-03-03  Jim Meyering  <meyering@lucent.com>
98289
98290         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
98291
98292 2000-03-02  Jim Meyering  <meyering@lucent.com>
98293
98294         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
98295         the messages come out on separate lines.
98296
98297         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
98298         rather than jm_CHECK_DECLARATIONS.
98299         * m4/decl.m4: Remove now-unused file.
98300
98301         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
98302         geteuid.
98303
98304 2000-03-02  Jim Meyering  <meyering@lucent.com>
98305
98306         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
98307
98308 2000-03-01  Jim Meyering  <meyering@lucent.com>
98309
98310         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
98311         * lib/unicodeio.c: Likewise.
98312
98313 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
98314
98315         * lib/config.charset: New file.
98316         * lib/localcharset.c: New file.
98317         * lib/unicodeio.h, lib/unicodeio.c: New files.
98318         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
98319         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
98320         (noinst_HEADERS): Add unicodeio.h.
98321         (all-local, install-exec-local, charset.alias): New targets.
98322
98323 2000-02-28  Paul Eggert  <eggert@twinsun.com>
98324
98325         * lib/quotearg.c (ALERT_CHAR): New macro.
98326         (quotearg_buffer_restyled): Use it.
98327
98328 2000-02-27  Jim Meyering  <meyering@lucent.com>
98329
98330         * m4/check-decl.m4: Add getenv to the list.
98331
98332 2000-02-27  Jim Meyering  <meyering@lucent.com>
98333
98334         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
98335         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
98336
98337         * lib/backupfile.c: Guard inclusion of stdlib.h with
98338         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
98339         Declare malloc if needed.
98340
98341         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
98342         `#ifndef HAVE_DECL..'
98343         now that autoconf always defines the HAVE_DECL_ symbols.
98344         * lib/human.c: Likewise.
98345         * lib/same.c: Likewise.
98346         * lib/strtoumax.c: Likewise.
98347
98348         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
98349         declaration check was not run.
98350         * lib/hash.c: Likewise.
98351         * lib/human.c: Likewise.
98352         * lib/same.c: Likewise.
98353         * lib/strtoumax.c: Likewise.
98354
98355         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
98356         `.', then first look up the entire `.'-containing string as a login
98357         name.
98358
98359 2000-02-23  Jim Meyering  <meyering@lucent.com>
98360
98361         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
98362         in place of my hack.
98363
98364 2000-02-18  Paul Eggert  <eggert@twinsun.com>
98365
98366         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
98367         (textint): New typedef.
98368         (parser_control): Member year changed from int to textint.
98369         All uses changed.
98370         (YYSTYPE): Removed; replaced by %union with int and textint members.
98371         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
98372         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
98373         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
98374         (tSNUMBER, tUNUMBER): Now of type <textintval>.
98375         (date, number, to_year): Use width of number in digits, not its value,
98376         to determine whether it's a 2-digit year, or a 2-digit time.
98377         (yylex): Store number of digits of numeric tokens.
98378         Reported by John Kendall.
98379
98380         (parser_control): Changed from struct parser_control to typedef (for
98381         consistency).  All uses changed.
98382
98383         (tID): Removed; not used.
98384         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
98385
98386 2000-02-14  Paul Eggert  <eggert@twinsun.com>
98387
98388         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
98389         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
98390
98391 2000-02-12  Jim Meyering  <meyering@lucent.com>
98392
98393         * lib/userspec.c (ISDIGIT): Define it.
98394         (isdigit): Remove definition.
98395         (is_number): Use ISDIGIT, not isdigit.
98396         <libintl.h>: Include.
98397         (_ and N_): Define.
98398         (parse_user_spec): Mark translatable strings.
98399
98400 2000-02-10  Jim Meyering  <meyering@lucent.com>
98401
98402         With these changes, nanosleep.[ch] are finally enough like the other
98403         lib/* replacement files to compile on a few more losing systems.
98404
98405         * lib/nanosleep.h: Don't include config.h.
98406         Remove prototype from declaration of nanosleep.
98407         (PARAMS): Remove now-unneeded definition.
98408         * lib/nanosleep.c: #undef nanosleep.
98409         (rpl_nanosleep): Rename from nanosleep.
98410
98411 2000-02-10  Jim Meyering  <meyering@lucent.com>
98412
98413         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
98414         gnu_nanosleep to rpl_nanosleep.
98415
98416 2000-02-09  Jim Meyering  <meyering@lucent.com>
98417
98418         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
98419         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
98420
98421 2000-02-08  Akim Demaille  <akim@epita.fr>
98422
98423         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
98424         `[' and `]' and remove uses of `changequote'.
98425         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
98426         (AC_SYS_LARGEFILE): Likewise.
98427         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
98428         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
98429         of changequote.
98430         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
98431         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
98432         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
98433         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
98434
98435 2000-02-05  Jim Meyering  <meyering@lucent.com>
98436
98437         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
98438         Remove explicit use of AC_HEADER_TIME.  It is required by
98439         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
98440         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
98441         in autoconf whereby the expansion of the latter ended up preceding
98442         the expansion of its prerequisite, AC_HEADER_TIME.
98443         Reported by Volker Borchert.
98444
98445 2000-02-03  Jim Meyering  <meyering@lucent.com>
98446
98447         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
98448
98449 2000-02-03  Jim Meyering  <meyering@lucent.com>
98450
98451         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
98452         rather than with `#if HAVE_UTMPNAME'.
98453
98454 2000-02-02  Jim Meyering  <meyering@lucent.com>
98455
98456         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
98457         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
98458         Reported by Eli Zaretskii.
98459
98460 2000-02-01  Jim Meyering  <meyering@lucent.com>
98461
98462         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
98463
98464 2000-01-31  Jim Meyering  <meyering@lucent.com>
98465
98466         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
98467         functions.  Add the time.h and sys/time.h headers along with the
98468         AC_REQUIRE'ment of AC_HEADER_TIME.
98469
98470 2000-01-31  Jim Meyering  <meyering@lucent.com>
98471
98472         * lib/nanosleep.h (nanosleep): Guard declaration with
98473         `#if ! HAVE_DECL_NANOSLEEP'.
98474         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
98475         the declaration in that vendor's sys/timers.h.
98476         Reported by Christian Krackowizer.
98477
98478         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
98479         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
98480         (ISPRINT): Likewise.
98481         Reported by Tom Tromey.
98482
98483 2000-01-30  Jim Meyering  <meyering@lucent.com>
98484
98485         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
98486
98487         * m4/prereq.m4 (utmp_includes): Define.
98488         Check for ut_user and ut_name members in both struct utmpx
98489         and struct utmp.
98490
98491 2000-01-30  Jim Meyering  <meyering@lucent.com>
98492
98493         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
98494         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
98495         header files where only utmpx.ut_user is declared.
98496
98497         * lib/readutmp.h (UT_USER): Define.
98498
98499 2000-01-29  Jim Meyering  <meyering@lucent.com>
98500
98501         * m4/lib-check.m4: New file containing library-related checks from
98502         fileutils and sh-utils (textutils had none).
98503
98504 2000-01-28  Jim Meyering  <meyering@lucent.com>
98505
98506         * m4/perl.m4: Change format of warning message to look more like that
98507         from the missing script.  Suggestion from François Pinard.
98508
98509 2000-01-25  Jim Meyering  <meyering@lucent.com>
98510
98511         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
98512         well as time.h in the compile check.
98513         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
98514         Fix typo in cross-compiling case: s/yes/no/.
98515
98516 2000-01-23  Jim Meyering  <meyering@lucent.com>
98517
98518         * m4/jm-macros.m4: Move df-related tests here from
98519         fileutils/configure.in
98520
98521         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
98522         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
98523
98524         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
98525         s/space/ac_fsusage_space/.
98526         (jm_FILE_SYSTEM_USAGE): Take two parameters.
98527
98528         * m4/ftruncate.m4: New file (derived from part of
98529         fileutils/configure.in).
98530         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
98531         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
98532
98533         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
98534         AC_SUBST these here, rather than just in sh-util/configure.in, so
98535         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
98536         all the same.
98537         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
98538         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
98539         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
98540         (AC_SUBST(POW_LIBM)): Likewise.
98541         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
98542
98543 2000-01-23  Jim Meyering  <meyering@lucent.com>
98544
98545         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
98546         obstack.c.
98547
98548 2000-01-22  Jim Meyering  <meyering@lucent.com>
98549
98550         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
98551
98552         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
98553
98554         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
98555         configure.in
98556         (AC_CHECK_HEADERS): Likewise for sh-utils.
98557         (AC_CHECK_HEADERS): Likewise for textutils.
98558         Merge the three lists of headers.
98559
98560         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
98561         from fileutils' configure.in.
98562
98563         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
98564         code. Moved tests into their own function (_jm_DECL_HEADERS) in
98565         check-decl.m4.
98566
98567         * m4/check-decl.m4: Use #if rather than #ifdef.
98568         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
98569         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
98570         (_jm_DECL_HEADERS): Define new function.
98571         (jm_CHECK_DECLARATIONS): Require it.
98572
98573 2000-01-22  Jim Meyering  <meyering@lucent.com>
98574
98575         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
98576         [! HAVE_DECL_STRTOULL]: Declare strtoull.
98577         Required for some AIX systems.  Reported by Christian Krackowizer.
98578         [TESTING] (main): New function.
98579
98580         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
98581         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
98582         letters.
98583
98584         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
98585         iswprint.
98586
98587         * lib/strverscmp.c (ISDIGIT): Define.
98588         (strverscmp): Use ISDIGIT, not isdigit.
98589
98590 2000-01-19  Jim Meyering  <meyering@lucent.com>
98591
98592         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
98593         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
98594         defines `struct timespec' in <sys/time.h>
98595
98596         * m4/c-bs-a.m4: Remove uses of changequote altogether.
98597         Thanks to Akim for explaining.
98598
98599 2000-01-17  Paul Eggert  <eggert@twinsun.com>
98600
98601         * lib/nanosleep.c (nanosleep):
98602         Don't use SA_INTERRUPT to decide whether to call sigaction, as
98603         POSIX.1 doesn't require SA_INTERRUPT and some systems
98604         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
98605         it's been part of POSIX.1 since day 1 (in 1988).
98606
98607 2000-01-17  Jim Meyering  <meyering@lucent.com>
98608
98609         * lib/interlock: Remove unused file.  Reported by François Pinard.
98610
98611 2000-01-16  Paul Eggert  <eggert@twinsun.com>
98612
98613         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
98614         alert, backslash, formfeed, and vertical tab unnecessarily in
98615         shell quoting style.
98616
98617 2000-01-16  Jim Meyering  <meyering@lucent.com>
98618
98619         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
98620         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
98621         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
98622         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
98623
98624 2000-01-16  Jim Meyering  <meyering@lucent.com>
98625
98626         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
98627         because the latter didn't work.
98628
98629 2000-01-15  Jim Meyering  <meyering@lucent.com>
98630
98631         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
98632         (AC_REPLACE_FUNCS): Add memcpy and memset.
98633         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
98634         Add strpbrk.
98635         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
98636
98637 2000-01-12  Jim Meyering  <meyering@lucent.com>
98638
98639         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
98640         (jm_PREREQ): Use it.
98641         (jm_PREREQ_READUTMP): New macro.
98642         (jm_PREREQ): Use it.
98643
98644 2000-01-11  Paul Eggert  <eggert@twinsun.com>
98645
98646         Quote multibyte characters correctly.
98647         * m4/c-bs-a.m4: New file.
98648         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
98649         (jm_PREREQ): Use it.
98650
98651 2000-01-11  Paul Eggert  <eggert@twinsun.com>
98652
98653         * m4/uintmax_t.m4: Port to autoconf 2.13.
98654
98655 2000-01-08  Jim Meyering  <meyering@ascend.com>
98656
98657         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
98658         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
98659
98660 2000-01-04  Jim Meyering  <meyering@ascend.com>
98661
98662         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
98663         jm_STRUCT_DIRENT_D_TYPE.
98664         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
98665         jm_STRUCT_DIRENT_D_INO.
98666         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
98667         jm_STRUCT_UTIMBUF.
98668         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
98669         renamings.
98670         * m4/utime.m4: Likewise.
98671
98672         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
98673         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
98674
98675 2000-01-03  Paul Eggert  <eggert@twinsun.com>
98676
98677         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
98678         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
98679
98680 2000-01-02  Jim Meyering  <meyering@ascend.com>
98681
98682         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
98683         remember if this is necessary.
98684
98685 1999-12-26  Jim Meyering  <meyering@ascend.com>
98686
98687         * m4/jm-macros.m4: Use it here.
98688         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
98689
98690 1999-12-23  Jim Meyering  <meyering@ascend.com>
98691
98692         * m4/jm-macros.m4: Check for clock_gettime (moved from
98693         fileutils/configure.in)
98694         Check for gettimeofday.
98695
98696 1999-12-20  Jim Meyering  <meyering@ascend.com>
98697
98698         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
98699         autoconf-2.14a-1999-12-20.
98700
98701 1999-12-19  Jim Meyering  <meyering@ascend.com>
98702
98703         * m4/lstat-slash.m4: New file.
98704         * m4/jm-macros.m4: Use the new macro:
98705         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
98706
98707 1999-12-07  Jim Meyering  <meyering@ascend.com>
98708
98709         * m4/perl.m4: Require that File::Compare be available, too.
98710         Too many systems seem to lack it.
98711
98712         * m4/strftime.m4: Add checks for most of the cpp macros tested in
98713         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
98714
98715 1999-11-18  Paul Eggert  <eggert@twinsun.com>
98716
98717         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
98718         problem with the QNX 4.25 shell, which doesn't propagate exit
98719         status of failed commands inside shell assignments.
98720
98721 1999-11-17  Jim Meyering  <meyering@ascend.com>
98722
98723         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
98724
98725 1999-11-07  Jim Meyering  <meyering@ascend.com>
98726
98727         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
98728
98729 1999-11-06  Jim Meyering  <meyering@ascend.com>
98730
98731         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
98732         * m4/jm-macros.m4 (jm_MACROS): Use it here.
98733
98734 1999-11-05  Jim Meyering  <meyering@ascend.com>
98735
98736         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
98737         configure.in of textutils, fileutils, and sh-utils into this one
98738         (shared between those packages) file.
98739         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
98740         AC_STRUCT_ST_BLKSIZE.
98741
98742 1999-11-03  Jim Meyering  <meyering@ascend.com>
98743
98744         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
98745         of AC_CHECK_TYPE checks includes unistd.h.
98746         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
98747         Suggestion from Akim Demaille.
98748
98749 1999-10-30  Jim Meyering  <meyering@ascend.com>
98750
98751         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
98752         m4-quoted string.
98753         * m4/ls-mntd-fs.m4: Likewise.
98754         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
98755         * m4/jm-winsz1.m4: Likewise.
98756
98757         * m4/const.m4: Remove file, since the fix made it into the experimental
98758         version of autoconf.
98759         * m4/mktime.m4: Likewise.
98760
98761         * m4/check-type.m4: Remove file, now that the latest version of
98762         AC_CHECK_TYPE takes a third arg to specify additional #includes.
98763
98764         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
98765         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
98766         AC_CHECK_TYPE.
98767
98768 1999-10-04  Jim Meyering  <meyering@ascend.com>
98769
98770         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
98771
98772 1999-09-22  Paul Eggert  <eggert@twinsun.com>
98773
98774         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
98775         2.95.1 bug with HP-UX 10.20.
98776
98777 1999-09-17  Jim Meyering  <meyering@ascend.com>
98778
98779         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
98780         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
98781         due to missing strdup (against sh-utils-2.0).
98782
98783 1999-08-29  Jim Meyering  <meyering@ascend.com>
98784
98785         * m4/jm-macros.m4: Require jm_BISON.
98786         * m4/bison.m4: New file.
98787
98788 1999-08-17  Paul Eggert  <eggert@twinsun.com>
98789
98790         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
98791         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
98792
98793 1999-08-05  Jim Meyering  <meyering@ascend.com>
98794
98795         * m4/getline.m4: Rename test file from conftestdata to conftest.data
98796         to avoid conflicts with `conftest' on 8+3 filesystems.
98797         Suggestion from Eli Zaretskii.
98798
98799 1999-08-04  Jim Meyering  <meyering@ascend.com>
98800
98801         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
98802         fileutils and sh-utils (textutils's getline test was inadequate).
98803         (AM_FUNC_GETLINE): Run this test.
98804         (AC_CHECK_FUNCS): Check for getdelim.
98805         Reported by Bob Proulx.
98806
98807 1999-08-02  Jim Meyering  <meyering@ascend.com>
98808
98809         * m4/jm-macros.m4: Add a comment.
98810
98811 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98812
98813         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
98814         <inttypes.h> defines strtoumax as a macro (and not as a
98815         function).
98816
98817 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98818
98819         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
98820         that we can shift, multiply and divide unsigned long long
98821         values; Ultrix cc can't do it.
98822
98823 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98824
98825         * m4/mktime.m4: New file, which is a preview of what should appear
98826         in the next public autoconf release.
98827
98828 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98829
98830         * m4/lfs.m4: Remove this file.
98831         * m4/largefile.m4: New file.  It contains the old contents of
98832         lfs.m4, except that all names with prefix AC_LFS have been
98833         changed to use the prefix AC_SYS_LARGEFILE instead, to be
98834         compatible with future autoconf versions.  Also, some minor m4
98835         quoting problems have been fixed.
98836
98837 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98838
98839         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
98840         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
98841         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
98842         and simplify the shell code.
98843
98844 1999-08-01  Jim Meyering  <meyering@ascend.com>
98845
98846         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
98847         m4.
98848
98849 1999-07-20  Jim Meyering  <meyering@ascend.com>
98850
98851         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
98852
98853 1999-07-15  Jim Meyering  <meyering@ascend.com>
98854
98855         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
98856
98857 1999-05-22  Jim Meyering  <meyering@ascend.com>
98858
98859         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
98860
98861 1999-05-20  Jim Meyering  <meyering@ascend.com>
98862
98863         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
98864         Add a colon after each `then' in case $4 is empty.
98865
98866 1999-05-16  Jim Meyering  <meyering@ascend.com>
98867
98868         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
98869
98870 1999-05-10  Jim Meyering  <meyering@ascend.com>
98871
98872         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
98873
98874         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
98875         AC_FUNC_MKTIME.
98876
98877 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
98878
98879         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
98880
98881 1999-05-04  Paul Eggert  <eggert@twinsun.com>
98882
98883         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
98884         not CPPFLAGS, so that linking works correctly in IRIX.
98885
98886 1999-04-30  Paul Eggert  <eggert@twinsun.com>
98887
98888         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
98889
98890 1999-04-20  Paul Eggert  <eggert@twinsun.com>
98891
98892         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
98893         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
98894         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
98895         jm_AC_TYPE_UNSIGNED_LONG_LONG.
98896         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
98897
98898         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
98899
98900 1999-04-20  Jim Meyering  <meyering@ascend.com>
98901
98902         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
98903         AC_REPLACE xstroull if necessary.  From Paul Eggert.
98904         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
98905
98906 1999-04-18  Jim Meyering  <meyering@ascend.com>
98907
98908         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
98909         * m4/jm-macros.m4: Use it.
98910
98911 1999-04-06  Jim Meyering  <meyering@ascend.com>
98912
98913         * m4/strftime.m4: Remove test for %f.
98914
98915 1999-03-29  Jim Meyering  <meyering@ascend.com>
98916
98917         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
98918         superset of the AC_TYPE_* checks in the textutils, fileutils,
98919         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
98920         AC_TYPE_PID_T.
98921
98922 1999-03-28  Jim Meyering  <meyering@ascend.com>
98923
98924         * m4/jm-macros.m4: Define GNU_PACKAGE here.
98925         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
98926         replaced e.g., in the *.sh files of the sh-utils.
98927
98928 1999-03-20  Jim Meyering  <meyering@ascend.com>
98929
98930         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
98931         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
98932         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
98933
98934 1999-03-19  Jim Meyering  <meyering@ascend.com>
98935
98936         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
98937
98938 1999-03-12  Jim Meyering  <meyering@ascend.com>
98939
98940         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
98941
98942 1999-03-07  Jim Meyering  <meyering@ascend.com>
98943
98944         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
98945         declared.
98946
98947 1999-02-17  Jim Meyering  <meyering@ascend.com>
98948
98949         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
98950         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
98951
98952 1999-02-07  Jim Meyering  <meyering@ascend.com>
98953
98954         * m4/group-member.m4: New file -- extracted from sh-utils'
98955         configure.in.
98956
98957         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
98958         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
98959
98960 1999-02-06  Jim Meyering  <meyering@ascend.com>
98961
98962         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
98963         * m4/fnmatch.m4: Likewise.
98964         * m4/getgroups.m4: Likewise.
98965         * m4/lstat.m4: Likewise.
98966         * m4/malloc.m4: Likewise.
98967         * m4/putenv.m4: Likewise.
98968         * m4/realloc.m4: Likewise.
98969         * m4/regex.m4: Likewise.
98970         * m4/stat.m4: Likewise.
98971         * m4/strftime.m4: Likewise.
98972         Suggestion from Alain Magloire.
98973
98974         * m4/chown.m4: Use `.$ac_objext', not `.o'.
98975         * m4/fnmatch.m4: Likewise.
98976         * m4/getgroups.m4: Likewise.
98977         * m4/getline.m4: Likewise.
98978         * m4/lstat.m4: Likewise.
98979         * m4/malloc.m4: Likewise.
98980         * m4/memcmp.m4: Likewise.
98981         * m4/putenv.m4: Likewise.
98982         * m4/realloc.m4: Likewise.
98983         * m4/regex.m4: Likewise.
98984         * m4/stat.m4: Likewise.
98985         * m4/strftime.m4: Likewise.
98986         Suggestion from Alain Magloire.
98987
98988         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
98989         an argument.
98990
98991         * m4/regex.m4: Add a run-time Test for proper operation of
98992         re_compile_pattern.
98993
98994 1999-01-31  Jim Meyering  <meyering@ascend.com>
98995
98996         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
98997
98998 1999-01-30  Jim Meyering  <meyering@ascend.com>
98999
99000         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
99001
99002         * m4/jm-mktime.m4: Make this a wrapper around the official
99003         AM_FUNC_MKTIME rather than my private copy, now that the official one
99004         is up to date.
99005         * m4/mktime.m4: Remove file.
99006
99007         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
99008         * m4/uptime.m4: Likewise.
99009         * m4/uintmax_t.m4: Likewise.
99010
99011 1999-01-28  Jim Meyering  <meyering@ascend.com>
99012
99013         * m4/jm-macros.m4: Use jm_AFS.
99014         * m4/afs.m4: New file (from fileutils' configure.in).
99015
99016         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
99017         * m4/chown.m4: Likewise.
99018         * m4/d-ino.m4: Likewise.
99019         * m4/d-type.m4: Likewise.
99020         * m4/fnmatch.m4: Likewise.
99021         * m4/getgroups.m4: Likewise.
99022         * m4/gettext.m4: Likewise.
99023         * m4/jm-mktime.m4: Likewise.
99024         * m4/jm-winsz2.m4: Likewise.
99025         * m4/lcmessage.m4: Likewise.
99026         * m4/ls-mntd-fs.m4: Likewise.
99027         * m4/malloc.m4: Likewise.
99028         * m4/memcmp.m4: Likewise.
99029         * m4/putenv.m4: Likewise.
99030         * m4/realloc.m4: Likewise.
99031         * m4/st_mtim.m4: Likewise.
99032         * m4/strftime.m4: Likewise.
99033
99034 1999-01-16  Jim Meyering  <meyering@ascend.com>
99035
99036         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
99037         (ARGMATCH_DIE_DECL): Define.
99038
99039 1999-01-12  Jim Meyering  <meyering@ascend.com>
99040
99041         * m4/Makefile.am.in: Rewrite to avoid using fmt.
99042         Reported by Lars Hecking.
99043
99044 1999-01-10  Jim Meyering  <meyering@ascend.com>
99045
99046         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
99047         gross kludge.
99048         * m4/inttypes_h.m4: Likewise.
99049         * m4/lstat.m4: Likewise.
99050         * m4/malloc.m4: Likewise.
99051         * m4/readdir.m4: Likewise.
99052         * m4/realloc.m4: Likewise.
99053         * m4/st_dm_mode.m4: Likewise.
99054         * m4/stat.m4: Likewise.
99055         * m4/utimbuf.m4: Likewise.
99056         * m4/utimes.m4: Likewise.
99057
99058         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
99059         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
99060         comments in config.h.in are meaningful.
99061
99062         * m4/jm-macros.m4: Require autoconf-2.13 here.
99063
99064         * m4/regex.m4: By default, don't use the included regex.c on systems
99065         with glibc 2.  Suggestion from Uli Drepper.
99066
99067 1999-01-02  Jim Meyering  <meyering@ascend.com>
99068
99069         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
99070
99071 1998-12-18  Jim Meyering  <meyering@ascend.com>
99072
99073         * m4/Makefile.am.in (Makefile.am): Simplify rule.
99074         Based on a suggestion from Lars Hecking.
99075
99076 1998-11-16  Paul Eggert  <eggert@twinsun.com>
99077
99078         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
99079
99080 1998-11-16  Jim Meyering  <meyering@ascend.com>
99081
99082         * m4/lfs.m4: Double-quote the `uname...` expression.
99083
99084 1998-11-14  Jim Meyering  <meyering@ascend.com>
99085
99086         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
99087         * m4/stat.m4: Likewise.
99088
99089 1998-11-03  Jim Meyering  <meyering@ascend.com>
99090
99091         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
99092         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
99093
99094 1998-10-18  Jim Meyering  <meyering@ascend.com>
99095
99096         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
99097
99098 1998-10-17  Jim Meyering  <meyering@ascend.com>
99099
99100         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
99101         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
99102         calls for those previously hard-coded headers.  Instead, take a new
99103         parameter.
99104         (jm_CHECK_DECLARATIONS): Reflect interface change.
99105         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
99106         (jm_CHECK_DECL_LOCALTIME_R): New macro.
99107
99108         * m4/mktime.m4: Test for spring-forward gap before long-running test.
99109
99110 1998-10-14  Jim Meyering  <meyering@ascend.com>
99111
99112         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
99113         instead of "TZ=America/Vancouver".  From Paul Eggert.
99114
99115 1998-10-11  Jim Meyering  <meyering@ascend.com>
99116
99117         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
99118         This adds a test for a recently added compatibility fix for mktime.c.
99119         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
99120
99121 1998-09-27  Jim Meyering  <meyering@ascend.com>
99122
99123         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
99124
99125         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
99126         ../configure.in, including a change from Gordon Matzigkeit to allow
99127         cross-compiling for the Hurd.
99128
99129         * m4/glibc.m4: New file/macro to test for the GNU C Library
99130         versions 1 and 2.  From Gordon Matzigkeit.
99131         Indent.
99132
99133 1998-09-21  Jim Meyering  <meyering@ascend.com>
99134
99135         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
99136
99137 1998-08-18  Paul Eggert  <eggert@twinsun.com>
99138
99139         Port nanosecond-resolution times to UnixWare 2.1.2 and
99140         pedantic Solaris 2.6.
99141
99142         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
99143         AC_STRUCT_ST_MTIM.
99144         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
99145         Generate name of ns member, instead of just 1 or undef.
99146         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
99147
99148 1998-08-15  Jim Meyering  <meyering@ascend.com>
99149
99150         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
99151         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
99152         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
99153         instead of jm_TYPE_SSIZE_T.
99154
99155 1998-08-12  Jim Meyering  <meyering@ascend.com>
99156
99157         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
99158
99159 1998-08-02  Jim Meyering  <meyering@ascend.com>
99160
99161         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
99162         in acconfig.h manually.
99163
99164 1998-07-31  Paul Eggert  <eggert@twinsun.com>
99165
99166         * m4/st_mtim.m4: New file.
99167
99168 1998-07-28  Jim Meyering  <meyering@ascend.com>
99169
99170         * m4/utimes.m4: Undef stat.
99171
99172 1998-07-25  Jim Meyering  <meyering@ascend.com>
99173
99174         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
99175         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
99176
99177 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
99178
99179         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
99180         uid and gid actually remain unchanged.
99181
99182 1998-07-07  Jim Meyering  <meyering@ascend.com>
99183
99184         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
99185
99186 1998-07-04  Jim Meyering  <meyering@ascend.com>
99187
99188         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
99189         to prove that this macro can be used in packages without regex.c.
99190
99191 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
99192
99193         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
99194         is to be used.
99195
99196 1998-07-03  Jim Meyering  <meyering@ascend.com>
99197
99198         * m4/gettext.m4: Add -lintl if it's found to be necessary.
99199
99200         * m4/gettext.m4: New file -- from gettext-0.10.35.
99201         * m4/lcmessage.m4: Likewise.
99202         * m4/progtest.m4: Likewise.
99203
99204         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
99205         * m4/jm-macros.m4: Require the new macro.
99206
99207 1998-06-29  Jim Meyering  <meyering@ascend.com>
99208
99209         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
99210         for the definition of NGROUPS (used in a system header included
99211         by sys/mount.h).
99212
99213 1998-06-28  Jim Meyering  <meyering@ascend.com>
99214
99215         * m4/ls-mntd-fs.m4: New file.
99216         * m4/fstypename.m4: New file.
99217
99218         * m4/jm-macros.m4: Require the new macro.
99219         * m4/jm-glibc-io.m4: New file.
99220
99221 1998-05-19  Jim Meyering  <meyering@ascend.com>
99222
99223         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
99224         * m4/lchown.m4: New file.
99225
99226         * m4/Makefile.am.in: New file.
99227         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
99228
99229 1998-05-14  Jim Meyering  <meyering@ascend.com>
99230
99231         * m4/Makefile.am (EXTRA_DIST): Add them.
99232         * m4/jm-macros.m4: New file.
99233         * m4/utimbuf.m4: New file.
99234
99235 1998-05-12  Jim Meyering  <meyering@ascend.com>
99236
99237         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
99238
99239 1998-05-11  Jim Meyering  <meyering@ascend.com>
99240
99241         * m4/isc-posix.m4: New file.
99242
99243 1998-05-10  Jim Meyering  <meyering@ascend.com>
99244
99245         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
99246
99247 1998-05-09  Jim Meyering  <meyering@ascend.com>
99248
99249         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
99250         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
99251         with automake.
99252
99253         * m4/ssize_t.m4: New file.
99254         * m4/mktime.m4: Remove file -- the new automake has this now.
99255
99256 1998-04-26  Jim Meyering  <meyering@ascend.com>
99257
99258         * m4/assert.m4: New file.
99259         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
99260
99261 1998-04-05  Jim Meyering  <meyering@ascend.com>
99262
99263         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
99264         (jm_PREREQ): Use it here.
99265
99266 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
99267
99268         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
99269         in acconfig.h.
99270
99271 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
99272
99273         * m4/prereq.m4: New file.
99274         * m4/error.m4: New file.
99275         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
99276
99277 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
99278
99279         * m4/getline.m4: Don't set am_cv_func_working_getline before the
99280         cache-check for the same variable -- that defeated the purpose of
99281         the test; the test program was never run.  This was a problem only
99282         on systems with losing getline functions -- HP-UX 10.20 is one.
99283         Reported by Bjorn Helgaas.
99284
99285 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
99286
99287         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
99288
99289 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
99290
99291         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
99292
99293         * m4/const.m4: New file.  Use an initializer in this declaration
99294         typedef int charset[2]; const charset x;
99295         Reported by Bob Glickstein.
99296
99297 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
99298
99299         * m4/chown.m4: Fix reversed types on -1 args to chown.
99300         From Kaveh Ghazi.
99301
99302 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
99303
99304         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
99305         Add lseek and memchr.
99306
99307         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
99308         T.E.Dickey <dickey@clark.net> said that some older preprocessors
99309         have a 20-character limit on names.
99310
99311 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
99312
99313         * m4/inttypes_h.m4: New file.
99314         * m4/uintmax_t.m4: New file.
99315         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
99316
99317
99318         -----
99319
99320         Local Variables:
99321         coding: utf-8
99322         End:
99323
99324         Copyright (C) 1997-2013 Free Software Foundation, Inc.
99325
99326         Copying and distribution of this file, with or without
99327         modification, are permitted provided the copyright notice
99328         and this notice are preserved.